Search Mailing List Archives

Limit search to: Subject & Body Subject Author
Sort by: Reverse Sort
Limit to: All This Week Last Week This Month Last Month
Select Date Range     through    

[bioontology-support] Context Value in Annotator Service

Clement Jonquet jonquet at
Fri Apr 13 05:32:47 PDT 2012

Hi Vivek, 


Be sure to have the parameter withContext=true, otherwise you will not see
the <context> element in the returned  XML.


FYI: the withContext parameter is here if you explicitly wants to know why
each annotation (direct or not) was created. For instance, annotating the
text “skin melanoma and melanoma are bad cancer” with only ontology 46453
will return:

-          2 annotations with term 46453/DOID:1909 but with different
contexts if withContext=true

-          1 annotation with term 46453/DOID:1909 but without context if


In that second case what you want to look at is the score of the annotation
that represents the fact that in your text “melanoma” was more present than

Try it out at: 


I hope it helps ;)




Dr. Clement JONQUET  -  PhD in Informatics  -  Assistant Professor


 <mailto:jonquet at> jonquet at



                University of Montpellier


                161 rue Ada 
                34095 Montpellier Cdx 5



Tel:                +33/4 67 14 97 43     

Fax:               +33/4 67  41 85 00

Skype:          clementpro

Twitter:         <> @jonquet_lirmm

Slideshare:   <> jonquet






De : bioontology-support-bounces at
[mailto:bioontology-support-bounces at] De la part de Trish
Envoyé : vendredi 13 avril 2012 11:08
À : Vivek Juluri
Cc : support at
Objet : Re: [bioontology-support] Context Value in Annotator Service


Hi Vivek, 


The context or characters matched from the input text can be found by using
the <from> and <to> attributes within the annotationBean under <context>.








On Apr 10, 2012, at 10:37 AM, Vivek Juluri wrote:



In my current application i am using Annotator Service. I am using rest
service and i am getting XML
properly. but in that XML i am unable to find Context value.


In the Biportal site it is
showing the Context in the result grid. How should i get the Context value
from XML?


Please let me know if need any more information from my side.





bioontology-support mailing list
 <mailto:bioontology-support at>
bioontology-support at


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 7261 bytes
Desc: not available
URL: <>

More information about the bioontology-support mailing list