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

NodeUtils.compareRDFTerms() does not handle variable nodes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Jena 2.12.0
    • Jena 2.12.1
    • ARQ
    • None

    Description

      NodeUtils.compareRDFTerms() does not cope with variable nodes e.g.

      Node x = NodeFactory.createVariable("x");
      Node y = NodeFactory.createVariable("y");
      
      // This produces an ARQ internal error
      int compare = NodeUtils.compareRDFTerms(x, y);
      

      I would propose that we add support for comparing variable nodes making them less than blank nodes in the overall ordering

      Attachments

        1. JENA-784.patch
          4 kB
          Rob Vesse

        Activity

          People

            rvesse Rob Vesse
            rvesse Rob Vesse
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: