Help:Configuration parameter "$smwgSparqlCustomConnector"

From semantic-mediawiki.org
Jump to: navigation, search
edit with form (experimental)


Title $smwgSparqlCustomConnector
Description Defines the SPARQL custom database connectors
Default setting
custom
Software Semantic MediaWiki
First version supported
Last version supported 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 an unknown date and compatible with MW 1.27.0 - 1.30.x. it was called $smwgSparqlDatabase.1 See this version of the documentation available for releases prior to Semantic MediaWiki 3.0.0Released on an unknown date and compatible with MW 1.27.0 - 1.30.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

$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

To modify this configuration setting, 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.

NoteNote: 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

References

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