/
aixm_5-1-1.xq
543 lines (525 loc) · 23.4 KB
/
aixm_5-1-1.xq
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
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
module namespace aixm_5-1-1="http://www.aisa-project.eu/xquery/aixm_5-1-1";
import module "http://www.aisa-project.eu/xquery/utilities" at "utilities.xq";
declare namespace utilities="http://www.aisa-project.eu/xquery/utilities";
declare namespace gml="http://www.opengis.net/gml/3.2#";
declare namespace rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
declare namespace rdfs="http://www.w3.org/2000/01/rdf-schema#";
declare namespace sh="http://www.w3.org/ns/shacl#";
declare namespace xmi="http://schema.omg.org/spec/XMI/2.1";
declare variable $aixm_5-1-1:namespace:="http://www.aisa-project.eu/vocabulary/aixm_5-1-1#";
declare variable $aixm_5-1-1:xsd:="http://www.w3.org/2001/XMLSchema#";
declare variable $aixm_5-1-1:gml:="http://www.opengis.net/gml/3.2#";
declare variable $aixm_5-1-1:rdf:="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
declare variable $aixm_5-1-1:rdfs:="http://www.w3.org/2000/01/rdf-schema#";
declare function aixm_5-1-1:map(
$modelSubset as element()
) as element() {
<rdf:RDF
xmlns:sh="http://www.w3.org/ns/shacl#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:xsd="http://www.w3.org/2001/XMLSchema#"
xmlns:gml="http://www.opengis.net/gml/3.2#"
xmlns:aixm="http://www.aisa-project.eu/vocabulary/aixm_5-1-1#">
{
(: if necessary basic elements are added :)
if(fn:exists($modelSubset/elements/element/properties[@stereotype="feature"]))
then aixm_5-1-1:getBasicElements()
}
{
(: mapping of classes based on their stereotype :)
for $element in $modelSubset/elements/element
return
if($element/properties[@stereotype="feature"])
then aixm_5-1-1:mapFeature($element, $modelSubset)
else if($element/properties[@stereotype="object"])
then aixm_5-1-1:mapObject($element, $modelSubset)
else if($element/properties[@stereotype="choice"])
then aixm_5-1-1:mapChoice($element, $modelSubset)
else if($element/properties[@stereotype="CodeList"])
then aixm_5-1-1:mapCodeList($element, $modelSubset)
else if($element/properties[@stereotype="DataType"])
then aixm_5-1-1:mapDataType($element, $modelSubset)
else if($element/properties[@stereotype="XSDsimpleType"])
then aixm_5-1-1:mapXSDsimpleType($element, $modelSubset)
else if($element/properties[@stereotype="XSDcomplexType"])
then aixm_5-1-1:mapXSDcomplexType($element, $modelSubset)
else aixm_5-1-1:mapPlain($element, $modelSubset)
}
</rdf:RDF>
};
declare %private function aixm_5-1-1:mapFeature(
$element as element(),
$modelSubset as element()
) as element()+ {
<sh:NodeShape rdf:about="{$aixm_5-1-1:namespace}{$element/@name/string()}">
<rdf:type rdf:resource="{$aixm_5-1-1:rdfs}Class" />
<sh:and rdf:parseType="Collection">
<sh:NodeShape rdf:about="{$aixm_5-1-1:namespace}AIXMFeature" />
</sh:and>
{
(: map super classes into rdfs:subClassOf :)
for $superElement in utilities:getSuperElements($element, $modelSubset, (), false())
return <rdfs:subClassOf rdf:resource="{aixm_5-1-1:getIRI($superElement/@name/string())}" />
}
<sh:property rdf:parseType="Resource">
<sh:path rdf:resource="{$aixm_5-1-1:namespace}timeSlice" />
<sh:class rdf:resource="{$aixm_5-1-1:namespace}{$element/@name/string()}TimeSlice" />
</sh:property>
</sh:NodeShape>,
<sh:NodeShape rdf:about="{$aixm_5-1-1:namespace}{$element/@name/string()}TimeSlice">
<rdf:type rdf:resource="{$aixm_5-1-1:rdfs}Class" />
{
(: map super classes into rdfs:subClassOf :)
for $superElement in utilities:getSuperElements($element, $modelSubset, (), false())
return <rdfs:subClassOf rdf:resource="{aixm_5-1-1:getIRI($superElement/@name/string())}TimeSlice" />
}
<sh:and rdf:parseType="Collection">
<sh:NodeShape rdf:about="{$aixm_5-1-1:namespace}AIXMTimeSlice" />
{
(: map super classes into sh:and :)
for $superElement in utilities:getSuperElements($element, $modelSubset, (), false())
return <sh:NodeShape rdf:about="{aixm_5-1-1:getIRI($superElement/@name/string())}" />
}
</sh:and>
{ aixm_5-1-1:mapAttributes($element, ()) }
{ aixm_5-1-1:mapConnectors($element, $modelSubset) }
{ aixm_5-1-1:mapConnectorsOfAssociationClass($element, $modelSubset) }
</sh:NodeShape>
};
declare %private function aixm_5-1-1:mapObject(
$element as element(),
$modelSubset as element()
) as element() {
<sh:NodeShape rdf:about="{aixm_5-1-1:getIRI($element/@name/string())}">
<rdf:type rdf:resource="{$aixm_5-1-1:rdfs}Class" />
{
(: map super classes into rdfs:subClassOf :)
for $superElement in utilities:getSuperElements($element, $modelSubset, (), false())
return <rdfs:subClassOf rdf:resource="{aixm_5-1-1:getIRI($superElement/@name/string())}" />
}
{
(: map super classes into sh:and :)
let $superElements:=utilities:getSuperElements($element, $modelSubset, (), false())
return
if(fn:exists($superElements))
then
<sh:and rdf:parseType="Collection">
{
for $superElement in $superElements
return <sh:NodeShape rdf:about="{aixm_5-1-1:getIRI($superElement/@name/string())}" />
}
</sh:and>
}
{ aixm_5-1-1:mapAttributes($element, ()) }
{ aixm_5-1-1:mapConnectors($element, $modelSubset) }
{ aixm_5-1-1:mapConnectorsOfAssociationClass($element, $modelSubset) }
</sh:NodeShape>
};
declare %private function aixm_5-1-1:mapChoice(
$element as element(),
$modelSubset as element()
) {
<sh:NodeShape rdf:about="{$aixm_5-1-1:namespace}{$element/@name/string()}">
<sh:xone rdf:parseType="Collection">
{
(: map connections into possible choices :)
for $connector in $modelSubset/connectors/connector
where $connector/properties[@ea_type!="Generalization"]
where (
( $connector/source[@xmi:idref=$element/@xmi:idref]
and $connector/properties[@direction!="Destination -> Source"]
) or
( $connector/target[@xmi:idref=$element/@xmi:idref]
and $connector/properties[@direction="Destination -> Source"]
))
let $targetElement:=
if(fn:exists($connector/extendedProperties/@associationclass))
then $modelSubset/elements/element[@xmi:idref=$connector/extendedProperties/@associationclass]
else
if($connector/properties[@direction!="Destination -> Source"])
then $modelSubset/elements/element[@xmi:idref=$connector/target/@xmi:idref]
else $modelSubset/elements/element[@xmi:idref=$connector/source/@xmi:idref]
return
<rdf:Description>
<sh:class rdf:resource="{aixm_5-1-1:getIRI($targetElement/@name/string())}" />
</rdf:Description>
}
</sh:xone>
</sh:NodeShape>
};
declare %private function aixm_5-1-1:mapCodeList(
$element as element(),
$modelSubset as element()
) as element() {
<sh:NodeShape rdf:about="{$aixm_5-1-1:namespace}{$element/@name/string()}">
<sh:in rdf:parseType="Resource">
{ utilities:getCollection($element/attributes/attribute) }
</sh:in>
{
(: map <<XSDsimpleType>> super class into sh:datatype :)
let $datatype:=utilities:getSuperElements($element, $modelSubset, "XSDsimpleType", false())
return
if(fn:exists($datatype))
then
if(fn:count($datatype)>1)
then fn:error(xs:QName("error"), "more than one datatype: "||$element/@name/string())
else <sh:datatype rdf:resource="{$aixm_5-1-1:xsd}{$datatype/@name/string()}" />
}
</sh:NodeShape>
};
declare %private function aixm_5-1-1:mapDataType(
$element as element(),
$modelSubset as element()
) as element() {
<sh:NodeShape rdf:about="{$aixm_5-1-1:namespace}{$element/@name/string()}">
{
(: map <<DataType>> super classes into sh:and :)
let $superElements:=utilities:getSuperElements($element, $modelSubset, "DataType", false())
return
if(fn:exists($superElements))
then
<sh:and rdf:parseType="Collection">
{
for $superElement in $superElements
return <sh:NodeShape rdf:about="{$aixm_5-1-1:namespace}{$superElement/@name/string()}" />
}
</sh:and>
}
<sh:property rdf:parseType="Resource">
<sh:path rdf:resource="{$aixm_5-1-1:rdf}value" />
<sh:maxCount rdf:datatype="{$aixm_5-1-1:xsd}integer">1</sh:maxCount>
{
(: map <<XSDsimpleType>> super class into sh:datatype of rdf:value property shape :)
let $datatype:=utilities:getSuperElements($element, $modelSubset, "XSDsimpleType", false())
let $datatype:=
if($datatype/@name/string()="token")
then "string"
else $datatype/@name/string()
return
if(fn:exists($datatype))
then
if(fn:count($datatype)>1)
then fn:error(xs:QName("error"), "more than one super <<XSDsimpleType>>: "||$element/@name/string())
else <sh:datatype rdf:resource="{$aixm_5-1-1:xsd}{$datatype}" />
}
{
(: map <<CodeList>> super class into sh:node of rdf:value property shape :)
let $superCodelist:=utilities:getSuperElements($element, $modelSubset, "CodeList", false())
return
if(fn:exists($superCodelist))
then
if(fn:count($superCodelist)>1)
then fn:error(xs:QName("error"), "more than one super <<CodeList>>: "||$element/@name/string())
else <sh:node rdf:resource="{$aixm_5-1-1:namespace}{$superCodelist/@name/string()}" />
}
{
(: map <<XSDfacet>> attributes into constraints of rdf:value property shape :)
for $attribute in $element/attributes/attribute
where $attribute/stereotype[@stereotype="XSDfacet"]
return
if($attribute/@name/string()="minLength")
then <sh:minLength rdf:datatype="{$aixm_5-1-1:xsd}integer">{$attribute/initial/@body/string()}</sh:minLength>
else if($attribute/@name/string()="maxLength")
then <sh:maxLength rdf:datatype="{$aixm_5-1-1:xsd}integer">{$attribute/initial/@body/string()}</sh:maxLength>
else if($attribute/@name/string()="minInclusive")
then <sh:minInclusive rdf:datatype="{$aixm_5-1-1:xsd}integer">{$attribute/initial/@body/string()}</sh:minInclusive>
else if($attribute/@name/string()="maxInclusive")
then <sh:maxInclusive rdf:datatype="{$aixm_5-1-1:xsd}integer">{$attribute/initial/@body/string()}</sh:maxInclusive>
else if($attribute/@name/string()="minExclusive")
then <sh:minExclusive rdf:datatype="{$aixm_5-1-1:xsd}integer">{$attribute/initial/@body/string()}</sh:minExclusive>
else if($attribute/@name/string()="maxExclusive")
then <sh:maxExclusive rdf:datatype="{$aixm_5-1-1:xsd}integer">{$attribute/initial/@body/string()}</sh:maxExclusive>
else if($attribute/@name/string()="pattern")
then <sh:pattern rdf:datatype="{$aixm_5-1-1:xsd}string">^{fn:normalize-space($attribute/initial/@body/string())}$</sh:pattern>
}
</sh:property>
{ aixm_5-1-1:mapAttributes($element, "XSDfacet") }
{
(: if an attribute with type NilReasonEnumeration exists, add sh:xone :)
if($element/attributes/attribute/properties[@type="NilReasonEnumeration"])
then
<sh:xone rdf:parseType="Collection">
<rdf:Description>
{
for $attribute in $element/attributes/attribute
where $attribute/properties[@type!="NilReasonEnumeration"]
return
<sh:property rdf:parseType="Resource">
<sh:path rdf:resource="{$aixm_5-1-1:namespace}{$attribute/@name/string()}" />
</sh:property>
}
<sh:property rdf:parseType="Resource">
<sh:path rdf:resource="{$aixm_5-1-1:rdf}value" />
<sh:minCount rdf:datatype="{$aixm_5-1-1:xsd}integer">1</sh:minCount>
</sh:property>
</rdf:Description>
<rdf:Description>
<sh:property rdf:parseType="Resource">
<sh:path rdf:resource="{$aixm_5-1-1:namespace}nilReason" />
<sh:minCount rdf:datatype="{$aixm_5-1-1:xsd}integer">1</sh:minCount>
</sh:property>
</rdf:Description>
</sh:xone>
}
</sh:NodeShape>
};
declare %private function aixm_5-1-1:mapXSDsimpleType(
$element as element(),
$modelSubset as element()
) {};
declare %private function aixm_5-1-1:mapXSDcomplexType(
$element as element(),
$modelSubset as element()
) {};
declare %private function aixm_5-1-1:mapPlain(
$element as element(),
$modelSubset as element()
) as element() {
aixm_5-1-1:mapObject($element, $modelSubset)
};
declare %private function aixm_5-1-1:getIRI(
$className as xs:string
) as xs:string {
let $name:=
if(fn:starts-with($className, "GM_"))
then fn:replace($className, "GM_", "")
else $className
return
if(fn:starts-with($className, "GM_"))
then $aixm_5-1-1:gml||$name
else $aixm_5-1-1:namespace||$name
};
declare %private function aixm_5-1-1:getRoleName(
$className as xs:string
) as xs:string {
"the"||$className
};
declare %private function aixm_5-1-1:mapAttributes(
$element as element(),
$notStereotype as xs:string?
) as element()* {
(: map attributes into property shapes :)
for $attribute in $element/attributes/attribute
where (
( fn:exists($notStereotype)
and (
( fn:exists($attribute/stereotype/@stereotype)=false() )
or
( fn:exists($attribute/stereotype/@stereotype)
and $attribute/stereotype[@stereotype!=$notStereotype] )
)
) or fn:exists($notStereotype)=false()
)
return
<sh:property rdf:parseType="Resource">
<sh:path rdf:resource="{$aixm_5-1-1:namespace}{$attribute/@name/string()}" />
<sh:node rdf:resource="{aixm_5-1-1:getIRI($attribute/properties/@type/string())}" />
{
let $maxCount:=$attribute/bounds/@upper/string()
return
if($maxCount!="*")
then <sh:maxCount rdf:datatype="{$aixm_5-1-1:xsd}integer">{$maxCount}</sh:maxCount>
}
</sh:property>
};
declare %private function aixm_5-1-1:mapConnectors(
$element as element(),
$modelSubset as element()
) as element()* {
(: map connections into property shapes :)
for $connector in $modelSubset/connectors/connector
where $connector/properties[@ea_type!="Generalization"]
where (
( $connector/source[@xmi:idref=$element/@xmi:idref]
and $connector/properties[@direction!="Destination -> Source"]
) or
( $connector/target[@xmi:idref=$element/@xmi:idref]
and $connector/properties[@direction="Destination -> Source"]
))
(: get the element's target element of the connection :)
let $targetElement:=
if(fn:exists($connector/extendedProperties/@associationclass))
then $modelSubset/elements/element[@xmi:idref=$connector/extendedProperties/@associationclass]
else
if($connector/properties[@direction!="Destination -> Source"])
then $modelSubset/elements/element[@xmi:idref=$connector/target/@xmi:idref]
else $modelSubset/elements/element[@xmi:idref=$connector/source/@xmi:idref]
(: get path name :)
let $pathName:=
if($connector/properties[@direction!="Destination -> Source"])
then
if(fn:exists($connector/target/role/@name))
then $connector/target/role/@name
else aixm_5-1-1:getRoleName($targetElement/@name/string())
else
if(fn:exists($connector/source/role/@name))
then $connector/source/role/@name
else aixm_5-1-1:getRoleName($targetElement/@name/string())
(: get cardinality :)
let $cardinality:=
if($connector/properties[@direction!="Destination -> Source"])
then $connector/target/type/@multiplicity
else $connector/source/type/@multiplicity
return
<sh:property rdf:parseType="Resource">
<sh:path rdf:resource="{$aixm_5-1-1:namespace}{$pathName}" />
{
if($targetElement/properties[@stereotype="choice"])
then <sh:node rdf:resource="{aixm_5-1-1:getIRI($targetElement/@name/string())}" />
else <sh:class rdf:resource="{aixm_5-1-1:getIRI($targetElement/@name/string())}" />
}
{
let $minCount:=fn:substring-before($cardinality, "..")
return if(fn:exists($minCount) and $minCount!="*" and $minCount!="0") then
<sh:minCount rdf:datatype="{$aixm_5-1-1:xsd}integer">{$minCount}</sh:minCount>
}
{
let $maxCount:=fn:substring-after($cardinality, "..")
return if(fn:exists($maxCount) and $maxCount!="*") then
<sh:maxCount rdf:datatype="{$aixm_5-1-1:xsd}integer">{$maxCount}</sh:maxCount>
}
</sh:property>
};
declare %private function aixm_5-1-1:mapConnectorsOfAssociationClass(
$element as element(),
$modelSubset as element()
) as element()* {
(: add property shapes to association classes :)
for $connector in $modelSubset/connectors/connector
where $element[@xmi:idref=$connector/extendedProperties/@associationclass]
(: get the element's target element of the connection :)
let $targetElement:=
if($connector/properties[@direction!="Destination -> Source"]) then
$modelSubset/elements/element[@xmi:idref=$connector/target/@xmi:idref]
else
$modelSubset/elements/element[@xmi:idref=$connector/source/@xmi:idref]
(: path name is always constructed for association classes :)
let $pathName:=aixm_5-1-1:getRoleName($targetElement/@name/string())
return
<sh:property rdf:parseType="Resource">
<sh:path rdf:resource="{$aixm_5-1-1:namespace}{$pathName}" />
<sh:minCount rdf:datatype="{$aixm_5-1-1:xsd}integer">1</sh:minCount>
<sh:maxCount rdf:datatype="{$aixm_5-1-1:xsd}integer">1</sh:maxCount>
{
if($targetElement/properties[@stereotype="choice"])
then <sh:node rdf:resource="{aixm_5-1-1:getIRI($targetElement/@name/string())}" />
else <sh:class rdf:resource="{aixm_5-1-1:getIRI($targetElement/@name/string())}" />
}
</sh:property>
};
declare %private function aixm_5-1-1:getBasicElements(
) as element()+ {
<sh:NodeShape rdf:about="{$aixm_5-1-1:namespace}AIXMFeature">
<sh:property rdf:parseType="Resource">
<sh:path rdf:resource="{$aixm_5-1-1:namespace}timeSlice" />
</sh:property>
</sh:NodeShape>,
<sh:NodeShape rdf:about="{$aixm_5-1-1:namespace}AIXMTimeSlice">
<sh:property rdf:parseType="Resource">
<sh:path rdf:resource="{$aixm_5-1-1:gml}validTime" />
<sh:class rdf:resource="{$aixm_5-1-1:gml}TimePeriod" />
<sh:minCount rdf:datatype="{$aixm_5-1-1:xsd}integer">1</sh:minCount>
<sh:maxCount rdf:datatype="{$aixm_5-1-1:xsd}integer">1</sh:maxCount>
</sh:property>
<sh:property rdf:parseType="Resource">
<sh:path rdf:resource="{$aixm_5-1-1:namespace}interpretation" />
<sh:node rdf:resource="{$aixm_5-1-1:namespace}TimeSliceInterpretationType" />
<sh:minCount rdf:datatype="{$aixm_5-1-1:xsd}integer">1</sh:minCount>
<sh:maxCount rdf:datatype="{$aixm_5-1-1:xsd}integer">1</sh:maxCount>
</sh:property>
<sh:property rdf:parseType="Resource">
<sh:path rdf:resource="{$aixm_5-1-1:namespace}sequenceNumber" />
<sh:node rdf:resource="{$aixm_5-1-1:namespace}NoNumberType" />
<sh:minCount rdf:datatype="{$aixm_5-1-1:xsd}integer">1</sh:minCount>
<sh:maxCount rdf:datatype="{$aixm_5-1-1:xsd}integer">1</sh:maxCount>
</sh:property>
<sh:property rdf:parseType="Resource">
<sh:path rdf:resource="{$aixm_5-1-1:namespace}correctionNumber" />
<sh:node rdf:resource="{$aixm_5-1-1:namespace}NoNumberType" />
<sh:minCount rdf:datatype="{$aixm_5-1-1:xsd}integer">1</sh:minCount>
<sh:maxCount rdf:datatype="{$aixm_5-1-1:xsd}integer">1</sh:maxCount>
</sh:property>
</sh:NodeShape>,
<sh:NodeShape rdf:about="{$aixm_5-1-1:gml}TimePeriod">
<rdf:type rdf:resource="{$aixm_5-1-1:rdfs}Class" />
<sh:property rdf:parseType="Resource">
<sh:path rdf:resource="{$aixm_5-1-1:gml}beginPosition" />
<sh:node rdf:resource="{$aixm_5-1-1:gml}TimePrimitive" />
<sh:minCount rdf:datatype="{$aixm_5-1-1:xsd}integer">1</sh:minCount>
<sh:maxCount rdf:datatype="{$aixm_5-1-1:xsd}integer">1</sh:maxCount>
</sh:property>
<sh:property rdf:parseType="Resource">
<sh:path rdf:resource="{$aixm_5-1-1:gml}endPosition" />
<sh:node rdf:resource="{$aixm_5-1-1:gml}TimePrimitive" />
<sh:minCount rdf:datatype="{$aixm_5-1-1:xsd}integer">1</sh:minCount>
<sh:maxCount rdf:datatype="{$aixm_5-1-1:xsd}integer">1</sh:maxCount>
</sh:property>
</sh:NodeShape>,
<sh:NodeShape rdf:about="{$aixm_5-1-1:gml}TimePrimitive">
<sh:property rdf:parseType="Resource">
<sh:path rdf:resource="{$aixm_5-1-1:rdf}value" />
<sh:datatype rdf:resource="{$aixm_5-1-1:xsd}dateTime" />
<sh:maxCount rdf:datatype="{$aixm_5-1-1:xsd}integer">1</sh:maxCount>
</sh:property>
<sh:property rdf:parseType="Resource">
<sh:path rdf:resource="{$aixm_5-1-1:gml}indeterminatePosition" />
<sh:datatype rdf:resource="{$aixm_5-1-1:xsd}string" />
<sh:in rdf:parseType="Resource">
<rdf:rest rdf:parseType="Resource">
<rdf:first>after</rdf:first>
<rdf:rest rdf:parseType="Resource">
<rdf:first>before</rdf:first>
<rdf:rest rdf:parseType="Resource">
<rdf:first>now</rdf:first>
<rdf:rest rdf:parseType="Resource">
<rdf:first>unknown</rdf:first>
<rdf:rest rdf:resource="{$aixm_5-1-1:rdf}nil"/>
</rdf:rest>
</rdf:rest>
</rdf:rest>
</rdf:rest>
</sh:in>
<sh:maxCount rdf:datatype="{$aixm_5-1-1:xsd}integer">1</sh:maxCount>
</sh:property>
<sh:xone rdf:parseType="Collection">
<rdf:Description>
<sh:property rdf:parseType="Resource">
<sh:path rdf:resource="{$aixm_5-1-1:rdf}value" />
<sh:minCount rdf:datatype="{$aixm_5-1-1:xsd}integer">1</sh:minCount>
</sh:property>
</rdf:Description>
<rdf:Description>
<sh:property rdf:parseType="Resource">
<sh:path rdf:resource="{$aixm_5-1-1:gml}indeterminatePosition" />
<sh:minCount rdf:datatype="{$aixm_5-1-1:xsd}integer">1</sh:minCount>
</sh:property>
</rdf:Description>
</sh:xone>
</sh:NodeShape>,
<sh:NodeShape rdf:about="{$aixm_5-1-1:namespace}TimeSliceInterpretationType">
<sh:property rdf:parseType="Resource">
<sh:path rdf:resource="{$aixm_5-1-1:rdf}value" />
<sh:datatype rdf:resource="{$aixm_5-1-1:xsd}string" />
<sh:in rdf:parseType="Resource">
<rdf:rest rdf:parseType="Resource">
<rdf:first>BASELINE</rdf:first>
<rdf:rest rdf:parseType="Resource">
<rdf:first>TEMPDELTA</rdf:first>
<rdf:rest rdf:resource="{$aixm_5-1-1:rdf}nil"/>
</rdf:rest>
</rdf:rest>
</sh:in>
<sh:minCount rdf:datatype="{$aixm_5-1-1:xsd}integer">1</sh:minCount>
<sh:maxCount rdf:datatype="{$aixm_5-1-1:xsd}integer">1</sh:maxCount>
</sh:property>
</sh:NodeShape>,
<sh:NodeShape rdf:about="{$aixm_5-1-1:namespace}NoNumberType">
<sh:property rdf:parseType="Resource">
<sh:path rdf:resource="{$aixm_5-1-1:rdf}value" />
<sh:datatype rdf:resource="{$aixm_5-1-1:xsd}unsignedInt" />
<sh:minCount rdf:datatype="{$aixm_5-1-1:xsd}integer">1</sh:minCount>
<sh:maxCount rdf:datatype="{$aixm_5-1-1:xsd}integer">1</sh:maxCount>
</sh:property>
</sh:NodeShape>
};