You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@annotator.apache.org by GitBox <gi...@apache.org> on 2017/11/30 15:24:17 UTC

[GitHub] bjonnh opened a new issue #21: Ability to use multiple layers of annotation.

bjonnh opened a new issue #21: Ability to use multiple layers of annotation.
URL: https://github.com/apache/incubator-annotator/issues/21
 
 
   This kind of thing cannot be represented in a DOM easily, unless we have a tree and a way for each tree to just represent the index of the annotations in it.
   
   Working in a DOM:
   <annotation type="important_sentence">The <annotation type="animal">cat</annotation> is on the <annotation type="place">roof</annotation></annotation> 
   
   Not working in a DOM:
    <anno1>.....<anno2>.....</anno1>.....</anno2>   
   
   I was envisionning something similar to (not following any W3C recommendation here, just an idea)
   <text>
   Something is here
   <annotations>
   <annotation_layer><annotation type="verb" start_index="9" end_index="11">is</annotation></annotation_layer>
   <annotation_layer><annotation type="sentence" start_index="0" end_index="-1">Something is here</annotation></annotation_layer>
   <annotation_layer><annotation type="beginning" start_index="0" end_index="11">Something is</annotation></annotation_layer>
   <annotation_layer><annotation type="end" start_index="9" end_index="15">is here</annotation></annotation_layer>
   </annotations>
   </text>
   
   But copying the text over and over is probably not a good idea?
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services