We're updating the issue view to help you get more done. 

Sesame SPARQL engine misinterprets half-unbounded path length expressions

Description

0. Same tree as in . 1. Try the following query: PREFIX test: <http://www.testerie.test.com/nodes#> select ?node ?name where { ?node test:hasParent{2} test:B . ?node test:name ?name . } RESULT: ============================================== node = http://www.testerie.test.com/nodes#K name = KKK ============================================== node = http://www.testerie.test.com/nodes#J name = JJJ That's okay. 2. Now try this one: PREFIX test: <http://www.testerie.test.com/nodes#> select ?node ?name where { ?node test:hasParent{0,2} test:B . ?node test:name ?name . } RESULT: ============================================== node = http://www.testerie.test.com/nodes#B name = BBB ============================================== node = http://www.testerie.test.com/nodes#F name = FFF ============================================== node = http://www.testerie.test.com/nodes#E name = EEE ============================================== node = http://www.testerie.test.com/nodes#K name = KKK ============================================== node = http://www.testerie.test.com/nodes#J name = JJJ Again, okay. 3. This one: PREFIX test: <http://www.testerie.test.com/nodes#> select ?node ?name where { ?node test:hasParent{,2} test:B . ?node test:name ?name . } EXPECTED RESULT: Same as under 2. ACTUAL RESULT: ============================================== node = http://www.testerie.test.com/nodes#K name = KKK ============================================== node = http://www.testerie.test.com/nodes#J name = JJJ 4. And this one: PREFIX test: <http://www.testerie.test.com/nodes#> select ?node ?name where { ?node test:hasParent{0,} test:B . ?node test:name ?name . } EXPECTED RESULT: Same as under 2. ACTUAL RESULT: ============================================== node = http://www.testerie.test.com/nodes#B name = BBB Seems like the parser is misinterpreting the one-way unbounded notation. Note: I'm creating this one as critical rather than minor because the answer is actually wrong.

Environment

None

Status

Assignee

JeenB

Reporter

Ben Tels

Labels

None

Fix versions

Affects versions

2.6.1

Priority

Critical