Skip to content

Instantly share code, notes, and snippets.

@TimmyStorms
Last active August 29, 2015 14:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TimmyStorms/bc2014756dcec8b6b814 to your computer and use it in GitHub Desktop.
Save TimmyStorms/bc2014756dcec8b6b814 to your computer and use it in GitHub Desktop.
Fuseki configuration for Stardog & TDB
@prefix : <#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix tdb: <http://jena.hpl.hp.com/2008/tdb#> .
@prefix fuseki: <http://jena.apache.org/fuseki#> .
@prefix text: <http://jena.apache.org/text#> .
@prefix ja: <http://jena.hpl.hp.com/2005/11/Assembler#> .
[] rdf:type fuseki:Server ;
ja:loadClass "package.StardogInitializer" ;
fuseki:services (
<#service1>
) .
# TDB
[] ja:loadClass "com.hp.hpl.jena.tdb.TDB" .
tdb:DatasetTDB rdfs:subClassOf ja:RDFDataset .
tdb:GraphTDB rdfs:subClassOf ja:Model .
<#service1> rdf:type fuseki:Service ;
rdfs:label "TDB Service (R)" ;
fuseki:name "ds" ;
fuseki:serviceQuery "query" ;
fuseki:serviceReadWriteGraphStore "data" ;
fuseki:serviceReadGraphStore "get" ;
fuseki:dataset <#dataset> ;
.
<#dataset> rdf:type tdb:DatasetTDB ;
tdb:location "${tdb.location}" ;
tdb:unionDefaultGraph true ;
.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment