Amazon Neptune
User Guide (API Version 2017-11-29)

The AWS Documentation website is getting a new look!
Try it now and let us know what you think. Switch to the new look >>

You can return to the original look by selecting English in the language selector above.

SPARQL Query Status API

To get the status of SPARQL queries, use HTTP GET or POST to make a request to the https://your-neptune-endpoint:port/sparql/status endpoint.

SPARQL Query Status Request Parameters

queryId (optional)

The ID of a running SPARQL query. Only displays the status of the specified query.

SPARQL Query Status Response Syntax

{ "acceptedQueryCount": integer, "runningQueryCount": integer, "queries": [ { "queryId":"guid", "queryEvalStats": { "subqueries": integer, "elapsed": integer, "cancelled": boolean }, "queryString": "string" } ] }

SPARQL Query Status Response Values


The number of queries successfully submitted.


The number of currently running SPARQL queries.


A list of the current SPARQL queries.


A GUID id for the query. Neptune automatically assigns this ID value to each query, or you can also assign your own ID (see Inject a Custom ID Into a Neptune Gremlin or SPARQL Query).


Statistics for this query.


Number of subqueries in this query.


The number of milliseconds the query has been running so far.


True indicates that the query was cancelled.


The submitted query.

SPARQL Query Status Example

The following is an example of the status command using curl and HTTP GET.

curl https://your-neptune-endpoint:port/sparql/status

This output shows a single running query.

{ "acceptedQueryCount":9, "runningQueryCount":1, "queries": [ { "queryId":"fb34cd3e-f37c-4d12-9cf2-03bb741bf54f", "queryEvalStats": { "subqueries": 0, "elapsed": 29256, "cancelled": false }, "queryString": "SELECT ?s ?p ?o WHERE {?s ?p ?o}" } ] }