This repository was archived by the owner on Feb 12, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathositrace.shacl.ttl
More file actions
384 lines (362 loc) · 16.7 KB
/
Copy pathositrace.shacl.ttl
File metadata and controls
384 lines (362 loc) · 16.7 KB
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
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
@prefix ositrace: <https://w3id.org/ascs-ev/envited-x/ositrace/v5/> .
@prefix envited-x: <https://w3id.org/ascs-ev/envited-x/envited-x/v3/> .
@prefix manifest: <https://w3id.org/ascs-ev/envited-x/manifest/v5/> .
@prefix georeference: <https://w3id.org/ascs-ev/envited-x/georeference/v5/> .
@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#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
# The Shapes Graph URI appends "/shapes" to the Ontology URI
<https://w3id.org/ascs-ev/envited-x/ositrace/v5/shapes>
a owl:Ontology ;
# The Shapes Graph must import the Domain Ontology
owl:imports <https://w3id.org/ascs-ev/envited-x/ositrace/v5> .
### OSITrace SHACL Shape
ositrace:OSITraceShape a sh:NodeShape ;
sh:closed false ;
# 1) hasResourceDescription: Aligning with the flexible logic in envited-x:SimulationAssetShape
sh:property [
sh:path ositrace:hasResourceDescription ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:or (
[ sh:node envited-x:ResourceDescriptionShape ]
[ sh:and ( manifest:LinkShape envited-x:ExtendedLinkShape ) ]
) ;
sh:message "Each OSI trace must have exactly one associated ResourceDescription (either inline conforming to envited-x:ResourceDescriptionShape or a valid manifest:Link)."@en ;
sh:order 2 ;
],
# 2) hasDomainSpecification: Mandatory domain-specific extension for OSI traces.
[
sh:path ositrace:hasDomainSpecification ;
sh:node ositrace:DomainSpecificationShape ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:message "Each OSI trace must have one associated DomainSpecification object with content, format, quality, quantity, and dataSource."@en ;
sh:order 1 ;
],
# 3) hasManifest: Updated to reuse the ManifestLinkReferenceShape for linked manifests.
[
sh:path ositrace:hasManifest ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:or (
# Case 1: Inline manifest node
[ sh:and ( manifest:ManifestShape envited-x:ManifestShape ) ]
# Case 2: Linked manifest reference (improved logic from Point A)
[ sh:node envited-x:ManifestLinkReferenceShape ]
) ;
sh:message "Each OSI trace must have exactly one manifest. If linked, it must be a valid envited-x link specifically of category envited-x:isManifest and include a manifest:iri."@en ;
sh:order 3 ;
] ;
sh:targetClass ositrace:OSITrace .
### DomainSpecification SHACL Shape
ositrace:DomainSpecificationShape a sh:NodeShape ;
sh:closed false ;
sh:property
[ sh:maxCount 1 ;
sh:minCount 1 ;
sh:node ositrace:ContentShape ;
sh:name "content"@en ;
sh:description "Attributes describing the content of the OSI trace."@en ;
sh:order 1 ;
sh:path ositrace:hasContent ],
[ sh:maxCount 1 ;
sh:minCount 1 ;
sh:node ositrace:FormatShape ;
sh:name "format"@en ;
sh:description "File format details of the OSI trace."@en ;
sh:order 2 ;
sh:path ositrace:hasFormat ],
[ sh:maxCount 1 ;
sh:minCount 1 ;
sh:node ositrace:QualityShape ;
sh:name "quality"@en ;
sh:description "Quality metrics of the OSI trace."@en ;
sh:order 3 ;
sh:path ositrace:hasQuality ],
[ sh:maxCount 1 ;
sh:minCount 1 ;
sh:node ositrace:QuantityShape ;
sh:name "quantity"@en ;
sh:description "Quantitative metrics describing the OSI trace."@en ;
sh:order 4 ;
sh:path ositrace:hasQuantity ],
[ sh:maxCount 1 ;
sh:minCount 1 ;
sh:node ositrace:DataSourceShape ;
sh:name "data source"@en ;
sh:description "Data sources used to create the OSI trace."@en ;
sh:order 5 ;
sh:path ositrace:hasDataSource ],
[ sh:maxCount 1 ;
sh:node georeference:GeoreferenceShape ;
sh:name "georeference"@en ;
sh:description "Georeferencing information for the OSI trace."@en ;
sh:order 6 ;
sh:path ositrace:hasGeoreference ] ;
sh:targetClass ositrace:DomainSpecification .
ositrace:ContentShape a sh:NodeShape ;
sh:closed false ;
sh:property [ skos:example "[motorway, rural]" ;
sh:description "Covered/used road types, defined over ODR element t_road_type, see ODR spec section 8.3"@en ;
sh:in ("bicycle" "lowSpeed" "motorway" "pedestrian" "rural" "townArterial" "townCollector" "townExpressway" "townLocal" "townPlayStreet" "townPrivate" "town" "unknown") ;
sh:message "Validation of roadTypes failed!"@en ;
sh:name "road types"@en ;
sh:order 0 ;
sh:path ositrace:roadTypes ],
[ skos:example "shoulder, curb, ..." ;
sh:description "Covered lane types, see ODR spec section 9.5.3."@en ;
sh:in ("biking" "border" "connectingRamp" "curb" "driving" "entry" "exit" "median" "none" "offRamp" "onRamp" "parking" "restricted" "shoulder" "slipLane" "stop" "walking") ;
sh:message "Validation of laneTypes failed!"@en ;
sh:name "lane types"@en ;
sh:order 1 ;
sh:path ositrace:laneTypes ],
[ skos:example "trees, street lamps, road patches..." ;
sh:description "Covered object classes, see ODR spec section 11"@en ;
sh:in ("barrier" "bike" "building" "bus" "car" "crosswalk" "gantry" "motorbike") ;
sh:message "Validation of levelOfDetail failed!"@en ;
sh:name "level of detail"@en ;
sh:order 2 ;
sh:path ositrace:levelOfDetail ],
[ skos:example "right-hand traffic"@en ;
sh:description "Traffic direction, i.e. right-hand or left-hand traffic"@en ;
sh:in ("left-hand" "right-hand") ;
sh:maxCount 1 ;
sh:message "Validation of trafficDirection failed!"@en ;
sh:name "traffic direction"@en ;
sh:order 3 ;
sh:path ositrace:trafficDirection ],
[ skos:example "object list, detection list"@en ;
sh:description "Level of granularity of sensor data"@en ;
sh:in ("object list" "detection list") ;
sh:message "Validation of granularity failed!"@en ;
sh:minCount 1 ;
sh:name "granularity"@en ;
sh:order 4 ;
sh:path ositrace:granularity ],
[ skos:example "119" ;
sh:datatype xsd:string ;
sh:description "Identifier of scenario performed in the trace file"@en ;
sh:message "Validation of scenarioIdentifier failed!"@en ;
sh:name "scenario identifier"@en ;
sh:order 5 ;
sh:path ositrace:scenarioIdentifier ],
[ skos:example "2024-05-11T13:20:03.250320Z" ;
sh:datatype xsd:dateTime ;
sh:pattern ".*(Z|[+-]\\d{2}:\\d{2})$" ;
sh:message "Value must be a valid timestamp with a timezone (ending in 'Z' or '+/-HH:MM')."@en ;
sh:description "Exact start timestamp of the recorded trace"@en ;
sh:maxCount 1 ;
sh:message "Validation of startTime failed!"@en ;
sh:minCount 1 ;
sh:name "start time"@en ;
sh:order 6 ;
sh:path ositrace:startTime ],
[ skos:example "2024-05-11T13:20:05.250120Z" ;
sh:datatype xsd:dateTime ;
sh:pattern ".*(Z|[+-]\\d{2}:\\d{2})$" ;
sh:message "Value must be a valid timestamp with a timezone (ending in 'Z' or '+/-HH:MM')."@en ;
sh:description "Exact stop timestamp of the recorded trace"@en ;
sh:maxCount 1 ;
sh:message "Validation of stopTime failed!"@en ;
sh:minCount 1 ;
sh:name "stop time"@en ;
sh:order 7 ;
sh:path ositrace:stopTime ],
[ sh:description "Host moving object in trace file"@en ;
sh:maxCount 1 ;
sh:minCount 1 ;
sh:name "host moving object"@en ;
sh:node ositrace:MovingObjectShape ;
sh:order 8 ;
sh:path ositrace:hasHostMovingObject ],
[ sh:description "Target moving object(s) in trace file"@en ;
sh:name "target moving object(s)"@en ;
sh:node ositrace:MovingObjectShape ;
sh:order 9 ;
sh:path ositrace:hasTargetMovingObject ],
[ sh:description "Description of events of interest in trace file"@en ;
sh:minCount 0 ;
sh:name "events"@en ;
sh:node ositrace:EventShape ;
sh:order 10 ;
sh:path ositrace:hasEvent ] ;
sh:targetClass ositrace:Content .
ositrace:DataSourceShape a sh:NodeShape ;
sh:closed false ;
sh:property [ skos:example "PMSF DroneTracker; ARS 548 Sensor Output" ;
sh:datatype xsd:string ;
sh:description "Main acquisition device"@en ;
sh:maxCount 1 ;
sh:message "Validation of measurementSystem failed!"@en ;
sh:name "measurement system"@en ;
sh:order 1 ;
sh:path ositrace:measurementSystem ],
[ skos:example "scanner, camera, osm network, aerial images, ..."@en ;
sh:datatype xsd:string ;
sh:description "Basic data for the creation of the trace."@en ;
sh:message "Validation of usedDataSources failed!"@en ;
sh:name "used data sources"@en ;
sh:order 0 ;
sh:path ositrace:usedDataSources ] ;
sh:targetClass ositrace:DataSource .
ositrace:FormatShape a sh:NodeShape ;
sh:closed false ;
sh:property [ skos:example "3.7.0" ;
sh:datatype xsd:string ;
sh:description "Version of data format"@en ;
sh:maxCount 1 ;
sh:message "Validation of version failed!"@en ;
sh:name "version"@en ;
sh:order 1 ;
sh:path ositrace:version ],
[ skos:example "ASAM OSI GroundTruth; ASAM OSI SensorView; ASAM OSI SensorData" ;
sh:description "Format type definition."@en ;
sh:in ("ASAM OSI GroundTruth" "ASAM OSI SensorView" "ASAM OSI SensorData") ;
sh:maxCount 1 ;
sh:message "Validation of type failed!"@en ;
sh:name "type"@en ;
sh:order 0 ;
sh:path ositrace:formatType ] ;
sh:targetClass ositrace:Format .
ositrace:QualityShape a sh:NodeShape ;
sh:closed false ;
sh:property [ skos:example "0.1" ;
sh:datatype xsd:float ;
sh:description "Accuracy of traffic relevant objects, signs and signals."@en ;
sh:maxCount 1 ;
sh:message "Validation of accuracySignals failed!"@en ;
sh:minCount 0 ;
sh:name "accuracy signals"@en ;
sh:order 3 ;
sh:path ositrace:accuracySignals ],
[ skos:example "0.1" ;
sh:datatype xsd:float ;
sh:description "Accuracy of objects in the traffic space, which do not directly affect the traffic."@en ;
sh:maxCount 1 ;
sh:message "Validation of accuracyObjects failed!"@en ;
sh:minCount 0 ;
sh:name "accuracy objects"@en ;
sh:order 4 ;
sh:path ositrace:accuracyObjects ],
[ skos:example "0.1" ;
sh:datatype xsd:float ;
sh:description "Accuracy lane modell height"@en ;
sh:maxCount 1 ;
sh:message "Validation of accuracyLaneModelHeight failed!"@en ;
sh:minCount 0 ;
sh:name "accuracy lane model height"@en ;
sh:order 2 ;
sh:path ositrace:accuracyLaneModelHeight ],
[ skos:example "0.01" ;
sh:datatype xsd:float ;
sh:description "Precision of measured road network (relative accuracy)."@en ;
sh:maxCount 1 ;
sh:message "Validation of precision failed!"@en ;
sh:minCount 0 ;
sh:name "precision"@en ;
sh:order 0 ;
sh:path ositrace:precision ],
[ skos:example "0.1" ;
sh:datatype xsd:float ;
sh:description "Accuracy of lane modell 2d."@en ;
sh:maxCount 1 ;
sh:message "Validation of accuracyLaneModel2d failed!"@en ;
sh:minCount 0 ;
sh:name "accuracy lane model 2d"@en ;
sh:order 1 ;
sh:path ositrace:accuracyLaneModel2d ],
[ skos:example "Calibration performed at origin" ;
sh:datatype xsd:string ;
sh:description "Description of any calibration steps performed prior to measurement."@en ;
sh:maxCount 1 ;
sh:message "Validation of calibration failed!"@en ;
sh:minCount 0 ;
sh:name "calibration"@en ;
sh:order 5 ;
sh:path ositrace:calibration ],
[ skos:example "https://github.com/mygroup/myproject/osi_trace_validation_report.xqar" ;
sh:datatype xsd:anyURI ;
sh:description "Link to OSI trace file validation report, if any exists. The report should be of type 'vv-report:VvReport' according to https://w3id.org/gaia-x4plcaad/ontologies/vv-report/v2."@en ;
sh:maxCount 1 ;
sh:message "Validation of validationReport failed!"@en ;
sh:minCount 0 ;
sh:name "validation report"@en ;
sh:order 6 ;
sh:path ositrace:validationReport ],
[ skos:example "application/xqar" ;
sh:datatype xsd:string ;
sh:description "Type of OSI trace validation report, if any exists. As mime-type."@en ;
sh:maxCount 1 ;
sh:message "Validation of validationReportType failed!"@en ;
sh:minCount 0 ;
sh:name "validation report type"@en ;
sh:order 7 ;
sh:path ositrace:validationReportType ] ;
sh:targetClass ositrace:Quality .
ositrace:QuantityShape a sh:NodeShape ;
sh:closed false ;
sh:property [ skos:example "1000" ;
sh:datatype xsd:integer ;
sh:minInclusive 0 ;
sh:description "Number of frames/messages in the trace file."@en ;
sh:maxCount 1 ;
sh:message "Validation of numberFrames failed!"@en ;
sh:name "number frames"@en ;
sh:order 0 ;
sh:path ositrace:numberFrames ] ;
sh:targetClass ositrace:Quantity .
ositrace:MovingObjectShape a sh:NodeShape ;
sh:closed false ;
sh:property [ skos:example "42" ;
sh:datatype xsd:integer ;
sh:minInclusive 0 ;
sh:description "Moving object identifier in trace file."@en ;
sh:minCount 1 ;
sh:maxcount 1 ;
sh:message "Validation of identifier failed!"@en ;
sh:name "identifier"@en ;
sh:order 1 ;
sh:path ositrace:identifier ],
[ skos:example "PMSF Mercedes CLS Ego Vehicle" ;
sh:datatype xsd:string ;
sh:description "Description of moving object in the trace file."@en ;
sh:maxCount 1 ;
sh:message "Validation of description failed!"@en ;
sh:name "description"@en ;
sh:order 2 ;
sh:path ositrace:description ] ;
sh:targetClass ositrace:MovingObject .
ositrace:EventShape a sh:NodeShape ;
sh:closed false ;
sh:property [ skos:example "2024-05-11T13:20:03.250320Z" ;
sh:datatype xsd:dateTime ;
sh:pattern ".*(Z|[+-]\\d{2}:\\d{2})$" ;
sh:message "Value must be a valid timestamp with a timezone (ending in 'Z' or '+/-HH:MM')."@en ;
sh:description "Exact timestamp of the event in the recorded trace."@en ;
sh:maxCount 1 ;
sh:message "Validation of time failed!"@en ;
sh:minCount 1 ;
sh:name "time"@en ;
sh:order 1 ;
sh:path ositrace:time ],
[ skos:example "42" ;
sh:datatype xsd:string ;
sh:description "Unique tag of the event in trace file."@en ;
sh:minCount 1 ;
sh:maxcount 1 ;
sh:message "Validation of tag failed!"@en ;
sh:name "tag"@en ;
sh:order 2 ;
sh:path ositrace:tag ],
[ skos:example "Beginning of cut-in manoever."@en ;
sh:datatype xsd:string ;
sh:description "Description of event in the trace file."@en ;
sh:maxCount 1 ;
sh:message "Validation of description failed!"@en ;
sh:name "description"@en ;
sh:order 3 ;
sh:path ositrace:description ] ;
sh:targetClass ositrace:Event .