---
title: "Execute a SPARQL query and return the results"
method: POST
path: "/{storeName}/sparql"
tags: ["sparql", "query"]
---

# Execute a SPARQL query and return the results

`POST /{storeName}/sparql`

NOTE: The Swagger spec only allows us to document one possible form of POST. However
BrightstarDB fully supports all of the request options described in 
[SPARQL 1.1 Protocol](http://www.w3.org/TR/sparql11-protocol/)

## Path parameters

- `storeName` string, required

## Query parameters

- `named-graph-uri` string, url

## Response `200`

Successful response. The response body contains the SPARQL query result.

## Other responses

- `400` — Bad Request. A required was not provided or the query was not a valid SPARQL query

---

[API](https://skmtc.net/brightstardb/apis/brightstardb-rest-api.md) · [All operations](https://skmtc.net/brightstardb/apis/brightstardb-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/brightstardb/brightstardb-rest-api/revisions/e94ef9356aa7/schema)
