It seems that the e-Link service fails when the response from the endpoint contains the character -.
In order to reproduce the bug, invoke the service by submitting the NIF file and the SPARQL template below (the SPARQL template already exists on the current live version with id 4534).
{
"exception": "eu.freme.common.exception.BadRequestException",
"path": "/e-link/documents/",
"message": "Could not process the enrichment result from the endpoint=http://dbpedia.org/sparql executing the query=PREFIX dbo: <http://dbpedia.org/ontology/> \nPREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>\n\nCONSTRUCT {\n <http://dbpedia.org/resource/Republic_of_Ireland> ?p ?o .\n\n} \nWHERE \n{ \n OPTIONAL {<http://dbpedia.org/resource/Republic_of_Ireland> ?p ?o } . \n\n FILTER \n (?p in (dbo:largestCity, dbo:politicalLeader, dbo:country, rdfs:seeAlso, dbo:governmentType, dbo:leader, dbo:capital, dbo:birthPlace, dbo:deathPlace, dbo:team, dbo:genre, dbo:party, dbo:spouse)) .\n}. Error message: [line: 8, col: 14] Unknown char: –(8211;0x2013)",
"error": "Bad Request",
"status": 400,
"timestamp": 1478169636888
}
When running the SPARQL query for the http://dbpedia.org/resource/Republic_of_Ireland resource in the DBpedia SPARQL endpoint, the following response is returned.
It seems that the e-Link service fails when the response from the endpoint contains the character
-
.In order to reproduce the bug, invoke the service by submitting the NIF file and the SPARQL template below (the SPARQL template already exists on the current live version with id 4534).
NIF file
SPARQL template
Response from the service
When running the SPARQL query for the
http://dbpedia.org/resource/Republic_of_Ireland
resource in the DBpedia SPARQL endpoint, the following response is returned.The problem might originate from the
dbr:Ireland–NATO_relations
string containing the-
symbol.