Closed ArneBinder closed 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.
intype
input
Sorry, my mistake, there was a typo in my request.
try this:
It produces:
This is because the parameter
intype
and especiallyinput
are not removed in the filter. So e-Entity, e.g., preferes the value ofinput
, which is just the url, to the body which contains the content from the url.