-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fixes https://github.com/zazuko/rdf-validate-shacl/issues/136 #137
Conversation
🦋 Changeset detectedLatest commit: 6041552 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Hey, thank you for your contribution! Would you please add your failing test case to |
Also, I noticed that the CI wasn't set up correctly. You may want to rebase |
Hey, I have rebased master, added the test case and fixed a bug in my code that erroneously let all tests pass. Now I get: 132 passing (3s) The failing tests are:
I am not sure if my code really breaks something or if it just changes the order in the expected test reports. |
Thank you for you update. Unfortunately, there appear to be multiple types of issues here. It is most definitely not just ordering :) These three produce less validation results, related to logical constraints, I think.
On the other hand these two produces duplicate results. Probably somehow related.
Finally, this one succeeds validation where it should have failed
|
Yes, unfortunately. The first 3 mentioned test cases could be fixed by reordering / deduplication of validation results (see latest commit). |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #137 +/- ##
=======================================
Coverage 98.76% 98.77%
=======================================
Files 12 12
Lines 1866 1881 +15
=======================================
+ Hits 1843 1858 +15
Misses 23 23 ☔ View full report in Codecov by Sentry. |
The latest commit is a bit quirky, but fixes validation for qualified value shapes by resetting the list of already checked focus nodes. |
Ok, still 3 tests failing. I'll see what I can do. |
the latest commit lets all tests pass. it's not a perfect solution, but I couldn't come up with something better. at least the qualified value shape tests obviously need some degree of recursion, so what I do is check for a max recursion depth. what do you think? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks.
For final touches, please see the comment suggestion and I'd make the maxRecursionDepth
a field coming from the constructor like maxErrors
.
No description provided.