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

Property paths match failure with 2-steps symmetric pattern

Description

There seems to be a regression in property paths behavior, affecting versions from 2.6.4 to 2.6.8. The bug shows up when trying to match a graph pattern of the form (this is pseudo-graphics): C1 <-- B2C – B1 <-- A2B – A – A2B --> B2 – B2C --> C2 Here's the test code (Scala):

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 val repo = new SailRepository(new MemoryStore()) repo.initialize() val conn = repo.getConnection() val factory = conn.getValueFactory val a = factory.createURI("http://example.org/a") val b1 = factory.createURI("http://example.org/b1") val b2 = factory.createURI("http://example.org/b2") val c1 = factory.createURI("http://example.org/c1") val c2 = factory.createURI("http://example.org/c2") val a2b = factory.createURI("http://example.org/a2b") val b2c = factory.createURI("http://example.org/b2c") conn.add(a, a2b, b1) conn.add(a, a2b, b2) conn.add(b1, b2c, c1) conn.add(b2, b2c, c2) val query = """select * where{ ?c1 ^<http://example.org/b2c>/^<http://example.org/a2b>/<http://example.org/a2b>/<http://example.org/b2c> ?c2 }"""; val qRes = conn.prepareTupleQuery(QueryLanguage.SPARQL, query).evaluate() try{ assert(qRes.hasNext, "No results returned from the SPARQL query") } finally { while(qRes.hasNext()) { qRes.next() } qRes.close() conn.close() repo.shutDown() }

Environment

JRE 1.6.0_23 64 bit, Windows 7 x64

Status

Assignee

JeenB

Reporter

Oleg Mirzov

Labels

None

Components

Fix versions

Affects versions

2.6.4

Priority

Major