Discuss Help:enableSemantics

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

Contents

Thread titleRepliesLast modified
Best approach for this setting218:32, 8 June 2017

Best approach for this setting

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.
[[kgh]] (talk)17:38, 8 June 2017
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
[[kgh]] (talk)17:46, 8 June 2017
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.
[[kgh]] (talk)18:29, 8 June 2017