-
Notifications
You must be signed in to change notification settings - Fork 7
/
EPCIS-SHACL.ttl
1137 lines (1032 loc) · 35.4 KB
/
EPCIS-SHACL.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
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
@prefix dash: <http://datashapes.org/dash#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix schema: <http://schema.org/> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix epcis: <https://ref.gs1.org/epcis/> .
epcis:EPCISDocumentShape
a sh:NodeShape;
sh:targetClass epcis:EPCISDocument;
sh:property epcis:SchemaVersionShape;
sh:property epcis:CreationDateShape;
sh:property epcis:InstanceIdentifierShape;
sh:property epcis:SenderShape;
sh:property epcis:ReceiverShape;
sh:node epcis:EpcisHeaderShape;
sh:node epcis:EpcisBodyShape;
.
epcis:SchemaVersionShape
a sh:PropertyShape ;
sh:path owl:versionInfo ;
sh:name "schemaVersion" ;
sh:datatype xsd:string ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:message "In every EPCISDocument, schemaVersion (owl:versionInfo) is mandatory, single valued and an xsd:string" ;
.
epcis:CreationDateShape
a sh:PropertyShape ;
sh:path dcterms:created ;
sh:name "creationDate" ;
sh:datatype xsd:dateTime ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:message "In every EPCISDocument, creationDate (dcterms:created) is mandatory, single valued and an xsd:dateTime" ;
.
epcis:InstanceIdentifierShape
a sh:PropertyShape ;
sh:path epcis:instanceIdentifier ;
sh:name "instanceIdentifier" ;
sh:datatype xsd:string ;
sh:minCount 0 ;
sh:maxCount 1 ;
sh:message "In an EPCISDocument, instanceIdentifier is optional, single valued and an xsd:string" ;
.
epcis:SenderShape
a sh:PropertyShape ;
sh:path epcis:sender ;
sh:name "sender" ;
sh:or (
[ sh:nodeKind sh:IRI ; ]
[ sh:datatype xsd:string; ]
);
sh:minCount 0 ;
sh:maxCount 1 ;
sh:message "In an EPCISDocument, sender is optional, single valued and a URI/IRI that typically expresses a SGLN of the sender, either as an EPC URN or the equivalent constrained GS1 Digital Link URI" ;
.
epcis:ReceiverShape
a sh:PropertyShape ;
sh:path epcis:receiver ;
sh:name "receiver" ;
sh:or (
[ sh:nodeKind sh:IRI ; ]
[ sh:datatype xsd:string; ]
);
sh:minCount 0 ;
sh:maxCount 1 ;
sh:message "In an EPCISDocument, receiver is optional, single valued and a URI/IRI that typically expresses a SGLN of the intended receiver, either as an EPC URN or the equivalent constrained GS1 Digital Link URI" ;
.
epcis:EpcisHeaderShape
a sh:NodeShape;
sh:path epcis:epcisHeader;
sh:name "epcisHeader" ;
sh:maxCount 1;
.
epcis:EpcisBodyShape
a sh:NodeShape;
sh:path epcis:epcisBody;
sh:name "epcisBody" ;
sh:minCount 1;
sh:maxCount 1;
sh:node epcis:EventListShape;
.
epcis:EventListShape
a sh:NodeShape;
sh:path epcis:eventList;
sh:name "eventList" ;
.
epcis:ObjectEventShape
a sh:NodeShape ;
sh:targetClass epcis:ObjectEvent ;
sh:or (
[ sh:nodeKind sh:IRI ; sh:pattern "^(urn:uuid:|ni:///)";]
[ sh:nodeKind sh:BlankNode; ]
);
sh:property epcis:EventTimeShape ;
sh:property epcis:EventTimeZoneOffsetShape ;
sh:property epcis:RecordTimeShape ;
sh:property epcis:ActionShape ;
sh:property epcis:BizStepShape ;
sh:property epcis:DispositionShape ;
sh:property epcis:ReadPointShape ;
sh:property epcis:BizLocationShape ;
sh:property epcis:EPCListShape ;
sh:property epcis:ParentIDForbiddenShape;
sh:property epcis:ChildEPCsForbiddenShape ;
sh:property epcis:InputEPCListForbiddenShape ;
sh:property epcis:OutputEPCListForbiddenShape ;
sh:node epcis:QuantityElementShape ;
sh:node epcis:InputQuantityElementForbiddenShape ;
sh:node epcis:OutputQuantityElementForbiddenShape ;
sh:node epcis:ChildQuantityElementForbiddenShape ;
sh:node epcis:ILMDConditionallyForbiddenShape ;
sh:node epcis:PersistentDispositionShape ;
sh:node epcis:BizTransactionShape ;
sh:node epcis:SourceListShape ;
sh:node epcis:DestinationListShape ;
sh:node epcis:ErrorDeclarationShape ;
sh:node epcis:SensorElementShape ;
sh:node epcis:CertificationInfoShape ;
.
epcis:AggregationEventShape
a sh:NodeShape ;
sh:targetClass epcis:AggregationEvent ;
sh:or (
[ sh:nodeKind sh:IRI ; sh:pattern "^(urn:uuid:|ni:///)";]
[ sh:nodeKind sh:BlankNode; ]
);
sh:property epcis:EventTimeShape ;
sh:property epcis:EventTimeZoneOffsetShape ;
sh:property epcis:RecordTimeShape ;
sh:property epcis:ActionShape ;
sh:property epcis:BizStepShape ;
sh:property epcis:DispositionShape ;
sh:property epcis:ReadPointShape ;
sh:property epcis:BizLocationShape ;
sh:property epcis:ParentIDShape ;
sh:property epcis:ChildEPCsShape ;
sh:property epcis:EPCListForbiddenShape ;
sh:property epcis:InputEPCListForbiddenShape ;
sh:property epcis:OutputEPCListForbiddenShape ;
sh:property epcis:ILMDForbiddenShape ;
sh:node epcis:ChildQuantityElementShape ;
sh:node epcis:QuantityElementForbiddenShape ;
sh:node epcis:InputQuantityElementForbiddenShape ;
sh:node epcis:OutputQuantityElementForbiddenShape ;
sh:node epcis:PersistentDispositionForbiddenShape ;
sh:node epcis:BizTransactionShape ;
sh:node epcis:SourceListShape ;
sh:node epcis:DestinationListShape ;
sh:node epcis:ErrorDeclarationShape ;
sh:node epcis:SensorElementShape ;
sh:node epcis:CertificationInfoShape ;
.
epcis:AssociationEventShape
a sh:NodeShape ;
sh:targetClass epcis:AssociationEvent ;
sh:or (
[ sh:nodeKind sh:IRI ; sh:pattern "^(urn:uuid:|ni:///)";]
[ sh:nodeKind sh:BlankNode; ]
);
sh:property epcis:EventTimeShape ;
sh:property epcis:EventTimeZoneOffsetShape ;
sh:property epcis:RecordTimeShape ;
sh:property epcis:ActionShape ;
sh:property epcis:BizStepShape ;
sh:property epcis:DispositionShape ;
sh:property epcis:ReadPointShape ;
sh:property epcis:BizLocationShape ;
sh:property epcis:MandatoryParentIDShape ;
sh:property epcis:ChildEPCsShape ;
sh:property epcis:EPCListForbiddenShape ;
sh:property epcis:InputEPCListForbiddenShape ;
sh:property epcis:OutputEPCListForbiddenShape ;
sh:property epcis:ILMDForbiddenShape ;
sh:node epcis:ChildQuantityElementShape ;
sh:node epcis:QuantityElementForbiddenShape ;
sh:node epcis:InputQuantityElementForbiddenShape ;
sh:node epcis:OutputQuantityElementForbiddenShape ;
sh:node epcis:PersistentDispositionForbiddenShape ;
sh:node epcis:BizTransactionShape ;
sh:node epcis:SourceListShape ;
sh:node epcis:DestinationListShape ;
sh:node epcis:ErrorDeclarationShape ;
sh:node epcis:SensorElementShape ;
sh:node epcis:CertificationInfoShape ;
.
epcis:TransactionEventShape
a sh:NodeShape ;
sh:targetClass epcis:TransactionEvent ;
sh:or (
[ sh:nodeKind sh:IRI ; sh:pattern "^(urn:uuid:|ni:///)";]
[ sh:nodeKind sh:BlankNode; ]
);
sh:property epcis:EventTimeShape ;
sh:property epcis:EventTimeZoneOffsetShape ;
sh:property epcis:RecordTimeShape ;
sh:property epcis:ActionShape ;
sh:property epcis:BizStepShape ;
sh:property epcis:DispositionShape ;
sh:property epcis:ReadPointShape ;
sh:property epcis:BizLocationShape ;
sh:property epcis:ParentIDShape ;
sh:property epcis:EPCListShape ;
sh:property epcis:ChildEPCsForbiddenShape ;
sh:property epcis:InputEPCListForbiddenShape ;
sh:property epcis:OutputEPCListForbiddenShape ;
sh:property epcis:ILMDForbiddenShape ;
sh:node epcis:QuantityElementShape ;
sh:node epcis:ChildQuantityElementForbiddenShape ;
sh:node epcis:InputQuantityElementForbiddenShape ;
sh:node epcis:OutputQuantityElementForbiddenShape ;
sh:node epcis:PersistentDispositionForbiddenShape ;
sh:node epcis:BizTransactionMandatoryShape ;
sh:node epcis:SourceListShape ;
sh:node epcis:DestinationListShape ;
sh:node epcis:ErrorDeclarationShape ;
sh:node epcis:SensorElementShape ;
sh:node epcis:CertificationInfoShape ;
.
epcis:TransformationEventShape
a sh:NodeShape ;
sh:targetClass epcis:TransformationEvent ;
sh:or (
[ sh:nodeKind sh:IRI ; sh:pattern "^(urn:uuid:|ni:///)";]
[ sh:nodeKind sh:BlankNode; ]
);
sh:property epcis:EventTimeShape ;
sh:property epcis:EventTimeZoneOffsetShape ;
sh:property epcis:RecordTimeShape ;
sh:property epcis:BizStepShape ;
sh:property epcis:DispositionShape ;
sh:property epcis:ReadPointShape ;
sh:property epcis:BizLocationShape ;
sh:property epcis:InputEPCListShape ;
sh:property epcis:OutputEPCListShape ;
sh:property epcis:ActionForbiddenShape ;
sh:property epcis:ParentIDForbiddenShape;
sh:property epcis:ChildEPCsForbiddenShape ;
sh:property epcis:EPCListForbiddenShape ;
sh:property epcis:TransformationIDShape ;
sh:node epcis:InputQuantityElementShape ;
sh:node epcis:OutputQuantityElementShape ;
sh:node epcis:QuantityElementForbiddenShape ;
sh:node epcis:ChildQuantityElementForbiddenShape ;
sh:node epcis:PersistentDispositionShape ;
sh:node epcis:BizTransactionShape ;
sh:node epcis:SourceListShape ;
sh:node epcis:DestinationListShape ;
sh:node epcis:ErrorDeclarationShape ;
sh:node epcis:SensorElementShape ;
sh:node epcis:CertificationInfoShape ;
sh:node epcis:TransformationIDConditionsShape ;
.
epcis:EventTimeShape
a sh:PropertyShape ;
sh:path epcis:eventTime ;
sh:name "eventTime" ;
sh:datatype xsd:dateTimeStamp ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:message "In all EPCIS events, eventTime is mandatory, single valued and an xsd:dateTimeStamp" ;
.
epcis:EventTimeZoneOffsetShape
a sh:PropertyShape ;
sh:path epcis:eventTimeZoneOffset ;
sh:name "eventTimeZoneOffset" ;
sh:datatype xsd:string ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:pattern "^(\\+|-)((0[0-9]|1[0-3]):([0-5][0-9])|14:00)$" ;
sh:message "In all EPCIS events, eventTimeZoneOffset is mandatory, single valued and an xsd:string" ;
.
epcis:RecordTimeShape
a sh:PropertyShape ;
sh:path epcis:recordTime ;
sh:name "recordTime" ;
sh:datatype xsd:dateTimeStamp ;
sh:maxCount 1 ;
sh:message "recordTime is optional; if present, a xsd:dateTimeStamp with only one value" ;
.
epcis:CertificationInfoShape
a sh:PropertyShape ;
sh:path epcis:certificationInfo ;
sh:name "certificationInfo" ;
sh:nodeKind sh:IRI ;
sh:pattern "^(.+?):(.+)$" ;
sh:message "Any values of certificationInfo must be IRIs/URIs" ;
.
epcis:ActionShape
a sh:PropertyShape ;
sh:path epcis:action ;
sh:name "action" ;
sh:datatype xsd:string ;
sh:in ("ADD" "OBSERVE" "DELETE") ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:message "Within ObjectEvent, AggregationEvent, TransactionEvent, AssociationEvent, action is mandatory, and must be a string value, one of either 'ADD', 'OBSERVE' or 'DELETE'" ;
.
epcis:ActionForbiddenShape
a sh:PropertyShape ;
sh:path epcis:action ;
sh:name "action (forbidden within TransformationEvent)" ;
sh:maxCount 0 ;
sh:message "action should not appear within TransformationEvent" ;
.
epcis:BizStepShape
a sh:PropertyShape ;
sh:path epcis:bizStep ;
sh:name "bizStep" ;
sh:nodeKind sh:IRI ;
sh:pattern "^(.+?):(.+)$" ;
sh:maxCount 1;
sh:message "bizStep must be single-valued and an IRI/URI" ;
.
epcis:DispositionShape
a sh:PropertyShape ;
sh:path epcis:disposition ;
sh:name "disposition" ;
sh:nodeKind sh:IRI ;
sh:pattern "^(.+?):(.+)$" ;
sh:maxCount 1;
sh:message "disposition must be single-valued and an IRI/URI" ;
.
epcis:ReadPointShape
a sh:PropertyShape ;
sh:path epcis:readPoint ;
sh:name "readPoint" ;
sh:nodeKind sh:IRI ;
sh:pattern "^(.+?):(.+)$" ;
sh:maxCount 1;
sh:message "readPoint must be single-valued and an IRI/URI" ;
.
epcis:BizLocationShape
a sh:PropertyShape ;
sh:path epcis:bizLocation ;
sh:name "bizLocation" ;
sh:nodeKind sh:IRI ;
sh:pattern "^(.+?):(.+)$" ;
sh:maxCount 1;
sh:message "bizLocation must be single-valued and an IRI/URI" ;
.
epcis:ChildEPCsShape
a sh:PropertyShape ;
sh:path epcis:childEPCs ;
sh:name "childEPCs" ;
sh:nodeKind sh:IRI ;
sh:pattern "^(.+?):(.+)$" ;
sh:message "Any values within childEPCs must be IRIs/URIs" ;
.
epcis:ChildEPCsForbiddenShape
a sh:PropertyShape ;
sh:path epcis:childEPCs ;
sh:name "childEPCs (forbidden)" ;
sh:maxCount 0 ;
sh:message "childEPCs should not appear within ObjectEvent, TransactionEvent or TransformationEvent" ;
.
epcis:ILMDForbiddenShape
a sh:PropertyShape ;
sh:path epcis:ilmd ;
sh:name "ilmd (forbidden)" ;
sh:maxCount 0 ;
sh:message "ilmd should not appear within AggregationEvent, AssociationEvent or TransactionEvent" ;
.
epcis:MandatoryParentIDShape
a sh:PropertyShape ;
sh:path epcis:parentID ;
sh:name "parentID" ;
sh:nodeKind sh:IRI ;
sh:pattern "^(.+?):(.+)$" ;
sh:minCount 1;
sh:maxCount 1;
sh:message "parentID is mandatory, single-valued and must be an IRI/URI" ;
.
epcis:ParentIDShape
a sh:PropertyShape ;
sh:path epcis:parentID ;
sh:name "parentID" ;
sh:nodeKind sh:IRI ;
sh:pattern "^(.+?):(.+)$" ;
sh:maxCount 1;
sh:message "Within AggregationEvent and AssociationEvent, TransactionEvent, parentID is optional, single-valued and must be an IRI/URI" ;
.
epcis:ParentIDForbiddenShape
a sh:PropertyShape;
sh:path epcis:parentID;
sh:name "parentID (forbidden within ObjectEvent or TransformationEvent)" ;
sh:maxCount 0;
sh:message "parentID should not appear within ObjectEvent or TransformationEvent";
.
epcis:TransformationIDConditionsShape
a sh:NodeShape;
sh:targetClass epcis:TransformationEvent;
sh:or(
[sh:and (
[ sh:property epcis:TransformationIDRequiredShape ; ]
[sh:or(
[ sh:property epcis:outputEPCListNonEmptyShape ; ]
[ sh:property epcis:outputQuantityListNonEmptyShape ; ]
[ sh:property epcis:inputEPCListNonEmptyShape ; ]
[ sh:property epcis:inputQuantityListNonEmptyShape ; ]
)]
)]
[sh:and (
[sh:or(
[ sh:property epcis:outputEPCListNonEmptyShape ; ]
[ sh:property epcis:outputQuantityListNonEmptyShape ; ]
)]
[sh:or(
[ sh:property epcis:inputEPCListNonEmptyShape ; ]
[ sh:property epcis:inputQuantityListNonEmptyShape ; ]
)]
)]
);
sh:message "Within each TransformationEvent, transformationID is required unless at least one of (inputEPCList or inputQuantityList) AND at least one of (outputEPCList or outputQuantityList) are specified. If transactionID is specified then at least one of (inputEPCList, inputQuantityList, outputEPCList, outputQuantityList) must be specified.";
.
epcis:TransformationIDRequiredShape
a sh:PropertyShape;
sh:path epcis:transformationID;
sh:name "transformationID" ;
sh:minCount 1;
.
epcis:outputEPCListNonEmptyShape
a sh:PropertyShape;
sh:path epcis:outputEPCList;
sh:name "outputEPCList" ;
sh:minCount 1;
.
epcis:inputEPCListNonEmptyShape
a sh:PropertyShape;
sh:path epcis:inputEPCList;
sh:name "inputEPCList" ;
sh:minCount 1;
.
epcis:outputQuantityListNonEmptyShape
a sh:PropertyShape;
sh:path epcis:outputQuantityList;
sh:name "outputQuantityList" ;
sh:minCount 1;
.
epcis:inputQuantityListNonEmptyShape
a sh:PropertyShape;
sh:path epcis:inputQuantityList;
sh:name "inputQuantityList" ;
sh:minCount 1;
.
epcis:EPCListShape
a sh:PropertyShape ;
sh:path epcis:epcList ;
sh:name "epcList" ;
sh:nodeKind sh:IRI ;
sh:pattern "^(.+?):(.+)$" ;
sh:message "Any values within epcList must be IRIs/URIs" ;
.
epcis:EPCListForbiddenShape
a sh:PropertyShape ;
sh:path epcis:epcList ;
sh:name "epcList (forbidden within AggregationEvent, AssociationEvent or TransformationEvent)" ;
sh:maxCount 0 ;
sh:message "epcList should not appear within AggregationEvent, AssociationEvent or TransformationEvent" ;
.
epcis:InputEPCListShape
a sh:PropertyShape ;
sh:path epcis:inputEPCList ;
sh:name "inputEPCList" ;
sh:nodeKind sh:IRI ;
sh:pattern "^(.+?):(.+)$" ;
sh:message "Any values within inputEPCList must be IRIs/URIs" ;
.
epcis:OutputEPCListShape
a sh:PropertyShape ;
sh:path epcis:outputEPCList ;
sh:name "outputEPCList" ;
sh:nodeKind sh:IRI ;
sh:pattern "^(.+?):(.+)$" ;
sh:message "Any values within outputEPCList must be IRIs/URIs" ;
.
epcis:InputEPCListForbiddenShape
a sh:PropertyShape ;
sh:path epcis:inputEPCList ;
sh:name "inputEPCList (forbidden)" ;
sh:maxCount 0 ;
sh:message "inputEPCList should not appear within ObjectEvent, AggregationEvent, AssociationEvent or TransactionEvent - only within TransformationEvent" ;
.
epcis:OutputEPCListForbiddenShape
a sh:PropertyShape ;
sh:path epcis:outputEPCList ;
sh:name "outputEPCList (forbidden)" ;
sh:maxCount 0 ;
sh:message "outputEPCList should not appear within ObjectEvent, AggregationEvent, AssociationEvent or TransactionEvent - only within TransformationEvent" ;
.
epcis:PersistentDispositionShape
a sh:NodeShape ;
sh:path epcis:persistentDisposition ;
sh:name "persistentDisposition" ;
sh:maxCount 1;
sh:property epcis:SetShape ;
sh:property epcis:UnsetShape ;
sh:property epcis:SpecifySetOrUnsetShape;
sh:message "Within each event, persistentDisposition must not appear more than once, although its properties 'set' and 'unset' may each specify multiple values.";
.
epcis:PersistentDispositionForbiddenShape
a sh:NodeShape ;
sh:path epcis:persistentDisposition ;
sh:name "persistentDisposition (forbidden)" ;
sh:maxCount 0;
sh:message "persistentDisposition may not appear in an AggregationEvent, AssociationEvent or TransactionEvent";
.
epcis:SetShape
a sh:PropertyShape ;
sh:path epcis:set ;
sh:name "set" ;
sh:nodeKind sh:IRI ;
sh:pattern "^(.+?):(.+)$" ;
sh:message "Within persistentDisposition, values of set must be IRIs/URIs" ;
.
epcis:UnsetShape
a sh:PropertyShape ;
sh:path epcis:unset ;
sh:name "unset" ;
sh:nodeKind sh:IRI ;
sh:pattern "^(.+?):(.+)$" ;
sh:message "Within persistentDisposition, values of unset must be IRIs/URIs" ;
.
epcis:SpecifySetOrUnsetShape
a sh:NodeShape ;
sh:or (
[
sh:path epcis:set ;
sh:minCount 1 ;
]
[
sh:path epcis:unset ;
sh:minCount 1 ;
]
);
sh:message "If persistentDisposition is specified within an event, then at least one disposition value must be specified by either of 'set' or 'unset'";
.
epcis:TransformationIDShape
a sh:PropertyShape ;
sh:path epcis:transformationID ;
sh:name "transformationID" ;
sh:nodeKind sh:IRI ;
sh:pattern "^(.+?):(.+)$" ;
sh:maxCount 1;
sh:message "Within a TransformationEvent, transformationID is optional, single-valued and must be an IRI/URI" ;
.
epcis:BizTransactionShape
a sh:NodeShape ;
sh:path epcis:bizTransactionList ;
sh:name "bizTransactionList" ;
sh:nodeKind sh:IRI ;
sh:pattern "^(.+?):(.+)$" ;
sh:property epcis:BizTransactionTypeShape ;
sh:message "Each value of bizTransactionList ('bizTransaction') must be an IRI/URI" ;
.
epcis:BizTransactionTypeShape
a sh:PropertyShape ;
sh:path epcis:bizTransactionType ;
sh:name "type (within epcis:BizTransaction)" ;
sh:nodeKind sh:IRI ;
sh:pattern "^(.+?):(.+)$" ;
sh:maxCount 1;
sh:message "Within each value of bizTransactionList, bizTransactionType ('type') is optional, single-valued and must be an IRI/URI" ;
.
epcis:BizTransactionMandatoryShape
a sh:NodeShape ;
sh:path epcis:bizTransactionList ;
sh:name "bizTransactionList" ;
sh:nodeKind sh:IRI ;
sh:pattern "^(.+?):(.+)$" ;
sh:minCount 1;
sh:property epcis:BizTransactionTypeShape ;
sh:message "Each value of bizTransactionList ('bizTransaction') must be an IRI/URI. Within a TransactionEvent, bizTransactionList must contain at least one value." ;
.
epcis:SourceListShape
a sh:NodeShape ;
sh:path epcis:sourceList ;
sh:name "sourceList" ;
sh:property epcis:SourceShape ;
sh:property epcis:SourceOrDestinationTypeShape ;
.
epcis:DestinationListShape
a sh:NodeShape ;
sh:path epcis:destinationList ;
sh:name "destinationList" ;
sh:property epcis:DestinationShape ;
sh:property epcis:SourceOrDestinationTypeShape ;
.
epcis:SourceShape
a sh:PropertyShape ;
sh:path epcis:sourceOrDestination ;
sh:name "'source' within sourceList" ;
sh:nodeKind sh:IRI ;
sh:pattern "^(.+?):(.+)$" ;
sh:minCount 1;
sh:maxCount 1;
sh:message "Within sourceList, sourceOrDestination ('source') is mandatory, single-valued and must be an IRI/URI" ;
.
epcis:DestinationShape
a sh:PropertyShape ;
sh:path epcis:sourceOrDestination ;
sh:name "'destination' within destinationList" ;
sh:nodeKind sh:IRI ;
sh:pattern "^(.+?):(.+)$" ;
sh:minCount 1;
sh:maxCount 1;
sh:message "Within destinationList, sourceOrDestination ('destination') is mandatory, single-valued and must be an IRI/URI" ;
.
epcis:SourceOrDestinationTypeShape
a sh:PropertyShape ;
sh:path epcis:sourceOrDestinationType ;
sh:name "'type' within sourceList or destinationList" ;
sh:nodeKind sh:IRI ;
sh:pattern "^(.+?):(.+)$" ;
sh:minCount 1;
sh:maxCount 1;
sh:message "Within sourceList or destinationList, sourceOrDestinationType ('type') is mandatory, single-valued and must be an IRI/URI" ;
.
epcis:QuantityElementShape
a sh:NodeShape ;
sh:path epcis:quantityList ;
sh:name "quantityList" ;
sh:property epcis:EPCClassShape ;
sh:property epcis:QuantityShape ;
sh:property epcis:UOMShape ;
.
epcis:QuantityElementForbiddenShape
a sh:NodeShape ;
sh:path epcis:quantityList ;
sh:name "quantityList (forbidden)" ;
sh:maxCount 0;
sh:message "quantityList should not appear within AggregationEvent, AssociationEvent or TransformationEvent";
.
epcis:ChildQuantityElementShape
a sh:NodeShape ;
sh:path epcis:childQuantityList ;
sh:name "childQuantityList" ;
sh:property epcis:EPCClassShape ;
sh:property epcis:QuantityShape ;
sh:property epcis:UOMShape ;
.
epcis:ChildQuantityElementForbiddenShape
a sh:NodeShape ;
sh:path epcis:childQuantityList ;
sh:name "childQuantityList (forbidden)" ;
sh:maxCount 0;
sh:message "childQuantityList should not appear within ObjectEvent, TransactionEvent or TransformationEvent";
.
epcis:InputQuantityElementShape
a sh:NodeShape ;
sh:path epcis:inputQuantityList ;
sh:name "inputQuantityList" ;
sh:property epcis:EPCClassShape ;
sh:property epcis:QuantityShape ;
sh:property epcis:UOMShape ;
.
epcis:OutputQuantityElementShape
a sh:NodeShape ;
sh:path epcis:outputQuantityList ;
sh:name "outputQuantityList" ;
sh:property epcis:EPCClassShape ;
sh:property epcis:QuantityShape ;
sh:property epcis:UOMShape ;
.
epcis:InputQuantityElementForbiddenShape
a sh:NodeShape ;
sh:path epcis:inputQuantityList ;
sh:name "inputQuantityList (forbidden)" ;
sh:maxCount 0;
sh:message "inputQuantityList should not appear within ObjectEvent, AggregationEvent, AssociationEvent or TransactionEvent - only within TransformationEvent" ;
.
epcis:OutputQuantityElementForbiddenShape
a sh:NodeShape ;
sh:path epcis:outputQuantityList ;
sh:name "outputQuantityList (forbidden)" ;
sh:maxCount 0;
sh:message "outputQuantityList should not appear within ObjectEvent, AggregationEvent, AssociationEvent or TransactionEvent - only within TransformationEvent" ;
.
epcis:ILMDConditionallyForbiddenShape
a sh:NodeShape;
sh:or(
[ sh:path epcis:ilmd;
sh:maxCount 0; ]
[ sh:path epcis:action;
sh:in ("ADD"); ]
)
.
epcis:EPCClassShape
a sh:PropertyShape ;
sh:path epcis:epcClass ;
sh:name "epcClass" ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:nodeKind sh:IRI ;
sh:pattern "^(.+?):(.+)$" ;
sh:message "Within a QuantityElement, epcClass is mandatory and must be an IRI/URI and with only one value" ;
.
epcis:QuantityShape
a sh:PropertyShape ;
sh:path epcis:quantity ;
sh:name "quantity" ;
sh:minCount 0 ;
sh:maxCount 1 ;
sh:datatype xsd:decimal ;
sh:not [ sh:hasValue "NaN"^^xsd:decimal ; ];
sh:message "Within a QuantityElement, quantity is optional and must be an xsd:decimal with only one value" ;
.
epcis:UOMShape
a sh:PropertyShape ;
sh:path epcis:uom ;
sh:name "uom" ;
sh:datatype xsd:string ;
sh:maxCount 1 ;
sh:pattern "^[A-Z0-9]{2,3}$";
sh:message "uom must be an xsd:string and can only have one value" ;
.
epcis:UOMAnyStringShape
a sh:PropertyShape ;
sh:path epcis:uom ;
sh:name "uom" ;
sh:datatype xsd:string ;
sh:maxCount 1 ;
sh:message "uom must be an xsd:string and can only have one value" ;
.
epcis:ErrorDeclarationShape
a sh:NodeShape ;
sh:path epcis:errorDeclaration ;
sh:name "errorDeclaration" ;
sh:property epcis:CorrectiveEventIDsShape ;
sh:property epcis:ReasonShape ;
sh:property epcis:DeclarationTimeShape ;
sh:maxCount 1;
sh:message "errorDeclaration is optional and single-valued within each event";
.
epcis:CorrectiveEventIDsShape
a sh:PropertyShape ;
sh:path epcis:correctiveEventIDs ;
sh:name "correctiveEventIDs" ;
sh:nodeKind sh:IRI ;
sh:pattern "^(.+?):(.+)$" ;
sh:message "Within errorDeclaration, correctiveEventIDs must be IRIs/URIs" ;
.
epcis:ReasonShape
a sh:PropertyShape ;
sh:path epcis:reason ;
sh:name "reason" ;
sh:maxCount 1;
sh:nodeKind sh:IRI ;
sh:pattern "^(.+?):(.+)$" ;
sh:message "Within errorDeclaration, reason is optional but must be single-valued and an IRI/URI" ;
.
epcis:DeclarationTimeShape
a sh:PropertyShape ;
sh:path epcis:declarationTime ;
sh:name "declarationTime" ;
sh:datatype xsd:dateTimeStamp ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:message "Within errorDeclaration, declarationTime is mandatory and must be an xsd:dateTimeStamp" ;
.
epcis:SensorElementShape
a sh:NodeShape ;
sh:path epcis:sensorElementList ;
sh:name "sensorElementList" ;
sh:property epcis:SensorMetadataShape ;
sh:property epcis:SensorReportShape ;
.
epcis:SensorReportShape
a sh:NodeShape ;
sh:path epcis:sensorReport ;
sh:name "sensorReport" ;
sh:property epcis:TimeShape ;
sh:property epcis:DeviceIDShape ;
sh:property epcis:DeviceMetadataShape ;
sh:property epcis:RawDataShape ;
sh:property epcis:DataProcessingMethodShape ;
sh:property epcis:MeasurementTypeShape ;
sh:property epcis:ExceptionShape ;
sh:property epcis:MicroorganismShape ;
sh:property epcis:ChemicalSubstanceShape ;
sh:property epcis:CoordinateReferenceSystemShape ;
sh:property epcis:URIValueShape ;
sh:property epcis:ValueShape ;
sh:property epcis:MinValueShape ;
sh:property epcis:MaxValueShape ;
sh:property epcis:MeanValueShape ;
sh:property epcis:SDevShape ;
sh:property epcis:PercRankShape ;
sh:property epcis:PercValueShape ;
sh:property epcis:BooleanValueShape ;
sh:property epcis:HexBinaryValueShape ;
sh:property epcis:StringValueShape ;
sh:property epcis:UOMAnyStringShape ;
sh:property epcis:ComponentShape ;
sh:minCount 1 ;
.
epcis:SensorMetadataShape
a sh:NodeShape ;
sh:path epcis:sensorMetadata ;
sh:name "sensorMetadata" ;
sh:property epcis:TimeShape ;
sh:property epcis:StartTimeShape ;
sh:property epcis:EndTimeShape ;
sh:property epcis:DeviceIDShape ;
sh:property epcis:DeviceMetadataShape ;
sh:property epcis:RawDataShape ;
sh:property epcis:DataProcessingMethodShape ;
sh:property epcis:BizRulesShape ;
sh:maxCount 1 ;
.
epcis:TimeShape
a sh:PropertyShape ;
sh:path epcis:time ;
sh:name "time" ;
sh:datatype xsd:dateTimeStamp ;
sh:maxCount 1 ;
sh:message "Within each value of sensorReport or sensorMetadata, tine is optional but must be an xsd:dateTimeStamp and can only have one value" ;
.
epcis:StartTimeShape
a sh:PropertyShape ;
sh:path epcis:startTime ;
sh:name "startTime" ;
sh:datatype xsd:dateTimeStamp ;
sh:maxCount 1 ;
sh:message "Within each value of sensorMetadata, startTime is optional but must be an xsd:dateTimeStamp and can only have one value" ;
.
epcis:EndTimeShape
a sh:PropertyShape ;
sh:path epcis:endTime ;
sh:name "endTime" ;
sh:datatype xsd:dateTimeStamp ;
sh:maxCount 1 ;
sh:message "Within each value of sensorMetadata, endTime is optional but must be an xsd:dateTimeStamp and can only have one value" ;
.
epcis:DeviceIDShape
a sh:PropertyShape ;
sh:path epcis:deviceID ;
sh:name "deviceID" ;
sh:nodeKind sh:IRI ;
sh:pattern "^(.+?):(.+)$" ;
sh:maxCount 1 ;
sh:message "Within each value of sensorReport or sensorMetadata, deviceID is optional but must be an IRI/URI and can only have one value" ;
.
epcis:DeviceMetadataShape
a sh:PropertyShape ;
sh:path epcis:deviceMetadata ;
sh:name "deviceMetadata" ;
sh:nodeKind sh:IRI ;
sh:pattern "^(.+?):(.+)$" ;
sh:maxCount 1 ;
sh:message "Within each value of sensorReport or sensorMetadata, deviceMetadata is optional but must be an IRI/URI and can only have one value" ;
.
epcis:RawDataShape
a sh:PropertyShape ;
sh:path epcis:rawData ;
sh:name "rawData" ;
sh:nodeKind sh:IRI ;
sh:pattern "^(.+?):(.+)$" ;
sh:maxCount 1 ;
sh:message "Within each value of sensorReport or sensorMetadata, rawData is optional but must be an IRI/URI and can only have one value" ;
.
epcis:DataProcessingMethodShape
a sh:PropertyShape ;
sh:path epcis:dataProcessingMethod ;
sh:name "dataProcessingMethod" ;
sh:nodeKind sh:IRI ;
sh:pattern "^(.+?):(.+)$" ;
sh:maxCount 1 ;
sh:message "Within each value of sensorReport or sensorMetadata, dataProcessingMethod is optional but must be an IRI/URI and can only have one value" ;
.
epcis:BizRulesShape
a sh:PropertyShape ;
sh:path epcis:bizRules ;
sh:name "bizRules" ;
sh:nodeKind sh:IRI ;
sh:pattern "^(.+?):(.+)$" ;
sh:maxCount 1 ;
sh:message "Within each value of sensorReport or sensorMetadata, bizRules is optional but must be an IRI/URI and can only have one value" ;
.
epcis:MeasurementTypeShape
a sh:PropertyShape ;
sh:path epcis:measurementType ;
sh:name "measurementType" ;
sh:nodeKind sh:IRI ;
sh:pattern "^(.+?):(.+)$" ;
sh:maxCount 1 ;
sh:message "Within each value of sensorReport, measurementType is optional but must be an IRI/URI and can only have one value" ;
.
epcis:ExceptionShape
a sh:PropertyShape ;
sh:path epcis:exception ;
sh:name "exception" ;
sh:nodeKind sh:IRI ;
sh:pattern "^(.+?):(.+)$" ;
sh:maxCount 1 ;
sh:message "Within each value of sensorReport, exception is optional but must be an IRI/URI and can only have one value" ;
.
epcis:MicroorganismShape
a sh:PropertyShape ;
sh:path epcis:microorganism ;
sh:name "microorganism" ;
sh:nodeKind sh:IRI ;
sh:pattern "^(.+?):(.+)$" ;
sh:maxCount 1 ;
sh:message "Within each value of sensorReport, microorganism is optional but must be an IRI/URI and can only have one value" ;
.