Skip to content

Commit 999d98c

Browse files
committed
Merged 1_requesting_agent.ttl files.
1 parent 8fc209e commit 999d98c

File tree

2 files changed

+33
-47
lines changed

2 files changed

+33
-47
lines changed

rocrate_validator/profiles/five-safes-crate/must/1_requesting_agent.ttl renamed to rocrate_validator/profiles/five-safes-crate/1_requesting_agent.ttl

Lines changed: 33 additions & 1 deletion
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:AgentIsMemberOf
2628
a sh:NodeShape ;
2729
sh:name "Requesting Agent" ;
@@ -79,4 +81,34 @@ five-safes-crate:AgentProjectIntersection
7981
""" ;
8082
sh:severity sh:Violation ;
8183
sh:message """At least one Project referenced by Agent -> memberOf MUST be included in the set of Projects referenced by RootDataEntity -> sourceOrganization.""" ;
82-
] .
84+
] .
85+
86+
87+
#=== SHOOULD shapes ===#
88+
89+
five-safes-crate:AgentIsMemberOf
90+
a sh:NodeShape ;
91+
sh:name "Requesting Agent" ;
92+
sh:target [
93+
a sh:SPARQLTarget ;
94+
sh:prefixes ro-crate:sparqlPrefixes ;
95+
sh:select """
96+
SELECT DISTINCT ?this WHERE {
97+
?action a schema:CreateAction ;
98+
schema:agent ?this .
99+
}
100+
"""
101+
] ;
102+
103+
sh:property [
104+
a sh:PropertyShape ;
105+
sh:name "memberOf" ;
106+
sh:path schema:memberOf;
107+
sh:minCount 1 ;
108+
sh:severity sh:Warning ;
109+
sh:message """The Requesting Agent SHOULD have a `memberOf` property.""" ;
110+
] .
111+
112+
113+
#=== MAY shapes ===#
114+
# (none)

rocrate_validator/profiles/five-safes-crate/should/1_requesting_agent.ttl

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

0 commit comments

Comments
 (0)