jena icon indicating copy to clipboard operation
jena copied to clipboard

Optimization error for zero property path.

Open afs opened this issue 2 years ago • 0 comments

Version

4.7.0

What happened?

The following query, on an empty dataset should return no rows because {0} only applies to nodes in the graph. But optimization creates 1 <http://example.com/p>{0} 1 which does have a result.

SELECT * WHERE {
   VALUES ?v { 1 }
   ?v <http://example.com/p>{0} ?v
}

{0} isn't in SPARQL 1.1 but this is the base for ? operator for property paths which is in SPARQL.

Relevant output and stacktrace

No response

Are you interested in making a pull request?

None

afs avatar May 14 '23 18:05 afs