-
Notifications
You must be signed in to change notification settings - Fork 1
/
joseki-config-tdb.ttl
76 lines (60 loc) · 2.47 KB
/
joseki-config-tdb.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
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix module: <http://joseki.org/2003/06/module#> .
@prefix joseki: <http://joseki.org/2005/06/configuration#> .
@prefix ja: <http://jena.hpl.hp.com/2005/11/Assembler#> .
@prefix sdb: <http://jena.hpl.hp.com/2007/sdb#> .
@prefix tdb: <http://jena.hpl.hp.com/2008/tdb#> .
<> rdfs:label "Joseki Configuration File - TDB example" .
# Stripped down to support one service that exposes an
# TDB store as a SPARQL endpoint for query.
[] rdf:type joseki:Server .
## --------------------------------------------------------------
## Services
<#service1>
rdf:type joseki:Service ;
rdfs:label "SPARQL-TDB1" ;
joseki:serviceRef "eac" ; # web.xml must route this name to Joseki
joseki:dataset <#dataset1> ;
joseki:processor joseki:ProcessorSPARQL_FixedDS ;
.
<#service2>
rdf:type joseki:Service ;
rdfs:label "SPARQL-TDB2" ;
joseki:serviceRef "snac-viaf" ; # web.xml must route this name to Joseki
joseki:dataset <#dataset2> ;
joseki:processor joseki:ProcessorSPARQL_FixedDS ;
.
## Datasets
## Initialize TDB.
[] ja:loadClass "com.hp.hpl.jena.tdb.TDB" .
tdb:DatasetTDB rdfs:subClassOf ja:RDFDataset .
tdb:GraphTDB rdfs:subClassOf ja:Model .
## ---- A whole dataset managed by TDB
<#dataset1> rdf:type tdb:DatasetTDB ;
tdb:location "/home/snac/eac-graph-load/eac.tdb/" ;
.
## --------------------------------------------------------------
<#dataset2> rdf:type tdb:DatasetTDB ;
tdb:location "/home/snac/eac-graph-load/snac-viaf.tdb/" ;
.
## --------------------------------------------------------------
## Processors
joseki:ProcessorSPARQL_FixedDS
rdfs:label "SPARQL processor for fixed datasets" ;
rdf:type joseki:Processor ;
module:implementation
[ rdf:type joseki:ServiceImpl ;
module:className <java:org.joseki.processors.SPARQL>
] ;
# This processor does not accept queries with FROM/FROM NAMED
joseki:allowExplicitDataset "false"^^xsd:boolean ;
joseki:allowWebLoading "false"^^xsd:boolean ;
# The database is safe for MRSW (multiple-reader, single-writer).
joseki:lockingPolicy joseki:lockingPolicyMRSW ;
.
# Local Variables:
# tab-width: 4
# indent-tabs-mode: nil
# End: