{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/apache-jena/refs/heads/main/json-schema/fuseki-sparql-api-sparql-results-schema.json",
  "title": "SparqlResults",
  "description": "SPARQL query results in JSON format",
  "type": "object",
  "properties": {
    "head": {
      "type": "object",
      "description": "Result metadata including variable names",
      "properties": {
        "vars": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "example": [
            "s",
            "p",
            "o"
          ]
        }
      }
    },
    "results": {
      "type": "object",
      "description": "Query result bindings",
      "properties": {
        "bindings": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/Binding"
          }
        }
      }
    },
    "boolean": {
      "type": "boolean",
      "description": "Result for ASK queries"
    }
  }
}