Skip to content

Commit 58df150

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

1 file changed

Lines changed: 18 additions & 25 deletions

File tree

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

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

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

27-
five-safes-crate:RootDataEntityMentionsCreateAction
27+
five-safes-crate:RootDataEntityMentionsWorkflowRunAction
2828
a sh:NodeShape ;
2929
sh:name "RootDataEntity" ;
3030
sh:targetClass ro-crate:RootDataEntity ;
@@ -48,22 +48,6 @@ five-safes-crate:WorkflowRunActionExistence
4848
sh:name "RootDataEntity" ;
4949
sh:targetClass ro-crate:RootDataEntity ;
5050
sh:description "" ;
51-
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 "" ;
6751
sh:severity sh:Violation ;
6852

6953
sh:sparql [
@@ -78,8 +62,17 @@ five-safes-crate:CreateActionInstrumentAndStatus
7862
}
7963
}
8064
""" ;
81-
sh:message "`CreateAction` --> `instrument` MUST reference the same entity as `Root Data Entity` --> `mainEntity`" ;
82-
] ;
65+
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" ;
66+
] .
67+
68+
69+
five-safes-crate:WorkflowRunObject
70+
a sh:NodeShape ;
71+
sh:name "WorkflowRunAction" ;
72+
sh:targetClass ro-crate:WorkflowRunAction ;
73+
sh:description "" ;
74+
sh:severity sh:Violation ; # Apply to all property shapes / constraints below
75+
8376
sh:sparql [
8477
a sh:SPARQLConstraint ;
8578
sh:prefixes ro-crate:sparqlPrefixes ;
@@ -91,23 +84,23 @@ five-safes-crate:CreateActionInstrumentAndStatus
9184
FILTER NOT EXISTS { ?object a ?type . }
9285
}
9386
""" ;
94-
sh:message "Each `object` in `CreateAction` MUST reference an existing entity." ;
87+
sh:message "In the `CreateAction` entity corresponding to the workflow run, each `object` MUST reference an existing entity." ;
9588
] .
9689

9790

9891
#=== SHOULD shapes ===#
9992

100-
# CreateAction SHOULD have object property with minimum cardinality 1
101-
five-safes-crate:CreateActionShouldHaveObjectProperty
93+
# WorkflowRunAction SHOULD have object property with minimum cardinality 1
94+
five-safes-crate:WorkflowRunActionShouldHaveObjectProperty
10295
a sh:NodeShape ;
103-
sh:targetClass schema:CreateAction ;
104-
sh:name "CreateAction" ;
96+
sh:targetClass ro-crate:WorkflowRunAction ;
97+
sh:name "WorkflowRunAction" ;
10598
sh:property [
10699
sh:path schema:object ;
107100
sh:minCount 1 ;
108101
sh:nodeKind sh:IRI ;
109102
sh:severity sh:Warning ;
110-
sh:message "`CreateAction` SHOULD have the property `object` with IRI values." ;
103+
sh:message "`CreateAction` (corresponding to the workflow run) SHOULD have the property `object` with IRI values." ;
111104
] .
112105

113106

0 commit comments

Comments
 (0)