Skip to content

Commit d611474

Browse files
committed
Merged 1_responsible_project.ttl files.
1 parent 8fc209e commit d611474

File tree

3 files changed

+78
-116
lines changed

3 files changed

+78
-116
lines changed

rocrate_validator/profiles/five-safes-crate/should/1_responsible_project.ttl renamed to rocrate_validator/profiles/five-safes-crate/1_responsible_project.ttl

Lines changed: 78 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,47 @@
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+
2566
five-safes-crate:ResponsibleProjectMemberAndSourceOrganizationIntersection
2667
a sh:NodeShape ;
2768
sh:name "Organizations (members of Responsible Project)" ;
@@ -57,4 +98,40 @@ five-safes-crate:ResponsibleProjectMemberAndSourceOrganizationIntersection
5798
""" ;
5899
sh:severity sh:Warning ;
59100
sh:message """At least one of the organisations that are members of the responsible project SHOULD be included in the Requesting Agent's affiliations, if such properties exist.""" ;
60-
] .
101+
] .
102+
103+
104+
#=== MAY shapes ===#
105+
106+
five-safes-crate:ResponsibleProject
107+
a sh:NodeShape ;
108+
sh:name "Responsible Project" ;
109+
sh:target [
110+
a sh:SPARQLTarget ;
111+
sh:prefixes ro-crate:sparqlPrefixes ;
112+
sh:select """
113+
SELECT DISTINCT ?this WHERE {
114+
?action a schema:CreateAction ;
115+
schema:agent ?agent .
116+
?agent schema:memberOf ?this .
117+
}
118+
"""
119+
] ;
120+
121+
sh:property [
122+
a sh:PropertyShape ;
123+
sh:name "funding" ;
124+
sh:path schema:funding;
125+
sh:minCount 1 ;
126+
sh:severity sh:Info ;
127+
sh:message """The Responsible Project does not have the property `funding`.""" ;
128+
] ;
129+
130+
sh:property [
131+
a sh:PropertyShape ;
132+
sh:name "member" ;
133+
sh:path schema:member;
134+
sh:minCount 1 ;
135+
sh:severity sh:Info ;
136+
sh:message """The Responsible Project does not have the property `member`.""" ;
137+
] .

rocrate_validator/profiles/five-safes-crate/may/1_responsible_project.ttl

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

rocrate_validator/profiles/five-safes-crate/must/1_responsible_project.ttl

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

0 commit comments

Comments
 (0)