Skip to content

Commit 863d138

Browse files
committed
Merged 2_requesting_agent.ttl files.
1 parent dcf76b2 commit 863d138

2 files changed

Lines changed: 35 additions & 50 deletions

File tree

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

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
2323

2424

25+
#=== MUST shapes ===#
2526

2627
five-safes-crate:CreateActionHasAgent
2728
a sh:NodeShape ;
@@ -60,4 +61,37 @@ five-safes-crate:CreateActionHasAgent
6061
sh:nodeKind sh:IRI ;
6162
sh:severity sh:Violation ;
6263
sh:message "The affiliation of a CreateAction's agent MUST be a contextual entity with type Organization." ;
63-
] .
64+
] .
65+
66+
67+
#=== SHOULD shapes ===#
68+
69+
# Person who is the agent of a CreateAction SHOULD have an affiliation
70+
five-safes-crate:PersonAgentHasAffiliation
71+
a sh:NodeShape ;
72+
sh:name "Agent of CreateAction" ;
73+
sh:description "The agent of a CreateAction entity" ;
74+
sh:target [
75+
a sh:SPARQLTarget ;
76+
sh:prefixes ro-crate:sparqlPrefixes ;
77+
sh:select """
78+
SELECT DISTINCT ?this WHERE {
79+
?action a schema:CreateAction ;
80+
schema:agent ?this .
81+
}
82+
"""
83+
] ;
84+
85+
# The agent of a CreateAction entity SHOULD have an affiliation
86+
sh:property [
87+
a sh:PropertyShape ;
88+
sh:name "Presence of affiliations" ;
89+
sh:path schema:affiliation ;
90+
sh:minCount 1 ;
91+
sh:severity sh:Warning ;
92+
sh:message "The agent of a CreateAction entity SHOULD have an affiliation" ;
93+
] .
94+
95+
96+
#=== MAY shapes ===#
97+
# (none)

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

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

0 commit comments

Comments
 (0)