Skip to content

Commit 9811e01

Browse files
authored
Merge branch 'develop' into 97-responsible-project
2 parents ece4427 + c0dd3ce commit 9811e01

10 files changed

Lines changed: 1391 additions & 6 deletions

File tree

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Copyright (c) 2024-2025 CRS4
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
@prefix ro: <./> .
16+
@prefix ro-crate: <https://github.com/crs4/rocrate-validator/profiles/ro-crate/> .
17+
@prefix five-safes-crate: <https://github.com/eScienceLab/rocrate-validator/profiles/five-safes-crate/> .
18+
@prefix schema_org: <http://schema.org/> .
19+
@prefix sh: <http://www.w3.org/ns/shacl#> .
20+
@prefix bioschemas: <https://bioschemas.org/> .
21+
22+
# TODO: note that this applies to all Projects, not just those targeted by `funding` relationships
23+
five-safes-crate:FundingBody a sh:NodeShape ;
24+
sh:name "Funding body Project" ;
25+
sh:description "Project which is funding this work" ;
26+
sh:targetClass schema_org:Project ;
27+
sh:property [
28+
a sh:PropertyShape ;
29+
sh:name "Project Name" ;
30+
sh:description """Check if the Project Entity `name` (as specified by schema.org)
31+
to clearly identify the dataset and distinguish it from other projects.""" ;
32+
sh:minCount 1 ;
33+
sh:nodeKind sh:Literal ;
34+
sh:path schema_org:name;
35+
sh:message "The Project Entity MUST have a `name` property (as specified by schema.org)" ;
36+
] .
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Copyright (c) 2024-2025 CRS4
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
@prefix ro: <./> .
16+
@prefix ro-crate: <https://github.com/crs4/rocrate-validator/profiles/ro-crate/> .
17+
@prefix five-safes-crate: <https://github.com/eScienceLab/rocrate-validator/profiles/five-safes-crate/> .
18+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
19+
@prefix schema_org: <http://schema.org/> .
20+
@prefix sh: <http://www.w3.org/ns/shacl#> .
21+
@prefix validator: <https://github.com/crs4/rocrate-validator/> .
22+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
23+
24+
five-safes-crate:RootDataEntityRequiredProperties
25+
a sh:NodeShape ;
26+
sh:name "Five Safes Crate Root Data Entity REQUIRED properties" ;
27+
sh:description "The Root Data Entity MUST have a `sourceOrganisation`" ;
28+
sh:targetClass ro-crate:RootDataEntity ;
29+
sh:property [
30+
a sh:PropertyShape ;
31+
sh:name "Root Data Entity: `sourceOrganization` property" ;
32+
sh:description """Check if the Root Data Entity includes a `sourceOrganization` (as specified by schema.org).""" ;
33+
sh:path schema_org:sourceOrganization;
34+
sh:minCount 1 ;
35+
sh:nodeKind sh:IRI;
36+
sh:message """The Root Data Entity MUST have a `sourceOrganization` property (as specified by schema.org).
37+
SHOULD link to a Contextual Entity in the RO-Crate Metadata File with a name.""" ;
38+
] .

rocrate_validator/profiles/five-safes-crate/profile.ttl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,15 @@
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 [

0 commit comments

Comments
 (0)