v1.0+
Status: | effective |
Progress: | 100% |
Version: | 1.0+ |
$smwgNamespace
From Linux Web Expert
Template:Interlanguagelink: en
Configuration parameter details: | |
Name | $smwgNamespace |
Description | Sets the namespace of exported URIs |
Default setting | |
Software | Semantic MediaWiki |
Since version | |
Until version | still available |
Configuration | Installation · Namespace · RDF export |
Keyword | namespace · export · rdf · uri |
__NOBREADCRUMBLINKS__
$smwgNamespace
is a configuration parameter that sets the namespace of exported URIs. The configuration parameter was introduced in Semantic MediaWiki 1.0Released on an unknown date unknown versions of MediaWiki.
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 = 'https://example.org/id/';
See also
- Help page on function "
enableSemantics
" - Help page on pretty URIs
- Help page on configuration parameter
$smwgNamespaceIndex
Sets the index of the first namespace to be used by Semantic MediaWiki