Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-1317

Property path with wildcard hack fails to consider incoming path

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Jena 3.2.0
    • Jena 3.3.0
    • ARQ
    • None

    Description

      It looks like the evaluation of a property path with an alternative of a non-existing property and it's negation fails:

      Data (data.ttl):

      @prefix :    <http://example.com/> .
      :a :p :b .
      

      Query (query.txt):

      PREFIX : <http://example.com/>
      SELECT ?u {
      :b ^(:p1|!:p1) ?u .
      }
      

      Algebra:

      (project (?u)
          (path ?u (alt <http://example.com/p1> (notoneof <http://example.com/p1>)) <http://example.com/b>))
      

      Called with
      sparql --data data.ttl --query query.txt --explain

      Originally reported here: (http://stackoverflow.com/questions/43317635/sparql-path-between-two-nodes/43319876#43319876)

      Attachments

        Activity

          People

            andy Andy Seaborne
            LorenzB Lorenz Bühmann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: