You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@uima.apache.org by James Moliere <jm...@ucsd.edu> on 2012/05/03 19:05:32 UTC

obtaining xmi:id from tag.

Hello,
I'm having difficulty extracting the xmi:id attribute value from each of my 
elements in my xmi file.  Assuming there are xmi:id attribute values, how do I 
extract it's value from the method below

public void processCas(CAS aCAS) throws ResourceProcessException {
    ???
}

James


Re: obtaining xmi:id from tag.

Posted by Marshall Schor <ms...@schor.com>.

On 5/3/2012 2:49 PM, James Moliere wrote:
> Marshall Schor<ms...@...>  writes:
>> The xmi:id is not a part of the CAS representation, it only exists when the
>> file is persisted in the xmi format.
>>
>> -Marshall
>>
>
> I'm a bit new to UIMA. Do developers typically generate their own unique
> IDs andsimply add the ID attribute to each element in the file?

I don't think this is usually done.  If some kind of unique id (for each feature 
structure) is required by the application, it of course could be done, but I 
think that requirement is not the usual case for users of UIMA.

In UIMA, it is much more common to have a feature structure hold a reference 
directly to another feature structure, rather than through a unique ID field.

-Marshall

>
>
>
>

Re: obtaining xmi:id from tag.

Posted by James Moliere <jm...@ucsd.edu>.
Marshall Schor <ms...@...> writes:
> 
> The xmi:id is not a part of the CAS representation, it only exists when the
> file is persisted in the xmi format.
> 
> -Marshall
> 


I'm a bit new to UIMA. Do developers typically generate their own unique 
IDs andsimply add the ID attribute to each element in the file?  



Re: obtaining xmi:id from tag.

Posted by Marshall Schor <ms...@schor.com>.
The xmi:id is not a part of the CAS representation, it only exists when the file 
is persisted in the xmi format.

-Marshall

On 5/3/2012 1:05 PM, James Moliere wrote:
> Hello,
> I'm having difficulty extracting the xmi:id attribute value from each of my
> elements in my xmi file.  Assuming there are xmi:id attribute values, how do I
> extract it's value from the method below
>
> public void processCas(CAS aCAS) throws ResourceProcessException {
>      ???
> }
>
> James
>
>