-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocation.ttl
64 lines (49 loc) · 1.34 KB
/
location.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
PREFIX geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX sh: <http://www.w3.org/ns/shacl#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX iotb: <http://purl.org/net/iotic-labs#>
#PREFIX iotics: <http://data.iotics.com/ns/>
PREFIX : <http://example/test/>
## Location SHALC shapes.
## Shape to check geo lat/long.
:shapeGeoLatLong
sh:targetSubjectsOf geo:lat, geo:long;
sh:property :shapeLat ;
sh:property :shapeLong ;
.
:shapeLat
rdf:type sh:propertyShape ;
sh:path geo:lat ;
sh:datatype xsd:float ;
sh:minCount 1;
sh:maxCount 1;
.
:shapeLong
rdf:type sh:propertyShape ;
sh:path geo:long ;
sh:datatype xsd:float ;
sh:minCount 1;
sh:maxCount 1;
.
## Alterntaive usage pattern: if a "place, must have lat and long"
:shapePlace
# sh:targetClass :Place ; ## Uncomment to enable.
sh:property :shapeLat ;
sh:property :shapeLong ;
.
## ---- Data
:Place rdf:type rdfs:Class .
:s1
geo:lat "52.244384"^^xsd:float ;
geo:long "0.716356"^^xsd:float ;
.
:s2
geo:long "0.716356"^^xsd:float ;
.
:s3
geo:lat "52.244384"^^xsd:float ;
.
:s4 rdf:type :Place .