Status: | effective |
Progress: | 100% |
Version: | 3.0.0+ |
$smwgSparqlCustomConnector
(Redirected from Help:$smwgSparqlDatabase)
Configuration parameter details: | |
Name | $smwgSparqlCustomConnector |
Description | Defines the SPARQL custom database connectors |
Default setting | custom |
Software | Semantic MediaWiki |
Since version | |
Until version | still available |
Configuration | Store settings |
Keyword | sparqlstore · store · sparql |
__NOBREADCRUMBLINKS__
$smwgSparqlCustomConnector
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.0Released on an unknown date unknown versions of MediaWiki. Prior to Semantic MediaWiki 3.0.0Released on an unknown date unknown versions of MediaWiki it was called $smwgSparqlDatabase
.1 See this version of the documentation available for releases prior to Semantic MediaWiki 3.0.0Released on an unknown date unknown versions of MediaWiki.
Default setting
$smwgSparqlCustomConnector = 'SMWSparqlDatabase';
This is now used as legacy setting to allow for existing (prior to Semantic MediaWiki 2.0.0Released on an unknown date unknown versions of MediaWiki) customizations to work without changes.
Changing the default setting
To modify the setting to this configuration parameter, add one of the following lines to your "LocalSettings.php" file after the enableSemantics()
call:
- Defining a custom connector
$smwgSparqlRepositoryConnector = 'custom';
$smwgSparqlCustomConnector = 'MyCustomHttpRepositoryConnector';
This means that the custom connector is called "MyCustomHttpRepositoryConnector". Ideas on how to create this custom connector can be taken from existing implementations.
If configuration parameter $smwgSparqlRepositoryConnector
Identifies a database connector that ought to be used together with the semantic data store. is set to another value than "custom
" when this configuration parameter will have no effect.
See also
- 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
$smwgSparqlRepositoryConnector
Identifies a database connector that ought to be used together with the semantic data store. - Help page on configuration parameter
$smwgQuerySources
No description was provided.
References
- ^ gh:smw:2752