On 5/3/21 7:01 PM, Andy Seaborne wrote:
https://issues.apache.org/jira/browse/JENA-1963

Try

sparql --strict
sparql --engine=ref
sparql --optimize=off

The optimization rule that sees "FILTER(?n = ?m)" and tries to make it a join goes wrong because of the interaction with substitution.

yes, this solves the issue


BTW:
https://afs.github.io/substitute.html

lists several problems with NOT EXISTS and gives a solution.

The solution would also work for parameterized queries if the scope-renaming is omitted.

ah, thank you for the pointer!
olivier

Reply via email to