freme-project / freme-ner

Apache License 2.0
6 stars 1 forks source link

fails with informat=text/html caused by different nif prefix #151

Closed ArneBinder closed 7 years ago

ArneBinder commented 7 years ago

This request

curl -X POST -H "Content-Type: text/plain" -H "Accept: text/turtle" -H "Cache-Control: no-cache" -H "Postman-Token: ee4bc3dd-e67c-b3a7-0357-4803b82280d2" -d '<p>The Eiffel Tower (/ˈaɪfəl ˈtaʊər/ EYE-fəl TOWR; French: tour Eiffel [tuʁ‿ɛfɛl] About this sound listen) is a wrought iron lattice tower on the Champ de Mars in Paris.</p>' "http://api-dev.freme-project.eu/current/e-entity/freme-ner/documents?language=en&dataset=dbpedia&mode=all&informat=html"

produces a BadRequestException.

It happens because the input html is converted to turtle, but with nif version 2.0. The extractFirstPlaintext used in the FRemeNerEnrichment tries to iterate only over context resources with the nif prefix http://persistence.uni-leipzig.org/nlp2rdf/ontologies/nif-core#.

jnehring commented 7 years ago

caused by https://github.com/freme-project/basic-services/issues/106

ArneBinder commented 7 years ago

Should be fixed, @jnehring please review.

jnehring commented 7 years ago

i need to re-activate jenkins in order to see if this is fixed. will do it tomorrow

ArneBinder commented 7 years ago

Jenkins is re-activted and now this works on dev.

jnehring commented 7 years ago

This works now.