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 pathvv-report.shacl.ttl
More file actions
259 lines (241 loc) · 10.8 KB
/
Copy pathvv-report.shacl.ttl
File metadata and controls
259 lines (241 loc) · 10.8 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
@prefix vv-report: <https://w3id.org/gaia-x4plcaad/ontologies/vv-report/v2/> .
@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 owl: <http://www.w3.org/2002/07/owl#> .
@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#> .
# The Shapes Graph URI appends "/shapes" to the Ontology URI
<https://w3id.org/gaia-x4plcaad/ontologies/vv-report/v2/shapes>
a owl:Ontology ;
owl:imports <https://w3id.org/gaia-x4plcaad/ontologies/vv-report/v2> .
vv-report:VvReportShape a sh:NodeShape ;
sh:closed false ;
sh:targetClass vv-report:VvReport ;
# 1) hasCodeArtifact
sh:property [
sh:path vv-report:hasCodeArtifact ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:or (
[ sh:node envited-x:CodeArtifactBaseShape ]
[ sh:and ( manifest:LinkShape envited-x:ExtendedLinkShape ) ]
) ;
sh:message "Each VvReport must have exactly one associated CodeArtifactBase (either inline or a valid manifest:Link)."@en ;
] ;
# 2) hasDomainSpecification
sh:property [
sh:path vv-report:hasDomainSpecification ;
sh:node vv-report:DomainSpecificationShape ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:message "Each VvReport must have one associated DomainSpecification with content."@en ;
] ;
# 3) hasManifest
sh:property [
sh:path vv-report:hasManifest ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:or (
[ sh:and ( manifest:ManifestShape envited-x:ManifestShape ) ]
[ sh:node envited-x:ManifestLinkReferenceShape ]
) ;
sh:message "Each VvReport must have exactly one manifest."@en ;
] .
# DomainSpecification shape
vv-report:DomainSpecificationShape a sh:NodeShape ;
sh:closed false ;
sh:property [
sh:path vv-report:hasContent ;
sh:node vv-report:ContentShape ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:message "Each DomainSpecification must have one Content facet."@en ;
] ;
sh:property [
sh:path vv-report:hasFormat ;
sh:node vv-report:FormatShape ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:message "Each DomainSpecification must have one Format facet."@en ;
] .
# Format shape — V&V report format metadata
vv-report:FormatShape a sh:NodeShape ;
sh:closed false ;
sh:property [
skos:example "JSON-LD" ;
sh:path vv-report:reportFormat ;
sh:datatype xsd:string ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:name "report format"@en ;
sh:order 0 ;
sh:description "The format or standard used for the V&V report."@en ;
] .
# Content shape — V&V report-specific metadata
vv-report:ContentShape a sh:NodeShape ;
sh:closed false ;
sh:property [
skos:example "did:op:bffa3d7670fc3ac3a49a257de0d4b44fdfbc12d9bd7aa329647cf73018f529f4" ;
sh:path vv-report:systemUnderTest ;
sh:name "system under test"@en ;
sh:description "Uniform Resource Identifier (URI) to identify the tested artifact, like a simulation, model by location, name, or both."@en ;
sh:datatype xsd:anyURI ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:order 0 ;
] ;
sh:property [
sh:path vv-report:evaluations ;
sh:node vv-report:EvaluationShape ;
sh:description "A list of all measures carried out on the subject under test."@en ;
sh:minCount 1 ;
sh:order 1 ;
] .
vv-report:EvaluationShape a sh:NodeShape ;
sh:property [ sh:path vv-report:metric ;
sh:node vv-report:MetricShape ;
sh:description "The definition of the quality metric that has been used in this evaluation item."@en ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:order 0 ],
[ sh:path vv-report:inputData ;
sh:node vv-report:InputDataShape ;
sh:description "The definition of a dataset that has been used as input to the quality metric."@en ;
sh:minCount 1 ;
sh:order 1 ],
[ sh:path vv-report:parameters ;
sh:node vv-report:ParameterShape ;
sh:description "A list of parameters that have been used to configure the quality metric and/or quality criterion."@en ;
sh:minCount 0 ],
[ sh:path vv-report:result ;
sh:node vv-report:ResultShape ;
sh:description "The summary of the result of this evaluation item."@en ;
sh:minCount 1 ;
sh:maxCount 1 ],
[ sh:path vv-report:conceptSpecificData ;
sh:description "Additional arbitrary V&V-concept specific data, to further describe the evaluation."@en ;
sh:minCount 0 ] ;
sh:targetClass vv-report:Evaluation .
vv-report:MetricShape a sh:NodeShape ;
sh:property [ skos:example "Model output OSI validation"@en ;
sh:path vv-report:metricTitle ;
sh:name "metric title"@en ;
sh:description "A meaningful name of this metric."@en ;
sh:datatype xsd:string ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:order 0 ],
[ skos:example "Running the model open-loop with a defined OSI SensorView input and checking the compliance of the OSI SensorData output with predefined rules."@en ;
sh:path vv-report:metricDescription ;
sh:name "metric description"@en ;
sh:description "A short description of what is tested within this quality metric."@en ;
sh:datatype xsd:string ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:order 1 ],
[ skos:example "did:op:bffa3d7670fc3ac3a49a257de0d4b44fdfbc12d9bd7aa329647cf73018f529f4" ;
sh:path vv-report:metricReference ;
sh:name "metric reference"@en ;
sh:description "Uniform Resource Identifier (URI) to identify the metric by location, name, or both."@en ;
sh:datatype xsd:anyURI ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:order 2 ] ;
sh:targetClass vv-report:Metric .
vv-report:InputDataShape a sh:NodeShape ;
sh:property [ skos:example "The OSI SensorView message"@en ;
sh:path vv-report:inputDescription ;
sh:name "data description"@en ;
sh:description "A short description for interpreting this input data element"@en ;
sh:datatype xsd:string ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:order 0 ],
[ skos:example "https://github.com/OpenSimulationInterface/osi-validation/raw/refs/heads/master/data/20240221T141700Z_sv_300_2112_10_one_moving_object.osi" ;
sh:path vv-report:inputReference ;
sh:name "data reference"@en ;
sh:description "Uniform Resource Identifier (URI) to identify the utilized input data element by location, name, or both."@en ;
sh:datatype xsd:anyURI ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:order 1 ] ;
sh:targetClass vv-report:InputData .
vv-report:ParameterShape a sh:NodeShape ;
sh:property [ skos:example "max_allowed_deviation"@en ;
sh:path vv-report:parameterName ;
sh:name "parameter name"@en ;
sh:description "The formal name of the parameter, as it appears in the validation system"@en ;
sh:datatype xsd:string ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:order 0 ],
[ skos:example "Maximum allowed position deviation in meters, to pass the test."@en ;
sh:path vv-report:parameterDescription ;
sh:name "parameter description"@en ;
sh:description "A short description of the parameter in order to unambigously interpret it."@en ;
sh:datatype xsd:string ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:order 1 ],
[ skos:example "0.19" ;
sh:path vv-report:parameterValue ;
sh:name "parameter value"@en ;
sh:description "The value of the parameter."@en ;
sh:or (
[ sh:datatype xsd:string ]
[ sh:datatype xsd:boolean ]
[ sh:datatype xsd:integer ]
[ sh:datatype xsd:decimal ]
[ sh:datatype xsd:float ]
[ sh:datatype xsd:double ]
) ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:order 2 ] ;
sh:targetClass vv-report:Parameter .
vv-report:ResultShape a sh:NodeShape ;
sh:property [ skos:example "false" ;
sh:path vv-report:resultTestPassed ;
sh:name "test passed"@en ;
sh:description "Statement if the test has been passed or not."@en ;
sh:datatype xsd:boolean ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:order 0 ],
[ skos:example "The attribute 'timestamp' is missing in the SensorData output."@en ;
sh:path vv-report:resultLog ;
sh:name "log"@en ;
sh:description "Additional information about the test result, e.g., why it has failed."@en ;
sh:datatype xsd:string ;
sh:minCount 0 ],
[ skos:example "true" ;
sh:path vv-report:resultVerifiable ;
sh:name "verifiable"@en ;
sh:description "Information if the result can be verified by a third party."@en ;
sh:datatype xsd:boolean ;
sh:minCount 1 ;
sh:maxCount 1 ],
[ sh:path vv-report:resultVerification ;
sh:node vv-report:ResultVerificationShape ;
sh:description "The necessary attributes to carry out verification of the result by a third party."@en ;
sh:minCount 0 ;
sh:maxCount 1 ] ;
sh:targetClass vv-report:Result .
vv-report:ResultVerificationShape a sh:NodeShape ;
sh:property [ skos:example "Result can be verified via the OVAL ecosystem (based on the OCEAN protocol) as compute job."@en ;
sh:path vv-report:resultVerificationDescription ;
sh:name "verification method description"@en ;
sh:description "A short description of how the result can be verified with the given reference."@en ;
sh:datatype xsd:string ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:order 0 ],
[ skos:example "https://gaiax4plcaad.dlr.de/history/4HGk8794tHFJDG3kiuvdf2fdGD4q6" ;
sh:path vv-report:resultVerificationReference ;
sh:name "verification reference"@en ;
sh:description "Uniform Resource Identifier (URI) to identify the reference used to verify the result of this evalation by location, name, or both."@en ;
sh:datatype xsd:anyURI ;
sh:minCount 1 ;
sh:order 1 ] ;
sh:targetClass vv-report:ResultVerification .