You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sh:message "Sign Off phase MUST have a human-readable name string." ;
51
+
] ;
52
+
53
+
sh:property [
54
+
sh:path rdf:type ;
55
+
sh:minCount 1 ;
56
+
sh:hasValue schema:AssessAction;
57
+
sh:severity sh:Violation ;
58
+
sh:message "Sign Off phase MUST be a `AssessAction`." ;
59
+
] .
60
+
61
+
five-safes-crate:SignOffObjectHasActionStatus
62
+
a sh:NodeShape ;
63
+
sh:name "SignOffStatus" ;
64
+
sh:description "Sign Off Phase Action Status" ;
65
+
66
+
sh:target [
67
+
a sh:SPARQLTarget ;
68
+
sh:select """
69
+
PREFIX schema: <http://schema.org/>
70
+
PREFIX shp: <https://w3id.org/shp#>
71
+
SELECT ?this
72
+
WHERE {
73
+
?this schema:additionalType shp:SignOff ;
74
+
schema:actionStatus ?status .
75
+
}
76
+
""" ;
77
+
] ;
78
+
79
+
sh:property [
80
+
a sh:PropertyShape ;
81
+
sh:name "actionStatus" ;
82
+
sh:description "The value of actionStatus MUST be one of the allowed values." ;
83
+
sh:path schema:actionStatus ;
84
+
sh:in (
85
+
"http://schema.org/PotentialActionStatus"
86
+
"http://schema.org/ActiveActionStatus"
87
+
"http://schema.org/CompletedActionStatus"
88
+
"http://schema.org/FailedActionStatus"
89
+
) ;
90
+
sh:severity sh:Violation ;
91
+
sh:message "The value of actionStatus MUST be one of the allowed values: PotentialActionStatus; ActiveActionStatus; CompletedActionStatus; FailedActionStatus." ;
92
+
] .
93
+
94
+
95
+
#=== SHOULD shapes ===#
96
+
26
97
# There SHOULD be a Sign-Off Phase
27
98
five-safes-crate:SignOffPhase
28
99
a sh:NodeShape ;
29
100
sh:targetClass ro-crate:RootDataEntity ;
30
101
sh:description "Check the Sign-Off Phase" ;
102
+
sh:severity sh:Warning ;
103
+
sh:name "SignOffPhase" ;
104
+
31
105
sh:sparql [
32
106
sh:select """
33
107
PREFIX schema: <http://schema.org/>
@@ -39,7 +113,6 @@ five-safes-crate:SignOffPhase
39
113
}
40
114
}
41
115
""" ;
42
-
sh:severity sh:Warning ;
43
116
sh:message "There SHOULD be a Sign-Off Phase in the Final RO-Crate" ;
0 commit comments