-
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
fixing issue #563 #564
fixing issue #563 #564
Conversation
bindings[a.res] = val | ||
break | ||
else: | ||
bindings[a.res] = Literal(0) |
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.
Returning a Literal(0)
where we can't find anything seems wrong to me. Could we return None
instead?
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.
Sample of nothing should be an error:
http://www.w3.org/TR/sparql11-query/#defn_aggSample
Sample({}) = error
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.
yes, the problem is that there are various meanings of "error"... IMO they don't mean to remove the whole result row / cancel the whole query, but just the one binding within the row, as shown here:
http://www.w3.org/TR/sparql11-query/#aggregateExample2
So if we encounter such an error, i think it's correct to somehow return the row with a placeholder indicating an unbound variable (which i thought None
was), rather than removing the result row or simply cancelling the whole query.
At least that's what Virtuoso does in the sample query above, so it must be true ;)
@gromgull except for the |
I'm terribly sorry about this mess with |
No description provided.