I'm facing a problem with dbpedia spotlight. I can't seem to connect to the local docker image found here.
I used the command docker pull dbpedia/spotlight-english
with docker run -i -p 2222:80 dbpedia/spotlight-english
and then checked that the container is running with docker ps
. Everything works fine.
After that, I try to query the server by running the curl given in the spotlight documentation:
curl http://0.0.0.0:2222/en/annotate \
--data-urlencode "text=President Obama called Wednesday on Congress to extend a tax break
for students included in last year's economic stimulus package, arguing
that the policy provides more generous assistance." \
--data "confidence=0.35"
And the same with the following URLs:
- http://127.0.0.1:2222/en/annotate/
- http://127.0.0.1:2222/en/
- http://127.0.0.1:2222/
- http://0.0.0.0:2222/en/
- http://0.0.0.0:2222/
All I get is curl: (52) Empty reply from server
.
What am I not getting here? All help appreciated.