-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathgeoreference_shacl.ttl
195 lines (190 loc) · 8.13 KB
/
georeference_shacl.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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
@prefix georeference: <https://github.com/GAIA-X4PLC-AAD/ontology-management-base/tree/main/georeference/> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
georeference:GeoreferenceShape a sh:NodeShape ;
sh:closed false ;
sh:ignoredProperties ( rdf:type ) ;
sh:property [ sh:maxCount 1 ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:node georeference:ProjectLocationShape ;
sh:name "project location object" ;
sh:description "projectLocation object with property for locations and description" ;
sh:order 0 ;
sh:path georeference:projectLocation ],
[ sh:maxCount 1 ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:node georeference:GeodeticReferenceSystemShape ;
sh:name "geodetic reference system object" ;
sh:description "geodeticReferenceSystem object with properties for projection informations" ;
sh:order 1 ;
sh:path georeference:geodeticReferenceSystem ] ;
sh:targetClass georeference:Georeference .
georeference:GeodeticReferenceSystemShape a sh:NodeShape ;
sh:closed false ;
sh:ignoredProperties ( rdf:type ) ;
sh:or ( [ sh:minCount 1 ; sh:path georeference:codeEPSG ]
[ sh:minCount 1 ; sh:path georeference:coordinateSystemName ] ) ;
sh:property [ skos:example "Lat: 1.234; Lon 45.23" ;
sh:description "World coordinates of map origin"@en ;
sh:message "Validation of origin failed!"@en ;
sh:name "origin"@en ;
sh:node georeference:LatLonCoordinateShape ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:order 0 ;
sh:path georeference:origin ],
[ skos:example "Lat: 1.234; Lon 45.23" ;
sh:description "World coordinates of view point"@en ;
sh:message "Validation of view point failed!"@en ;
sh:name "view point"@en ;
sh:node georeference:LatLonCoordinateShape ;
sh:maxCount 1 ;
sh:order 1 ;
sh:path georeference:viewPoint ],
[ skos:example "32632" ;
sh:datatype xsd:int ;
sh:description "EPSG code of the map"@en ;
sh:message "Validation of codeEPSG failed!"@en ;
sh:name "EPSG code"@en ;
sh:maxCount 1 ;
sh:order 2 ;
sh:path georeference:codeEPSG ],
[ skos:example "UTM, None" ;
sh:datatype xsd:string ;
sh:description "coordinate system name of the map"@en ;
sh:message "Validation of coordinateSystemName failed!"@en ;
sh:name "coordinate system name"@en ;
sh:maxCount 1 ;
sh:order 3 ;
sh:path georeference:coordinateSystemName ],
[ skos:example "Ellipsodial height" ;
sh:datatype xsd:string ;
sh:description "Ellipsodial height or orthometric height"@en ;
sh:in ("Ellipsodial height" "Orthometric height" "local height") ;
sh:maxCount 1 ;
sh:message "Validation of heightSystem failed!"@en ;
sh:name "height system"@en ;
sh:order 4 ;
sh:path georeference:heightSystem ] ;
sh:targetClass georeference:GeodeticReferenceSystem .
georeference:BoundingBoxShape a sh:NodeShape ;
sh:closed false ;
sh:ignoredProperties ( rdf:type ) ;
sh:property [ skos:example "1.0" ;
sh:datatype xsd:float ;
sh:description "minimum bounding value in x axis"@en ;
sh:message "Validation of xMin failed!"@en ;
sh:name "xMin"@en ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:order 0 ;
sh:path georeference:xMin ],
[ skos:example "2.0" ;
sh:datatype xsd:float ;
sh:description "minimum bounding value in y axis"@en ;
sh:message "Validation of yMin failed!"@en ;
sh:name "yMin"@en ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:order 1 ;
sh:path georeference:yMin ],
[ skos:example "11.0" ;
sh:datatype xsd:float ;
sh:description "maximum bounding value in x axis"@en ;
sh:message "Validation of xMax failed!"@en ;
sh:name "xMax"@en ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:order 2 ;
sh:path georeference:xMax ],
[ skos:example "12.0" ;
sh:datatype xsd:float ;
sh:description "maximum bounding value in y axis"@en ;
sh:message "Validation of yMax failed!"@en ;
sh:name "yMax"@en ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:order 3 ;
sh:path georeference:yMax ];
sh:targetClass georeference:BoundingBox .
georeference:LatLonCoordinateShape a sh:NodeShape ;
sh:closed false ;
sh:ignoredProperties ( rdf:type ) ;
sh:property [ skos:example "52.540721" ;
sh:datatype xsd:float ;
sh:description "latitude value - y axis"@en ;
sh:message "Validation of lat failed!"@en ;
sh:name "lat"@en ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:order 0 ;
sh:path georeference:lat ],
[ skos:example "13.412511" ;
sh:datatype xsd:float ;
sh:description "longitude value - x axis"@en ;
sh:message "Validation of lon failed!"@en ;
sh:name "lon"@en ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:order 1 ;
sh:path georeference:lon ] ;
sh:targetClass georeference:LatLonCoordinate .
georeference:ProjectLocationShape a sh:NodeShape ;
sh:closed false ;
sh:ignoredProperties ( rdf:type ) ;
sh:property [ skos:example "DE-BY" ;
sh:datatype xsd:string ;
sh:description "Code of federal state or province as ISO 3166-2"@en ;
sh:message "Validation of state failed!"@en ;
sh:maxCount 1 ;
sh:name "state"@en ;
sh:order 1 ;
sh:path georeference:state;
sh:pattern "^[a-zA-Z]{2}-(?:[a-zA-Z]{1,3}|[0-9]{1,3})$" ],
[ skos:example "Munich" ;
sh:datatype xsd:string ;
sh:description "Main city of project area"@en ;
sh:message "Validation of city failed!"@en ;
sh:maxCount 1 ;
sh:name "city"@en ;
sh:order 3 ;
sh:path georeference:city ],
[ skos:example "Upper Bavaria" ;
sh:datatype xsd:string ;
sh:description "Region of project area"@en ;
sh:message "Validation of region failed!"@en ;
sh:maxCount 1 ;
sh:name "region"@en ;
sh:order 2 ;
sh:path georeference:region ],
[ skos:example "DE" ;
sh:datatype xsd:string ;
sh:description "Country code as ISO 3166-1, alpha-2"@en ;
sh:maxCount 1 ;
sh:message "Validation of country failed!"@en ;
sh:name "country"@en ;
sh:order 0 ;
sh:path georeference:country ;
sh:pattern "^[a-zA-Z]{2}$" ],
[ skos:example "Lat: 1.234- 1.345; Lon 45.23-45.34" ;
sh:description "Bounding box with lat/lon values in WGS84"@en ;
sh:message "Validation of boundingBox failed!"@en ;
sh:name "bounding box"@en ;
sh:node georeference:BoundingBoxShape ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:order 5 ;
sh:path georeference:boundingBox ],
[ skos:example "Highway A8, Greater Area Ingolstadt" ;
sh:datatype xsd:string ;
sh:description "Description of the mapped area as relation for a certain road, or alternatively a region"@en ;
sh:message "Validation of relationOrArea failed!"@en ;
sh:maxCount 1 ;
sh:name "relation or area"@en ;
sh:order 4 ;
sh:path georeference:relationOrArea ] ;
sh:targetClass georeference:ProjectLocation .