Discuss Function "enableSemantics
"
- [View source↑]
- [History↑]
Contents
Thread title | Replies | Last modified |
---|---|---|
Best approach for this setting | 2 | 18:32, 8 June 2017 |
Up till now I had
enableSemantics( sandbox.semantic-mediawiki.org );
in the "LocalSettings.php" file for the sandbox wiki which is the setting we recommend upon installation. This however led to
<swivt:page rdf:resource="http://sandbox.semantic-mediawiki.org/wiki/Karlsruhe"/>
when exporting as RDF. Note the http here. To get this to show https I had to add the following:
enableSemantics( https://sandbox.semantic-mediawiki.org/wiki/, true );
So I believe that we should adapt the documention for wikis running https which is the new defacto standard or some enhancement should be done so the wiki e.g. picks up the correct protocol automatically.
Perhaps another approach is to keep
enableSemantics( sandbox.semantic-mediawiki.org );
but to also add the following:
$smwgNamespace = 'https://sandbox.semantic-mediawiki.org/wiki/';
I am not sure what the recommended approach will be. I would still prefer keeping the $smwgNamespace
setting out of it since I think it has a different scope and rather have something that dectects the protocol for use in enableSemantics
So back to
enableSemantics( sandbox.semantic-mediawiki.org );
according to this comment since enableSemantics is a reference key which should remain unchanged at any time after the first setup.