Help:Configuration parameter "$smwgSparqlDatabase"

Jump to: navigation, search
edit with form (experimental)

Title $smwgSparqlDatabase
Description Defines the SPARQL custom database connectors
Default setting
Software Semantic MediaWiki
First version supported 1.6.0
Last version supported 1.9.2
Configuration Store settings
Keyword sparqlstore · store · sparql

$smwgSparqlQFeatures 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.0.

Important noteImportant Note: Starting with Semantic MediaWiki 2.0.0, $smwgSparqlDatabase is only used to specify custom database connectors and is thus now used as a legacy setting.

Default setting

Since Semantic MediaWiki 2.0.0
$smwgSparqlDatabaseConnector = 'custom';

It is now used as legacy setting to allow for existing (prior to Semantic MediaWiki 2.0.0) customizing to work without changes.

From Semantic MediaWiki 1.6.0 to 1.9.2
$smwgSparqlDatabase = 'SMWSparqlDatabase';

It was used to define the default class "SMWSparqlDatabase".

Custom connector

If configuration parameter $smwgSparqlDatabaseConnector‎Identifies a database connector that ought to be used together with the semantic data store. is set to "custom", it is expected that $smwgSparqlDatabase contains a custom class connector.

Ideas on how to create a MyCustomHttpDatabaseConnector can be taken from existing implementations.

$smwgSparqlDatabaseConnector = 'custom';
$smwgSparqlDatabase = 'MyCustomHttpDatabaseConnector';