-
Notifications
You must be signed in to change notification settings - Fork 1
/
fuseki_example.ttl
45 lines (35 loc) · 1.7 KB
/
fuseki_example.ttl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
@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 dice: <https://dice-research.org/fuseki/> .
@prefix tdb: <http://jena.hpl.hp.com/2008/tdb#> .
@prefix ja: <http://jena.hpl.hp.com/2005/11/Assembler#> .
[] rdf:type fuseki:Server ;
ja:loadClass "org.dice_group.k2.fuseki.KD2GraphAssembler" ;
ja:loadClass "org.dice_group.k2.fuseki.MutlipleKD2GraphAssembler" ;
fuseki:services (
<#service1>
) .
dice:KD2Graph rdfs:subClassOf ja:Graph .
dice:MutlipleKD2Graph rdfs:subClassOf ja:Graph .
## ---------------------------------------------------------------
## Currently only Read only is possible, writing in memory is theoretically possible, but persistence is not
<#service1> rdf:type fuseki:Service ;
rdfs:label "K2" ;
fuseki:name "k2" ;
fuseki:serviceQuery "" ;
fuseki:serviceQuery "sparql" ;
fuseki:serviceQuery "query" ;
fuseki:serviceReadGraphStore "get" ;
fuseki:serviceReadQuads "" ;
fuseki:dataset <#dataset> .
<#dataset> rdf:type ja:RDFDataset ;
rdfs:label "Dataset" ;
ja:defaultGraph <#graph1> .
## You can add several graphs
<#graph1> rdfs:label "KD2 compressed file containing the dataset" ;
rdf:type dice:KD2Graph ;
dice:fileName "file.k2" .
#rdf:type dice:KD2Graph ; #If you want several compressed files to be loaded in one graph
#dice:folder "./k2_files/" . #If you want several compressed files to be loaded in one graph