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

QueryBuilder (Extrascomponent) does not handle namespaces in filters.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Jena 2.13.0, Jena 2.13.1, Jena 3.0.0
    • Jena
    • None
    • all

    Description

      new SelectBuilder()
      .addPrefix( "afn", "http://jena.hpl.hp.com/ARQ/function#")
      .addVar( "?s" )
      .addVar( "?o")
      .addVar( "?value")
      .addWhere( "?s", "?p", "?o")
      .addFilter("(afn:namespace(?node) = 'namespace') and (afn:localname(?node) != 'localname')");
      

      fails with a NPE because the prologue in the internally used SPARQLParser11 is not set.

      No known work around exists.

      Attachments

        1. JENA-925-2.13.0.patch
          3 kB
          Claude Warren

        Activity

          People

            claude Claude Warren
            claude Claude Warren
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 3h
                3h
                Remaining:
                Remaining Estimate - 3h
                3h
                Logged:
                Time Spent - Not Specified
                Not Specified