Skip to content

Commit dad585a

Browse files
committed
modified rocrate_validator/profiles/five-safes-crate/7_requested_workflow_run.ttl
1 parent b1d51f1 commit dad585a

1 file changed

Lines changed: 26 additions & 18 deletions

File tree

rocrate_validator/profiles/five-safes-crate/7_requested_workflow_run.ttl

Lines changed: 26 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
#=== MUST shapes ===#
2626

27-
five-safes-crate:RootDataEntityMentionsWorkflowRunAction
27+
five-safes-crate:RootDataEntityMentionsCreateAction
2828
a sh:NodeShape ;
2929
sh:name "RootDataEntity" ;
3030
sh:targetClass ro-crate:RootDataEntity ;
@@ -49,6 +49,23 @@ five-safes-crate:WorkflowRunActionExistence
4949
sh:targetClass ro-crate:RootDataEntity ;
5050
sh:description "" ;
5151

52+
sh:property [
53+
a sh:PropertyShape ;
54+
sh:name "instrument" ;
55+
sh:path schema:instrument;
56+
sh:minCount 1 ;
57+
sh:severity sh:Violation ;
58+
sh:message "`CreateAction` MUST have the `instrument` property" ;
59+
] .
60+
61+
62+
five-safes-crate:CreateActionInstrumentAndStatus
63+
a sh:NodeShape ;
64+
sh:name "CreateAction" ;
65+
sh:targetClass schema:CreateAction ;
66+
sh:description "" ;
67+
sh:severity sh:Violation ;
68+
5269
sh:sparql [
5370
a sh:SPARQLConstraint ;
5471
sh:name "WorkflowRunAction" ;
@@ -61,17 +78,8 @@ five-safes-crate:WorkflowRunActionExistence
6178
}
6279
}
6380
""" ;
64-
sh:message "The CreateAction entity corresponding to the workflow MUST reference, as an instrument, the entity that is referenced as mainEntity by the RO-Crate" ;
65-
] .
66-
67-
68-
five-safes-crate:WorkflowRunObject
69-
a sh:NodeShape ;
70-
sh:name "WorkflowRunAction" ;
71-
sh:targetClass ro-crate:WorkflowRunAction ;
72-
sh:description "" ;
73-
sh:severity sh:Violation ; # Apply to all property shapes / constraints below
74-
81+
sh:message "`CreateAction` --> `instrument` MUST reference the same entity as `Root Data Entity` --> `mainEntity`" ;
82+
] ;
7583
sh:sparql [
7684
a sh:SPARQLConstraint ;
7785
sh:prefixes ro-crate:sparqlPrefixes ;
@@ -83,23 +91,23 @@ five-safes-crate:WorkflowRunObject
8391
FILTER NOT EXISTS { ?object a ?type . }
8492
}
8593
""" ;
86-
sh:message "In the `CreateAction` entity corresponding to the workflow run, each `object` MUST reference an existing entity." ;
94+
sh:message "Each `object` in `CreateAction` MUST reference an existing entity." ;
8795
] .
8896

8997

9098
#=== SHOULD shapes ===#
9199

92-
# WorkflowRunAction SHOULD have object property with minimum cardinality 1
93-
five-safes-crate:WorkflowRunActionShouldHaveObjectProperty
100+
# CreateAction SHOULD have object property with minimum cardinality 1
101+
five-safes-crate:CreateActionShouldHaveObjectProperty
94102
a sh:NodeShape ;
95-
sh:targetClass ro-crate:WorkflowRunAction ;
96-
sh:name "WorkflowRunAction" ;
103+
sh:targetClass schema:CreateAction ;
104+
sh:name "CreateAction" ;
97105
sh:property [
98106
sh:path schema:object ;
99107
sh:minCount 1 ;
100108
sh:nodeKind sh:IRI ;
101109
sh:severity sh:Warning ;
102-
sh:message "`CreateAction` (corresponding to the workflow run) SHOULD have the property `object` with IRI values." ;
110+
sh:message "`CreateAction` SHOULD have the property `object` with IRI values." ;
103111
] .
104112

105113

0 commit comments

Comments
 (0)