Created
December 12, 2019 03:04
-
-
Save aleofreddi/55cfead22814f41d99bae749dbf7fb2f to your computer and use it in GitHub Desktop.
Fuseki OWL+TDB configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Licensed under the terms of http://www.apache.org/licenses/LICENSE-2.0 | |
@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#> . | |
# Example of a data service with SPARQL query abnd update on an | |
# inference model. Data is taken from TDB. | |
## --------------------------------------------------------------- | |
## Service with only SPARQL query on an inference model. | |
## Inference model base data is in TDB. | |
<#service> rdf:type fuseki:Service ; | |
fuseki:name "inf" ; # http://host/inf | |
fuseki:serviceQuery "sparql" ; # SPARQL query service | |
fuseki:serviceUpdate "update" ; | |
fuseki:serviceReadGraphStore "get" ; | |
fuseki:serviceReadWriteGraphStore "data" ; | |
fuseki:serviceUpload "upload" ; | |
fuseki:dataset <#dataset> ; | |
. | |
<#dataset> rdf:type ja:RDFDataset ; | |
ja:defaultGraph <#model_inf> ; | |
. | |
<#model_inf> a ja:InfModel ; | |
ja:baseModel <#tdbGraph> ; | |
ja:reasoner [ | |
ja:reasonerURL <http://jena.hpl.hp.com/2003/OWLFBRuleReasoner> | |
] . | |
## Base data in TDB. | |
<#tdbDataset> rdf:type tdb:DatasetTDB ; | |
tdb:location "/fuseki/databases/ds" ; | |
# If the unionDefaultGraph is used, then the "update" service should be removed. | |
tdb:unionDefaultGraph true ; | |
. | |
<#tdbGraph> rdf:type tdb:GraphTDB ; | |
tdb:dataset <#tdbDataset> . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment