Skip to content

Commit 5273986

Browse files
committed
Merged 7_requested_workflow_run.tll files.
1 parent 8fc209e commit 5273986

File tree

2 files changed

+33
-40
lines changed

2 files changed

+33
-40
lines changed

rocrate_validator/profiles/five-safes-crate/must/7_requested_workflow_run.ttl renamed to rocrate_validator/profiles/five-safes-crate/7_requested_workflow_run.ttl

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
2323

2424

25+
#=== MUST shapes ===#
26+
2527
five-safes-crate:RootDataEntityMentionsCreateAction
2628
a sh:NodeShape ;
2729
sh:name "RootDataEntity" ;
@@ -54,7 +56,16 @@ five-safes-crate:CreateActionInstrumentAndStatus
5456
sh:minCount 1 ;
5557
sh:severity sh:Violation ;
5658
sh:message "`CreateAction` MUST have the `instrument` property" ;
57-
] ;
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+
5869
sh:sparql [
5970
a sh:SPARQLConstraint ;
6071
sh:name "instrument" ;
@@ -67,7 +78,6 @@ five-safes-crate:CreateActionInstrumentAndStatus
6778
FILTER (?instrument != ?main)
6879
}
6980
""" ;
70-
sh:severity sh:Violation ;
7181
sh:message "`CreateAction` --> `instrument` MUST reference the same entity as `Root Data Entity` --> `mainEntity`" ;
7282
] ;
7383
sh:sparql [
@@ -81,6 +91,25 @@ five-safes-crate:CreateActionInstrumentAndStatus
8191
FILTER NOT EXISTS { ?object a ?type . }
8292
}
8393
""" ;
84-
sh:severity sh:Violation ;
8594
sh:message "Each `object` in `CreateAction` MUST reference an existing entity." ;
86-
] .
95+
] .
96+
97+
98+
#=== SHOULD shapes ===#
99+
100+
# CreateAction SHOULD have object property with minimum cardinality 1
101+
five-safes-crate:CreateActionShouldHaveObjectProperty
102+
a sh:NodeShape ;
103+
sh:targetClass schema:CreateAction ;
104+
sh:name "CreateAction" ;
105+
sh:property [
106+
sh:path schema:object ;
107+
sh:minCount 1 ;
108+
sh:nodeKind sh:IRI ;
109+
sh:severity sh:Warning ;
110+
sh:message "`CreateAction` SHOULD have the property `object` with IRI values." ;
111+
] .
112+
113+
114+
#=== MAY shapes ===#
115+
# (none)

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

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)