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 ===#
26+
27+ five-safes-crate:ResponsibleProject
28+ a sh:NodeShape ;
29+ sh:name " Responsible Project" ;
30+ sh:target [
31+ a sh:SPARQLTarget ;
32+ sh:prefixes ro-crate:sparqlPrefixes ;
33+ sh:select """
34+ SELECT DISTINCT ?this WHERE {
35+ ?action a schema:CreateAction ;
36+ schema:agent ?agent .
37+ ?agent schema:memberOf ?this .
38+ }
39+ """
40+ ] ;
41+
42+ sh:property [
43+ a sh:PropertyShape ;
44+ sh:name " funding" ;
45+ sh:path schema:funding;
46+ sh:class schema:Grant ;
47+ sh:severity sh:Violation ;
48+ sh:message """ The property 'funding' of the Responsible Project MUST be of type Grant.""" ;
49+ ] ;
50+
51+ sh:property [
52+ a sh:PropertyShape ;
53+ sh:name " member" ;
54+ sh:path schema:member;
55+ sh:or (
56+ [ sh:class schema:Organization ]
57+ [ sh:class schema:Person ]
58+ ) ;
59+ sh:severity sh:Violation ;
60+ sh:message """ The property 'member' of the Responsible Project MUST be of type schema:Organization or Person.""" ;
61+ ] .
62+
63+
64+ # === SHOULD shapes ===#
65+
2566five-safes-crate:ResponsibleProjectMemberAndSourceOrganizationIntersection
2667 a sh:NodeShape ;
2768 sh:name " Organizations (members of Responsible Project)" ;
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments