Re: application/sparql-results+json,*/* Accept header returns XML

2019-05-31 Thread Mikael Pesonen
I always mix those, using select solved the problem. Thanks! On 31/05/2019 13:26, Lorenz B. wrote: Hello Mikael,  JSON Format is for SELECT and ASK. CONSTRUCT creates an RDF graph, the crrect format would be JSON-LD here. Here is the exact query curl -H "Accept:

Re: application/sparql-results+json,*/* Accept header returns XML

2019-05-31 Thread Martynas Jusevičius
Lorenz, I was about to reply the same. But I think */* in the Accept header should match the RDF graph media types? Even if application/sparql-results+json does not. On Fri, May 31, 2019 at 12:26 PM Lorenz B. wrote: > > Hello Mikael, > > JSON Format is for SELECT and ASK. > > CONSTRUCT creates

Re: application/sparql-results+json,*/* Accept header returns XML

2019-05-31 Thread Lorenz B.
Hello Mikael,  JSON Format is for SELECT and ASK. CONSTRUCT creates an RDF graph, the crrect format would be JSON-LD here. > > Here is the exact query > > curl -H "Accept: application/sparql-results+json, */*" >

Re: application/sparql-results+json,*/* Accept header returns XML

2019-05-31 Thread Mikael Pesonen
Here is the exact query curl -H "Accept: application/sparql-results+json, */*"

Re: application/sparql-results+json,*/* Accept header returns XML

2019-05-30 Thread Andy Seaborne
I get JSON. curl -d query='SELECT * {}' \ --header 'Accept: application/sparql-results+json, */*' \ http://localhost:3030/ds ==> { "head": { "vars": [ ] } , "results": { "bindings": [ { } ] } } On 30/05/2019 16:18, Mikael Pesonen wrote: Is there

application/sparql-results+json,*/* Accept header returns XML

2019-05-30 Thread Mikael Pesonen
Is there a way to correct this? I'm not able to change the header in client. Using Jena Fuseki 11 Br, -- Lingsoft - 30 years of Leading Language Management www.lingsoft.fi Speech Applications - Language Management - Translation - Reader's and Writer's Tools - Text Tools - E-books and