-
Notifications
You must be signed in to change notification settings - Fork 564
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
Bovlb patch 1 #2931
Bovlb patch 1 #2931
Conversation
pre-commit.ci autofix |
pre-commit.ci autofix |
for more information, see https://pre-commit.ci
Wow. Thanks. I can't believe a bug like that in the SPARQL parser has existed undetected for so long.
|
I didn't believe it at first myself.
That doesn't change the token sequence, so it's the same problem. The bug was that we were assuming a comma implied we should repeat the third-last and second-last results as the subject and object of the new triple. This assumption didn't hold when we had inserted a triple from a blank node. |
Summary of changes
The following SPARQL where clause:
should be parsed as:
but was instead being parsed as:
I fixed the bug and added a new test.
Checklist
the same change.
so maintainers can fix minor issues and keep your PR up to date.