Help:Configuration parameter "$smwgNamespace"

Jump to: navigation, search
edit with form (experimental)

Title $smwgNamespace
Description Sets the namespace of exported URIs
Default setting
Software Semantic MediaWiki
First version supported 1.0
Last version supported still available
Configuration Installation · Namespace · RDF export
Keyword Namespace · Export · RDF · URI

$smwgNamespace is a configuration parameter that sets the namespace of exported URIs. The setting was introduced in Semantic MediaWiki 1.0.

Default setting

The default setting is empty, however it will be set automatically if needed using the base URL provided to the enableSemantics call via the "LocalSettings.php" file. In order to create pretty URIs it needs to be set to something nice. Also the configuration of your webserver will have to be adapted appropriately.

Changing the default setting

To enforce a specific namespace add a line similar to this example to your "LocalSettings.php" file after the enableSemantics() call:

$smwgNamespace = '';

See also

This documentation page applies to all SMW versions from 1.0 to the most current version.

Help:$smwgNamespace en 1.0