Skip to content
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

fix #910: Updated evaluate.py so that union includes results of both branches, even when identical. #1057

Merged
merged 4 commits into from
May 25, 2020

Conversation

kushagr08
Copy link
Contributor

@kushagr08 kushagr08 commented May 20, 2020

The result returned by select queries involving union should contain results of both the branches, even if they are identical, as per the w3c union cardinality documentation.
https://www.w3.org/TR/sparql11-query/#defn_algUnion

Close #910

@coveralls
Copy link

coveralls commented May 20, 2020

Coverage Status

Coverage increased (+0.1%) to 75.788% when pulling 55c0da3 on kushagr08:issue-910 into 9c064ac on RDFLib:master.

@nicholascar
Copy link
Member

@white-gecko will this use of a list instead of a generator be problematic for large results?

test file for solving issue 910
@kushagr08
Copy link
Contributor Author

@nicholascar
I have added the unit test file for this issue in the test folder, named test_issue910.py . Thanks

@nicholascar nicholascar merged commit 037ea51 into RDFLib:master May 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SPARQL: UNION with two identical branches returns only result for one branch
3 participants