jena
jena copied to clipboard
Optimization error for zero property path.
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