endpoint_URL to get a json response to an HTTP request

Hi,

I want to execute a query via HTTP, but I need that stardog returned the response in a json format. Is it posible?

If so, which URL I have to use? (Currently I'm using: "http://192.168.1.46:5820/EVCP/query?query=", where EVCP is the DB created in stardog.)

I've tryied to use "http://192.168.1.46:5820/EVCP/query?query=?format=json" and "http://192.168.1.46:5820/EVCP/sparql?format=json&query=", but neither of them worked.

Thanks!

Hi and welcome!

If you have control of the HTTP headers being sent, you can simply include Accept: application/sparql-results+json and you'll get the query results in a JSON format. If you do not, Stardog Studio allows you to run a query and then export the results out to a JSON file.

Thanks Stephen for your answer!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.