Re: ITS 2.0 example in web annotation

Hello Raphael,

> Am 14.04.2016 um 21:19 schrieb Raphaël Troncy <raphael.troncy@eurecom.fr>:
> 
> Hello Felix,
> 
>> curl -X POST --header "Content-Type: text/plain" --header "Accept:
>> text/n3"
>> "http://api.freme-project.eu/current/e-entity/freme-ner/documents?input=Welcome%20to%20Marlene%20Dietrich%20and%20Berlin&informat=text&outformat=turtle&language=en&dataset=dbpedia&mode=all&filter=freme-ner-output-as-web-annotation“
> 
> The output below is supposed to be the result of a NER/NEL service on this input text, as modeled according to the Web Annotation model, right?

Yes.

> 
>> [ a       <http://www.w3.org/ns/oa#Annotation> ;
>>   <http://www.w3.org/ns/oa#hasTarget>
>>           [ itsrdf:taClassRef
>>  "http://nerd.eurecom.fr/ontology#Person,
>> http://dbpedia.org/ontology/Agent, http://dbpedia.org/ontology/Person" ;
>>             itsrdf:taConfidence  "0.9719457193919854"^^xsd:double ;
>>             itsrdf:taIdentRef    dbpedia:Marlene_Dietrich ;
>>             <http://www.w3.org/ns/oa#hasSelector>
>>                     [ a
>>  <http://www.w3.org/ns/oa#TextPositionSelector> ;
>>                       <http://www.w3.org/ns/oa#end>  "27"^^xsd:int ;
>>                       <http://www.w3.org/ns/oa#start>
>>                               "11"^^xsd:int
>>                     ] ;
>>             <http://www.w3.org/ns/oa#hasSource>
>>                     <http://freme-project.eu/#char=11,27>
>>           ]
>> ] .
> 
> Did you do not forget to include have oa:hasBody in your annotation?

No - if you follow back this thread, the conclusion (from my understand) was that this information should not be in the body. I may have misunderstood, others, in that case, please correct me ... 

> Do you really want to mint <http://freme-project.eu/#char=11,27> as source?
> 

No. The service allows you to mint another URI, see e.g. this request

api.freme-project.eu/current/e-entity/freme-ner/documents?input=Welcome%20to%20Marlene%20Dietrich%20and%20Berlin&informat=text&outformat=turtle&language=en&dataset=dbpedia&mode=all&filter=freme-ner-output-as-web-annotation&prefix=http://example.com/mydocument <http://api.freme-project.eu/current/e-entity/freme-ner/documents?input=Welcome%20to%20Marlene%20Dietrich%20and%20Berlin&informat=text&outformat=turtle&language=en&dataset=dbpedia&mode=all&filter=freme-ner-output-as-web-annotation&prefix=http://example.com/mydocument>

Best,

Felix


>  Raphaël
> 
> -- 
> Raphaël Troncy
> EURECOM, Campus SophiaTech
> Data Science Department
> 450 route des Chappes, 06410 Biot, France.
> e-mail: raphael.troncy@eurecom.fr & raphael.troncy@gmail.com
> Tel: +33 (0)4 - 9300 8242
> Fax: +33 (0)4 - 9000 8200
> Web: http://www.eurecom.fr/~troncy/

Received on Friday, 15 April 2016 04:40:18 UTC