Skip to content

Commit 29c0676

Browse files
committed
switch to target subjects for timestamps so parent id captured
1 parent 3dea19c commit 29c0676

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

rocrate_validator/profiles/five-safes-crate/must/3_timestamp_format.ttl

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,22 @@ five-safes-crate:TimeStampFormat
2626
a sh:NodeShape ;
2727
sh:name "Timestamp Format" ;
2828
sh:description "Timestamps MUST follow the RFC 3339 standard (YYYY-MM-DD'T'hh:mm:ss[.fraction](Z | ±hh:mm))." ;
29-
sh:targetObjectsOf schema:startTime, schema:endTime;
30-
sh:pattern "^[0-9]{4}-[0-9]{2}-[0-9]{2}[Tt][0-9]{2}:[0-9]{2}:[0-9]{2}([.|,][0-9]+)?(Z|z|[+-][0-9]{2}:[0-9]{2})$" ;
31-
sh:severity sh:Violation ;
32-
sh:message "All `startTime` and `endTime` values MUST follow the RFC 3339 standard (YYYY-MM-DD'T'hh:mm:ss[.fraction](Z | ±hh:mm))." .
29+
sh:targetSubjectsOf schema:startTime, schema:endTime;
30+
sh:property [
31+
a sh:PropertyShape ;
32+
sh:name "End TimeStamp" ;
33+
sh:path schema:endTime ;
34+
sh:minCount 0 ;
35+
sh:pattern "^[0-9]{4}-[0-9]{2}-[0-9]{2}[Tt][0-9]{2}:[0-9]{2}:[0-9]{2}([.|,][0-9]+)?(Z|z|[+-][0-9]{2}:[0-9]{2})$" ;
36+
sh:severity sh:Violation ;
37+
sh:message "All `startTime` and `endTime` values MUST follow the RFC 3339 standard (YYYY-MM-DD'T'hh:mm:ss[.fraction](Z | ±hh:mm))." ;
38+
] ;
39+
sh:property [
40+
a sh:PropertyShape ;
41+
sh:name "Start TimeStamp" ;
42+
sh:path schema:startTime ;
43+
sh:minCount 0 ;
44+
sh:pattern "^[0-9]{4}-[0-9]{2}-[0-9]{2}[Tt][0-9]{2}:[0-9]{2}:[0-9]{2}([.|,][0-9]+)?(Z|z|[+-][0-9]{2}:[0-9]{2})$" ;
45+
sh:severity sh:Violation ;
46+
sh:message "All `startTime` and `endTime` values MUST follow the RFC 3339 standard (YYYY-MM-DD'T'hh:mm:ss[.fraction](Z | ±hh:mm))." ;
47+
] .

0 commit comments

Comments
 (0)