You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Richard Eckart de Castilho (JIRA)" <de...@uima.apache.org> on 2017/09/22 09:14:00 UTC

[jira] [Created] (UIMA-5586) uv3: XmiCasDeserializer does not handle DocumentAnnotation subclasses as before

Richard Eckart de Castilho created UIMA-5586:
------------------------------------------------

             Summary: uv3: XmiCasDeserializer does not handle DocumentAnnotation subclasses as before
                 Key: UIMA-5586
                 URL: https://issues.apache.org/jira/browse/UIMA-5586
             Project: UIMA
          Issue Type: Bug
          Components: Core Java Framework
    Affects Versions: 3.0.0SDK-beta
            Reporter: Richard Eckart de Castilho


Consider the case that you have custom subclass of the uima `DocumentAnnotation`, let's call it `DocumentMetaData`. Next, we have an XMI file which contains an annotation of the `DocumentMetaData` type.

When loading such an XMI file in UIMAv2, the CAS ends up with a single `DocumentMetaData` annotation which is accessible via `cas.getDocumentAnnotation()`.

When loading the same file with UIMAv3, the CAS ends up with both, a `DocumentAnnotation` and a `DocumentMetaData` annotation and `cas.getDocumentAnnotation()` returns the former.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Re: [jira] [Created] (UIMA-5586) uv3: XmiCasDeserializer does not handle DocumentAnnotation subclasses as before

Posted by Marshall Schor <ms...@schor.com>.
thanks!  will take a look...

-M


On 9/22/2017 5:14 AM, Richard Eckart de Castilho (JIRA) wrote:
> Richard Eckart de Castilho created UIMA-5586:
> ------------------------------------------------
>
>              Summary: uv3: XmiCasDeserializer does not handle DocumentAnnotation subclasses as before
>                  Key: UIMA-5586
>                  URL: https://issues.apache.org/jira/browse/UIMA-5586
>              Project: UIMA
>           Issue Type: Bug
>           Components: Core Java Framework
>     Affects Versions: 3.0.0SDK-beta
>             Reporter: Richard Eckart de Castilho
>
>
> Consider the case that you have custom subclass of the uima `DocumentAnnotation`, let's call it `DocumentMetaData`. Next, we have an XMI file which contains an annotation of the `DocumentMetaData` type.
>
> When loading such an XMI file in UIMAv2, the CAS ends up with a single `DocumentMetaData` annotation which is accessible via `cas.getDocumentAnnotation()`.
>
> When loading the same file with UIMAv3, the CAS ends up with both, a `DocumentAnnotation` and a `DocumentMetaData` annotation and `cas.getDocumentAnnotation()` returns the former.
>
>
>
> --
> This message was sent by Atlassian JIRA
> (v6.4.14#64029)
>