freme-project / e-Link

Apache License 2.0
0 stars 0 forks source link

e-link is not working #37

Closed jnehring closed 9 years ago

jnehring commented 9 years ago

On freme-dev and freme-live e-link throws an error. I tried the example from API documentation and submitted it to several templates. The error was always

{
    "timestamp": 1441882148061,
    "message": "Unknown problem. Please contact us.",
    "error": "Internal Server Error",
    "status": 500,
    "exception": "eu.freme.broker.exception.InternalServerErrorException",
    "path": "/e-link/documents"
}
m1ci commented 9 years ago

Info from Jan:

the request is http://api-dev.freme-project.eu/current/e-link/documents?templateid=10 and POST body

@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix nif: <http://persistence.uni-leipzig.org/nlp2rdf/ontologies/nif-core#> .
@prefix itsrdf: <http://www.w3.org/2005/11/its/rdf#> .

<http://127.0.0.1:9995/spotlight#char=0,15>
 a                     nif:Context , nif:Sentence , nif:RFC5147String ;
 nif:beginIndex        "0" ;
 nif:endIndex          "15" ;
 nif:isString          "This is Berlin." ;
 nif:referenceContext  <http://127.0.0.1:9995/spotlight#char=0,15> .

<http://127.0.0.1:9995/spotlight#char=8,14>
 a                     nif:Word , nif:RFC5147String ;
 nif:anchorOf          "Berlin" ;
 nif:beginIndex        "8" ;
 nif:endIndex          "14" ;
 nif:referenceContext  <http://127.0.0.1:9995/spotlight#char=0,15> ;
 itsrdf:taIdentRef     <http://dbpedia.org/resource/Berlin> .

My answer: 1) the template with ID 10 does not exist

2) when trying with other template it works

curl -v -X POST -d @template.ttl "http://api-dev.freme-project.eu/current/e-link/documents?templateid=5&informat=turtle" -H "Content-Type:"
jnehring commented 9 years ago

The template repostiory was not up to date on freme-live. The problems on freme-dev seem to originate from my rest client.