Search code examples
metadatauima

How to access document metadata in UIMA?


How do you access document meta data such as Created and Modified date or Title etc. using UIMA and JCas?


Solution

  • By default, such information is not available in UIMA.

    Some collection reader implementations may store such information in subtypes of DocumentAnnotation or other dedicated annotations. E.g. DKPro Core defines a DocumentMetaData type which derives from DocumentAnnotation and DKPro Core reader components store there the original path/URI of the document and may store a title if available.

    Other component collections or collection reader implementations may do similar things.

    Disclosure: I am working on DKPro Core and Apache UIMA