You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jena.apache.org by "afs (via GitHub)" <gi...@apache.org> on 2024/10/26 13:30:58 UTC
[I] Recording substituted values [jena]
afs opened a new issue, #2799:
URL: https://github.com/apache/jena/issues/2799
### Version
5.2.0
### What happened?
Substitution applied by `QueryTransformOps` does not put assignments into the projection if the query is `SELECT *`.
### Relevant output and stacktrace
```shell
public class mainSelectStarSubstitution {
public static void main() {
Model model = ModelFactory.createDefaultModel();
model.add(OWL.Thing, RDF.type, OWL.Class);
model.add(OWL.Nothing, RDF.type, RDFS.Class);
Query query = QueryFactory.create("SELECT * { ?this a ?type }");
// **** Workaround.
//Query query = QueryFactory.create("SELECT ?this { ?this a ?type }");
query.setQueryResultStar(false);
QueryExecution qExec = QueryExecutionDatasetBuilder.create().
query(query).
model(model).
//initialBinding(Binding.builder().add(Var.alloc("this"), OWL.Thing.asNode()).build()).
substitution("this", OWL.Thing).
build();
System.out.println(qExec.getQuery());
System.out.println(qExec.getQueryString());
}
}
```
### Are you interested in making a pull request?
Yes
--
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: issues-unsubscribe@jena.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org
Re: [I] Recording substituted values [jena]
Posted by "Tpt (via GitHub)" <gi...@apache.org>.
Tpt commented on issue #2799:
URL: https://github.com/apache/jena/issues/2799#issuecomment-2552248329
Similar issue in Oxigraph: oxigraph/oxigraph#1128
An idea: change the variable sustitution definition to make `SELECT * WHERE P` transparent for substitution: all variables should be substituted in this case and not only the variable in-scope in `P`.
--
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: issues-unsubscribe@jena.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org
Re: [I] Recording substituted values [jena]
Posted by "afs (via GitHub)" <gi...@apache.org>.
afs commented on issue #2799:
URL: https://github.com/apache/jena/issues/2799#issuecomment-2552293117
This is not the bug of #2896 which is more https://github.com/oxigraph/oxigraph/issues/1128.
For this issue, where it is actual replacement, not `LATERAL` injection, it's a matter of turning off the `SELECT *`. The select expression has actually been updated - then hidden by the change of "*".
--
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: issues-unsubscribe@jena.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org
Re: [I] Recording substituted values [jena]
Posted by "afs (via GitHub)" <gi...@apache.org>.
afs closed issue #2799: Recording substituted values
URL: https://github.com/apache/jena/issues/2799
--
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: issues-unsubscribe@jena.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org
Re: [I] Recording substituted values [jena]
Posted by "Tpt (via GitHub)" <gi...@apache.org>.
Tpt commented on issue #2799:
URL: https://github.com/apache/jena/issues/2799#issuecomment-2555171436
Thank you! Sorry for the noise.
--
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: issues-unsubscribe@jena.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@jena.apache.org
For additional commands, e-mail: issues-help@jena.apache.org