$smwgSparqlCustomConnector

From semantic-mediawiki.org


Configuration parameter details:
Name $smwgSparqlCustomConnector
Description Defines the SPARQL custom database connectors
Default setting
custom
Software Semantic MediaWiki
Since version
Until version still available
Configuration Store settings
Keyword sparqlstore · store · sparql


$smwgSparqlCustomConnector is a configuration parameter that is used to configure the SPARQL custom database connectors for the SPARQL database, assigning class names as identifier. The parameter was introduced in Semantic MediaWiki 1.6.0Released on 30 July 2011 and compatible with MW 1.15.x - 1.18.x.. Prior to Semantic MediaWiki 3.0.0Released on 11 October 2018 and compatible with MW 1.27.0 - 1.31.x. it was called $smwgSparqlDatabase.1 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..

Starting with Semantic MediaWiki 2.0.0Released on 4 August 2014 and compatible with MW 1.19.0 - 1.24.x. this configuration parameter is only used to specify custom database connectors and is now as a legacy setting.

Default setting[edit]

$smwgSparqlCustomConnector = 'SMWSparqlDatabase';

This is now used as legacy setting to allow for existing (prior to Semantic MediaWiki 2.0.0Released on 4 August 2014 and compatible with MW 1.19.0 - 1.24.x.) customizations to work without changes.

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:

Defining a custom connector
$smwgSparqlRepositoryConnector = 'custom';
$smwgSparqlCustomConnector = 'MyCustomHttpRepositoryConnector';

This means that the custom connector is called "MyCustomHttpRepositoryConnector". Ideas on how to create this custom connector can be taken from existing implementations.

If configuration parameter $smwgSparqlRepositoryConnectorIdentifies a database connector that ought to be used together with the semantic data store. is set to another value than "custom" when this configuration parameter will have no effect.

See also[edit]

References

  1. ^  Semantic MediaWiki: GitHub pull request gh:smw:2752