Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-859

DublinCore Metadata Keys Should be Prefixed and Property Objects

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.1
    • 1.2
    • metadata
    • 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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rgauss Ray Gauss II
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: