Closed jnehring closed 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:"
The template repostiory was not up to date on freme-live. The problems on freme-dev seem to originate from my rest client.
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