You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tika.apache.org by "Ray Gauss II (Created) (JIRA)" <ji...@apache.org> on 2012/02/03 00:04:53 UTC

[jira] [Created] (TIKA-859) DublinCore Metadata Keys Should be Prefixed and Property Objects

DublinCore Metadata Keys Should be Prefixed and Property Objects
----------------------------------------------------------------

                 Key: TIKA-859
                 URL: https://issues.apache.org/jira/browse/TIKA-859
             Project: Tika
          Issue Type: Improvement
          Components: metadata
    Affects Versions: 1.1
            Reporter: Ray Gauss II
             Fix For: 1.1
         Attachments: dublincore-prefixed-patch.diff

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.

{code:title=DublinCore.java}
String SUBJECT = "subject";
{code}
would become:
{code:title=DublinCore.java}
@Deprecated
String SUBJECT = "subject";

Property DC_SUBJECT = Property.internalTextBag(PREFIX_DC + PREFIX_DELIMITER + "subject");
{code}

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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (TIKA-859) DublinCore Metadata Keys Should be Prefixed and Property Objects

Posted by "Ray Gauss II (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TIKA-859?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ray Gauss II updated TIKA-859:
------------------------------

    Attachment: dublincore-prefixed-patch.diff

Patch for changes to DublinCore prefixed Property definitions.
                
> DublinCore Metadata Keys Should be Prefixed and Property Objects
> ----------------------------------------------------------------
>
>                 Key: TIKA-859
>                 URL: https://issues.apache.org/jira/browse/TIKA-859
>             Project: Tika
>          Issue Type: Improvement
>          Components: metadata
>    Affects Versions: 1.1
>            Reporter: Ray Gauss II
>             Fix For: 1.1
>
>         Attachments: dublincore-prefixed-patch.diff
>
>
> 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.
> {code:title=DublinCore.java}
> String SUBJECT = "subject";
> {code}
> would become:
> {code:title=DublinCore.java}
> @Deprecated
> String SUBJECT = "subject";
> Property DC_SUBJECT = Property.internalTextBag(PREFIX_DC + PREFIX_DELIMITER + "subject");
> {code}
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (TIKA-859) DublinCore Metadata Keys Should be Prefixed and Property Objects

Posted by "Ray Gauss II (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TIKA-859?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ray Gauss II updated TIKA-859:
------------------------------

    Attachment: dublincore-prefixed-and-updated-references-parsers-patch
                dublincore-prefixed-and-updated-references-core-patch

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.
                
> DublinCore Metadata Keys Should be Prefixed and Property Objects
> ----------------------------------------------------------------
>
>                 Key: TIKA-859
>                 URL: https://issues.apache.org/jira/browse/TIKA-859
>             Project: Tika
>          Issue Type: Improvement
>          Components: metadata
>    Affects Versions: 1.1
>            Reporter: Ray Gauss II
>             Fix For: 1.2
>
>         Attachments: dublincore-prefixed-and-updated-references-core-patch, dublincore-prefixed-and-updated-references-parsers-patch
>
>
> 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.
> {code:title=DublinCore.java}
> String SUBJECT = "subject";
> {code}
> would become:
> {code:title=DublinCore.java}
> @Deprecated
> String SUBJECT = "subject";
> Property DC_SUBJECT = Property.internalTextBag(PREFIX_DC + PREFIX_DELIMITER + "subject");
> {code}
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (TIKA-859) DublinCore Metadata Keys Should be Prefixed and Property Objects

Posted by "Chris A. Mattmann (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TIKA-859?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Chris A. Mattmann updated TIKA-859:
-----------------------------------

    Fix Version/s:     (was: 1.1)
                   1.2

- push out to 1.2
                
> DublinCore Metadata Keys Should be Prefixed and Property Objects
> ----------------------------------------------------------------
>
>                 Key: TIKA-859
>                 URL: https://issues.apache.org/jira/browse/TIKA-859
>             Project: Tika
>          Issue Type: Improvement
>          Components: metadata
>    Affects Versions: 1.1
>            Reporter: Ray Gauss II
>             Fix For: 1.2
>
>         Attachments: dublincore-prefixed-patch.diff
>
>
> 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.
> {code:title=DublinCore.java}
> String SUBJECT = "subject";
> {code}
> would become:
> {code:title=DublinCore.java}
> @Deprecated
> String SUBJECT = "subject";
> Property DC_SUBJECT = Property.internalTextBag(PREFIX_DC + PREFIX_DELIMITER + "subject");
> {code}
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (TIKA-859) DublinCore Metadata Keys Should be Prefixed and Property Objects

Posted by "Nick Burch (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TIKA-859?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nick Burch resolved TIKA-859.
-----------------------------

    Resolution: Fixed

This has been fixed as part of TIKA-925, using a slightly different technique which maintains backwards compatibility in a cleaner way
                
> DublinCore Metadata Keys Should be Prefixed and Property Objects
> ----------------------------------------------------------------
>
>                 Key: TIKA-859
>                 URL: https://issues.apache.org/jira/browse/TIKA-859
>             Project: Tika
>          Issue Type: Improvement
>          Components: metadata
>    Affects Versions: 1.1
>            Reporter: Ray Gauss II
>             Fix For: 1.2
>
>         Attachments: dublincore-prefixed-and-updated-references-core-patch, dublincore-prefixed-and-updated-references-parsers-patch
>
>
> 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.
> {code:title=DublinCore.java}
> String SUBJECT = "subject";
> {code}
> would become:
> {code:title=DublinCore.java}
> @Deprecated
> String SUBJECT = "subject";
> Property DC_SUBJECT = Property.internalTextBag(PREFIX_DC + PREFIX_DELIMITER + "subject");
> {code}
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (TIKA-859) DublinCore Metadata Keys Should be Prefixed and Property Objects

Posted by "Ray Gauss II (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/TIKA-859?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ray Gauss II updated TIKA-859:
------------------------------

    Attachment:     (was: dublincore-prefixed-patch.diff)
    
> DublinCore Metadata Keys Should be Prefixed and Property Objects
> ----------------------------------------------------------------
>
>                 Key: TIKA-859
>                 URL: https://issues.apache.org/jira/browse/TIKA-859
>             Project: Tika
>          Issue Type: Improvement
>          Components: metadata
>    Affects Versions: 1.1
>            Reporter: Ray Gauss II
>             Fix For: 1.2
>
>         Attachments: dublincore-prefixed-and-updated-references-core-patch, dublincore-prefixed-and-updated-references-parsers-patch
>
>
> 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.
> {code:title=DublinCore.java}
> String SUBJECT = "subject";
> {code}
> would become:
> {code:title=DublinCore.java}
> @Deprecated
> String SUBJECT = "subject";
> Property DC_SUBJECT = Property.internalTextBag(PREFIX_DC + PREFIX_DELIMITER + "subject");
> {code}
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira