AWS Security ChangesHomeSearch

AWS neptune: Add SPARQL query examples via curl/awscurl to CLI tools guide

Service: neptune · 2026-10-15 · Documentation low

File: neptune/latest/userguide/get-started-cli-tools.md · Type: authz

Summary

Adds SPARQL query examples using awscurl and curl against the /sparql endpoint, notes that the aws neptunedata CLI and Neptune Data API have no SPARQL operation, and repeats the caveat that plain curl only works when IAM authentication is disabled.

Security assessment

The added note clarifies that unauthenticated plain curl only works when IAM authentication is disabled, which is security-relevant guidance about authenticated access to the /sparql endpoint, but it documents no specific vulnerability or fix.

Evidence

+Plain `curl` works only when IAM authentication is not enabled on your cluster.

Diff

diff --git a/neptune/latest/userguide/get-started-cli-tools.md b/neptune/latest/userguide/get-started-cli-tools.md
index 22ba8de..51e022e 100644
--- a//neptune/latest/userguide/get-started-cli-tools.md
+++ b//neptune/latest/userguide/get-started-cli-tools.md
@@ -11 +11 @@ AWS CLIAWS SDKcurl and awscurl
-You can use the AWS CLI, AWS SDKs, and HTTP tools such as `curl` and `awscurl` to submit queries to your Neptune DB cluster. The following sections show how to set up each tool and run basic Gremlin and openCypher queries.
+You can use the AWS CLI, AWS SDKs, and HTTP tools such as `curl` and `awscurl` to submit queries to your Neptune DB cluster. The following sections show how to set up each tool and run basic queries. You can run Gremlin and openCypher queries with all of these tools. You submit SPARQL queries to the HTTP `/sparql` endpoint using `curl` or `awscurl`.
@@ -40,0 +41,4 @@ For more information, see [execute-open-cypher-query](https://docs.aws.amazon.co
+###### Note
+
+The `aws neptunedata` commands don't include a SPARQL query operation. To run SPARQL queries, submit them to the HTTP `/sparql` endpoint using `curl` or `awscurl`. For more information, see Using curl and awscurl.
+
@@ -93,0 +98,4 @@ For AWS SDK examples in other languages, see [AWS SDK](./access-graph-opencypher
+###### Note
+
+The Neptune Data API doesn't include a SPARQL query operation. To run SPARQL queries, submit them to the HTTP `/sparql` endpoint using `curl` or `awscurl`. For more information, see Using curl and awscurl.
+
@@ -156 +164,23 @@ Plain `curl` works only when IAM authentication is not enabled on your cluster.
-For more Gremlin HTTP examples, see [HTTPS REST](./access-graph-gremlin-rest.html). For more openCypher HTTP examples, see [HTTPS endpoint](./access-graph-opencypher-queries.html).
+SPARQL (awscurl)
+    
+    
+    
+    awscurl https://your-neptune-endpoint:port/sparql \
+      --region us-east-1 \
+      --service neptune-db \
+      -X POST \
+      -d "query=SELECT ?s ?p ?o WHERE { ?s ?p ?o } LIMIT 1"
+
+SPARQL (curl)
+    
+    
+    
+    curl -X POST \
+      -d "query=SELECT ?s ?p ?o WHERE { ?s ?p ?o } LIMIT 1" \
+      https://your-neptune-endpoint:port/sparql
+
+###### Note
+
+Plain `curl` works only when IAM authentication is not enabled on your cluster.
+
+For more Gremlin HTTP examples, see [HTTPS REST](./access-graph-gremlin-rest.html). For more openCypher HTTP examples, see [HTTPS endpoint](./access-graph-opencypher-queries.html). For more SPARQL HTTP examples, see [SPARQL HTTP API](./sparql-api-reference.html).