Skip to content

Commit f509995

Browse files
committed
Updated content of flattened ttl file for ruleset #1.
1 parent fcd6ff1 commit f509995

2 files changed

Lines changed: 41 additions & 59 deletions

File tree

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: 41 additions & 0 deletions
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)" ;

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)