Amazon Neptune · Schema

OpenCypherRelationship

A property graph relationship as returned by openCypher queries.

DatabaseGraph DatabaseGremlinNeptuneProperty GraphRDFSPARQL

Properties

Name Type Description
~id string The unique identifier of the relationship.
~entityType string The entity type (always 'relationship').
~start string The ID of the source node.
~end string The ID of the target node.
~type string The relationship type.
~properties object The relationship properties as key-value pairs.
View JSON Schema on GitHub

JSON Schema

amazon-neptune-opencypherrelationship-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/OpenCypherRelationship",
  "title": "OpenCypherRelationship",
  "type": "object",
  "description": "A property graph relationship as returned by openCypher queries.",
  "properties": {
    "~id": {
      "type": "string",
      "description": "The unique identifier of the relationship."
    },
    "~entityType": {
      "type": "string",
      "enum": [
        "relationship"
      ],
      "description": "The entity type (always 'relationship')."
    },
    "~start": {
      "type": "string",
      "description": "The ID of the source node."
    },
    "~end": {
      "type": "string",
      "description": "The ID of the target node."
    },
    "~type": {
      "type": "string",
      "description": "The relationship type."
    },
    "~properties": {
      "type": "object",
      "additionalProperties": true,
      "description": "The relationship properties as key-value pairs."
    }
  }
}