Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .


#=== MUST shapes ===#

five-safes-crate:AgentIsMemberOf
a sh:NodeShape ;
sh:name "Requesting Agent" ;
Expand Down Expand Up @@ -49,6 +51,7 @@ five-safes-crate:AgentIsMemberOf
five-safes-crate:AgentProjectIntersection
a sh:NodeShape ;
sh:name "Agent Project Intersection" ;
sh:severity sh:Violation ;
sh:description """At least one Project referenced by Agent -> memberOf MUST be included in the set of Projects referenced by RootDataEntity -> sourceOrganization.""" ;
sh:target [
a sh:SPARQLTarget ;
Expand Down Expand Up @@ -77,6 +80,31 @@ five-safes-crate:AgentProjectIntersection
}
}
""" ;
sh:severity sh:Violation ;
sh:message """At least one Project referenced by Agent -> memberOf MUST be included in the set of Projects referenced by RootDataEntity -> sourceOrganization.""" ;
] .


#=== SHOULD shapes ===#

five-safes-crate:AgentIsMemberOf
a sh:NodeShape ;
sh:name "Requesting Agent" ;
sh:target [
a sh:SPARQLTarget ;
sh:prefixes ro-crate:sparqlPrefixes ;
sh:select """
SELECT DISTINCT ?this WHERE {
?action a schema:CreateAction ;
schema:agent ?this .
}
"""
] ;

sh:property [
a sh:PropertyShape ;
sh:name "memberOf" ;
sh:path schema:memberOf;
sh:minCount 1 ;
sh:severity sh:Warning ;
sh:message """The Requesting Agent SHOULD have a `memberOf` property.""" ;
] .

This file was deleted.