-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathshacl_sosa.ttl
749 lines (670 loc) · 23 KB
/
shacl_sosa.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
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
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
#### These are SHACL shapes for the SOSA ontology ####
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix sosa: <http://www.w3.org/ns/sosa/> .
@prefix sosa-shacl: <http://stko-kwg.geog.ucsb.ed/sosa-shacl/> .
######################### Shapes for classes (14 in total in SOSA) ############################
### Shape for class sosa:ActuatorableProperty
sosa-shacl:ActuatablePropertyConstraint
a sh:NodeShape ;
sh:targetClass sosa:ActuatableProperty ;
sh:property [
sh:path sosa:isActedOnBy ;
rdfs:comment "An actuatable property can only be acted on by an actuation."@en ;
sh:class sosa:Actuation ;
].
### Shape for class sosa:Actuation
sosa-shacl:ActuationConstraint
a sh:NodeShape ;
sh:targetClass sosa:Actuation ;
sh:property [
sh:path sosa:madeByActuator ;
rdfs:comment "An actuation is made by mostly one actuator."@en ;
sh:class sosa:Actuator ;
#sh:minCount 1 ;
sh:maxCount 1 ;
];
sh:property [
sh:path sosa:usedProcedure ;
rdfs:comment "An actuation is made through a procedure."@en ;
sh:class sosa:Procedure ;
];
sh:property [
sh:path sosa:hasFeatureOfInterest ;
rdfs:comment "An actuation has one and only one feature of interest."@en ;
sh:class sosa:FeatureOfInterest ;
sh:minCount 1 ;
sh:maxCount 1 ;
];
sh:property [
sh:path sosa:actsOnProperty ;
rdfs:comment "An actuation acts at least on one actuable property."@en ;
sh:class sosa:ActuatableProperty ;
sh:minCount 1 ;
];
sh:property [
rdfs:comment "An actuation can have hasResult or hasSimpleResult as the result, but not neither."@en ;
sh:or (
[
sh:path sosa:hasResult ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:class sosa:Result ;
]
[
sh:path sosa:hasSimpleResult ;
sh:minCount 1 ;
sh:maxCount 1 ;
]
)
] ;
sh:property [
rdfs:comment "An actuatiin has to have either one phenomenonTime or one resultTime."@en ;
### a missing constraint here is that if both phenomenonTime and resultTime exist, resultTime
### has to be later than phenomenon time
sh:or (
[
sh:path sosa:phenomenonTime ;
sh:maxCount 1 ;
sh:minCount 1 ;
sh:class time:TemporalEntity ;
]
[
sh:path sosa:resultTime ;
sh:maxCount 1 ;
sh:minCount 1 ;
sh:datatype xsd:dateTime ;
]
)
].
### Shape for class sosa:Actuator
sosa-shacl:ActuatorConstraint
a sh:NodeShape ;
sh:targetClass sosa:Actuator ;
sh:property [
sh:path ssn:implements ;
rdfs:comment "An actuator implements at least one actuation."@en ;
sh:minCount 1 ;
];
sh:property [
sh:path ssn:forProperty ;
rdfs:comment "An actuator corresponds to the actuatable property."@en ;
sh:class sosa:ActuatableProperty ;
];
sh:property [
sh:path sosa:madeActuation ;
rdfs:comment "A actuator makes actuation(s)."@en ;
sh:class sosa:Actuation ;
].
### Shapes for the class sosa:FeatureOfInterest
sosa-shacl:FeatureOfInterestConstraint
a sh:NodeShape ;
sh:targetClass sosa:FeatureOfInterest ;
sh:property [
sh:path sosa:hasSample ;
rdfs:comment "The sample of a feature of interest has to be from the class sosa:Sample."@en ;
sh:class sosa:Sample ;
] ;
sh:property [
sh:path ssn:hasProperty ;
rdfs:comment "The property of a feature of interest has to be from the class ssn:Property."@en ;
sh:class ssn:Property ;
#sh:minCount 1 ; ## there are cases where a feature of interst has no property
] .
### Shape for class sosa:ObservableProperty
sosa-shacl:ObservablePropertyConstraint
a sh:NodeShape ;
sh:targetClass sosa:ObservableProperty ;
sh:property [
sh:path sosa:isObservedBy ;
rdfs:comment "An observable property can only be observed by instances from class sosa:Sensor."@en ;
sh:class sosa:Sensor ;
] .
### Shapes for class sosa:ObservationCollection
sosa-shacl:ObservationCollectionConstraint
a sh:NodeShape ;
sh:targetClass sosa:ObservationCollection ;
sh:property [
sh:path sosa:hasMember ;
rdfs:comment "We mandate the existence of a filler for sosa:hasMember." ;
sh:minCount 1 ;
] ;
sh:property [
sh:path sosa:hasFeatureOfInterest ;
rdfs:comment "We constrain the number of fillers of sosa:hasFeatureOfInterest, when the domain is sosa:ObservationCollection, to 1." ;
sh:maxCount 1 ;
] ;
sh:property [
sh:path sosa:hasUltimateFeatureOfInterest ;
rdfs:comment "We constrain the number of fillers of sosa:hasUltimateFeatureOfInterest, when the domain is sosa:ObservationCollection, to 1." ;
sh:maxCount 1 ;
] ;
sh:property [
sh:path sosa:madeBySensor ;
rdfs:comment "We constrain the number of fillers of sosa:madeBySensor, when the domain is sosa:ObservationCollection, to 1." ;
sh:maxCount 1 ;
] ;
sh:property [
sh:path sosa:observedProperty ;
rdfs:comment "We constrain the number of fillers of sosa:observedProperty, when the domain is sosa:ObservationCollection, to 1." ;
sh:maxCount 1 ;
] ;
sh:property [
sh:path sosa:phenomenonTime ;
rdfs:comment "We constrain the number of fillers of sosa:phenomenonTime, when the domain is sosa:ObservationCollection, to 1." ;
sh:maxCount 1 ;
] ;
sh:property [
sh:path sosa:resultTime ;
rdfs:comment "We constrain the number of fillers of sosa:resultTime, when the domain is sosa:ObservationCollection, to 1." ;
sh:maxCount 1 ;
] ;
sh:property [
sh:path sosa:usedProcedure ;
rdfs:comment "We constrain the number of fillers of sosa:usedProcedure, when the domain is sosa:ObservationCollection, to 1." ;
sh:maxCount 1 ;
] .
### Shapes for class sosa:Observation
sosa-shacl:ObservationConstraint
a sh:NodeShape ;
sh:targetClass sosa:Observation ;
sh:property [
sh:path sosa:madeBySensor ;
rdfs:comment "An observation is made by at most one sensor and the sensor can be implicit (unknown)."@en ;
sh:maxCount 1 ;
sh:class sosa:Sensor ;
] ;
sh:property [
sh:path sosa:usedProcedure ;
rdfs:comment "An observation can only made via a procedure."@en ;
sh:class sosa:Procedure ;
] ;
sh:property [
sh:path sosa:hasFeatureOfInterst ;
rdfs:comment "An observation is made on one and exactly one feature of interest."@en ;
sh:maxCount 1 ;
sh:minCount 1 ;
sh:class sosa:FeatureOfInterest ;
] ;
sh:property [
sh:path sosa:observedProperty ;
rdfs:comment "An observation is about one and only one obervable property."@en ;
sh:maxCount 1 ;
sh:minCount 1 ;
sh:class sosa:ObservableProperty ;
] ;
sh:property [
sh:path ssn:wasOriginatedBy ;
rdfs:comment "An observation is originated from at most one stimulus and the stimulus can be implicit (unknown)."@en ;
sh:maxCount 1 ;
sh:class ssn:Stimulus ;
] ;
sh:property [
rdfs:comment "An observation has to have one phenomenon time or one result time. Having both is OK but the result time has to be latter than the phenomenon time."@en ;
### a missing constraint here is that if both phenomenonTime and resultTime exist, resultTime
### has to be later than phenomenon time
sh:or (
[
sh:path sosa:phenomenonTime ;
sh:maxCount 1 ;
sh:minCount 1 ;
sh:class time:TemporalEntity ;
]
[
sh:path sosa:resultTime ;
sh:maxCount 1 ;
sh:minCount 1 ;
sh:datatype xsd:dateTime ;
]
)
] ;
sh:property [
rdfs:comment "An observation has to have a result or a simple result. Having both is OK."@en ;
sh:or (
[
sh:path sosa:hasResult ;
sh:minCount 1 ;
sh:class sosa:Result ;
]
[
sh:path sosa:hasSimpleResult ;
sh:minCount 1 ;
]
)
] .
### Shapes for class sosa:Platform
sosa-shacl:PlatformConstraint
a sh:NodeShape ;
sh:targetClass sosa:Platform ;
sh:property [
sh:path sosa:hosts ;
rdfs:comment "A platform only hosts a system."@en ;
sh:class ssn:System ;
] ;
sh:property [
sh:path ssn:inDeployment ;
rdfs:comment "A platform is in deployment of a deployment."@en ;
sh:class ssn:Deployment ;
] .
### Shapes for class sosa:Procedure
sosa-shacl:ProcedureConstraint
a sh:NodeShape ;
sh:targetClass ssn:Procedure ;
sh:property [
sh:path ssn:hasInput ;
rdfs:comment "A procdedure has input."@en ;
sh:class ssn:Input ;
] ;
sh:property [
sh:path ssn:hasOutput ;
rdfs:comment "A procedure has output."@en ;
sh:class ssn:Output ;
] ;
sh:property [
sh:path ssn:implementedBy ;
rdfs:comment "A procedure is implemented by a system."@en ;
sh:class ssn:System ;
] .
### Shapes for class sosa:Result
sosa-shacl:ResultConstraint
a sh:NodeShape ;
sh:targetClass sosa:Result ;
sh:property [
sh:path sosa:isResultOf ;
rdfs:comment "A result is from at least one observation/actuation/sampling."@en ;
sh:minCount 1 ;
sh:or ( ## this might be the same to the property constraint of isResultOf (?)
[ sh:class sosa:Observation ] # sh:class sosa:Observation ; ## this overlaps with the ObservationConstraint
[ sh:class sosa:Actuation ]
[ sh:class sosa:Sampling ]
) ;
] .
### Shape for class sosa:Sample
sosa-shacl:SampleConstraint
a sh:NodeShape ;
sh:targetClass sosa:Sample ;
sh:property [
sh:path sosa:isResultOf ;
rdfs:comment "A sample is the result of at least one sampling act."@en ;
sh:class sosa:Sampling ;
sh:minCount 1 ;
] ;
sh:property [
sh:path sosa:isSampleOf ;
rdfs:comment "A sample is representative of at least one feature of interest."@en ;
sh:class sosa:FeatureOfInterest ;
sh:minCount 1 ;
] .
### Shape for class sosa:Sampler
sosa-shacl:SamplerConstraint
a sh:NodeShape ;
sh:targetClass sosa:Sampler ;
sh:property [
sh:path ssn:implements ;
rdfs:comment "A sampler has to implement at least one sampling procedure."@en ;
sh:minCount 1 ;
] ;
sh:property [
sh:path sosa:madeSampling ;
rdfs:comment "A sampler makes sampling."@en ;
sh:class sosa:Sampling ;
] .
### Shape for class sosa:Sampling
sosa-shacl:SamplingConstraint
a sh:NodeShape ;
sh:targetClass sosa:Sampling ;
sh:property [
sh:path sosa:madeBySampler ;
rdfs:comment "A sampling act is made by one and only one sampler."@en ;
sh:class sosa:Sampler ;
#sh:minCount 1 ; ## the sampler might be implicit
sh:maxCount 1 ;
] ;
sh:property [
sh:path sosa:hasFeatureOfInterest ;
rdfs:comment "A sampling act is carried out for one and only one feature of interest."@en ;
sh:class sosa:FeatureOfInterest ;
sh:minCount 1 ;
sh:maxCount 1 ;
] ;
sh:property [
sh:path sosa:hasResult ;
rdfs:comment "A sampling act always results in at least one sample."@en ;
sh:class sosa:Sample ;
sh:minCount 1 ;
] ;
sh:property [
sh:path sosa:usedProcedure ;
rdfs:comment "A sampling act applies a procedure."@en ;
sh:class sosa:Procedure ;
];
sh:property [
sh:path sosa:resultTime ;
rdfs:comment "A sampling act produces a result during exactly one temporal entity."@en ;
sh:minCount 1 ;
sh:maxCount 1 ;
].
### Shapes for class sosa:Sensor
sosa-shacl:SensorConstraint
a sh:NodeShape ;
sh:targetClass sosa:Sensor ;
## We choose not to require a filler for ssn:implements.
sh:property [
sh:path sosa:observes ;
rdfs:comment "A sensor oberses observable property."@en ;
sh:class sosa:ObservableProperty ;
] ;
sh:property [
sh:path ssn:detects ;
rdfs:comment "A sensor detects observation."@en ;
sh:class sosa:Stimulus ;
] ;
sh:property [
sh:path sosa:madeObservation ;
rdfs:comment "A sensor makes observations."@en ;
sh:class sosa:Observation ;
] .
###################### Shapes for object properties (23 in total in SOSA)######################
### Shapes for class sosa:actsOnProperty
sosa-shacl:actsOnPropertyDomainConstraint
a sh:NodeShape ;
sh:targetSubjectsOf sosa:actsOnProperty ;
rdfs:comment "We restrict the domain of sosa:actsOnProperty to sosa:Actuation" ;
sh:class sosa:Actuation .
sosa-shacl:actsOnPropertyRangeConstraint
a sh:NodeShape ;
sh:targetObjectsOf sosa:actsOnProperty ;
rdfs:comment "We restrict the range of sosa:actsOnProperty to sosa:ActuatableProperty" ;
sh:class sosa:ActuatableProperty .
### Shapes for property sosa:hasFeatureOfInterest
sosa-shacl:hasFeatureOfInterestOfDomainConstraint
a sh:NodeShape ;
sh:targetSubjectsOf sosa:hasFeatureOfInterest ;
rdfs:comment "We restrict the domain of sosa:hasFeatureOfInterest to sosa:Observation, sosa:Actuation, sosa:Sampling" ;
sh:or (
[ sh:class sosa:Observation ]
[ sh:class sosa:Actuation ]
[ sh:class sosa:Sampling ]
) .
sosa-shacl:hasFeatureOfInterestOfRangeConstraint
a sh:NodeShape ;
sh:targetObjectsOf sosa:hasFeatureOfInterest ;
rdfs:comment "We restrict the range of sosa:hasFeatureOfInterest to sosa:FeatureOfInterest, sosa:Sample" ;
sh:or (
[ sh:class sosa:FeatureOfInterest ]
[ sh:class sosa:Sample ]
) .
### Shapes for property sosa:hasResult
sosa-shacl:hasResultDomainConstraint
a sh:NodeShape ;
sh:targetSubjectsOf sosa:hasResult ;
rdfs:comment "We restrict the domain of sosa:hosts to sosa:Actuation, sosa:Observation, sosa:Sampling" ;
sh:or (
[ sh:class sosa:Actuation ]
[ sh:class sosa:Observation ]
[ sh:class sosa:Sampling ]
) .
sosa-shacl:hasResultRangeConstraint
a sh:NodeShape ;
sh:targetObjectsOf sosa:hasResult ;
rdfs:comment "We restrict the range of sosa:hosts to sosa:Result, sosa:Sample" ;
sh:or (
[ sh:class sosa:Result ]
[ sh:class sosa:Sample ]
) .
### Shapes for class sosa:hasSample
sosa-shacl:hasSampleDomainConstraint
a sh:NodeShape ;
sh:targetSubjectsOf sh:hasSample ;
rdfs:comment "We restrict the domain of sosa:hasSample to sosa:FeatureOfInterest" ;
sh:class sosa:FeatureOfInterest .
sosa-shacl:hasSampleRangeConstraint
a sh:NodeShape ;
sh:targetObjectsOf sh:hasSample ;
rdfs:comment "We restrict the range of sosa:hasSample to sosa:Sample" ;
sh:class sosa:Sample .
### Shapes for property sosa:hasSimpleResult
sosa-shacl:hasSimpleResultDomainConstraint
a sh:NodeShape ;
sh:targetSubjectsOf sosa:hasSimpleResult ;
rdfs:comment "We restrict the domain of sosa:hasSimpleResult to sosa:Observation, sosa:Actuation" ;
sh:or (
[ sh:class sosa:Observation ]
[ sh:class sosa:Actuation ]
) .
### Shapes for property sosa:hosts
sosa-shacl:hostsDomainConstraint
a sh:NodeShape ;
sh:targetSubjectsOf sosa:hosts ;
rdfs:comment "We restrict the domain of sosa:hosts to sosa:Platform" ;
sh:class sosa:Platform .
sosa-shacl:hostsRangeConstraint
a sh:NodeShape ;
sh:targetObjectsOf sosa:hosts ;
rdfs:comment "We restrict the range of sosa:hosts to sosa:Actuator, sosa:Sensor, sosa:Sampler, or sosa:Platform" ;
sh:or (
[ sh:class sosa:Actuator ]
[ sh:class sosa:Sensor ]
[ sh:class sosa:Sampler ]
[ sh:class sosa:Platform ]
) .
### Shapes for class sosa:isActedOnBy
sosa-shacl:isActedOnByDomainConstraint
a sh:NodeShape ;
sh:targetSubjectsOf sosa:isActedOnBy ;
rdfs:comment "We restrict the domain of sosa:isActedOnBy to sosa:ActuatableProperty" ;
sh:class sosa:ActuatableProperty .
sosa-shacl:isActedOnByRangeConstraint
a sh:NodeShape ;
sh:targetObjectsOf sosa:isActedOnBy ;
rdfs:comment "We restrict the range of sosa:isActedOnBy to sosa:Actuation" ;
sh:class sosa:Actuation .
### Shapes for property sosa:isFeatureOfInterestOf
sosa-shacl:isFeatureOfInterestOfDomainConstraint
a sh:NodeShape ;
sh:targetSubjectsOf sosa:isFeatureOfInterest ;
rdfs:comment "We restrict the domain of sosa:isFeatureOfInterest to sosa:FeatureOfInterest, sosa:Sample" ;
sh:or (
[ sh:class sosa:FeatureOfInterest ]
[ sh:class sosa:Sample ]
) .
sosa-shacl:isFeatureOfInterestOfRangeConstraint
a sh:NodeShape ;
sh:targetObjectsOf sosa:hosts ;
rdfs:comment "We restrict the range of sosa:isFeatureOfInterest to sosa:Observation, sosa:Actuation, sosa:Sampling" ;
sh:or (
[ sh:class sosa:Observation ]
[ sh:class sosa:Actuation ]
[ sh:class sosa:Sampling ]
) .
### Shapes for property sosa:isHostedBy
sosa-shacl:isHostedByDomainConstraint
a sh:NodeShape ;
sh:targetSubjectsOf sosa:isHostedBy ;
rdfs:comment "We restrict the domain of sosa:isHostedBy to sosa:Actuator, sosa:Sensor, sosa:Sampler, or sosa:Platform" ;
sh:or (
[ sh:class sosa:Actuator ]
[ sh:class sosa:Sensor ]
[ sh:class sosa:Sampler ]
[ sh:class sosa:Platform ]
) .
sosa-shacl:isHostedByRangeConstraint
a sh:NodeShape ;
sh:targetObjectsOf sosa:isHostedBy ;
rdfs:comment "We restrict the range of sosa:isHostedBy to sosa:Platform" ;
sh:class sosa:Platform .
### Shapes for property sosa:isObservedBy
sosa-shacl:isObservedByDomainConstraint
a sh:NodeShape ;
sh:targetSubjectsOf sosa:isObservedBy ;
rdfs:comment "We restrict the domain of sosa:isObservedBy to sosa:Sensor" ;
sh:class sosa:ObservableProperty .
sosa-shacl:isObservedByRangeConstraint
a sh:NodeShape ;
sh:targetObjectsOf sosa:isObservedBy ;
rdfs:comment "We restrict the range of sosa:isObservedBy to sosa:ObservableProperty" ;
sh:class sosa:Sensor .
### Shapes for property sosa:isResultOf
sosa-shacl:isResultOfDomainConstraint
a sh:NodeShape ;
sh:targetSubjectsOf sosa:isResultOf ;
rdfs:comment "We restrict the domain of sosa:isResultOf to sosa:Result, sosa:Sample" ;
sh:or (
[ sh:class sosa:Result ]
[ sh:class sosa:Sample ]
) .
sosa-shacl:isResultOfRangeConstraint
a sh:NodeShape ;
sh:targetObjectsOf sosa:isResultOf ;
rdfs:comment "We restrict the range of sosa:isResultOf to sosa:Actuation, sosa:Observation, and sosa:Sampling";
sh:or (
[ sh:class sosa:Actuation ]
[ sh:class sosa:Observation ]
[ sh:class sosa:Sampling ]
) .
### Shapes for class sosa:isSampleOf
sosa-shacl:isSampleOfDomainConstraint
a sh:NodeShape ;
sh:targetSubjectsOf sosa:isSampleOf ;
rdfs:comment "We restrict the domain of sosa:isSampleOf to sosa:Sample" ;
sh:class sosa:Sample .
sosa-shacl:isSampleOfRangeConstraint
a sh:NodeShape ;
sh:targetObjectsOf sosa:isSampleOf ;
rdfs:comment "We restrict the range of sosa:isSampleOf to sosa:FeatureOfInterest" ;
sh:class sosa:FeatureOfInterest .
### Shapes for class sosa:madeActuation
sosa-shacl:madeActuationDomainConstraint
a sh:NodeShape ;
sh:targetSubjectsOf sosa:madeActuation ;
rdfs:comment "We restrict the domain of sosa:madeActuation to sosa:Actuator" ;
sh:class sosa:Actuator .
sosa-shacl:madeActuationRangeConstraint
a sh:NodeShape ;
sh:targetObjectsOf sosa:madeActuation ;
rdfs:comment "We restrict the range of sosa:madeActuation to sosa:Actuation" ;
sh:class sosa:Actuation .
### Shapes for class sosa:madeByActuator
sosa-shacl:madeByActuatorDomainConstraint
a sh:NodeShape ;
sh:targetSubjectsOf sosa:madeByActuator ;
rdfs:comment "We restrict the domain of sosa:madeByActuator to sosa:Actuation" ;
sh:class sosa:Actuation .
sosa-shacl:madeByActuatorRangeConstraint
a sh:NodeShape ;
sh:targetObjectsOf sosa:madeByActuator ;
rdfs:comment "We restrict the range of sosa:madeByActuator to sosa:Actuator" ;
sh:class sosa:Actuator .
### Shapes for property sosa:madeBySampler
sosa-shacl:madeBySamplerDomainConstraint
a sh:NodeShape ;
sh:targetSubjectsOf sosa:madeBySampler ;
rdfs:comment "We restrict the domain of sosa:madeBySampler to sosa:Sampling" ;
sh:class sosa:Sampling .
sosa-shacl:madeBySamplerRangeConstraint
a sh:NodeShape ;
sh:targetObjectsOf sosa:madeBySampler ;
rdfs:comment "We restrict the range of sosa:madeBySampler to sosa:Sampler" ;
sh:class sosa:Sampler .
### Shapes for class sosa:madeBySensor
sosa-shacl:madeBySensorDomainConstraint
a sh:NodeShape ;
sh:targetSubjectsOf sosa:madeBySensor ;
rdfs:comment "We restrict the domain of sosa:madeBySensor to sosa:Observation" ;
sh:class sosa:Observation .
sosa-shacl:madeBySensorRangeConstraint
a sh:NodeShape ;
sh:targetObjectsOf sosa:madeBySensor ;
rdfs:comment "We restrict the range of sosa:madeBySensor to sosa:BySensor" ;
sh:class sosa:Sensor .
### Shapes for class sosa:madeObservation
sosa-shacl:madeObservationDomainConstraint
a sh:NodeShape ;
sh:targetSubjectsOf sosa:madeObservation ;
rdfs:comment "We restrict the domain of sosa:madeObservation to sosa:Sensor" ;
sh:class sosa:Sensor .
sosa-shacl:madeObservationRangeConstraint
a sh:NodeShape ;
sh:targetObjectsOf sosa:madeObservation ;
rdfs:comment "We restrict the range of sosa:madeObservation to sosa:Observation" ;
sh:class sosa:Observation .
### Shapes for property sosa:madeSampling
sosa-shacl:madeSamplingDomainConstraint
a sh:NodeShape ;
sh:targetSubjectsOf sosa:madeSampling ;
rdfs:comment "We restrict the domain of sosa:madeSampling to sosa:Sampler" ;
sh:class sosa:Sampler .
sosa-shacl:madeSamplingRangeConstraint
a sh:NodeShape ;
sh:targetObjectsOf sosa:madeSampling ;
rdfs:comment "We restrict the range of sosa:madeSampling to sosa:Sampling" ;
sh:class sosa:Sampling .
### Shapes for property sosa:observes
sosa-shacl:observesDomainConstraint
a sh:NodeShape ;
sh:targetSubjectsOf sosa:observes ;
rdfs:comment "We restrict the domain of sosa:observes to sosa:Sensor" ;
sh:class sosa:Sensor .
sosa-shacl:observesRangeConstraint
a sh:NodeShape ;
sh:targetObjectsOf sosa:observes ;
rdfs:comment "We restrict the range of sosa:observes to sosa:ObservableProperty" ;
sh:class sosa:ObservableProperty .
### Shapes for property sosa:observedProperty
sosa-shacl:observedPropertyDomainConstraint
a sh:NodeShape ;
sh:targetSubjectsOf sosa:observedProperty ;
rdfs:comment "We restrict the domain of sosa:observedProperty to sosa:Observation" ;
sh:class sosa:Observation .
sosa-shacl:observedPropertyRangeConstraint
a sh:NodeShape ;
sh:targetObjectsOf sosa:observedProperty ;
rdfs:comment "We restrict the range of sosa:observedProperty to sosa:ObservableProperty" ;
sh:class sosa:ObservableProperty .
### Shapes for property sosa:phenomenonTime
sosa-shacl:phenomenonTimeDomainConstraint
a sh:NodeShape ;
sh:targetSubjectsOf sosa:phenomenonTime ;
rdfs:comment "We restrict the domain of sosa:phenomenonTime to sosa:Actuation, sosa:Observation, sosa:Sampling" ;
sh:or (
[sh:class sosa:Actuation ]
[sh:class sosa:Observation ]
[sh:class sosa:Sampling ]
) .
sosa-shacl:phenomenonTimeRangeConstraint
a sh:NodeShape ;
sh:targetObjectsOf sosa:phenomenonTime ;
rdfs:comment "We restrict the range of sosa:phenomenonTime to time:TemporalEntity" ;
sh:class time:TemporalEntity .
### Shapes for property sosa:resultTime
sosa-shacl:resultTimeDomainConstraint
a sh:NodeShape ;
sh:targetSubjectsOf sosa:resultTime ;
rdfs:comment "We restrict the domain of sosa:resultTime to sosa:Actuation, sosa:Observation, sosa:Sampling" ;
sh:or (
[ sh:class sosa:Actuation ]
[ sh:class sosa:Observation ]
[ sh:class sosa:Sampling ]
) .
sosa-shacl:resultTimeRangeConstraint
a sh:NodeShape ;
sh:targetObjectsOf sosa:resultTime ;
rdfs:comment "We restrict the range of sosa:resultTime to xsd:dateTime";
sh:datatype xsd:dateTime .
### Shapes for property sosa:usedProcedure
sosa-shacl:usedProcedureDomainConstraint
a sh:NodeShape ;
sh:targetSubjectsOf sosa:usedProcedure ;
rdfs:comment "We restrict the domain of sosa:usedProcedure to sosa:Actuation, sosa:Observation, sosa:Sampling" ;
sh:or (
[ sh:class sosa:Actuation ]
[ sh:class sosa:Observation ]
[ sh:class sosa:Sampling ]
).
sosa-shacl:usedProcedureRangeConstraint
a sh:NodeShape ;
sh:targetObjectsOf sosa:usedProcedure ;
rdfs:comment "We restrict the range of sosa:usedProcedure to sosa:Procedure" ;
sh:class sosa:Procedure .