HolgerKnublauch commented on issue #3380:
URL: https://github.com/apache/jena/issues/3380#issuecomment-3187306010
The scenario where I bumped into this was that I am using ExprUtils.parse in
a predictable scenario where I know beforehand that nodes cannot contain
variables.
```
Expr expr = ExprUtils.parse(str, prefixMapping);
if(expr instanceof ExprTripleTerm tt) {
return tt.getNode();
}
return expr.getConstant().asNode();`
```
I had to insert the if to handle the special case. This is no drama, but
still it feels incorrect.
--
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]