File tree Expand file tree Collapse file tree
rocrate_validator/profiles/five-safes-crate
tests/integration/profiles/five-safes-crate Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919@prefix sh: <http://www.w3.org/ns/shacl#> .
2020@prefix bioschemas: <https://bioschemas.org/> .
2121
22+ # TODO: note that this applies to all Projects, not just those targeted by `funding` relationships
2223five-safes-crate:FundingBody a sh:NodeShape ;
2324 sh:name " Funding body Project" ;
2425 sh:description " Project which is funding this work" ;
Original file line number Diff line number Diff line change 2121@prefix validator: <https://github.com/crs4/rocrate-validator/> .
2222@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
2323
24-
24+ # TODO: split into multiple checks
2525five-safes-crate:RootDataEntityRequiredProperties
2626 a sh:NodeShape ;
2727 sh:name " Five Safes Crate Root Data Entity REQUIRED properties" ;
28- sh:description " The Root Data Entity MUST have a `sourceOrganisation `" ;
28+ sh:description " The Root Data Entity MUST have a `sourceOrganization `" ;
2929 sh:targetClass ro-crate:RootDataEntity ;
3030 sh:property [
3131 a sh:PropertyShape ;
3232 sh:name " Root Data Entity: `sourceOrganization` property" ;
3333 sh:description """ Check if the Root Data Entity includes a `sourceOrganization` (as specified by schema.org).""" ;
3434 sh:path schema_org:sourceOrganization;
3535 sh:minCount 1 ;
36- sh:class ro-crate:ContextualEntity ;
36+ sh:nodeKind sh:IRI ;
3737 sh:message """ The Root Data Entity MUST have a `sourceOrganization` property (as specified by schema.org).
3838 SHOULD link to a Contextual Entity in the RO-Crate Metadata File with a name.""" ;
3939 ] .
Original file line number Diff line number Diff line change 2929 # URI of the publisher of the Metadata Specification
3030 dct:publisher <https://w3id.org/5s-crate> ;
3131
32+ # TODO: resolve failures when these profiles are applied
3233 # This profile is an extension of Workflow Run Crate for use in Trusted Research Environments (TRE)
33- prof:isProfileOf <https://w3id.org/ro/wfrun/workflow/0.5> ;
34+ # prof:isProfileOf <https://w3id.org/ro/wfrun/workflow/0.5> ;
3435
3536 # This profile is a transitive profile of the RO-Crate Metadata Specification
36- prof:isTransitiveProfileOf <https://w3id.org/ro/crate/1.1> ,
37- <https://w3id.org/ro/wfrun/process/0.5> ,
38- <https://w3id.org/workflowhub/workflow-ro-crate/1.0> ;
37+ prof:isTransitiveProfileOf <https://w3id.org/ro/crate/1.1> ;
38+ # TODO: resolve failures when these profiles are applied
39+ # <https://w3id.org/ro/wfrun/process/0.5> ,
40+ # <https://w3id.org/workflowhub/workflow-ro-crate/1.0> ;
3941
4042 # this profile has a JSON-LD context resource
4143 prof:hasResource [
Original file line number Diff line number Diff line change 2424
2525
2626def test_valid_five_safes_crate_request_required ():
27- """Test a valid Workflow Run Crate."""
27+ """Test a valid Five Safes Crate representing a request ."""
2828 do_entity_test (
2929 ValidROC ().five_safes_crate_request ,
3030 Severity .REQUIRED ,
@@ -35,7 +35,7 @@ def test_valid_five_safes_crate_request_required():
3535
3636
3737def test_valid_five_safes_crate_result_required ():
38- """Test a valid Workflow Run Crate."""
38+ """Test a valid Five Safes Crate representing a result ."""
3939 do_entity_test (
4040 ValidROC ().five_safes_crate_result ,
4141 Severity .REQUIRED ,
You can’t perform that action at this time.
0 commit comments