[ https://issues.apache.org/jira/browse/JENA-1891?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17097381#comment-17097381 ]
ASF subversion and git services commented on JENA-1891: ------------------------------------------------------- Commit 5cf538d20dd7867bdb0eb8021dda4a4f474a50a1 in jena's branch refs/heads/master from Andy Seaborne [ https://gitbox.apache.org/repos/asf?p=jena.git;h=5cf538d ] Merge pull request #739 from lrncfly/JENA-1891 JENA-1891 reversed resultMessage values > Shacl MinLength and MaxLength constraints have opposite resultMessage values > ---------------------------------------------------------------------------- > > Key: JENA-1891 > URL: https://issues.apache.org/jira/browse/JENA-1891 > Project: Apache Jena > Issue Type: Bug > Components: SHACL > Reporter: Laurence Foley > Priority: Minor > Time Spent: 1h 10m > Remaining Estimate: 0h > > While using {{Jena}} {{SHACL}} validation, I see that the {{resultMessage}} > produced for > [{{StrMinLengthConstraint}}|https://github.com/apache/jena/blob/master/jena-shacl/src/main/java/org/apache/jena/shacl/engine/constraint/StrMinLengthConstraint.java#L48] > and > [{{StrMaxLengthConstraint}}|https://github.com/apache/jena/blob/master/jena-shacl/src/main/java/org/apache/jena/shacl/engine/constraint/StrMaxLengthConstraint.java#L48] > are reversed: > {noformat} > @prefix fld: <https://api.mysite.com/fields/> . > @prefix sh: <http://www.w3.org/ns/shacl#> . > [ a sh:ValidationResult ; > sh:focusNode > <https://api.mysite.com/datasets/dataset/snapshots/126/records/271> ; > sh:resultMessage "MinLengthConstraint[5]: String too long: 0" ; > sh:resultPath fld:myfield4 ; > sh:resultSeverity sh:Violation ; > sh:sourceConstraintComponent sh:MinLengthConstraintComponent ; > sh:sourceShape > <https://api.mysite.com/schemas/myfield4PropertyShape> ; > sh:value "0"^^xsd:token > ] . > [ a sh:ValidationResult ; > sh:focusNode > <https://api.mysite.com/datasets/dataset/snapshots/126/records/225> ; > sh:resultMessage "MaxLengthConstraint[12]: String too short: > abcdefghijklm" ; > sh:resultPath fld:myfield8 ; > sh:resultSeverity sh:Violation ; > sh:sourceConstraintComponent sh:MaxLengthConstraintComponent ; > sh:sourceShape > <https://api.mysite.com/schemas/myfield8PropertyShape> ; > sh:value "abcdefghijklm"^^xsd:token > ] . > {noformat} -- This message was sent by Atlassian Jira (v8.3.4#803005)