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 NoteNote:  Starting with Semantic MediaWiki 2.0, $smwgSparqlDatabase is only used to specify custom database connectors and is thus now used as a legacy setting.

Default setting

Since SMW 2.0
$GLOBALS['smwgSparqlDatabaseConnector‎'] = 'custom';

It is now used as legacy setting to allow for existing (prior SMW 2.0) customizing to work without changes.

From SMW 1.6.0 to 1.9.2
$smwgSparqlDatabase = 'SMWSparqlDatabase';

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

Custom connector

If setting $smwgSparqlDatabaseConnector‎ 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.

  • $GLOBALS['smwgSparqlDatabaseConnector‎'] = 'custom';
  • $GLOBALS['smwgSparqlDatabase'] = 'MyCustomHttpDatabaseConnector';.