freme-project / e-Entity

Apache License 2.0
1 stars 1 forks source link

URLs change #37

Closed jnehring closed 8 years ago

jnehring commented 8 years ago

This request

POST http://api-dev.freme-project.eu/current/e-entity/dbpedia-spotlight/documents?confidence=0.2&language=en&informat=turtle

@prefix nif:<http://persistence.uni-leipzig.org/nlp2rdf/ontologies/nif-core#> .
@prefix itsrdf: <http://www.w3.org/2005/11/its/rdf#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

<http://example.org/document/1#char=0,17>
  a nif:String , nif:Context, nif:RFC5147String ;
  nif:isString "Welcome to Berlin"^^xsd:string;
  nif:beginIndex "0"^^xsd:nonNegativeInteger;
  nif:endIndex "21"^^xsd:nonNegativeInteger;
  nif:sourceUrl <http://differentday.blogspot.com/2007_01_01_archive.html>.

Produces wrong output. See snippet here:

<http://freme-project.eu/char=8,10>
        a                     nif:RFC5147String , nif:Word ;
        nif:anchorOf          "to" ;
        nif:beginIndex        "8" ;
        nif:endIndex          "10" ;
        nif:nextWord          <http://freme-project.eu/char=11,17> ;
        nif:previousWord      <http://freme-project.eu/char=0,7> ;
        nif:referenceContext  <http://freme-project.eu/char=0,17> ;
        nif:sentence          <http://freme-project.eu/char=0,17> .

The resource URI is changed from http://example.orgto http://freme-project.eu. According to my understanding the base URL should be changed when informat=text.

m1ci commented 8 years ago

correct, will fix this

m1ci commented 8 years ago

fixed, try curl -v -X POST -d @file.ttl "http://api-dev.freme-project.eu/current/e-entity/dbpedia-spotlight/documents?confidence=0.2&language=en&informat=turtle" -H "Content-Type:"

jnehring commented 8 years ago

Works. Thanks for the update