-
Notifications
You must be signed in to change notification settings - Fork 560
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
SPARQL: UNION with two identical branches returns only result for one branch #910
Comments
I am interested in solving this issue. |
@nicholascar |
@kushagr08 please, go ahead! @abhivandan1999: you might like to assist. Please both of you please metion @cygri in your PR so he can review (of course up rdflib maintainers will review as well!). Make sure in the PR description you say "closes #910" so that when that PR is accepted, this GitHub issue is closed. |
Oh! @kushagr08, you've already done it in PR #1057! I've added the close statement to that PR description. Will review that PR shortly. |
fix #910: Updated evaluate.py so that union includes results of both branches, even when identical.
This SPARQL query should return two solutions, both identical, binding variable
?a
to string"a"
:But it returns only one of the two solutions. The same effect—only the first union returns any results—happens when the unions have more than one variable or more than one solution each. The problem is triggered by the results being identical, not just by the graph patterns being identical. This one also just returns one solution:
The problem goes away as soon as there is any difference between the results of the two union branches.
The text was updated successfully, but these errors were encountered: