$smwgSparqlRepositoryConnector
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) | Description | Help page | Since |
---|---|---|---|
Default | Default access point to the SPARQLStore | Help:SPARQLStore (default) | 1.6.0 |
Virtuoso | Virtuoso access point to the SPARQLStore | Help:SPARQLStore and Virtuoso | 1.7.1 |
4store | 4store access point to the SPARQLStore | Help:SPARQLStore and 4store | 2.0.0 |
Custom | Custom access point to the SPARQLStore | Help:SPARQLStore (custom) | 2.0.0 |
Fuseki | Jena Fuseki access point to the SPARQLStore | Help:SPARQLStore and Fuseki | 2.0.0 |
Sesame | Sesame (RDF4J) access point to the SPARQLStore | Help:SPARQLStore and Sesame | 2.1.0 |
Blazegraph | Blazegraph access point to the SPARQLStore | Help:SPARQLStore and Blazegraph | 2.3.0 |
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:
- 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 $smwgSparqlCustomConnector
Defines 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 $smwgSparqlCustomConnector
Defines the SPARQL custom database connectors, which can change in future releases without further notice.
See also[edit]
- Help page on Using SPARQL and RDF stores
- Help page on configuration parameter
$smwgDefaultStore
Sets the storage backend to be used for the semantic data - Help page on configuration parameter
$smwgSparqlCustomConnector
Defines the SPARQL custom database connectors - Help page on configuration parameter
$smwgSparqlQueryEndpoint
Sets the endpoint for querying the SPARQL database - Help page on configuration parameter
$smwgSparqlDataEndpoint
Sets the endpoint for data on the SPARQL database - Help page on configuration parameter
$smwgSparqlDefaultGraph
Sets the identifier (graph) of the SPARQL database - Help page on configuration parameter
$smwgSparqlRepositoryConnectorForcedHttpVersion
Sets whetherCURLOPT_HTTP_VERSION
should explicitly be forced for the endpoint communication - Help page on configuration parameter
$smwgQuerySources
Sets a list of sources, i.e. query back-ends that can return query results
References
- ^ Semantic MediaWiki: GitHub pull request gh:smw:2752
- ^ Semantic MediaWiki: GitHub pull request gh:smw:2768