File tree Expand file tree Collapse file tree
rocrate_validator/profiles/five-safes-crate Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
2323
2424
25+ # === MUST shapes ===#
2526
2627five-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)
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments