Help:SPARQLStore and Fuseki

From semantic-mediawiki.org
Jump to: navigation, search
SPARQLStore/RepositoryConnector/Fuseki
Jena Fuseki access point to the SPARQLStore
Image / Video collection
Further Information
Short name: Fuseki
Provided by: Semantic MediaWiki
Added: 2.0.0
Removed: still in use
Keyword : RDF · SPARQLStore · Database connector · Jena · Jena Fuseki · Fuseki
Table of Contents

Jena Fuseki is supported starting with Semantic MediaWiki 2.0 and has been integrated into SMW's continues integration environment. It is recommended to use the following settings (also used during testing):

Configuration

$smwgDefaultStore = 'SMWSparqlStore';
$smwgSparqlDatabaseConnector = 'fuseki';
$smwgSparqlQueryEndpoint = 'http://localhost:3030/db/query';
$smwgSparqlUpdateEndpoint = 'http://localhost:3030/db/update';
$smwgSparqlDataEndpoint = '';
$smwgSparqlDefaultGraph = 'http://example.org/mydefaultgraphname'; # optional name of default graph

Starting Fuseki

With a persistent DB
fuseki-server.bat --update --port=3030 --loc=<database location> /db
With a in-memory DB
fuseki-server.bat --update --port=3030 --mem /db
With a in-memory DB and a union default graph1
fuseki-server.bat --update --port=3030 --memTDB --set tdb:unionDefaultGraph=true /db

See also

References

  1. ^  Union Default Graph to "... specify that the default graph for query is the union of the named graphs. This is done by adding tdb:unionDefaultGraph ..."