| Status: | effective |
| Progress: | 100% |
| Version: | 3.2.0+ |
| dumpRDF.php | |
|---|---|
| Allows to do an RDF export of existing triples | |
| Further Information | |
| Provided by: | Semantic MediaWiki |
| Added: | 2.0.0 |
| Removed: | still in use |
| Location (path): | ./extensions/SemanticMediaWiki/maintenance/ |
| Table of Contents | |
Contents | |
The "dumpRDF.php" maintenance script allows to export RDF triples.
Semantic MediaWiki 3.2.0Released on 7 September 2020 and compatible with MW 1.31.0 - 1.35.x. brought an improved client output to this maintenance script.1
php dumpRDF.php [--file|--categories|--classes|--concepts|--types|--individuals|--page|--properties|--d|--e]
Maintenance scripts provide generic maintenance parameters, script dependent parameters and depending on the maintenance script script specific parameters which are described on this page if provided.
| Parameter | Description |
|---|---|
--file (-o) <filename>
|
Export into output file, stdout is used if omitted; file output is generally better and strongly recommended for large wikis. |
--categories
|
Export only categories. |
--concepts
|
Export only concepts. |
--classes
|
Export only concepts and categories. |
--properties
|
Export only properties. |
--types
|
Export only data types. |
--individuals
|
Export only pages that are no categories, properties, or types. |
--namespace <namespacelist>
|
Export only namespaces included in <namespacelist> Example: --namespace "NS_MAIN|NS_CUSTOMNAMESPACE|SMW_NS_PROPERTY" with | being used as separator. Available since Semantic MediaWiki 4.0.0Released on 18 January 2022 and compatible with MW 1.35.0 - 1.37.x..2
|
--page <pagelist>
|
Export only pages included in the <pagelist> with | being used as a separator. Options -e, -file, -d are ignored if --page is given. Available since Semantic MediaWiki 2.1.0Released on 19 January 2015 and compatible with MW 1.19.0 - 1.24.x..3
|
-d <delay>
|
Wait for this many milliseconds after processing an article. Useful for limiting server load. |
-e <each>
|
Retire after the given number of exported entities. |
php dumpRDF.php --file MyWiki.rdf -d 50
php dumpRDF.php --page "Page 1|Page 2|Page 3"