jsonxmlblazegraph

How to get JSON returned from POSTing text/turtle to Blazegraph?


My update is working because I can query the data I'd sent, but the response I get is in XML:

<?xml version="1.0"?><data modified="429" milliseconds="437"/>

I am setting the request header Accept:

con.setRequestProperty("Accept", "application/sparql-results+json,application/json");

Solution

  • Use this parameter (not header) instead: format=json