$smwgSparqlRepositoryConnector

From semantic-mediawiki.org


Configuration parameter details:
Name $smwgSparqlRepositoryConnector
Description Identifies a database connector that ought to be used together with the semantic data store.
Default setting
default
Software Semantic MediaWiki
Since version
Until version still available
Configuration Store settings
Keyword sparqlstore · store · sparql


$smwgSparqlRepositoryConnector is a configuration parameter that is used to identifies a database connector that ought to be used together with the semantic data store when using a SPARQL database. The configuration parameter was introduced in Semantic MediaWiki 2.0.0Released on 4 August 2014 and compatible with MW 1.19.0 - 1.24.x.. Prior to Semantic MediaWiki 3.0.0Released on 11 October 2018 and compatible with MW 1.27.0 - 1.31.x. it was called $smwgSparqlDatabaseConnector.1 Moreover the default setting was changed to "default" in Semantic MediaWiki 3.0.0Released on 11 October 2018 and compatible with MW 1.27.0 - 1.31.x..2 See this version of the documentation available for releases prior to Semantic MediaWiki 3.0.0Released on 11 October 2018 and compatible with MW 1.27.0 - 1.31.x..

Default setting[edit]

$smwgSparqlRepositoryConnector = 'default';

This means that a generic setup for the database backend will be used.

Available settings (connectors)[edit]

Setting (connector)DescriptionHelp pageSince
DefaultDefault access point to the SPARQLStoreHelp:SPARQLStore (default)1.6.0
VirtuosoVirtuoso access point to the SPARQLStoreHelp:SPARQLStore and Virtuoso1.7.1
4store4store access point to the SPARQLStoreHelp:SPARQLStore and 4store2.0.0
CustomCustom access point to the SPARQLStoreHelp:SPARQLStore (custom)2.0.0
FusekiJena Fuseki access point to the SPARQLStoreHelp:SPARQLStore and Fuseki2.0.0
SesameSesame (RDF4J) access point to the SPARQLStoreHelp:SPARQLStore and Sesame2.1.0
BlazegraphBlazegraph access point to the SPARQLStoreHelp:SPARQLStore and Blazegraph2.3.0
NoteNote: The settings are case-insensitive.

Changing the default setting[edit]

To modify the setting to this configuration parameter, add one of the following lines to your "LocalSettings.php" file after the enableSemantics() call:

Important noteImportant Note: If you change the setting for this configuration parameter, please ensure to run maintenance script "setupStore.php"Allows to set up the data backend/store followed by maintenance script "rebuildData.php"Allows to rebuild all the semantic data for a selected data backend/store.


Change to a "Blazegraph" sparql database as data backend
$smwgSparqlRepositoryConnector = 'blazegraph';
Change to a "Custom" sparql database as data backend
$smwgSparqlRepositoryConnector = 'custom';

→ This value used to be set as a legacy setting until Semantic MediaWiki 3.0.0Released on 11 October 2018 and compatible with MW 1.27.0 - 1.31.x. to allow for existing wikis using SPARQL stores setup prior to Semantic MediaWiki 2.0.0Released on 4 August 2014 and compatible with MW 1.19.0 - 1.24.x. to work without changes. In case this setting maintained, configuration parameter $smwgSparqlCustomConnectorDefines the SPARQL custom database connectors must be set to contain the name of a custom class connector.

→ It is strongly recommended to assign the necessary connector to this parameter to one of the predefined settings in order to avoid arbitrary class assignments in configuration parameter $smwgSparqlCustomConnectorDefines the SPARQL custom database connectors, which can change in future releases without further notice.

See also[edit]


References

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