Pārlūkot izejas kodu

Set drawio/fuseki configuration

Arkadiusz Ryś 2 gadi atpakaļ
vecāks
revīzija
7d6e41b1ec
2 mainītis faili ar 24 papildinājumiem un 22 dzēšanām
  1. 3 3
      drawio/dtdesign.js
  2. 21 19
      fuseki/config.ttl

+ 3 - 3
drawio/dtdesign.js

@@ -1,11 +1,11 @@
 Draw.loadPlugin(function(ui) {
 
-const WEE = "wee.rys.app";
+const WEE = "https://wee.rys.app";
 
-const BACKEND = "dtb.rys.app";
+const BACKEND = "https://dtb.rys.app";
 const EXPECTED_BACKEND_VERSION = 6; // expected backend version
 
-const SPARQL_SERVER   = "fuseki.rys.app"
+const SPARQL_SERVER   = "https://fuseki.rys.app"
 const SPARQL_ENDPOINT = "/SystemDesignOntology2Layers/"
 
 const dropVocabularyPrefix = str => str.substring(41);

+ 21 - 19
fuseki/config.ttl

@@ -1,26 +1,28 @@
-@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 tdb2:    <http://jena.apache.org/2016/tdb#> .
 @prefix ja:      <http://jena.hpl.hp.com/2005/11/Assembler#> .
+@prefix :        <#> .
 
-[] rdf:type fuseki:Server ;
-  fuseki:services (
-    :service
-  )
-  .
+[] rdf:type fuseki:Server .
 
-:service rdf:type fuseki:Service ;
-  rdfs:label  "Generic dataset" ;
-  fuseki:name "dataset" ;
-  fuseki:endpoint [ fuseki:operation fuseki:query ] ;
-  fuseki:endpoint [ fuseki:operation fuseki:gsp-rw ] ;
-  fuseki:endpoint [
-    fuseki:operation fuseki:shacl ;
-    fuseki:name "shacl"
-  ] ;
-  ##fuseki:dataset :dataset ;
-  fuseki:dataset <#dataset> ;
-  .
+<#service> rdf:type fuseki:Service ;
+    rdfs:label          "SystemDesignOntology2Layers" ;                             # Human readable label for dataset
+    fuseki:name         "SystemDesignOntology2Layers" ;                             # Name of the dataset in the endpoint url
+    fuseki:serviceReadWriteGraphStore "SystemDesignOntology2Layers" ;               # SPARQL Graph store protocol (read and write)
+    fuseki:endpoint     [ fuseki:operation fuseki:query ; fuseki:name "sparql"  ] ; # SPARQL query service
+    fuseki:endpoint     [ fuseki:operation fuseki:shacl ; fuseki:name "shacl" ] ;   # SHACL query service
+    
+    # Joeri: I added these, because the enactment service expects a single endpoint for query and update:
+    fuseki:endpoint     [ fuseki:operation fuseki:update ];
+    fuseki:endpoint     [ fuseki:operation fuseki:query ];
+    
+    fuseki:dataset      <#dataset> .
 
-<#dataset> rdf:type ja:MemoryDataset .
+<#dataset> rdf:type tdb2:DatasetTDB2 ;
+    tdb2:location "run/databases/DB2" ;
+    ja:context [ ja:cxtName "arq:queryTimeout" ; ja:cxtValue "1000" ] ;
+    # Make the default graph be the union of all named graphs.
+    tdb2:unionDefaultGraph true ;