From a3d1ddf7a30c6fee4b62c2f32cc92bc7bffb443a Mon Sep 17 00:00:00 2001 From: Alex Nelson Date: Tue, 20 Sep 2022 10:33:46 -0400 Subject: [PATCH] Regenerate Make-managed files pySHACL 0.20.0, recently released, includes support for incorporating ill-typedness of literals in review of SHACL Datatype Constraints. For unknown reasons, this is now causing some `xsd:decimal` literals to be flggged as non-conformant. This is being discussed further in pySHACL PR 157. References: * https://github.com/RDFLib/pySHACL/pull/157 Signed-off-by: Alex Nelson --- .../Oresteia/Oresteia_validation-develop.ttl | 38 +++++++++++++++++++ .../Oresteia/Oresteia_validation-unstable.ttl | 38 +++++++++++++++++++ 2 files changed, 76 insertions(+) diff --git a/examples/illustrations/Oresteia/Oresteia_validation-develop.ttl b/examples/illustrations/Oresteia/Oresteia_validation-develop.ttl index b8541d92..25c9bf4f 100644 --- a/examples/illustrations/Oresteia/Oresteia_validation-develop.ttl +++ b/examples/illustrations/Oresteia/Oresteia_validation-develop.ttl @@ -2486,6 +2486,44 @@ location:longitude "2.331199"^^xsd:decimal ; ] ; ] , + [ + a sh:ValidationResult ; + sh:focusNode [ + a location:LatLongCoordinatesFacet ; + location:latitude "48.860346"^^xsd:decimal ; + location:longitude "2.331199"^^xsd:decimal ; + ] ; + sh:resultMessage "Value is not Literal with datatype xsd:decimal" ; + sh:resultPath location:latitude ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:decimal ; + sh:maxCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path location:latitude ; + ] ; + sh:value "48.860346"^^xsd:decimal ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode [ + a location:LatLongCoordinatesFacet ; + location:latitude "48.860346"^^xsd:decimal ; + location:longitude "2.331199"^^xsd:decimal ; + ] ; + sh:resultMessage "Value is not Literal with datatype xsd:decimal" ; + sh:resultPath location:longitude ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:decimal ; + sh:maxCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path location:longitude ; + ] ; + sh:value "2.331199"^^xsd:decimal ; + ] , [ a sh:ValidationResult ; sh:focusNode [ diff --git a/examples/illustrations/Oresteia/Oresteia_validation-unstable.ttl b/examples/illustrations/Oresteia/Oresteia_validation-unstable.ttl index b8541d92..25c9bf4f 100644 --- a/examples/illustrations/Oresteia/Oresteia_validation-unstable.ttl +++ b/examples/illustrations/Oresteia/Oresteia_validation-unstable.ttl @@ -2486,6 +2486,44 @@ location:longitude "2.331199"^^xsd:decimal ; ] ; ] , + [ + a sh:ValidationResult ; + sh:focusNode [ + a location:LatLongCoordinatesFacet ; + location:latitude "48.860346"^^xsd:decimal ; + location:longitude "2.331199"^^xsd:decimal ; + ] ; + sh:resultMessage "Value is not Literal with datatype xsd:decimal" ; + sh:resultPath location:latitude ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:decimal ; + sh:maxCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path location:latitude ; + ] ; + sh:value "48.860346"^^xsd:decimal ; + ] , + [ + a sh:ValidationResult ; + sh:focusNode [ + a location:LatLongCoordinatesFacet ; + location:latitude "48.860346"^^xsd:decimal ; + location:longitude "2.331199"^^xsd:decimal ; + ] ; + sh:resultMessage "Value is not Literal with datatype xsd:decimal" ; + sh:resultPath location:longitude ; + sh:resultSeverity sh:Violation ; + sh:sourceConstraintComponent sh:DatatypeConstraintComponent ; + sh:sourceShape [ + sh:datatype xsd:decimal ; + sh:maxCount "1"^^xsd:integer ; + sh:nodeKind sh:Literal ; + sh:path location:longitude ; + ] ; + sh:value "2.331199"^^xsd:decimal ; + ] , [ a sh:ValidationResult ; sh:focusNode [