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

SPARQL Query Status

To get the status of SPARQL queries, use HTTP GET or POST to request to the http://your-neptune-endpoint:8182/sparql/status endpoint.

Request Parameters

queryId (optional)

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

Response Syntax

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

Response Values

acceptedQueryCount

The number of queries successfully submitted.

runningQueryCount

The number of currently running SPARQL queries.

queries

A list of the current SPARQL queries.

queryId

A GUID id for the query.

queryEvalStats

Statistics for this query.

subqueries

Number of subqueries in this query.

elapsed

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

cancelled

True indicates the query has been cancelled.

queryString

The submitted query.

Example

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

curl http://your-neptune-endpoint:8182/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}" } ] }