Help:EnableSemantics



The   function should be added to the "LocalSettings.php" file to enable Semantic MediaWiki.

The use of the  function has been enforced starting with CiteRef::gh:smw:4119 to avoid issues and misuse of MediaWiki's extension registration mechanism by erroneously adding  to the "LocalSettings.php" file.

Usage
Using the  function ensures that:
 * An URI related namespace is setup for the RDF export and the SPARQLStore replication process
 * Namespace constants (e.g. ) are accessible in the "LocalSettings.php" file when making changes to configuration parameters like

If changes to the are necessary, please follow the instructions in connection with  .CiteRef::mail:user:smw:35883201

Parameters
The function defines the following parameters:
 * The first parameter represents the URI-namespace
 * The second parameter indicates whether the URI namespace is completed or not

Domain identifier
Alternatively a setting like the following is possible:

Empty identifier
For a local installation where no domain is available (or necessary), the  function can be used simply with: