Last active
October 1, 2024 09:07
-
-
Save afs/12bf63e8b9f6e89c25b65b6b874d2477 to your computer and use it in GitHub Desktop.
Fuseki configuration : RDFS + union default graph variants
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
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 ja: <http://jena.hpl.hp.com/2005/11/Assembler#> | |
PREFIX tdb2: <http://jena.apache.org/2016/tdb#> | |
## RDFS+TDB2 Dataset | |
[] rdf:type fuseki:Server ; | |
fuseki:services ( | |
:service1 | |
:service2 | |
:service3 | |
:service4 | |
) . | |
#### service 1 : rule-base inference, immutable | |
:service1 rdf:type fuseki:Service ; | |
fuseki:name "inf" ; | |
fuseki:endpoint [ fuseki:operation fuseki:query ; ] ; | |
fuseki:endpoint [ fuseki:operation fuseki:gsp-rw ; ] ; | |
fuseki:dataset :datasetInfGraph ; | |
. | |
:datasetInfGraph a ja:RDFDataset ; | |
ja:defaultGraph :infModel ; | |
. | |
:infModel a ja:InfModel ; | |
ja:baseModel :unionGraph ; | |
ja:reasoner [ | |
ja:reasonerURL <http://jena.hpl.hp.com/2003/OWLFBRuleReasoner> ; | |
#ja:schema <file:///> | |
] ; | |
. | |
#### service 2 : RDFS dataset, updatable; schema fixed | |
:service2 rdf:type fuseki:Service ; | |
fuseki:name "rdfs" ; | |
fuseki:endpoint [ fuseki:operation fuseki:query ; ] ; | |
fuseki:endpoint [ fuseki:operation fuseki:gsp-rw ; ] ; | |
fuseki:dataset :rdfsDatasetSvc2 ; | |
. | |
:rdfsDatasetSvc2 rdf:type ja:DatasetRDFS ; | |
ja:rdfsSchema <file:schema.ttl>; | |
ja:dataset :base-dataset | |
. | |
#### service 3 : RDFS, over <urn:x-arq:UnionGraph> | |
:service3 rdf:type fuseki:Service ; | |
fuseki:name "rdfs-union" ; | |
fuseki:endpoint [ fuseki:operation fuseki:query ; ] ; | |
fuseki:endpoint [ fuseki:operation fuseki:gsp-rw ; ] ; | |
fuseki:dataset :rdfsDatasetSvc3 ; | |
. | |
:rdfsDatasetSvc3 rdf:type ja:DatasetRDFS ; | |
ja:rdfsSchema <file:schema.ttl>; | |
ja:dataset :datasetUnionGraph | |
. | |
:datasetUnionGraph a ja:RDFDataset ; | |
ja:defaultGraph :unionGraph ; | |
. | |
#### service 4 : direct access to the database | |
:service4 rdf:type fuseki:Service ; | |
fuseki:name "base" ; | |
fuseki:endpoint [ fuseki:operation fuseki:query ; ] ; | |
fuseki:endpoint [ fuseki:operation fuseki:gsp-rw ; ] ; | |
fuseki:dataset :base-dataset ; | |
. | |
#### TDB2 database | |
:unionGraph a tdb2:GraphTDB ; | |
tdb2:dataset :base-dataset ; | |
tdb2:namedGraph <urn:x-arq:UnionGraph> | |
. | |
:base-dataset a tdb2:DatasetTDB ; | |
tdb2:location "DB2" ; | |
tdb2:unionDefaultGraph true ; | |
. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment