Tika
  1. Tika
  2. TIKA-859

DublinCore Metadata Keys Should be Prefixed and Property Objects

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: 1.2
    • Component/s: metadata
    • Labels:
      None

      Description

      To help avoid collisions of key names in interfaces Metadata implements and allow for more precise definition of DublinCore the keys should be defined as Property objects with the object name and name attribute containing a prefix and the existing String keys deprecated, i.e.

      DublinCore.java
      String SUBJECT = "subject";
      

      would become:

      DublinCore.java
      @Deprecated
      String SUBJECT = "subject";
      
      Property DC_SUBJECT = Property.internalTextBag(PREFIX_DC + PREFIX_DELIMITER + "subject");
      

      Since the use of the simpler key definition is desired eventually, at some point in the future, perhaps 2.0, these prefixed definitions could themselves be deprecated and the move made back to the simpler names.

        Issue Links

          Activity

          Hide
          Ray Gauss II added a comment -

          Patch for changes to DublinCore prefixed Property definitions.

          Show
          Ray Gauss II added a comment - Patch for changes to DublinCore prefixed Property definitions.
          Hide
          Chris A. Mattmann added a comment -
          • push out to 1.2
          Show
          Chris A. Mattmann added a comment - push out to 1.2
          Hide
          Ray Gauss II added a comment -

          Patches for core and parsers which deprecates existing DublinCore String metadata names and adds prefixed metadata Property objects as the last patch here did, but also updates all references to the now deprecated metadata names to their Property counterparts and adds a few convenience methods in Metadata for working with Property objects as keys.

          Show
          Ray Gauss II added a comment - Patches for core and parsers which deprecates existing DublinCore String metadata names and adds prefixed metadata Property objects as the last patch here did, but also updates all references to the now deprecated metadata names to their Property counterparts and adds a few convenience methods in Metadata for working with Property objects as keys.
          Hide
          Nick Burch added a comment -

          This has been fixed as part of TIKA-925, using a slightly different technique which maintains backwards compatibility in a cleaner way

          Show
          Nick Burch added a comment - This has been fixed as part of TIKA-925 , using a slightly different technique which maintains backwards compatibility in a cleaner way

            People

            • Assignee:
              Unassigned
              Reporter:
              Ray Gauss II
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development