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

          Gavin made changes -
          Link This issue is depended upon by TIKA-759 [ TIKA-759 ]
          Gavin made changes -
          Link This issue blocks TIKA-759 [ TIKA-759 ]
          Gavin made changes -
          Link This issue is depended upon by TIKA-908 [ TIKA-908 ]
          Gavin made changes -
          Link This issue blocks TIKA-908 [ TIKA-908 ]
          Gavin made changes -
          Link This issue is depended upon by TIKA-774 [ TIKA-774 ]
          Gavin made changes -
          Link This issue blocks TIKA-774 [ TIKA-774 ]
          Gavin made changes -
          Link This issue is depended upon by TIKA-842 [ TIKA-842 ]
          Gavin made changes -
          Link This issue blocks TIKA-842 [ TIKA-842 ]
          Nick Burch made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Jörg Ehrlich made changes -
          Link This issue blocks TIKA-759 [ TIKA-759 ]
          Jörg Ehrlich made changes -
          Link This issue blocks TIKA-908 [ TIKA-908 ]
          Ray Gauss II made changes -
          Link This issue blocks TIKA-774 [ TIKA-774 ]
          Ray Gauss II made changes -
          Attachment dublincore-prefixed-patch.diff [ 12513055 ]
          Ray Gauss II made changes -
          Chris A. Mattmann made changes -
          Fix Version/s 1.2 [ 12320169 ]
          Fix Version/s 1.1 [ 12318849 ]
          Ray Gauss II made changes -
          Link This issue blocks TIKA-842 [ TIKA-842 ]
          Ray Gauss II made changes -
          Field Original Value New Value
          Attachment dublincore-prefixed-patch.diff [ 12513055 ]
          Ray Gauss II created issue -

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development