Amazon Neptune · JSON Structure

Streams Sparql Stream Record Structure

SparqlStreamRecord schema from Neptune

Type: object Properties: 5
DatabaseGraph DatabaseGremlinNeptuneProperty GraphRDFSPARQL

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

Properties

commitTimestamp eventId data op isLastOp

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/streams-sparql-stream-record-structure.json",
  "name": "SparqlStreamRecord",
  "description": "SparqlStreamRecord schema from Neptune",
  "type": "object",
  "properties": {
    "commitTimestamp": {
      "type": "int32",
      "description": "Unix epoch timestamp in milliseconds of the transaction commit."
    },
    "eventId": {
      "$ref": "#/components/schemas/StreamEventId"
    },
    "data": {
      "type": "object",
      "properties": {
        "stmt": {
          "type": "string",
          "description": "The N-Quads statement representing the RDF triple or quad change."
        }
      }
    },
    "op": {
      "type": "string",
      "enum": [
        "ADD",
        "REMOVE"
      ],
      "description": "The operation type (ADD or REMOVE)."
    },
    "isLastOp": {
      "type": "boolean",
      "description": "True only if this is the last operation in the transaction."
    }
  }
}