$smwgSparqlCustomConnector

From Linux Web Expert

(Redirected from Help:$smwgSparqlDatabase)


Template:Interlanguagelink: en
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


__NOBREADCRUMBLINKS__

$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 an unknown date unknown versions of MediaWiki. Prior to Semantic MediaWiki 3.0.0Released on an unknown date unknown versions of MediaWiki 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 unknown versions of MediaWiki.

Starting with Semantic MediaWiki 2.0.0Released on an unknown date unknown versions of MediaWiki 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 an unknown date unknown versions of MediaWiki) customizations to work without changes.

Changing the default setting

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

References

  1. ^ gh:smw:2752