Amazon Neptune · Schema

PropertygraphStreamRecord

PropertygraphStreamRecord schema from Neptune

DatabaseGraph DatabaseGremlinNeptuneProperty GraphRDFSPARQL

Properties

Name Type Description
commitTimestampInMillis integer
eventId object
data object
op string
isLastOp boolean
View JSON Schema on GitHub

JSON Schema

data-propertygraph-stream-record-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-neptune/refs/heads/main/json-schema/data-propertygraph-stream-record-schema.json",
  "title": "PropertygraphStreamRecord",
  "description": "PropertygraphStreamRecord schema from Neptune",
  "type": "object",
  "properties": {
    "commitTimestampInMillis": {
      "type": "integer"
    },
    "eventId": {
      "type": "object",
      "properties": {
        "commitNum": {
          "type": "integer"
        },
        "opNum": {
          "type": "integer"
        }
      }
    },
    "data": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "description": "The type of the element (v=vertex, vl=vertex label, vp=vertex property, e=edge, ep=edge property)."
        },
        "key": {
          "type": "string"
        },
        "value": {
          "type": "object",
          "properties": {
            "value": {
              "description": "The property value."
            },
            "dataType": {
              "type": "string"
            }
          }
        },
        "from": {
          "type": "string",
          "description": "Source vertex ID (for edges only)."
        },
        "to": {
          "type": "string",
          "description": "Target vertex ID (for edges only)."
        }
      }
    },
    "op": {
      "type": "string",
      "enum": [
        "ADD",
        "REMOVE"
      ]
    },
    "isLastOp": {
      "type": "boolean"
    }
  }
}