[
https://issues.apache.org/jira/browse/JENA-494?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andy Seaborne updated JENA-494:
-------------------------------
Description:
{noformat}
SELECT ?z
{
SELECT ?z {
SERVICE <http://foo> { ?c ?p ?z }
?c ?q ?z
}
}
{noformat}
==>
{noformat}
(project (?z)
(project (?z)
(sequence
(service <http://foo>
(bgp (triple ?/c ?/p ?z)))
(bgp (triple ?/c ?/q ?z)))))
{noformat}
but the remote request is
{noformat}
SELECT * { ?c ?p ?o }
{noformat}
so the {{?/c}} and {{?c}} do not join. Note that {{?z}} is not renamed because
it emerges from the inner projection.
From:
http://mail-archives.apache.org/mod_mbox/jena-users/201307.mbox/%3C20130717190649.GA25207%40netestate.de%3E
Renaming is done by TransformScopeRename, looking for projections which are not
the top level as it walk back up the tree. The renaming is done by
Rename.renameVars.
was:
{noformat}
SELECT ?z
{
SELECT ?z {
SERVICE <http://foo> { ?c ?p ?o }
?c ?q ?z
}
}
{noformat}
==>
{noformat}
(project (?z)
(project (?z)
(sequence
(service <http://foo>
(bgp (triple ?/c ?/p ?/o)))
(bgp (triple ?/c ?/q ?z)))))
{noformat}
but the remote request is
{noformat}
SELECT * { ?c ?p ?o }
{noformat}
so the {{?/c}} and {{?c}} do not join.
From:
http://mail-archives.apache.org/mod_mbox/jena-users/201307.mbox/%3C20130717190649.GA25207%40netestate.de%3E
> Variables in SERVICE can be written by scoping transforms and not recovered.
> ----------------------------------------------------------------------------
>
> Key: JENA-494
> URL: https://issues.apache.org/jira/browse/JENA-494
> Project: Apache Jena
> Issue Type: Bug
> Components: ARQ
> Affects Versions: Jena 2.10.1
> Reporter: Andy Seaborne
>
> {noformat}
> SELECT ?z
> {
> SELECT ?z {
> SERVICE <http://foo> { ?c ?p ?z }
> ?c ?q ?z
> }
> }
> {noformat}
> ==>
> {noformat}
> (project (?z)
> (project (?z)
> (sequence
> (service <http://foo>
> (bgp (triple ?/c ?/p ?z)))
> (bgp (triple ?/c ?/q ?z)))))
> {noformat}
> but the remote request is
> {noformat}
> SELECT * { ?c ?p ?o }
> {noformat}
> so the {{?/c}} and {{?c}} do not join. Note that {{?z}} is not renamed
> because it emerges from the inner projection.
> From:
> http://mail-archives.apache.org/mod_mbox/jena-users/201307.mbox/%3C20130717190649.GA25207%40netestate.de%3E
> Renaming is done by TransformScopeRename, looking for projections which are
> not the top level as it walk back up the tree. The renaming is done by
> Rename.renameVars.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira