@@ -45,25 +45,13 @@ five-safes-crate:WorkflowexecutionObjectHasCompliantStartTimeFormat
4545 a sh:NodeShape ;
4646 sh:name " WorkflowExecution" ;
4747 sh:description " The startTime of the workflow execution object MUST follow the RFC 3339 standard (YYYY-MM-DD'T'hh:mm:ss[.fraction](Z | ±hh:mm))." ;
48-
49- sh:target [
50- a sh:SPARQLTarget ;
51- sh:select """
52- PREFIX schema: <http://schema.org/>
53- PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
54-
55- SELECT ?this
56- WHERE {
57- ?this rdf:type schema:CreateAction ;
58- schema:startTime ?time .
59- }
60- """ ;
61- ] ;
48+ sh:targetClass schema:CreateAction ;
6249
6350 sh:property [
6451 a sh:PropertyShape ;
6552 sh:name " StartTime" ;
6653 sh:path schema:startTime ;
54+ sh:minCount 0 ;
6755 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})$" ;
6856 sh:severity sh:Violation ;
6957 sh:message " The startTime of the workflow execution object MUST follow the RFC 3339 standard (YYYY-MM-DD'T'hh:mm:ss[.fraction](Z | ±hh:mm))." ;
@@ -74,25 +62,13 @@ five-safes-crate:WorkflowexecutionObjectHasCompliantEndTimeFormat
7462 a sh:NodeShape ;
7563 sh:name " WorkflowExecution" ;
7664 sh:description " The endTime of the workflow execution object MUST follow the RFC 3339 standard (YYYY-MM-DD'T'hh:mm:ss[.fraction](Z | ±hh:mm))." ;
77-
78- sh:target [
79- a sh:SPARQLTarget ;
80- sh:select """
81- PREFIX schema: <http://schema.org/>
82- PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
83-
84- SELECT ?this
85- WHERE {
86- ?this rdf:type schema:CreateAction ;
87- schema:endTime ?time .
88- }
89- """ ;
90- ] ;
65+ sh:targetClass schema:CreateAction ;
9166
9267 sh:property [
9368 a sh:PropertyShape ;
9469 sh:name " EndTime" ;
9570 sh:path schema:endTime ;
71+ sh:minCount 0 ;
9672 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})$" ;
9773 sh:severity sh:Violation ;
9874 sh:message " The endTime of the workflow execution object MUST follow the RFC 3339 standard (YYYY-MM-DD'T'hh:mm:ss[.fraction](Z | ±hh:mm))." ;
0 commit comments