You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jena.apache.org by "aliariff (via GitHub)" <gi...@apache.org> on 2025/02/18 17:01:00 UTC
[I] Missing Value Node in `sh:uniqueLang` Constraint Validation Report [jena]
aliariff opened a new issue, #3018:
URL: https://github.com/apache/jena/issues/3018
### Version
5.3.0
### What happened?
#### **Issue Description**
When the `sh:uniqueLang` constraint is violated, the validation report does not include the duplicated value node. This makes it difficult to identify which specific values caused the violation.
#### **Expected Behavior**
The validation report should provide the duplicated value node, allowing users to pinpoint the exact issue in their data.
#### **Steps to Reproduce**
1. Define a SHACL shape with `sh:uniqueLang true`.
2. Validate data that contains multiple values with the same language tag for a property.
3. Observe the validation report.
#### **Actual Behavior**
- The validation report states that the constraint was violated but does not indicate the specific duplicated value node.
#### **Expected Behavior**
- The validation report should include the exact value nodes that caused the violation.
#### **Example**
##### **SHACL Shape**
```turtle
ex:BuildingShape a sh:NodeShape ;
sh:targetClass ex:Building ;
sh:property [
sh:path ex:label ;
sh:datatype rdf:langString ;
sh:uniqueLang true ;
sh:message "Each building label should have only one value per language." ;
] .
```
##### **Invalid Data**
```turtle
ex:Building1 a ex:Building ;
ex:label "Building"@en , "Edifice"@en , "Gebäude"@de .
```
### Relevant output and stacktrace
```shell
```
### Are you interested in making a pull request?
Yes
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org
Re: [I] Missing Value Node in `sh:uniqueLang` Constraint Validation Report [jena]
Posted by "afs (via GitHub)" <gi...@apache.org>.
afs closed issue #3018: Missing Value Node in `sh:uniqueLang` Constraint Validation Report
URL: https://github.com/apache/jena/issues/3018
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org