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

xsd:anyURI is sameValueAs an xsd:string or simple literal

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Done
    • None
    • Jena 2.11.0
    • Jena

    Description

      In the memory model xsd:anyURI matches in Graph.find an xsd;string with the same lexical form.

      "http://example/"^xsd:anyURI matches "http://example/"^xsd:string and "http://example/"

      This is because the value returned by Xerces is a Java string and isEqual in XSDDatatype is based on equality of Xerces value regerdless of datatype to account for derived types.

      The proposed solution in the patch is to have a new XSD datatype that uses the BaseDatatype isEquals machinery which makes equity "same datatype, same value".

      Also applies to xsd:QName, xsd:IDREF, xsd:NOTATION

      Attachments

        1. Jena_AnyURI_r1190400.patch
          6 kB
          Andy Seaborne
        2. Jena_AnyURI_r1190400-v2.patch
          8 kB
          Andy Seaborne
        3. ASF.LICENSE.NOT.GRANTED--jena-148_regression.patch
          20 kB
          Thorsten Möller

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: