diff --git a/rocrate_validator/profiles/five-safes-crate/must/7_requested_workflow_run.ttl b/rocrate_validator/profiles/five-safes-crate/7_requested_workflow_run.ttl similarity index 84% rename from rocrate_validator/profiles/five-safes-crate/must/7_requested_workflow_run.ttl rename to rocrate_validator/profiles/five-safes-crate/7_requested_workflow_run.ttl index 7a8b9ad35..594669347 100644 --- a/rocrate_validator/profiles/five-safes-crate/must/7_requested_workflow_run.ttl +++ b/rocrate_validator/profiles/five-safes-crate/7_requested_workflow_run.ttl @@ -22,6 +22,8 @@ @prefix xsd: . +#=== MUST shapes ===# + five-safes-crate:RootDataEntityMentionsWorkflowRunAction a sh:NodeShape ; sh:name "RootDataEntity" ; @@ -83,3 +85,23 @@ five-safes-crate:WorkflowRunObject """ ; sh:message "In the `CreateAction` entity corresponding to the workflow run, each `object` MUST reference an existing entity." ; ] . + + +#=== SHOULD shapes ===# + +# WorkflowRunAction SHOULD have object property with minimum cardinality 1 +five-safes-crate:WorkflowRunActionShouldHaveObjectProperty + a sh:NodeShape ; + sh:targetClass ro-crate:WorkflowRunAction ; + sh:name "WorkflowRunAction" ; + sh:property [ + sh:path schema:object ; + sh:minCount 1 ; + sh:nodeKind sh:IRI ; + sh:severity sh:Warning ; + sh:message "`CreateAction` (corresponding to the workflow run) SHOULD have the property `object` with IRI values." ; + ] . + + +#=== MAY shapes ===# +# (none) diff --git a/rocrate_validator/profiles/five-safes-crate/should/7_requested_workflow_run.ttl b/rocrate_validator/profiles/five-safes-crate/should/7_requested_workflow_run.ttl deleted file mode 100644 index d2abd424b..000000000 --- a/rocrate_validator/profiles/five-safes-crate/should/7_requested_workflow_run.ttl +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright (c) 2025 eScience Lab, The University of Manchester -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -@prefix ro: <./> . -@prefix ro-crate: . -@prefix five-safes-crate: . -@prefix rdf: . -@prefix schema: . -@prefix sh: . -@prefix validator: . -@prefix xsd: . - - -# WorkflowRunAction SHOULD have object property with minimum cardinality 1 -five-safes-crate:WorkflowRunActionShouldHaveObjectProperty - a sh:NodeShape ; - sh:targetClass ro-crate:WorkflowRunAction ; - sh:name "WorkflowRunAction" ; - sh:property [ - sh:path schema:object ; - sh:minCount 1 ; - sh:nodeKind sh:IRI ; - sh:severity sh:Warning ; - sh:message "`CreateAction` (corresponding to the workflow run) SHOULD have the property `object` with IRI values." ; - ] .