Jump to: navigation, search
Title $smwgSparqlDatabase
Description Defines the SPARQL custom database connectors
Default setting
Software Semantic MediaWiki
Introduced with 1.6.0
Deprecated with 1.9.2
Configuration Store settings
Keyword SPARQLStore · Store · SPARQL
Referenced by N/A

$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';.