afs commented on issue #1369:
URL: https://github.com/apache/jena/issues/1369#issuecomment-1147222431
`OpAsQuery` is not a perfect reversal of the process of compiling the query
to algebra. It aims to produce equivalent queries - same output. It has to spot
patterns because `SELECT (expr as ?var)` and `SELECT * { ... BIND (expr as
?var)}` are the same algebra.
When translating algebra to syntax, `OpAsQuery` is spotting this pattern. If
you want all the `BIND`, use `SELECT *`.
`SELECT (?x AS ?y) (?y AS ?z) {}` has two variables, whereas `SELECT ?z {}`
has one. It's a different query.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]