Wimmics/corese

Query with accept Turtle gets Trig, and Trig gets nothing

Closed this issue · 1 comments

Salut Olivier, Erwan,

As of version 4.0.2 (I guess), a query that requests text/turtle gets Trig content formatted as:

$ curl -v --header "Accept: text/turtle" "http://localhost:8080/sparql?query=..."
> ...
> Accept: text/turtle
> 
< HTTP/1.1 200 OK
< Access-Control-Allow-Origin: *
< Content-Type: text/turtle
< Content-Length: 239
< Server: Jetty(9.4.z-SNAPSHOT)
< 
@prefix kg: <http://ns.inria.fr/corese/kgram/> .

graph kg:default {
 ...
}

On the other hand, the same query requesting Trig get nothing:

$ curl -v --header "Accept: application/trig" "http://localhost:8080/sparql?query=..."
> Accept: application/trig
> 
< HTTP/1.1 406 Not Acceptable
< Cache-Control: must-revalidate,no-cache,no-store
< Content-Length: 0
< Server: Jetty(9.4.z-SNAPSHOT)
< 

I've noticed that the declarations such as

@Produces({"text/turtle", "application/turtle", "text/nt"})

are pretty messy and I could never really understand how they work...

Franck.