Linearization optimization does not account for SERVICE correctly.
------------------------------------------------------------------
Key: JENA-174
URL: https://issues.apache.org/jira/browse/JENA-174
Project: Jena
Issue Type: Bug
Components: ARQ
Reporter: Andy Seaborne
SELECT ?p ?o WHERE
{
{ BIND(<http://dbpedia.org/sparql> AS ?service)}
UNION
{ BIND(<http://live.dbpedia.org/sparql> AS ?service)}
SERVICE ?service
{<http://dbpedia.org/resource/Paris> ?p ?o. }
}
==>
(project (?p ?o)
(join
(union
(extend ((?service <http://dbpedia.org/sparql>))
(table unit))
(extend ((?service <http://live.dbpedia.org/sparql>))
(table unit)))
(service ?service
(bgp (triple <http://dbpedia.org/resource/Paris> ?p ?o)))))
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(project (?p ?o)
(sequence
(union
(extend ((?service <http://dbpedia.org/sparql>))
(table unit))
(extend ((?service <http://live.dbpedia.org/sparql>))
(table unit)))
(service ?service
(bgp (triple <http://dbpedia.org/resource/Paris> ?p ?o)))))
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira