W3C home > Mailing lists > Public > public-openannotation@w3.org > July 2012

HTML and text Re: Questionn on annotation a text section

From: Sebastian Hellmann <hellmann@informatik.uni-leipzig.de>
Date: Wed, 25 Jul 2012 08:19:14 +0200
Message-ID: <500F8FE2.8080408@informatik.uni-leipzig.de>
To: Robert Sanderson <azaroth42@gmail.com>
CC: Reto Bachmann-Gmür <reto@apache.org>, public-openannotation <public-openannotation@w3.org>
Hi all,
Here is basically the same annotation in NIF:

<http://example.org/2012/07/18/news#offset_97_103> its:mentions <http://dbpedia.org/resource/Eiffel_Tower> .

(yes it is basically only one triple). We are currently preparing a 
draft for the NIF 2.0 Spec: http://wiki.nlp2rdf.org/ We really would 
like to have a one-to-one transition to Open Annotation and I will write 
a separate mail regarding this soon.

I have a question on the text selection. How do you mix your 
TextOffsetSelector with HTML? Especially doing the transition to Xpath.
E.g. <h2 title="Begrüßung" id="welcomeheader" >Hall&ouml;chen!</h2>

I assume that your TextOffsetSelector assumes plain text and works on 
the HTML sources?
Do you have a transition from XPath (interpreting HTML source as DOM) to 
text and vice versa?
Sebastian


Am 19.07.2012 08:02, schrieb Robert Sanderson:
>
> Dbpedia "page" or "resource"?
>
> Assuming you mean a semantic tag:
>
> <_:Anno1> a oax:Tag ;
>    oa:hasSemanticTag <http://dbpedia.org/resource/Eiffel_Tower> ;
>    oa:hasTarget <_:SpecificResource1> .
>
> <_:SpecificResource1> a oa:SpecificResource ;
>    oa:hasSource <http://example.org/2012/07/18/news> ;
>    oa:hasSelector <_:Selector1> .
>
> <_:Selector1> a oax:TextOffsetSelector ;
>    oax:offset 97 ;
>    oax:range 5 .
>
>
> Hope that helps!
>
> Rob
>
>


-- 
Dipl. Inf. Sebastian Hellmann
Department of Computer Science, University of Leipzig
Events:
   * http://sabre2012.infai.org/mlode (Leipzig, Sept. 23-24-25, 2012)
   * http://wole2012.eurecom.fr (*Deadline: July 31st 2012*)
Projects: http://nlp2rdf.org , http://dbpedia.org
Homepage: http://bis.informatik.uni-leipzig.de/SebastianHellmann
Research Group: http://aksw.org
Received on Wednesday, 25 July 2012 06:19:46 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:38:10 UTC