freme-project / basic-services

Apache License 2.0
0 stars 1 forks source link

[urlsupport filter] does not work as expected #95

Closed ArneBinder closed 8 years ago

ArneBinder commented 8 years ago

try this:

curl -X POST -H "Content-Type: text/html" -H "Accept: text/turtle" -H "Cache-Control: no-cache" -d '' "http://api-dev.freme-project.eu/current/e-entity/freme-ner/documents?language=en&dataset=dbpedia&mode=all&?intype=url&input=https://www.theguardian.com/world/2009/oct/27/berlin-wall-short-history"

It produces:

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

<http://freme-project.eu/#char=0,71>
        a               nif:String , nif:Context , nif:RFC5147String ;
        nif:beginIndex  "0"^^xsd:int ;
        nif:endIndex    "71"^^xsd:int ;
        nif:isString    "https://www.theguardian.com/world/2009/oct/27/berlin-wall-short-history"^^xsd:string .

This is because the parameter intype and especially input are not removed in the filter. So e-Entity, e.g., preferes the value of input, which is just the url, to the body which contains the content from the url.

ArneBinder commented 8 years ago

Sorry, my mistake, there was a typo in my request.