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

When registering an incompatible Datatype a warning should be logged

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: Jena 3.8.0
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None

      Description

      Classes that extend AdhocDatatype (or Basedatatype) and want to allow multiple instances of the datatype class to be considered equal must do the following:

      1. Override BaseDatatype.isEqual(LiteralLabel litLabel1, LiteralLabel litLabel2) to call isEqualByTerm(LiteralLabel litLabel1, LiteralLabel litLabel2).
      2. Override Object.equals(Object obj)
      3. Override Object.hashCode(), potentially calling BaseDatatype.getHashCode( LiteralLabel lit )

      There should be a warning in the log if TypeMapper.register(RDFDatatype type ) is called and there is an existing datatype registered for the type.getJavaClass()

       

        Attachments

          Activity

            People

            • Assignee:
              claude Claude Warren
              Reporter:
              claude Claude Warren
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: