Status: | review |
Progress: | 75% |
Version: | 3.0.0+ |
Help:SPARQLStore (custom)
SPARQLStore/RepositoryConnector/Custom | |
---|---|
Custom access point to the SPARQLStore | |
Further Information | |
Short name: | Custom |
Provided by: | Semantic MediaWiki |
Added: | 2.0.0 |
Removed: | still in use |
Keyword : | RDF · SPARQLStore · Database connector |
Table of Contents | |
To configure Semantic MediaWiki (SMW) to use a SPARQL database, you need to know the location of the SPARQL query service and the location of the SPARQL update service. Optionally, you can also make use of a service that supports the SPARQL over HTTP protocol for updates (if used, SMW will prefer this method over SPARQL Update for simple update requests; it can be omitted if problems occur).
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.
Predefined database connectors
Stores that are conforming to the official SPARQL and SPARQL Update standards should mostly work out of the box. In many cases, the setting $smwgSparqlDataEndpoint = '';
should be used, since support for the (optional) data endpoint protocol is not well tested.
To take advantage of special features of your store, a modified implementation can be created easily by subclassing SparqlDBConnectionProvider
together with changing configuration parameter $smwgSparqlCustomConnector
Defines the SPARQL custom database connectors. Other examples include: