-
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
possible bug in SPARQL subqueries #607
Comments
hmm, i have trouble to reproduce and understand what is actually expected and what is failing... would be cool if you could write a minimal test case e.g. like https://github.com/RDFLib/rdflib/blob/master/test/test_issue579.py |
Will do On 03/15/2016 12:49 PM, Jörn Hees wrote:
|
OK, here is a file that OK, here is a file that shows an issue Hmm. I keep on getting "Something went really wrong, and we can't process that file", so I guess I'll just have to include it here.
|
And now it works! |
i took the liberty to edit your comment ... have a look at markdown syntax please (it will take you 2 minutes and make your reports so much more readable) i made a test to reproduce this in #610 |
Thanks for the editing. I tried to attach the bug code but it didn't work the first time so I just shoved it in the message, which I guess triggered some markdown proccessing. I have another report coming. I'll try to get it formatted better from the beginning. |
doh - I added the test twice. Well, if they now BOTH pass we know it worked! :D |
total chaos. It worked locally - but I had some uncommitted changes. This will teach me not to do a PR. |
* master: (44 commits) quote cleanup OCD serializer/parser alias for 'ntriples' serializer/parser alias for 'ttl' cleanup remove outdated always skipped test a bit of changelog add a NTSerializer sub-class for nt11 (#700) Restrict normalization to unicode-compatible values (#674) fixes for turtle/trig namespace handling skip serialising empty default graph skip round-trip test, unfixable until 5.0 prefix test for #428 Added additional trig unit tests to highlight some currently occurring issues. remove ancient and broken 2.3 support code. (#681) updating deprecated testing syntax (#697) docs: clarify the use of an identifier when persisting a triplestore (#654) removing pyparsing version requirement (#696) made min/max aggregate functions support all literals (#694) actually fix projection from sub-queries added dawg tests for #607 ...
I think that SPARQL subqueries are not being correctly handled. It appears that the wrong variables are being projected from the subqueries and as well that the wrong variables end up being bound at the top level.
Here is a test file that shows the behaviour
and the output on a very small graph
I believe that the each of these should have a single solution, namely a projection of <a,b,c>.
The text was updated successfully, but these errors were encountered: