2222@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
2323
2424
25+ # === MUST shapes ===#
26+
2527five-safes-crate:RootDataEntityMentionsCreateAction
2628 a sh:NodeShape ;
2729 sh:name " RootDataEntity" ;
@@ -54,7 +56,16 @@ five-safes-crate:CreateActionInstrumentAndStatus
5456 sh:minCount 1 ;
5557 sh:severity sh:Violation ;
5658 sh:message " `CreateAction` MUST have the `instrument` property" ;
57- ] ;
59+ ] .
60+
61+
62+ five-safes-crate:CreateActionInstrumentAndStatus
63+ a sh:NodeShape ;
64+ sh:name " CreateAction" ;
65+ sh:targetClass schema:CreateAction ;
66+ sh:description " " ;
67+ sh:severity sh:Violation ;
68+
5869 sh:sparql [
5970 a sh:SPARQLConstraint ;
6071 sh:name " instrument" ;
@@ -67,7 +78,6 @@ five-safes-crate:CreateActionInstrumentAndStatus
6778 FILTER (?instrument != ?main)
6879 }
6980 """ ;
70- sh:severity sh:Violation ;
7181 sh:message " `CreateAction` --> `instrument` MUST reference the same entity as `Root Data Entity` --> `mainEntity`" ;
7282 ] ;
7383 sh:sparql [
@@ -81,6 +91,25 @@ five-safes-crate:CreateActionInstrumentAndStatus
8191 FILTER NOT EXISTS { ?object a ?type . }
8292 }
8393 """ ;
84- sh:severity sh:Violation ;
8594 sh:message " Each `object` in `CreateAction` MUST reference an existing entity." ;
86- ] .
95+ ] .
96+
97+
98+ # === SHOULD shapes ===#
99+
100+ # CreateAction SHOULD have object property with minimum cardinality 1
101+ five-safes-crate:CreateActionShouldHaveObjectProperty
102+ a sh:NodeShape ;
103+ sh:targetClass schema:CreateAction ;
104+ sh:name " CreateAction" ;
105+ sh:property [
106+ sh:path schema:object ;
107+ sh:minCount 1 ;
108+ sh:nodeKind sh:IRI ;
109+ sh:severity sh:Warning ;
110+ sh:message " `CreateAction` SHOULD have the property `object` with IRI values." ;
111+ ] .
112+
113+
114+ # === MAY shapes ===#
115+ # (none)
0 commit comments