Help:SPARQLStore FourstoreHttpDatabaseConnector

From semantic-mediawiki.org
Jump to: navigation, search
Has function class name::SPARQLStore/RepositoryConnector/4store
Has description::4store access point to the SPARQLStore
Further Information
Short name: Has short name::4store
Provided by: Has component::Semantic MediaWiki
Added: Has minimum version::2.0
Removed: Has maximum version::still in use
Keyword : {{#ask: Has keyword::RDF|?has description|limit=0|searchlabel=RDF }} · {{#ask: Has keyword::SPARQLStore|?has description|limit=0|searchlabel=SPARQLStore }} · {{#ask: Has keyword::Database connector|?has description|limit=0|searchlabel=Database connector }} · {{#ask: Has keyword::4store|?has description|limit=0|searchlabel=4store }}
Table of Contents

Contents

For example, a typical default location for the SPARQL query web service ("endpoint") of 4Store on a local machine might be http://localhost:8080/sparql/.

Users of 4store should use the following settings:

Configuration

$smwgDefaultStore = 'SMWSparqlStore';
$smwgSparqlDatabaseConnector = '4store';                           # using 4Store as connector
$smwgSparqlQueryEndpoint = 'http://localhost:8080/sparql/';        # location of query service
$smwgSparqlUpdateEndpoint = 'http://localhost:8080/update/';       # location of update service
$smwgSparqlDataEndpoint = '';                                      # location of SPARQL
$smwgSparqlDefaultGraph = 'http://example.org/mydefaultgraphname'; # optional name of default graph

4store is available since SMW 1.6.0. This ensures that 4Stores soft limit feature is used for restricting the resources needed in query answering. Moreover, the protocol used for the data endpoint (if configured) is specific to 4store. It is recommended to use this feature, since it is more efficient for writing.