Index: trunk/extensions/SemanticMediaWiki/maintenance/SMW_dumpRDF.php |
— | — | @@ -13,7 +13,10 @@ |
14 | 14 | * -d <delay> slows down the export in order to stress the server less, |
15 | 15 | * sleeping for <delay> milliseconds every now and then |
16 | 16 | * -e <each> after how many exported entities should the server take a nap? |
17 | | - * |
| 17 | + * --server=<server> The protocol and server name to as base URLs, e.g. |
| 18 | + * http://en.wikipedia.org. This is sometimes necessary because |
| 19 | + * server name detection may fail in command line scripts. |
| 20 | + * |
18 | 21 | * @author Markus Krötzsch |
19 | 22 | */ |
20 | 23 | |
— | — | @@ -51,6 +54,10 @@ |
52 | 55 | $export_ns = false; |
53 | 56 | } |
54 | 57 | |
| 58 | +if ( isset( $options['server'] ) ) { |
| 59 | + $wgServer = $options['server']; |
| 60 | +} |
| 61 | + |
55 | 62 | $exRDF = new OWLExport(); |
56 | 63 | $exRDF->printAll($outfile, $export_ns, $delay, $delayeach); |
57 | 64 | |