Skip to content

Commit 31a277d

Browse files
committed
Addressed class of members of reponsible project.
1 parent bc7675c commit 31a277d

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,10 @@ five-safes-crate:ResponsibleProject
5050
a sh:PropertyShape ;
5151
sh:name "member" ;
5252
sh:path schema:member;
53-
sh:class schema:Organization ;
53+
sh:or (
54+
[ sh:class schema:Organization ]
55+
[ sh:class schema:Person ]
56+
) ;
5457
sh:severity sh:Violation ;
55-
sh:message """The property 'member' of the Responsible Project MUST be of type schema:Organization.""" ;
58+
sh:message """The property 'member' of the Responsible Project MUST be of type schema:Organization or schema:Person.""" ;
5659
] .

tests/integration/profiles/five-safes-crate/test_5src_1_responsible_project.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def test_5src_responsible_project_funding_not_grant():
6363
)
6464

6565

66-
def test_5src_responsible_project_member_not_organization():
66+
def test_5src_responsible_project_member_not_organization_or_person():
6767
"""
6868
Test a Five Safes Crate where a Responsible Project's `member` property
6969
is NOT of type schema:Organization.
@@ -76,7 +76,7 @@ def test_5src_responsible_project_member_not_organization():
7676
?project schema:member ?org .
7777
}
7878
INSERT {
79-
?project schema:member "Not an organization (literal replacement)" .
79+
?project schema:member "Not organization or person (literal replacement)" .
8080
}
8181
WHERE {
8282
?action a schema:CreateAction ;
@@ -94,7 +94,7 @@ def test_5src_responsible_project_member_not_organization():
9494
expected_validation_result=False,
9595
expected_triggered_requirements=["Responsible Project"],
9696
expected_triggered_issues=[
97-
"The property 'member' of the Responsible Project MUST be of type schema:Organization."
97+
"The property 'member' of the Responsible Project MUST be of type schema:Organization or schema:Person."
9898
],
9999
profile_identifier="five-safes-crate",
100100
rocrate_entity_mod_sparql=sparql,

0 commit comments

Comments
 (0)