read-write-web / rww-play

read write web Play
59 stars 19 forks source link

Example sparql query returns an empty vars list instead of a list with 1 member #143

Open reederz opened 9 years ago

reederz commented 9 years ago

The example: https://github.com/read-write-web/rww-play/wiki/Curl-Interactions#sparql-queries

Test:

[  2:24PM ]  [ justas@choedankal:~/Source/scala/workspace/jolocom/rww-play/test_www(dev✗) ]
 $ curl -X SEARCH -k -i -H "Content-Type: application/sparql-query; charset=UTF-8" \
>     --cert ../eg/test-localhost.pem:test \
>     --data-binary @../eg/couch.sparql https://localhost:8443/2013/couch
HTTP/1.1 200 OK
Content-Type: application/sparql-results+json
User: https://localhost:8443/2013/card#me
Content-Length: 213

{
  "head" : {
    "vars" : [ ]
  },
  "results" : {
    "bindings" : [
      {
        "D" : {
          "type" : "literal",
          "value" : "Comfortable couch in Artist Stables"
        }
      }
    ]
  }
}% 
bblfish commented 8 years ago

the variable seems to be there in the bindings. I wonder what the spec says about this.