Re: ITS 2.0 example in web annotation

Shortenting the URL of the new request, in case your client breaks it:
http://tinyurl.com/z39hs2g <http://tinyurl.com/z39hs2g>

The outcome then is as below.

- Felix


[ a       <http://www.w3.org/ns/oa#Annotation> ;
  <http://www.w3.org/ns/oa#hasTarget>
          [ itsrdf:taClassRef    "http://dbpedia.org/ontology/PopulatedPlace, http://dbpedia.org/ontology/Place, http://nerd.eurecom.fr/ontology#Location, http://dbpedia.org/ontology/Region, http://dbpedia.org/ontology/AdministrativeRegion, http://dbpedia.org/ontology/Location" ;
            itsrdf:taConfidence  "0.9145331710065083"^^xsd:double ;
            itsrdf:taIdentRef    dbpedia:Berlin ;
            <http://www.w3.org/ns/oa#hasSelector>
                    [ a                              <http://www.w3.org/ns/oa#TextPositionSelector> ;
                      <http://www.w3.org/ns/oa#end>  "38"^^xsd:int ;
                      <http://www.w3.org/ns/oa#start>
                              "32"^^xsd:int
                    ] ;
            <http://www.w3.org/ns/oa#hasSource>
                    <http://example.com/mydocument#char=32,38>
          ]
] .

[ a       <http://www.w3.org/ns/oa#Annotation> ;
  <http://www.w3.org/ns/oa#hasTarget>
          [ itsrdf:taClassRef    "http://dbpedia.org/ontology/Agent, http://nerd.eurecom.fr/ontology#Person, 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://example.com/mydocument#char=11,27>
          ]
] .



> Am 15.04.2016 um 06:40 schrieb Felix Sasaki <fsasaki@w3.org>:
> 
> Hello Raphael,
> 
>> Am 14.04.2016 um 21:19 schrieb Raphaël Troncy <raphael.troncy@eurecom.fr <mailto: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“ <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%E2%80%9C>
>> 
>> 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#Annotation>> ;
>>>   <http://www.w3.org/ns/oa#hasTarget <http://www.w3.org/ns/oa#hasTarget>>
>>>           [ itsrdf:taClassRef
>>>  "http://nerd.eurecom.fr/ontology#Person <http://nerd.eurecom.fr/ontology#Person>,
>>> http://dbpedia.org/ontology/Agent <http://dbpedia.org/ontology/Agent>, http://dbpedia.org/ontology/Person <http://dbpedia.org/ontology/Person>" ;
>>>             itsrdf:taConfidence  "0.9719457193919854"^^xsd:double ;
>>>             itsrdf:taIdentRef    dbpedia:Marlene_Dietrich ;
>>>             <http://www.w3.org/ns/oa#hasSelector <http://www.w3.org/ns/oa#hasSelector>>
>>>                     [ a
>>>  <http://www.w3.org/ns/oa#TextPositionSelector <http://www.w3.org/ns/oa#TextPositionSelector>> ;
>>>                       <http://www.w3.org/ns/oa#end <http://www.w3.org/ns/oa#end>>  "27"^^xsd:int ;
>>>                       <http://www.w3.org/ns/oa#start <http://www.w3.org/ns/oa#start>>
>>>                               "11"^^xsd:int
>>>                     ] ;
>>>             <http://www.w3.org/ns/oa#hasSource <http://www.w3.org/ns/oa#hasSource>>
>>>                     <http://freme-project.eu/#char=11,27 <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 <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 <mailto:raphael.troncy@eurecom.fr> & raphael.troncy@gmail.com <mailto:raphael.troncy@gmail.com>
>> Tel: +33 (0)4 - 9300 8242
>> Fax: +33 (0)4 - 9000 8200
>> Web: http://www.eurecom.fr/~troncy/ <http://www.eurecom.fr/~troncy/>

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