Skip to content

Commit a4384a0

Browse files
committed
reduce endtimestamp nesting
1 parent bd5569f commit a4384a0

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

rocrate_validator/profiles/five-safes-crate/shape_library.ttl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,18 @@
2929

3030
five-safes-crate:TimeStamp
3131
a sh:NodeShape ;
32+
sh:description "why a description" ;
3233
sh:datatype xsd:string ;
33-
sh:pattern "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(Z|[+-][0-9]{2}:[0-9]{2})$" .
34+
sh:pattern "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(Z|[+-][0-9]{2}:[0-9]{2})$" ;
35+
sh:message "why is this needed?" .
3436

3537

3638

3739
five-safes-crate:EndTimeStamp
3840
a sh:NodeShape ;
3941
sh:property [
40-
sh:node five-safes-crate:TimeStamp ;
42+
sh:datatype xsd:string ;
43+
sh:pattern "^[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(Z|[+-][0-9]{2}:[0-9]{2})$" ;
4144
sh:description "End Time Check" ;
4245
sh:path schema:endTime ;
4346
sh:minCount 1 ;

rocrate_validator/profiles/five-safes-crate/should/4_sign_off.ttl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,9 @@ five-safes-crate:SignOffPhaseEndTime
152152
sh:node five-safes-crate:EndTimeStamp ;
153153
sh:target [
154154
a five-safes-crate:EndTimeSearch ;
155-
sh:additionalType shp:SignOff ;
156-
].
155+
five-safes-crate:addtype shp:SignOff ;
156+
] ;
157+
sh:message "Sign Off phase SHOULD have a compliant EndTime"
158+
.
157159

158160

0 commit comments

Comments
 (0)