From: Eugen F <feu...@ya...> - 2014-03-01 11:26:39
|
I think there is a parsing problem when using store manager from tools_103 (and previous versions) with UNION. The following query in store manager (using sparql query/update connection): ---------------------------------------- SELECT ?b ?c WHERE { { GRAPH <http://AliceIRI> { <http://local.virt/foo> ?b ?c} } UNION { GRAPH <http://BobIRI> { <http://local.virt/foo> ?b ?c} } } -------------------------------------------- is sent to the sparql endpoint as (notice removal of "{}" before UNION): -------------------------------------------------------- SELECT ?b ?c WHERE { GRAPH <http://aliceiri/> { <http://local.virt/foo> ?b ?c . } UNION { GRAPH <http://bobiri/> { <http://local.virt/foo> ?b ?c . } } } -------------------------------------------- and of course it fails on the server. I forwarded to prev message because this could be fixed by fixing the parser or by allowing to skip local parsing. If this isn't fixed already is a dev branch, I could fix the "skip local parsing" in a dnr fork, since I have to fix this anyway because at this point I can't write the query. On Sunday, December 22, 2013 3:26 PM, Eugen F <feu...@ya...> wrote: When using store manager(query/update endpoint) with custom sparql queries it always performs parsing because SparqlConnector _skipLocalParsing is always false(UI code skips parsing, but the connector enforces it). Maybe it's better for the connector to catch parsing error and default to no parsing (same as UI/manager code). |