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#.
This request
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 prefixhttp://persistence.uni-leipzig.org/nlp2rdf/ontologies/nif-core#
.