Amazon Neptune · JSON Structure

Sparql Sparql Select Response Structure

SPARQL 1.1 Query Results JSON Format as defined by W3C.

Type: object Properties: 3
DatabaseGraph DatabaseGremlinNeptuneProperty GraphRDFSPARQL

SparqlSelectResponse is a JSON Structure definition published by Amazon Neptune, describing 3 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

head results boolean

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-neptune/refs/heads/main/json-structure/sparql-sparql-select-response-structure.json",
  "name": "SparqlSelectResponse",
  "description": "SPARQL 1.1 Query Results JSON Format as defined by W3C.",
  "type": "object",
  "properties": {
    "head": {
      "type": "object",
      "properties": {
        "vars": {
          "type": "array",
          "description": "The list of variable names in the result set.",
          "items": {
            "type": "string"
          }
        },
        "link": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "results": {
      "type": "object",
      "properties": {
        "bindings": {
          "type": "array",
          "description": "The result bindings for each solution.",
          "items": {
            "type": "object",
            "additionalProperties": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "uri",
                    "literal",
                    "bnode"
                  ]
                },
                "value": {
                  "type": "string"
                },
                "datatype": {
                  "type": "string"
                },
                "xml:lang": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "boolean": {
      "type": "boolean",
      "description": "The result for ASK queries."
    }
  }
}