Aklakan opened a new issue, #1397:
URL: https://github.com/apache/jena/issues/1397
### Version
4.6.0-SNAPSHOT
### What happened?
A corner case with OpAsQuery with a failing round trip - detected by
@LorenzBuehmann while trying out the service enhancer plugin #1314 (and blaming
my code for it :innocent:).
It's not high priority but it makes sense to track it nonetheless.
```java
Query origQuery = QueryFactory.create("SELECT * { GRAPH ?g { BIND(?x
AS ?y) }}");
// Structure of pattern: ElementNamedGraph ElementGroup ElementBind
Op origOp = Algebra.compile(origQuery);
Query gotQuery = OpAsQuery.asQuery(origOp);
// Structure of pattern: ElementNamedGraph ElementBind (no
ElementGroup in between)
Op gotOp = Algebra.compile(gotQuery);
```
yields:
```
org.apache.jena.sparql.ARQInternalErrorException: compile(Element)/Not a
structural element: ElementBind
at
org.apache.jena.sparql.algebra.AlgebraGenerator.broken(AlgebraGenerator.java:564)
at
org.apache.jena.sparql.algebra.AlgebraGenerator.compileUnknownElement(AlgebraGenerator.java:170)
at
org.apache.jena.sparql.algebra.AlgebraGenerator.compileElement(AlgebraGenerator.java:156)
```
### Which environment is running?
- [ ] macOS
- [ ] Windows
- [ ] Linux
- [ ] other
### Relevant output and stacktrace
_No response_
### Are you interested in making a pull request?
Maybe
--
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]