Help:enableSemantics

From semantic-mediawiki.org
Jump to: navigation, search

enableSemantics is a convenience function to be added to the "LocalSettings.php" file of a wiki configuration to ensure that:

Example

If changes to the configuration parameter $smwgNamespaceIndex
Sets the index of the first namespace to be used by Semantic MediaWiki
are necessary, please follow the instructions in connection with enableSemantics.1
  • The first parameter represents the URI-namespace
  • The second parameter indicates whether the URI namespace is completed or not
enableSemantics( 'https://example.org/id/', true );

Alternatively a setting like the following is possible:

enableSemantics( 'example.org/id/' );

See also