Help:SPARQLStore/RepositoryConnector/Generic

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). The locations of these web services then must be given in LocalSettings.php, as in the following example:

Configuration
The first line tells SMW to use the SPARQL store implementation to store data (instead of the SMWSQLStore2 that is the default). The remaining lines provide the relevant service locations, where the last two lines can be omitted. In many cases, should rather not be set since most stores have their own protocol for posting.

By default, SMW will use a generic SPARQL connector that is based on recent SPARQL documents. Some RDF databases might not be fully compatible with this or might need special tweaks to make use of advanced, non-standard features. Special settings therefore should be used with some stores.

Custom 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 ]] 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  together with changing. Other examples include: