Skip to content

Instantly share code, notes, and snippets.

@yogeshsajanikar
Created September 6, 2017 16:37
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save yogeshsajanikar/bf183ece783cb341d9bcb4799f1f2d95 to your computer and use it in GitHub Desktop.
Fuseki Configuration with inference
@prefix : <#> .
@prefix fuseki: <http://jena.apache.org/fuseki#> .
@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 ja: <http://jena.hpl.hp.com/2005/11/Assembler#> .
[] rdf:type fuseki:Server ;
fuseki:services (
<#fedoraService>
) .
<#fedoraService> rdf:type fuseki:Service ;
# URI of the dataset -- http://host:port/fedora
fuseki:name "fedora" ;
fuseki:serviceQuery "sparql" ;
fuseki:serviceQuery "query" ;
fuseki:serviceUpdate "update" ;
fuseki:serviceUpload "upload" ;
fuseki:serviceReadWriteGraphStore "data" ;
fuseki:serviceReadGraphStore "get" ;
fuseki:dataset <#dataset> .
<#dataset> rdf:type ja:RDFDataset ;
ja:defaultGraph <#model> .
<#model> rdf:type ja:InfModel ;
ja:baseModel <#tdbGraph> ;
ja:content <#skos> , <#dc> , <#dcterms> , <#foaf> , <#wgs84> , <#ldp> , <#fedora> ;
ja:content <#appTriples> ;
ja:reasoner [
ja:reasonerURL <http://jena.hpl.hp.com/2003/OWLFBRuleReasoner>] .
<#tdbGraph> rdf:type tdb:GraphTDB ;
tdb:dataset <#tdbDataset> .
<#tdbDataset> rdf:type tdb:DatasetTDB ;
tdb:location "Fedora" .
# Ontologies
<#skos> ja:externalContent <file:///etc/fuseki/skos.rdf> .
<#dc> ja:externalContent <file:///etc/fuseki/dc.rdf> .
<#dcterms> ja:externalContent <file:///etc/fuseki/dcterms.rdf> .
<#foaf> ja:externalContent <file:///etc/fuseki/foaf.rdf> .
<#wgs84> ja:externalContent <file:///etc/fuseki/wgs84.rdf> .
<#ldp> ja:externalContent <file:///etc/fuseki/ldp.rdf> .
<#fedora> ja:externalContent <file:///etc/fuseki/fedora.rdf> .
# Application-specific assertions
<#appTriples> ja:literalContent "<http://fedora.info/definitions/v4/repository#hasParent> owl:inverseOf <http://www.w3.org/ns/ldp#contains>" .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment