From fa6fc7264ee10696366d752ac410105ca4bcf674 Mon Sep 17 00:00:00 2001 From: EttoreM Date: Thu, 25 Jun 2026 13:26:00 +0100 Subject: [PATCH 1/3] Rebased to develop --- .../five-safes-crate/{should => }/9_inputs.ttl | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) rename rocrate_validator/profiles/five-safes-crate/{should => }/9_inputs.ttl (96%) diff --git a/rocrate_validator/profiles/five-safes-crate/should/9_inputs.ttl b/rocrate_validator/profiles/five-safes-crate/9_inputs.ttl similarity index 96% rename from rocrate_validator/profiles/five-safes-crate/should/9_inputs.ttl rename to rocrate_validator/profiles/five-safes-crate/9_inputs.ttl index 20cb1b0bd..dddd49c12 100644 --- a/rocrate_validator/profiles/five-safes-crate/should/9_inputs.ttl +++ b/rocrate_validator/profiles/five-safes-crate/9_inputs.ttl @@ -24,6 +24,12 @@ @prefix xsd: . +#=== MUST shapes ===# +# (none) + + +#=== SHOULD shapes ===# + five-safes-crate:InputEntityReferencesFormalParameterViaExampleOfWork a sh:NodeShape ; sh:name "Input" ; @@ -42,6 +48,7 @@ five-safes-crate:InputEntityReferencesFormalParameterViaExampleOfWork a sh:SPARQLConstraint ; sh:name "exampleOfWork" ; sh:description "Input SHOULD reference a FormalParameter using exampleOfWork" ; + sh:severity sh:Warning ; sh:prefixes ro-crate:sparqlPrefixes ; sh:select """ @@ -52,6 +59,9 @@ five-safes-crate:InputEntityReferencesFormalParameterViaExampleOfWork } } """ ; - sh:severity sh:Warning ; sh:message "Input SHOULD reference a FormalParameter using exampleOfWork" ; ] . + + +#=== MAY shapes ===# +# (none) From 105b5b05c9f52e24b3ba8e3c3a463436c2b02902 Mon Sep 17 00:00:00 2001 From: EttoreM Date: Thu, 25 Jun 2026 13:27:35 +0100 Subject: [PATCH 2/3] Copied EXACT content of MUST / SHOULD / MAY in flattened ttl --- rocrate_validator/profiles/five-safes-crate/9_inputs.ttl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rocrate_validator/profiles/five-safes-crate/9_inputs.ttl b/rocrate_validator/profiles/five-safes-crate/9_inputs.ttl index dddd49c12..4cb14d78f 100644 --- a/rocrate_validator/profiles/five-safes-crate/9_inputs.ttl +++ b/rocrate_validator/profiles/five-safes-crate/9_inputs.ttl @@ -48,7 +48,6 @@ five-safes-crate:InputEntityReferencesFormalParameterViaExampleOfWork a sh:SPARQLConstraint ; sh:name "exampleOfWork" ; sh:description "Input SHOULD reference a FormalParameter using exampleOfWork" ; - sh:severity sh:Warning ; sh:prefixes ro-crate:sparqlPrefixes ; sh:select """ @@ -59,6 +58,7 @@ five-safes-crate:InputEntityReferencesFormalParameterViaExampleOfWork } } """ ; + sh:severity sh:Warning ; sh:message "Input SHOULD reference a FormalParameter using exampleOfWork" ; ] . From b3756de683a162c92fa5a47a2d25c520e80d87a8 Mon Sep 17 00:00:00 2001 From: EttoreM Date: Thu, 25 Jun 2026 13:29:15 +0100 Subject: [PATCH 3/3] Placed sh:Severity from within to sparql constrain to inside the parent shape. --- rocrate_validator/profiles/five-safes-crate/9_inputs.ttl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rocrate_validator/profiles/five-safes-crate/9_inputs.ttl b/rocrate_validator/profiles/five-safes-crate/9_inputs.ttl index 4cb14d78f..0a476d4a2 100644 --- a/rocrate_validator/profiles/five-safes-crate/9_inputs.ttl +++ b/rocrate_validator/profiles/five-safes-crate/9_inputs.ttl @@ -34,6 +34,7 @@ five-safes-crate:InputEntityReferencesFormalParameterViaExampleOfWork a sh:NodeShape ; sh:name "Input" ; sh:description "" ; + sh:severity sh:Warning ; sh:target [ a sh:SPARQLTarget ; sh:prefixes ro-crate:sparqlPrefixes ; @@ -58,7 +59,6 @@ five-safes-crate:InputEntityReferencesFormalParameterViaExampleOfWork } } """ ; - sh:severity sh:Warning ; sh:message "Input SHOULD reference a FormalParameter using exampleOfWork" ; ] .