File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
rocrate_validator/profiles/five-safes-crate/must
tests/integration/profiles/five-safes-crate Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff 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 ] .
Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments