Browse Source

Create external fuseki server configuration example including shacl and some nice-to-haves

Arkadiusz Ryś 3 years ago
parent
commit
ff17168ebc
1 changed files with 41 additions and 0 deletions
  1. 41 0
      docs/fuseki/config.ttl

+ 41 - 0
docs/fuseki/config.ttl

@@ -0,0 +1,41 @@
+@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#> .
+
+[] rdf:type fuseki:Server ;
+  fuseki:services (
+    :service
+  )
+  .
+
+## TODO Maybe make this a union dataset?
+:service rdf:type fuseki:Service ;
+  rdfs:label  "Generic dataset" ;
+  fuseki:name "dataset" ;
+  fuseki:endpoint [ fuseki:operation fuseki:query ;  fuseki:name "sparql"] ;
+    fuseki:endpoint [ fuseki:operation fuseki:update ; fuseki:name "sparql" ] ;
+  fuseki:endpoint [ fuseki:operation fuseki:gsp-rw ; fuseki:name "gsp" ] ;
+  fuseki:endpoint [ fuseki:operation fuseki:shacl ;  fuseki:name "shacl" ] ;
+  fuseki:endpoint [ fuseki:operation fuseki:patch ;  fuseki:name "patch" ] ;
+  ## TODO This is a custom action service
+  ##fuseki:endpoint [ fuseki:operation fuseki:service ; fuseki:name "service" ] ;
+  fuseki:dataset <#dataset> ;
+  .
+
+<#dataset> rdf:type ja:MemoryDataset 
+  ja:context [ ja:cxtName "arq:queryTimeout" ; ja:cxtValue "10000,60000" ] ;
+  ## ja:data "individuals.ttl";
+  ## ja:defaultGraph :model_inf ;
+  .
+
+##:model_inf a ja:InfModel ;
+##  ja:baseModel :baseModel ;
+##  ja:reasoner [
+##    ja:reasonerURL <http://jena.hpl.hp.com/2003/OWLFBRuleReasoner>
+##    ##ja:reasonerURL <http://jena.hpl.hp.com/2003/RDFSExptRuleReasoner>
+##  ] .
+
+##:baseModel a ja:MemoryModel ;
+##  ja:content [ja:externalContent <file:data/classes.ttl> ] ;