This is an automated email from the ASF dual-hosted git repository.

andy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/jena.git

commit 3034ee51c6a0a3dc481944f73613cda1c20b324e
Author: Ali Ariff <[email protected]>
AuthorDate: Fri Feb 21 21:41:31 2025 +0100

    GH-3018: Update comparison
---
 .../org/apache/jena/shacl/engine/constraint/UniqueLangConstraint.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/jena-shacl/src/main/java/org/apache/jena/shacl/engine/constraint/UniqueLangConstraint.java
 
b/jena-shacl/src/main/java/org/apache/jena/shacl/engine/constraint/UniqueLangConstraint.java
index 1ef2653c9b..21e7267f76 100644
--- 
a/jena-shacl/src/main/java/org/apache/jena/shacl/engine/constraint/UniqueLangConstraint.java
+++ 
b/jena-shacl/src/main/java/org/apache/jena/shacl/engine/constraint/UniqueLangConstraint.java
@@ -79,7 +79,7 @@ public class UniqueLangConstraint implements Constraint {
                     String msg = toString()+" Duplicate langtag: 
"+obj.getLiteralLanguage();
                     vCxt.notifyValidationListener(() -> new 
ConstraintEvaluatedOnSinglePathNodeEvent(vCxt, shape,  focusNode, this, path, 
obj,
                                     false));
-                    Node valueNode = ShaclSystem.getMode() == 
ShaclSystem.Mode.NORMAL ? obj : null;
+                    Node valueNode = ShaclSystem.getMode() == 
ShaclSystem.Mode.TEST ? null : obj;
                     vCxt.reportEntry(msg, shape, focusNode, path, valueNode, 
this);
                     results.add(tag);
                 }

Reply via email to