$delay = 0; } if (!empty($options['e'])) { $delayeach = intval($options['e']); } else { $delayeach = $delay === 0 ? 0 : 1; } if (array_key_exists('categories', $options)) { $export_ns = NS_CATEGORY; } elseif (array_key_exists('concepts', $options)) { $export_ns = SMW_NS_CONCEPT; } elseif (array_key_exists('classes', $options)) { $export_ns = array(NS_CATEGORY, SMW_NS_CONCEPT); } elseif (array_key_exists('properties', $options)) { $export_ns = SMW_NS_PROPERTY; } elseif (array_key_exists('types', $options)) { $export_ns = SMW_NS_TYPE; } elseif (array_key_exists('individuals', $options)) { $export_ns = -1; } else { $export_ns = false; } if (isset($options['server'])) { $wgServer = $options['server']; } if ($outfile && empty($options['q'])) { print "\nWriting OWL/RDF dump to file \"{$outfile}\" ...\n"; } $exRDF = new SMWExportController(new SMWRDFXMLSerializer()); $exRDF->printAll($outfile, $export_ns, $delay, $delayeach);