Amazon Neptune · Schema

Amazon Neptune Stream Record

Represents a change-log stream record from Neptune Streams. Each record captures a single mutation (ADD or REMOVE) made to graph data. Supports both property graph (PG_JSON format) and RDF (NQUADS format) records.

DatabaseGraph DatabaseGremlinNeptuneProperty GraphRDFSPARQL

Properties

Name Type Description
lastEventId object The sequence identifier of the last change in the response.
lastTrxTimestamp integer Unix epoch timestamp in milliseconds of the last transaction commit.
format string The serialization format of the stream records.
records array The array of change-log stream records.
totalRecords integer The total number of records in the response.
View JSON Schema on GitHub

JSON Schema

amazon-neptune-stream-record-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://github.com/api-search/amazon-neptune/json-schema/amazon-neptune-stream-record-schema.json",
  "title": "Amazon Neptune Stream Record",
  "description": "Represents a change-log stream record from Neptune Streams. Each record captures a single mutation (ADD or REMOVE) made to graph data. Supports both property graph (PG_JSON format) and RDF (NQUADS format) records.",
  "type": "object",
  "required": [
    "lastEventId",
    "lastTrxTimestamp",
    "format",
    "records",
    "totalRecords"
  ],
  "properties": {
    "lastEventId": {
      "$ref": "#/$defs/EventId",
      "description": "The sequence identifier of the last change in the response."
    },
    "lastTrxTimestamp": {
      "type": "integer",
      "description": "Unix epoch timestamp in milliseconds of the last transaction commit."
    },
    "format": {
      "type": "string",
      "description": "The serialization format of the stream records.",
      "enum": [
        "PG_JSON",
        "NQUADS"
      ]
    },
    "records": {
      "type": "array",
      "description": "The array of change-log stream records.",
      "items": {
        "oneOf": [
          { "$ref": "#/$defs/PropertyGraphRecord" },
          { "$ref": "#/$defs/SparqlRecord" }
        ]
      }
    },
    "totalRecords": {
      "type": "integer",
      "description": "The total number of records in the response."
    }
  },
  "$defs": {
    "EventId": {
      "type": "object",
      "title": "Stream Event ID",
      "description": "A unique sequence identifier for a stream event, composed of the commit number and operation number.",
      "required": [
        "commitNum",
        "opNum"
      ],
      "properties": {
        "commitNum": {
          "type": "integer",
          "description": "The commit (transaction) number."
        },
        "opNum": {
          "type": "integer",
          "description": "The operation number within the commit."
        }
      }
    },
    "PropertyGraphRecord": {
      "type": "object",
      "title": "Property Graph Stream Record",
      "description": "A change record for property graph (Gremlin/openCypher) data in PG_JSON format.",
      "required": [
        "commitTimestamp",
        "eventId",
        "data",
        "op"
      ],
      "properties": {
        "commitTimestamp": {
          "type": "integer",
          "description": "Unix epoch timestamp in milliseconds of the transaction commit."
        },
        "eventId": {
          "$ref": "#/$defs/EventId"
        },
        "data": {
          "$ref": "#/$defs/PropertyGraphData"
        },
        "op": {
          "type": "string",
          "description": "The operation type.",
          "enum": [
            "ADD",
            "REMOVE"
          ]
        },
        "isLastOp": {
          "type": "boolean",
          "description": "True only if this is the last operation in the transaction."
        }
      }
    },
    "PropertyGraphData": {
      "type": "object",
      "title": "Property Graph Data",
      "description": "The property graph change data within a stream record.",
      "required": [
        "id",
        "type"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier of the graph element."
        },
        "type": {
          "type": "string",
          "description": "The type of graph element: v (vertex), vl (vertex label), vp (vertex property), e (edge), ep (edge property).",
          "enum": [
            "v",
            "vl",
            "vp",
            "e",
            "ep"
          ]
        },
        "key": {
          "type": "string",
          "description": "The property key name (for property changes)."
        },
        "value": {
          "type": "object",
          "description": "The typed property value.",
          "properties": {
            "value": {
              "description": "The actual value."
            },
            "dataType": {
              "type": "string",
              "description": "The Neptune data type.",
              "enum": [
                "String",
                "Integer",
                "Long",
                "Double",
                "Float",
                "Boolean",
                "Date",
                "DateTime"
              ]
            }
          }
        },
        "from": {
          "type": "string",
          "description": "The source vertex ID (for edge records only)."
        },
        "to": {
          "type": "string",
          "description": "The target vertex ID (for edge records only)."
        }
      }
    },
    "SparqlRecord": {
      "type": "object",
      "title": "SPARQL Stream Record",
      "description": "A change record for RDF (SPARQL) data in NQUADS format.",
      "required": [
        "commitTimestamp",
        "eventId",
        "data",
        "op"
      ],
      "properties": {
        "commitTimestamp": {
          "type": "integer",
          "description": "Unix epoch timestamp in milliseconds of the transaction commit."
        },
        "eventId": {
          "$ref": "#/$defs/EventId"
        },
        "data": {
          "type": "object",
          "required": [
            "stmt"
          ],
          "properties": {
            "stmt": {
              "type": "string",
              "description": "The N-Quads statement representing the RDF triple or quad change."
            }
          }
        },
        "op": {
          "type": "string",
          "description": "The operation type.",
          "enum": [
            "ADD",
            "REMOVE"
          ]
        },
        "isLastOp": {
          "type": "boolean",
          "description": "True only if this is the last operation in the transaction."
        }
      }
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/amazon-neptune-stream-record"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.