-
Notifications
You must be signed in to change notification settings - Fork 4
/
nomisma.ttl
55 lines (50 loc) · 2.24 KB
/
nomisma.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 : <#> .
@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 spatial: <http://jena.apache.org/spatial#> .
@prefix geosparql: <http://www.opengis.net/ont/geosparql#> .
<#nomisma> rdf:type fuseki:Service ;
rdfs:label "Nomisma TDB/spatial service" ;
fuseki:name "nomisma" ;
fuseki:serviceQuery "query" ;
fuseki:serviceQuery "sparql" ;
fuseki:serviceUpdate "update" ;
fuseki:serviceUpload "upload" ;
fuseki:serviceReadGraphStore "get" ;
fuseki:serviceReadWriteGraphStore "data" ;
#fuseki:dataset :spatial_dataset ;
fuseki:dataset <#nomisma_tdb>
.
<#nomisma_tdb> rdf:type tdb:DatasetTDB ;
tdb:location "/etc/fuseki/databases/nomisma" ;
.
:spatial_dataset rdf:type spatial:SpatialDataset ;
spatial:dataset <#nomisma_tdb> ;
spatial:index <#indexSpatialSolr> ;
.
##<#indexSpatialLucene> a spatial:SpatialIndexLucene ;
## spatial:directory <file:/usr/local/projects/nomisma/solr-home/1.5/data/index> ;
## spatial:definition <#definition> ;
## .
<#indexSpatialSolr> a spatial:SpatialIndexSolr ;
spatial:server <http://localhost:8080/solr/nomisma-fuseki> ;
spatial:definition <#definition> ;
.
<#definition> a spatial:EntityDefinition ;
spatial:entityField "uri" ;
spatial:geoField "geo" ;
# custom geo predicates for 1) Latitude/Longitude Format
spatial:hasSpatialPredicatePairs (
[ spatial:latitude :latitude_1 ; spatial:longitude :longitude_1 ]
[ spatial:latitude :latitude_2 ; spatial:longitude :longitude_2 ]
) ;
# custom geo predicates for 2) Well Known Text (WKT) Literal
#spatial:hasWKTPredicates (:wkt_1 :wkt_2 geosparql:asWKT) ;
# custom SpatialContextFactory for 2) Well Known Text (WKT) Literal
#spatial:spatialContextFactory
# "com.spatial4j.core.context.jts.JtsSpatialContextFactory"
.