freme-project / freme-ner

Apache License 2.0
6 stars 1 forks source link

Create dataset in docker image #154

Closed jnehring closed 7 years ago

jnehring commented 7 years ago

Using docker-compose I started FREME with Solr, Virtuoso, MySQL. Then I wanted to create a dataset. This cURL

curl -X POST -H "Content-Type: text/turtle" -H "X-Auth-Token: 147b7a6c-a876-444b-99f4-03eaecb406fa" -H "Cache-Control: no-cache" -H "Postman-Token: 9d9c1a1f-5f25-6e28-a841-31b7e268b7b0" -d '<http://www.freme-projects.eu/dataset/people/Milan_Dojchinovski> <http://www.w3.org/2004/02/skos/core#prefLabel> "Milan Dojchinovski" .
<http://www.freme-projects.eu/dataset/people/Milan_Dojchinovski> <http://www.w3.org/2004/02/skos/core#altLabel> "Milan" .
<http://www.freme-projects.eu/dataset/people/Sebastian_Hellmann> <http://www.w3.org/2004/02/skos/core#prefLabel> "Sebastian Hellmann" .
<http://www.freme-projects.eu/dataset/people/Sebastian_Hellmann> <http://www.w3.org/2004/02/skos/core#altLabel> "Sebastian" .
<http://www.freme-projects.eu/dataset/people/Felix_Sasaki> <http://www.w3.org/2004/02/skos/core#prefLabel> "Felix Sasaki" .
<http://www.freme-projects.eu/dataset/people/Felix_Sasaki> <http://www.w3.org/2004/02/skos/core#altLabel> "Felix" .
<http://www.freme-projects.eu/dataset/people/Jan_Nehring> <http://www.w3.org/2004/02/skos/core#prefLabel> "Jan Nehring" .
<http://www.freme-projects.eu/dataset/people/Jan_Nehring> <http://www.w3.org/2004/02/skos/core#altLabel> "Jan" .
<http://www.freme-projects.eu/dataset/org/INFAI> <http://www.w3.org/2004/02/skos/core#prefLabel> "INFAI" .
<http://www.freme-projects.eu/dataset/org/DFKI> <http://www.w3.org/2004/02/skos/core#prefLabel> "DFKI" .
<http://www.freme-projects.eu/dataset/org/Tilde> <http://www.w3.org/2004/02/skos/core#prefLabel> "Tilde" .
<http://www.freme-projects.eu/dataset/org/ISMB> <http://www.w3.org/2004/02/skos/core#prefLabel> "ISMB" .
<http://www.freme-projects.eu/dataset/org/Wripl> <http://www.w3.org/2004/02/skos/core#prefLabel> "Wripl" .
<http://www.freme-projects.eu/dataset/org/Vistatec> <http://www.w3.org/2004/02/skos/core#prefLabel> "Vistatec" .
<http://www.freme-projects.eu/dataset/org/AgroKnow> <http://www.w3.org/2004/02/skos/core#prefLabel> "AgroKnow" .
<http://www.freme-projects.eu/dataset/org/iMinds> <http://www.w3.org/2004/02/skos/core#prefLabel> "iMinds" .
' "http://rv2622.1blu.de:4000/e-entity/freme-ner/datasets?language=en&name=arneTest&description=just%20for%20testing&token=99469cff-7ee8-4082-af9a-faeac09bac36"

produces

{
  "exception": "eu.freme.common.exception.FREMEHttpException",
  "path": "/e-entity/freme-ner/datasets",
  "message": "Illegal character in opaque part at index 15: freme-solr:8983 /elinker/update?wt=javabin&version=2",
  "error": "Internal Server Error",
  "status": 500,
  "timestamp": 1475050408858
}

The log stacktrace is here: freme-ner-exception.txt

@sandroacoelho @m1ci can you debug / give a hint what is wrong?

jnehring commented 7 years ago

Hm. I think the issue is that freme-solr:8983 is not a valid URL...

jnehring commented 7 years ago

fixed by changing the network configuration of the freme-package in application.properties