-
Notifications
You must be signed in to change notification settings - Fork 3
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
issue with ordering of /resource endpoint not returning some predicates #54
base: master
Are you sure you want to change the base?
Conversation
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.
In general I'm wondering why this failed in the first place. I've been reading https://www.w3.org/TR/2013/REC-sparql11-query-20130321/ and my interpretation of that is that a UNION operation should return the same result if the right and left sides are swapped. The only thing I can think of is that this is something to do with using variables ?p ?o in both sides of the union. Possibly this should be rewritten so variables aren't recycled on both sides?
Could be the way the query engine is implemented? i didn't think it would make a difference but swapping it around did make a difference! |
ah i see. it's at the end. |
regardless, it does make sense for this content to be ordered first before the reified triples. |
Perhaps, I'm not sure how safe it is to depend on UNION structure providing a consistent ordering, maybe that is in the spec I haven't checked. Nevertheless there are at least two other bugs in the code, why is only one result returned and paging issues. |
This reorders the union query to get around the issue of missing predicates for Locality.