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,7 @@
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .


#=== MUST shapes ===#

five-safes-crate:CreateActionHasAgent
a sh:NodeShape ;
Expand Down Expand Up @@ -60,4 +61,33 @@ five-safes-crate:CreateActionHasAgent
sh:nodeKind sh:IRI ;
sh:severity sh:Violation ;
sh:message "The affiliation of a CreateAction's agent MUST be a contextual entity with type Organization." ;
] .
] .


#=== SHOULD shapes ===#

# Person who is the agent of a CreateAction SHOULD have an affiliation
five-safes-crate:PersonAgentHasAffiliation
a sh:NodeShape ;
sh:name "Agent of CreateAction" ;
sh:description "The agent of a CreateAction entity" ;
sh:target [
a sh:SPARQLTarget ;
sh:prefixes ro-crate:sparqlPrefixes ;
sh:select """
SELECT DISTINCT ?this WHERE {
?action a schema:CreateAction ;
schema:agent ?this .
}
"""
] ;

# The agent of a CreateAction entity SHOULD have an affiliation
sh:property [
a sh:PropertyShape ;
sh:name "Presence of affiliations" ;
sh:path schema:affiliation ;
sh:minCount 1 ;
sh:severity sh:Warning ;
sh:message "The agent of a CreateAction entity SHOULD have an affiliation" ;
] .

This file was deleted.