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 pathenvironment-model.shacl.ttl
More file actions
306 lines (287 loc) · 11.8 KB
/
Copy pathenvironment-model.shacl.ttl
File metadata and controls
306 lines (287 loc) · 11.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
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
@prefix environment-model: <https://w3id.org/ascs-ev/envited-x/environment-model/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/environment-model/v5/shapes>
a owl:Ontology ;
# The Shapes Graph must import the Domain Ontology
owl:imports <https://w3id.org/ascs-ev/envited-x/environment-model/v5> .
environment-model:EnvironmentModelShape a sh:NodeShape ;
sh:closed false ;
# 1) hasResourceDescription: Aligning with the flexible logic in envited-x:SimulationAssetShape
sh:property [
sh:path environment-model:hasResourceDescription ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:or (
[ sh:node envited-x:ResourceDescriptionShape ]
[ sh:and ( manifest:LinkShape envited-x:ExtendedLinkShape ) ]
) ;
sh:message "Each environment model must have exactly one associated ResourceDescription (either inline conforming to envited-x:ResourceDescriptionShape or a valid manifest:Link)."@en ;
],
# 2) hasDomainSpecification: Maintaining the mandatory domain-specific extension.
[
sh:path environment-model:hasDomainSpecification ;
sh:node environment-model:DomainSpecificationShape ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:message "Each environment model must have one associated DomainSpecification object with format, content, quantity, quality, and georeference."@en ;
],
# 3) hasManifest: Updated to reuse the ManifestLinkReferenceShape for linked manifests.
[
sh:path environment-model: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
[ sh:node envited-x:ManifestLinkReferenceShape ]
) ;
sh:message "Each environment model 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:targetClass environment-model:EnvironmentModel .
environment-model:DomainSpecificationShape a sh:NodeShape ;
sh:closed false ;
sh:property [
sh:maxCount 1 ;
sh:minCount 1 ;
sh:node environment-model:ProjectShape ;
sh:name "project object"@en ;
sh:description "Contains properties to describe the project of the environment-model asset."@en ;
sh:order 0 ;
sh:path environment-model:hasProject
],[
sh:maxCount 1 ;
sh:minCount 1 ;
sh:node environment-model:FormatShape ;
sh:name "format object"@en ;
sh:description "Contains properties to describe the format of the environment-model asset."@en ;
sh:order 1 ;
sh:path environment-model:hasFormat
],
[
sh:maxCount 1 ;
sh:minCount 1 ;
sh:node environment-model:ContentShape ;
sh:name "content object"@en ;
sh:description "Contains properties to describe the content (elements, use cases) of the environment-model asset."@en ;
sh:order 2 ;
sh:path environment-model:hasContent
],
[
sh:maxCount 1 ;
sh:minCount 1 ;
sh:node environment-model:QuantityShape ;
sh:name "quantity object"@en ;
sh:description "Contains properties to describe the quantity (number of geometries, triangles, texture) of the environment-model asset."@en ;
sh:order 3 ;
sh:path environment-model:hasQuantity
],
[
sh:maxCount 1 ;
sh:minCount 1 ;
sh:node environment-model:QualityShape ;
sh:name "quality object"@en ;
sh:description "Contains properties to describe the quality (detail level, features) of the environment-model asset."@en ;
sh:order 4 ;
sh:path environment-model:hasQuality
],
[
sh:maxCount 1 ;
sh:minCount 1 ;
sh:node georeference:GeoreferenceShape ;
sh:name "georeference object"@en ;
sh:message "Each environment model must link to a georeference dataset defining the location/projection of the environment-model asset."@en ;
sh:order 5 ;
sh:path environment-model:hasGeoreference
] ;
sh:targetClass environment-model:DomainSpecification .
environment-model:FormatShape a sh:NodeShape ;
sh:closed false ;
sh:property [
skos:example "Unreal Datasmith, Autodesk FBX, OpenSceneGraph, glTF" ;
sh:datatype xsd:string ;
sh:description "Defines the data type of the environment-model asset."@en ;
sh:in ("Autodesk FBX" "glTF" "OpenSceneGraph" "Unreal Datasmith") ;
sh:maxCount 1 ;
sh:message "Validation of type failed!"@en ;
sh:name "format type"@en ;
sh:order 0 ;
sh:path environment-model:formatType
],
[
skos:example "SDK v4.25" ;
sh:datatype xsd:string ;
sh:description "Defines the version of the environment-model asset's data type."@en ;
sh:maxCount 1 ;
sh:message "Validation of version failed!"@en ;
sh:name "version"@en ;
sh:order 1 ;
sh:path environment-model:version
] ;
sh:targetClass environment-model:Format .
environment-model:ContentShape a sh:NodeShape ;
sh:closed false ;
sh:property [
skos:example "profile roads, extrude buildings, forests, trees, river, powerlines"@en ;
sh:maxCount 1 ;
sh:datatype xsd:string ;
sh:description "Provides a description of the visual elements contained in the environment-model asset."@en ;
sh:message "Validation of elements failed!"@en ;
sh:name "elements"@en ;
sh:order 0 ;
sh:path environment-model:elements
],
[
skos:example "driving, offroad, flight"@en ;
sh:maxCount 1 ;
sh:datatype xsd:string ;
sh:description "Defines the potential use case of the environment-model asset."@en ;
sh:message "Validation of useCase failed!"@en ;
sh:name "use case"@en ;
sh:order 1 ;
sh:path environment-model:useCase
] ;
sh:targetClass environment-model:Content .
environment-model:ProjectShape a sh:NodeShape ;
sh:closed false ;
sh:property [
skos:example "Unreal" ;
sh:datatype xsd:string ;
sh:description "Defines the name of the visualisation tool for which the environment-model was created."@en ;
sh:maxCount 1 ;
sh:message "Validation of visualisationToolName failed!"@en ;
sh:name "visualisation tool name"@en ;
sh:order 0 ;
sh:path environment-model:visualisationToolName
],
[
skos:example "Epic Games" ;
sh:datatype xsd:string ;
sh:description "Defines the vendor name of the visualisation tool."@en ;
sh:maxCount 1 ;
sh:message "Validation of visualisationToolVendor failed!"@en ;
sh:name "visualisation tool vendor"@en ;
sh:order 1 ;
sh:path environment-model:visualisationToolVendor
],
[
skos:example "4.27" ;
sh:datatype xsd:string ;
sh:description "Defines the version of the visualisation tool."@en ;
sh:maxCount 1 ;
sh:message "Validation of visualisationToolVersion failed!"@en ;
sh:name "visualisation tool version"@en ;
sh:order 2 ;
sh:path environment-model:visualisationToolVersion
],
[
skos:example "Trian3DBuilder" ;
sh:datatype xsd:string ;
sh:description "Defines the name of the creation tool used to create the environment-model."@en ;
sh:maxCount 1 ;
sh:message "Validation of creationToolName failed!"@en ;
sh:name "creation tool name"@en ;
sh:order 3 ;
sh:path environment-model:creationToolName
],
[
skos:example "TrianGraphics GmbH" ;
sh:datatype xsd:string ;
sh:description "Defines the vendor name of the creation tool."@en ;
sh:maxCount 1 ;
sh:message "Validation of creationToolVendor failed!"@en ;
sh:name "creation tool vendor"@en ;
sh:order 4 ;
sh:path environment-model:creationToolVendor
],
[
skos:example "7.7" ;
sh:datatype xsd:string ;
sh:description "Defines the version of the creation tool."@en ;
sh:maxCount 1 ;
sh:message "Validation of creationToolVersion failed!"@en ;
sh:name "creation tool version"@en ;
sh:order 5 ;
sh:path environment-model:creationToolVersion
] ;
sh:targetClass environment-model:Project .
environment-model:QualityShape a sh:NodeShape ;
sh:closed false ;
sh:property [
skos:example "PBR, highly detailed specific 3D buildings."@en ;
sh:datatype xsd:string ;
sh:description "Describes the features that influence the quality of the environment-model."@en ;
sh:maxCount 1 ;
sh:message "Validation of features failed!"@en ;
sh:minCount 0 ;
sh:name "features"@en ;
sh:order 2 ;
sh:path environment-model:features
],
[
skos:example "High"@en ;
sh:datatype xsd:string ;
sh:description "Defines the category of the level of detail. High: the highest level with additional object enrichment; Medium: derived directly from data sources with environmental context; Low: a simple topological representation."@en ;
sh:in ("High" "Medium" "Low") ;
sh:maxCount 1 ;
sh:message "Validation of detailLevel failed!"@en ;
sh:name "detail level"@en ;
sh:order 0 ;
sh:path environment-model:detailLevel
],
[
skos:example "0.1"@en ;
sh:datatype xsd:float ;
sh:description "Specifies the maximum real texture resolution in metres."@en ;
sh:maxCount 1 ;
sh:message "Validation of textureResolution failed!"@en ;
sh:minCount 0 ;
sh:name "texture resolution"@en ;
sh:order 1 ;
sh:path environment-model:textureResolution
] ;
sh:targetClass environment-model:Quality .
environment-model:QuantityShape a sh:NodeShape ;
sh:closed false ;
sh:property [
skos:example "12000" ;
sh:datatype xsd:integer ;
sh:minInclusive 0 ;
sh:description "Defines the total number of geometries (all triangles with a material assignment), counting each instance only once."@en ;
sh:maxCount 1 ;
sh:message "Validation of geometryCount failed!"@en ;
sh:name "geometry count"@en ;
sh:order 2 ;
sh:path environment-model:geometryCount
],
[
skos:example "16000000" ;
sh:datatype xsd:integer ;
sh:minInclusive 0 ;
sh:description "Defines the total number of triangles, counting each instance only once."@en ;
sh:maxCount 1 ;
sh:message "Validation of triangleCount failed!"@en ;
sh:name "triangle count"@en ;
sh:order 1 ;
sh:path environment-model:triangleCount
],
[
skos:example "179" ;
sh:datatype xsd:integer ;
sh:minInclusive 0 ;
sh:description "Specifies the total number of textures used."@en ;
sh:maxCount 1 ;
sh:message "Validation of textureMaterialCount failed!"@en ;
sh:name "texture material count"@en ;
sh:order 0 ;
sh:path environment-model:textureMaterialCount
] ;
sh:targetClass environment-model:Quantity .