You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@jena.apache.org by "aliariff (via GitHub)" <gi...@apache.org> on 2025/02/18 17:10:26 UTC

[PR] GH-3018: Report the offending object in UniqueLangConstraint [jena]

aliariff opened a new pull request, #3019:
URL: https://github.com/apache/jena/pull/3019

   GitHub issue resolved #3018
   
   Pull request Description:
   
   
   
   ----
   
    - [ ] Tests are included.
    - [ ] Documentation change and updates are provided for the [Apache Jena website](https://github.com/apache/jena-site/)
    - [ ] Commits have been squashed to remove intermediate development commit messages.
    - [ ] Key commit messages start with the issue number (GH-xxxx)
   
   By submitting this pull request, I acknowledge that I am making a contribution to the Apache Software Foundation under the terms and conditions of the [Contributor's Agreement](https://www.apache.org/licenses/contributor-agreements.html).
   
   ----
   
   See the [Apache Jena "Contributing" guide](https://github.com/apache/jena/blob/main/CONTRIBUTING.md).
   


-- 
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: pr-unsubscribe@jena.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@jena.apache.org
For additional commands, e-mail: pr-help@jena.apache.org


Re: [PR] GH-3018: Report the offending object in UniqueLangConstraint [jena]

Posted by "afs (via GitHub)" <gi...@apache.org>.
afs merged PR #3019:
URL: https://github.com/apache/jena/pull/3019


-- 
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: pr-unsubscribe@jena.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@jena.apache.org
For additional commands, e-mail: pr-help@jena.apache.org


Re: [PR] GH-3018: Report the offending object in UniqueLangConstraint [jena]

Posted by "aliariff (via GitHub)" <gi...@apache.org>.
aliariff commented on PR #3019:
URL: https://github.com/apache/jena/pull/3019#issuecomment-2675502791

   > The only way I can think of is to have a "test mode" flag./ The flag would be an enum of two elements: "NORMAL" and "TEST". Horrible but changing the system for this one case is also horrible.
   > 
   > The flag could be a static in `ShaclSystem`. When set to TEST, the old way (to pass a null) is used and when not set (normal mode), the `obj`.
   > 
   > The changes to be test from the WG test suite aren't needed.
   
   Hi @afs 
   
   I have updated the PR as you suggested. Please take a look.


-- 
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: pr-unsubscribe@jena.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@jena.apache.org
For additional commands, e-mail: pr-help@jena.apache.org


Re: [PR] GH-3018: Report the offending object in UniqueLangConstraint [jena]

Posted by "afs (via GitHub)" <gi...@apache.org>.
afs commented on PR #3019:
URL: https://github.com/apache/jena/pull/3019#issuecomment-2676309012

   Thank you!


-- 
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: pr-unsubscribe@jena.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@jena.apache.org
For additional commands, e-mail: pr-help@jena.apache.org


Re: [PR] GH-3018: Report the offending object in UniqueLangConstraint [jena]

Posted by "afs (via GitHub)" <gi...@apache.org>.
afs commented on PR #3019:
URL: https://github.com/apache/jena/pull/3019#issuecomment-2674947459

   The only way I can think of is to have a "test mode" flag./ The flag would be an enum of two elements: "NORMAL" and "TEST". Horrible but changing the system for this one case is also horrible.
   
   The flag could be a static in `ShaclSystem`. When set to TEST, the old way (to pass a null) is used and when not set (normal mode), the `obj`. 
   
   The changes to be test from the WG test suite aren't needed.


-- 
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: pr-unsubscribe@jena.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@jena.apache.org
For additional commands, e-mail: pr-help@jena.apache.org


Re: [PR] GH-3018: Report the offending object in UniqueLangConstraint [jena]

Posted by "afs (via GitHub)" <gi...@apache.org>.
afs commented on code in PR #3019:
URL: https://github.com/apache/jena/pull/3019#discussion_r1960624945


##########
jena-shacl/src/test/files/std/core/property/uniqueLang-001.ttl:
##########


Review Comment:
   There's a problem with this test because the validation report entry is about the first failure - the second node encountered with the same language tag. But there is no definite order from the "I", or "Me" nodes being tested and that means different validation report entries
   
   I get about 50% failures on github CI.
   
   I'm not sure what to do about this. In the test runner, there is way to choose which properties to test of equivalent of validation reports and that includes sh:values but that is useful in other cases.
   
   NB `files/std/core/*` are direct copies from the SHACL test suite.
   



-- 
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: pr-unsubscribe@jena.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@jena.apache.org
For additional commands, e-mail: pr-help@jena.apache.org