-
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
testConjunctiveDefault for sparqlupdatestore fails locally #460
Comments
@gjhiggins sorry to ping you again, seems you wrote that test as well, maybe you could have a look again... maybe i should investigate if we can somehow set travis to run these tests as well... |
np. |
hmm weird, i was running them with |
I'm pretty sure that the result of this test depends on the SPARQL endpoint. As far as I know, the SPARQL protocol leaves it to the endpoint whether the default graph is the union of all named graphs or whether it is a seperate graph. (There is a way to specify the default graph as the merge of several named graphs, but it does not seem to be possible to have the merge of all graphs.) |
hmm, actually after the tests ran through it seems that ConjunctiveGraph and Dataset need two different behaviors from the endpoint. |
Yes, I suspect this is the case. Actually, Dataset is better suited to use with SPARQLStore, as it is based on SPARQL's definition of a Dataset. ConjunctiveGraph requires the default graph to be the merge of all graphs, which is not necessary for Dataset. So, I would recommend to use the SPARQL store only with Dataset. Also, the developer should be aware that the behaviour of the default graph of such a Dataset may be different for different endpoints. |
i see at least to possible ways out of this:
For now i've implemented 2 in #466. @uholzer, @gjhiggins is that ok / enough or do we need to warn developers? |
I like the solution you implemented. Maybe the documentation of SPARQL(Update)Store should include a warning that the behaviour of the default graph depends on the endpoint. Also, I think we should recommend to avoid using it with ConjunctiveGraph for exactly this reason. |
Now it's perfect! Thanks. |
if you run a local sparql store e.g. with
fuseki-server --mem --update /ukpp
the tests in https://github.com/RDFLib/rdflib/blob/master/test/test_sparqlupdatestore.py will run (and not be skipped as by default on travis).One of the existing tests in there seems to fail:
Can someone verify?
The text was updated successfully, but these errors were encountered: