Skip to content

Commit 599ffd0

Browse files
committed
5S-crate funder test added
1 parent cab8579 commit 599ffd0

File tree

2 files changed

+44
-7
lines changed

2 files changed

+44
-7
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+
five-safes-crate:FundingBody a sh:NodeShape ;
23+
sh:name "Funding body Project" ;
24+
sh:description "Project which is funding this work" ;
25+
sh:targetClass schema_org:Project ;
26+
sh:property [
27+
a sh:PropertyShape ;
28+
sh:name "Project Name" ;
29+
sh:description """Check if the Project Entity `name` (as specified by schema.org)
30+
to clearly identify the dataset and distinguish it from other projects.""" ;
31+
sh:minCount 1 ;
32+
sh:nodeKind sh:Literal ;
33+
sh:path schema_org:name;
34+
sh:message "The Project Entity MUST have a `name` property (as specified by schema.org)" ;
35+
] .

rocrate_validator/profiles/five-safes-crate/must/0_root_data_entity_metadata.ttl renamed to rocrate_validator/profiles/five-safes-crate/must/1_root_data_entity_metadata.ttl

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,26 @@
1414

1515
@prefix ro: <./> .
1616
@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/> .
1718
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
1819
@prefix schema_org: <http://schema.org/> .
1920
@prefix sh: <http://www.w3.org/ns/shacl#> .
2021
@prefix validator: <https://github.com/crs4/rocrate-validator/> .
2122
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
2223

2324

24-
ro-crate:RootDataEntityRequiredProperties
25+
five-safes-crate:RootDataEntityRequiredProperties
2526
a sh:NodeShape ;
2627
sh:name "Five Safes Crate Root Data Entity REQUIRED properties" ;
27-
sh:description "The Root Data Entity MUST have a `funding`" ;
28+
sh:description "The Root Data Entity MUST have a `sourceOrganisation`" ;
2829
sh:targetClass ro-crate:RootDataEntity ;
2930
sh:property [
3031
a sh:PropertyShape ;
31-
sh:name "Root Data Entity: `funding` property" ;
32-
sh:description """Check if the Root Data Entity includes a `funding` property (as specified by schema.org).""" ;
32+
sh:name "Root Data Entity: `sourceOrganization` property" ;
33+
sh:description """Check if the Root Data Entity includes a `sourceOrganization` (as specified by schema.org).""" ;
34+
sh:path schema_org:sourceOrganization;
3335
sh:minCount 1 ;
34-
sh:nodeKind sh:Literal ;
35-
sh:path schema_org:funding;
36-
sh:message "The Root Data Entity MUST have a `funding` property (as specified by schema.org)" ;
36+
sh:class ro-crate:ContextualEntity ;
37+
sh:message """The Root Data Entity MUST have a `sourceOrganization` property (as specified by schema.org).
38+
SHOULD link to a Contextual Entity in the RO-Crate Metadata File with a name.""" ;
3739
] .

0 commit comments

Comments
 (0)