=================================================================== --- SMW_dumpRDF.php (revision 31231) +++ SMW_dumpRDF.php (working copy) @@ -13,6 +13,9 @@ * -d slows down the export in order to stress the server less, * sleeping for milliseconds every now and then * -e after how many exported entities should the server take a nap? + * --server= The protocol and server name to as base URLs, e.g. + * http://en.wikipedia.org. This is sometimes necessary because + * server name detection may fail in command line scripts. * * @author Markus Krotzsch */ @@ -51,6 +54,10 @@ $export_ns = false; } +if ( isset( $options['server'] ) ) { + $wgServer = $options['server']; +} + $exRDF = new ExportRDF(); $exRDF->printAll($outfile, $export_ns, $delay, $delayeach);