Open jnehring opened 8 years ago
The reason is, that roundtripping in the pipeline service requires any content to convert to turtle, but the body of the first request is empty.
Lets leave this bug open, currently we have more important things to do.
You can get the urlfilter
functionality (also in combination with roundtripping) when you store a pipeline which handles just turtle and call it via pipelining/chain/{id}
with the request parameters intype=url
and input={YOUR_URL}
. Furthermore, you can set the accept
header to text/html
to get roundtripping funcitonaility. The same holds for #89.
Try adding this pipeline:
[
{
"method": "POST",
"endpoint": "https://api-dev.freme-project.eu/current/e-entity/freme-ner/documents",
"parameters": {
"dataset": "dbpedia",
"language": "en"
}
},
{
"method": "POST",
"endpoint": "https://api-dev.freme-project.eu/current/e-link/documents/",
"parameters": {
"templateid": "1"
}
}
]
and call it with (do not forget to set the pipeline id):
curl -X POST -H "Accept: text/html" -H "Content-Type: text/html" -d '' "http://api-dev.freme-project.eu/current/pipelining/chain/{THE_NEW_PIPELINE_ID}?intype=url&input=http://beautifulberlin.blogspot.de/2009/07/short-history-of-berlin.html"
Perhaps, this should be mentioned in the section Using a Pipeline of the FREME pipelines article.
This pipeline does not work:
It causes an Internal Server Error.