Execute SPARQL query via GET with the default graph

Execute a SPARQL query. The query will default to using the :current graph if the query contains no FROM clauses and no default graph URI parameters are specified, in which case it will return a 404 if the :current graph does not exist for the org.

SPARQL results are available in a variety of formats. By default, application/sparql-results+json will be returned. Set the Accept header to one of the following values in accordance with your preference and the type of the query (SELECT, CONSTRUCT, DESCRIBE, ASK):

  • application/sparql-results+xml

  • application/sparql-results+json

  • application/rdf+json

  • application/rdf+xml

  • text/csv

  • text/tab-separated-values

  • text/turtle

New to SPARQL? Check out data.world's SPARQL tutorial.

Path Params
string
required
Query Params
string
required
length ≥ 1
boolean
Defaults to false
default-graph-uri
array of strings

Specify URI for named graph(s) to query, overriding any FROM clauses in the query. If the default-graph-uri parameter is omitted and there are no FROM clauses, the :current graph will be used. See Our Docs for more info.

default-graph-uri
named-graph-uri
array of strings

Specify URI for named graph(s) to query, overriding any FROM NAMED clauses in the query. See Our Docs for more info.

named-graph-uri
string

Query token to use with cancel

Headers
string
enum
Defaults to application/rdf+json

Generated from available response content types

Allowed:
Response

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here!