Skip to content

Commit ce2e393

Browse files
committed
reduce endtimestamp nesting
1 parent a79998e commit ce2e393

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-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: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,5 +153,9 @@ five-safes-crate:SignOffPhaseEndTime
153153
sh:node five-safes-crate:EndTimeStamp ;
154154
sh:target [
155155
a five-safes-crate:EndTimeSearch ;
156-
sh:additionalType shp:SignOff ;
157-
].
156+
five-safes-crate:addtype shp:SignOff ;
157+
] ;
158+
sh:message "Sign Off phase SHOULD have a compliant EndTime"
159+
.
160+
161+

0 commit comments

Comments
 (0)