-
Notifications
You must be signed in to change notification settings - Fork 15
/
assembler.ttl
55 lines (50 loc) · 2.16 KB
/
assembler.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
@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 text: <http://jena.apache.org/text#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix skosxl: <http://www.w3.org/2008/05/skos-xl#> .
@prefix agent: <http://schema.onki.fi/agent-schema#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix spatial: <http://jena.apache.org/spatial#> .
@prefix schema: <http://schema.org/> .
@prefix : <#> .
<#service> rdf:type fuseki:Service ;
fuseki:name "ds" ; # http://host:port/ds
fuseki:serviceQuery "sparql" ; # SPARQL query service
#fuseki:serviceUpdate "update" ; # SPARQL update service
#fuseki:serviceReadWriteGraphStore "data" ; # SPARQL Graph store protocol
fuseki:serviceReadGraphStore "data" ; # SPARQL Graph store protocol (read only)
#fuseki:endpoint [ fuseki:operation fuseki:shacl ; fuseki:name "shacl" ] ;
fuseki:dataset <#text> ;
# fuseki:dataset <#tdb> ;
.
<#text> rdf:type text:TextDataset ;
text:dataset <#tdb> ;
text:index <#lucene> ;
.
<#tdb> rdf:type tdb:DatasetTDB ;
tdb:location "/fuseki-base/databases/tdb" ;
# Make the default graph be the union of all named graphs.
tdb:unionDefaultGraph true ;
.
<#lucene> a text:TextIndexLucene ;
text:directory <file:/fuseki-base/databases/lucene> ;
text:storeValues true ;
text:entityMap <#entity-map> ;
.
<#entity-map> a text:EntityMap ;
text:entityField "uri" ;
text:graphField "graph" ; ## enable graph-specific indexing
text:defaultField "text" ; ## Must be defined in the text:map
text:uidField "uid" ;
text:langField "lang" ;
text:map (
[ text:field "text" ; text:predicate skos:prefLabel ]
[ text:field "text" ; text:predicate skos:altLabel ]
[ text:field "text" ; text:predicate skos:hiddenLabel ]
[ text:field "text" ; text:predicate rdfs:label ]
)
.