$smwgExportResourcesAsIri

From semantic-mediawiki.org


Configuration parameter details:
Name $smwgExportResourcesAsIri
Description Sets whether resources should be exported as IRIs (Internationalized Resource Identifiers)
Default setting
true
(Other) available settings
false

Disables the export of resources as IRIs (Internationalized Resource Identifiers)

Software Semantic MediaWiki
Since version
Until version still available
Configuration Store settings · RDF export
Keyword rdf · sparql · data exchange


$smwgExportResourcesAsIri is a configuration parameter that sets whether resources should be exported as Internationalized Resource Identifiers (IRI)1, i.e. instead of having American Standard Code for Information Interchange (ASCII) encoded URI's the Universal Coded Character Set (UCS) is used for encoding according to RFC 39872. The configuration parameter was introduced in Semantic MediaWiki 2.5.0Released on 14 March 2017 and compatible with MW 1.23.0 - 1.29.x..3

The default setting for this configuration parameter was changed starting with Semantic MediaWiki 3.0.0Released on 11 October 2018 and compatible with MW 1.27.0 - 1.31.x..4 See this version of the documentation available for releases prior to Semantic MediaWiki 3.0.0Released on 11 October 2018 and compatible with MW 1.27.0 - 1.31.x..

Default setting[edit]

$smwgExportResourcesAsIri = true;

This means that resources are exported as IRIs (Internationalized Resource Identifiers).

Changing the default setting[edit]

To modify the setting to this configuration parameter, add one of the following lines to your "LocalSettings.php" file after the enableSemantics() call:

Enable to export resources as IRIs
$smwgExportResourcesAsIri = false;

This means that resources are not exported as IRIs (Internationalized Resource Identifiers).



References

  1. ^  RDF 1.1 Concepts and Abstract Syntax: RDF Graphs - IRIs
  2. ^  RFC 3987: Internationalized Resource Identifiers (IRIs)
  3. ^  Semantic MediaWiki: GitHub pull request gh:smw:2207
  4. ^  Semantic MediaWiki: GitHub pull request gh:smw:2788