-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.ttl
130 lines (112 loc) · 4.82 KB
/
config.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
@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#> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
<> rdfs:comment "Example Fuseki Configuration" ;
dc:creator "blankdots" ;
dc:title "Graph Store" ;
dc:description "Example Fuseki Graph config." ;
dc:date "2017-02-23" ;
dc:format "RDF" ;
.
[] rdf:type fuseki:Server ;
fuseki:services (
<#service_test>
<#service_update>
<#service_query>
) .
# TDB loader configuration
[] ja:loadClass "org.apache.jena.tdb.TDB" .
tdb:DatasetTDB rdfs:subClassOf ja:RDFDataset .
tdb:GraphTDB rdfs:subClassOf ja:Model .
# In-memory test service
<#service_test> rdf:type fuseki:Service ;
rdfs:label "TDB(test) Service" ;
fuseki:name "test" ; # http://host:port/test
fuseki:serviceQuery "sparql" ; # SPARQL query service
fuseki:serviceQuery "query" ; # SPARQL query service (alt name)
fuseki:serviceUpdate "update" ; # SPARQL update service
fuseki:serviceUpload "upload" ; # Non-SPARQL upload service
fuseki:serviceReadWriteGraphStore "data" ; # SPARQL Graph store protocol (read and write)
# A separate read-only graph store endpoint:
fuseki:serviceReadGraphStore "get" ; # SPARQL Graph store protocol (read only)
fuseki:dataset <#dataset> ;
.
<#tdb_test_dataset> rdf:type tdb:DatasetTDB ;
tdb:location "--mem--" ;
## Query timeout on this dataset (milliseconds)
ja:context [ ja:cxtName "arq:queryTimeout" ; ja:cxtValue "1000" ] ;
## Default graph for query is the (read-only) union of all named graphs.
tdb:unionDefaultGraph true ;
.
# Update service endpoint
<#service_update> rdf:type fuseki:Service ;
rdfs:label "TDB Update Service" ;
fuseki:name "ds" ; # http://host:port/ds
fuseki:serviceUpdate "update" ; # SPARQL update service
fuseki:serviceQuery "sparql" ; # SPARQL query service
fuseki:serviceQuery "query" ; # SPARQL query service (alt name)
fuseki:serviceUpload "upload" ; # Non-SPARQL upload service
fuseki:serviceReadWriteGraphStore "data" ; # SPARQL Graph store protocol (read and write)
# A separate read-only graph store endpoint:
fuseki:serviceReadGraphStore "get" ; # SPARQL Graph store protocol (read only)
fuseki:endpoint [ fuseki:operation fuseki:shacl ; fuseki:name "shacl" ] ;
fuseki:dataset <#dataset> ;
.
<#dataset> rdf:type ja:RDFDataset ;
ja:defaultGraph <#default> ;
ja:namedGraph
[ ja:graphName <http://test.name.graph.com/onto> ;
ja:graph <#test-ontodb> ] ;
ja:namedGraph
[ ja:graphName <http://test.name.graph.com/test> ;
ja:graph <#test> ] ;
.
<#default> rdf:type tdb:GraphTDB ;
tdb:dataset <#tdb_prod_dataset> ;
.
<#test-ontodb> rdf:type ja:OntModel ;
ja:initialContent <#test-onto> ;
.
<#test> rdf:type tdb:GraphTDB ;
tdb:dataset <#tdb_prod_dataset> ;
tdb:graphName <http://test.name.graph.com/test> ;
.
<#tdb_prod_dataset> rdf:type tdb:DatasetTDB ;
tdb:location "/data/fuseki/fuseki_DB" ;
## Query timeout on this dataset (milliseconds)
ja:context [ ja:cxtName "arq:queryTimeout" ; ja:cxtValue "3000" ] ;
## Default graph for query is the (read-only) union of all named graphs.
tdb:unionDefaultGraph true ;
.
# Data
<#test-onto> ja:externalContent <file:data/test-onto.ttl> .
# Query service endpoint
<#service_query> rdf:type fuseki:Service ;
rdfs:label "TDB Query Service" ;
fuseki:name "inf" ; # http://host:port/inf
fuseki:serviceQuery "sparql" ; # SPARQL query service
fuseki:serviceQuery "query" ; # SPARQL query service (alt name)
# A separate read-only graph store endpoint:
fuseki:serviceReadGraphStore "get" ; # SPARQL Graph store protocol (read only)
fuseki:dataset <#inf_dataset> ;
.
<#inf_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 "/data/fuseki/fuseki_DB2" ;
# If the unionDefaultGraph is used, then the "update" service should be removed.
# tdb:unionDefaultGraph true ;
.
<#tdbGraph> rdf:type tdb:GraphTDB ;
tdb:dataset <#tdbDataset> .