v3.2.0+
Status: | effective |
Progress: | 100% |
Version: | 3.2.0+ |
Help:Maintenance script dumpRDF.php
From Linux Web Expert
(Redirected from Help:DumpRDF.php)
MediaWiki file: Maintenance script dumpRDF.php | |
---|---|
Location: | /maintenance/ |
Source code: | script dumpRDF.php master • script dumpRDF.php 1.41.1 • script dumpRDF.php 1.40.3 • script dumpRDF.php 1.39.7 |
Classes: | script dumpRDF.php Find code • script dumpRDF.php Find documentation |
maintenance script allows to export RDF triples.
The "dumpRDF.php"Semantic MediaWiki 3.2.0Released on an unknown date unknown versions of MediaWiki brought an improved client output to this maintenance script.1
This maintenance script deprecated the former "SMW_dumpRDF.php" script starting with Semantic MediaWiki 1.9.2Released on an unknown date unknown versions of MediaWiki which was removed with the release of Semantic MediaWiki 3.0.0Released on an unknown date unknown versions of MediaWiki in October 2018.
Usage
php dumpRDF.php [--file|--categories|--classes|--concepts|--types|--individuals|--page|--properties|--d|--e]
This only shows the script specific parameters.
Parameters
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.
- Script specific parameters
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 an unknown date unknown versions of MediaWiki.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 an unknown date unknown versions of MediaWiki.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. |
Examples
- The following command exports all pages into the given file with a delay of 50 ms between every exported item.
php dumpRDF.php --file MyWiki.rdf -d 50
- The following command exports the pages "Page 1", "Page 2" and "Page 3".
php dumpRDF.php --page "Page 1|Page 2|Page 3"