---
title: "Execute SPARQL query via GET"
method: GET
path: "/sparql/{owner}/{id}"
tags: ["queries"]
---

# Execute SPARQL query via GET

`GET /sparql/{owner}/{id}`

Execute a SPARQL query against a dataset or data project.

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](https://docs.data.world/tutorials/sparql/).

## Path parameters

- `owner` string, required
- `id` string, required

## Query parameters

- `query` string, required
- `diagnose` boolean
- `default-graph-uri` string[]
- `named-graph-uri` string[]
- `queryruntoken` string

## Response `200`

default response

---

[API](https://skmtc.dev/data/apis/data-world-public-api.md) · [All operations](https://skmtc.dev/data/apis/data-world-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/data/data-world-public-api/revisions/0a0cb1f94dad/schema)
