freme-project / e-Link

Apache License 2.0
0 stars 0 forks source link

missing `type` when creating template #57

Closed pheyvaer closed 9 years ago

pheyvaer commented 9 years ago

This requests

curl -X POST --header "Content-Type: application/json" --header "Accept: application/json" -d "{
 \"query\":'PREFIX geo-pos:  CONSTRUCT {<@@@entity_uri@@@> geo-pos:lat ?lat .  <@@@entity_uri@@@> geo-pos:long ?long . } WHERE {<@@@entity_uri@@@> geo-pos:lat ?lat . <@@@entity_uri@@@> geo-pos:long ?long .}',
 \"endpoint\":\"http://dbpedia.org/sparql\",
 \"label\":\"the title of the template\",
 \"description\":\"a description of the template\"
 } " "http://api-dev.freme-project.eu/current/e-link/templates/?informat=application%2Fjson&outformat=application%2Fjson"

results in

{
  "exception": "eu.freme.broker.exception.BadRequestException",
  "path": "/e-link/templates/",
  "message": "JSONObject[\"type\"] not found.",
  "error": "Bad Request",
  "status": 400,
  "timestamp": 1445859864425
}

But what does type refer to?

m1ci commented 9 years ago

it specifies whether the template is using LDF or SPARQL endpoint. See https://github.com/freme-project/e-Link/issues/29#issuecomment-148036658 @jnehring the documentation should be updated according to the info provided in https://github.com/freme-project/e-Link/issues/29#issuecomment-148036658

jnehring commented 9 years ago

Thanks for mentioning this. I created https://github.com/freme-project/Documentation/issues/117 to update the documentation