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

Wrong determination of variables with property functions.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Jena 3.3.0
    • Jena 3.4.0
    • None
    • None

    Description

      Bug in VarFinder:

      public static void main(String... args) {
          String z = String.join("\n"
                                 ,"    (propfunc <http://example/pf>"
                                 ,"      ?x (?y 1)"
                                 ,"      (table unit))"
                                 );
          vfind(z);                         
      }
      
      public static void vfind(String z) {
          Op op = SSE.parseOp(z);
          System.out.println(op);
          VarFinder vf = VarFinder.process(op);
          System.out.println(vf);
      }
      

      prints

      (propfunc <http://example/pf>
        ?x (?y 1)
        (table unit))
      
      Fixed:[?y], Filter:[], Filter2:[], Opt:[], Assign:[]
      

      should be

      Fixed:[?x, ?y], Filter:[], Filter2:[], Opt:[], Assign:[]
      

      Attachments

        Issue Links

          Activity

            People

              andy Andy Seaborne
              andy Andy Seaborne
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: