본문으로 건너뛰기

Request

Shared request and response schema. Request: Ontology request accepted by the API: a definition (from and optional ops) plus exactly one terminal, such as rows, page, aggregate, update, or link. Response: Ontology request returned by the API as stored in a resource: a definition (from and optional ops) plus exactly one terminal.

versionVersion (integer)
기본값: 1
from object필수

Where a definition starts: one type (entity or relation) and, optionally, the rows to start from. anchors are {column: value} maps that name every key column of the type (compile checks); extra columns are only meaningful under upsert, where the anchor row is the row written.

entity object

EntityType id

하나 이상(anyOf)
string
relation object

RelationType id

하나 이상(anyOf)
string
anchors object

Start rows as {key column: value} maps

하나 이상(anyOf)
  • Array [
  • property name*any
  • ]
  • ops object[]
  • Array [
  • where object
    하나 이상(anyOf)
    object
    traverse object
    하나 이상(anyOf)
    string
    direction object
    하나 이상(anyOf)
    string

    Possible values: [out, in]

    depth object
    하나 이상(anyOf)
    integer

    Possible values: >= 1

    to object
    하나 이상(anyOf)
    string
    상수 값: link
    alias object
    하나 이상(anyOf)
    string

    Possible values: non-empty

    union object
    하나 이상(anyOf)
    from object필수

    Where a definition starts: one type (entity or relation) and, optionally, the rows to start from. anchors are {column: value} maps that name every key column of the type (compile checks); extra columns are only meaningful under upsert, where the anchor row is the row written.

    entity object

    EntityType id

    하나 이상(anyOf)
    string
    relation object

    RelationType id

    하나 이상(anyOf)
    string
    anchors object

    Start rows as {key column: value} maps

    하나 이상(anyOf)
  • Array [
  • property name*any
  • ]
  • opsundefined[]
    caps object
    하나 이상(anyOf)
    depth object
    하나 이상(anyOf)
    integer

    Possible values: >= 1

    frontier_per_level object
    하나 이상(anyOf)
    integer

    Possible values: >= 1

    max_nodes object
    하나 이상(anyOf)
    integer

    Possible values: >= 1

    max_edges object
    하나 이상(anyOf)
    integer

    Possible values: >= 1

    intermediate object
    하나 이상(anyOf)
    integer

    Possible values: >= 1

    matching object
    하나 이상(anyOf)
    integer

    Possible values: >= 1

    pin object
    하나 이상(anyOf)
    txn object필수
    하나 이상(anyOf)
    integer
    versions object
    하나 이상(anyOf)
    object
    intersect object
    하나 이상(anyOf)
    from object필수

    Where a definition starts: one type (entity or relation) and, optionally, the rows to start from. anchors are {column: value} maps that name every key column of the type (compile checks); extra columns are only meaningful under upsert, where the anchor row is the row written.

    entity object

    EntityType id

    하나 이상(anyOf)
    string
    relation object

    RelationType id

    하나 이상(anyOf)
    string
    anchors object

    Start rows as {key column: value} maps

    하나 이상(anyOf)
  • Array [
  • property name*any
  • ]
  • opsundefined[]
    caps object
    하나 이상(anyOf)
    depth object
    하나 이상(anyOf)
    integer

    Possible values: >= 1

    frontier_per_level object
    하나 이상(anyOf)
    integer

    Possible values: >= 1

    max_nodes object
    하나 이상(anyOf)
    integer

    Possible values: >= 1

    max_edges object
    하나 이상(anyOf)
    integer

    Possible values: >= 1

    intermediate object
    하나 이상(anyOf)
    integer

    Possible values: >= 1

    matching object
    하나 이상(anyOf)
    integer

    Possible values: >= 1

    pin object
    하나 이상(anyOf)
    txn object필수
    하나 이상(anyOf)
    integer
    versions object
    하나 이상(anyOf)
    object
    subtract object
    하나 이상(anyOf)
    from object필수

    Where a definition starts: one type (entity or relation) and, optionally, the rows to start from. anchors are {column: value} maps that name every key column of the type (compile checks); extra columns are only meaningful under upsert, where the anchor row is the row written.

    entity object

    EntityType id

    하나 이상(anyOf)
    string
    relation object

    RelationType id

    하나 이상(anyOf)
    string
    anchors object

    Start rows as {key column: value} maps

    하나 이상(anyOf)
  • Array [
  • property name*any
  • ]
  • opsundefined[]
    caps object
    하나 이상(anyOf)
    depth object
    하나 이상(anyOf)
    integer

    Possible values: >= 1

    frontier_per_level object
    하나 이상(anyOf)
    integer

    Possible values: >= 1

    max_nodes object
    하나 이상(anyOf)
    integer

    Possible values: >= 1

    max_edges object
    하나 이상(anyOf)
    integer

    Possible values: >= 1

    intermediate object
    하나 이상(anyOf)
    integer

    Possible values: >= 1

    matching object
    하나 이상(anyOf)
    integer

    Possible values: >= 1

    pin object
    하나 이상(anyOf)
    txn object필수
    하나 이상(anyOf)
    integer
    versions object
    하나 이상(anyOf)
    object
    derive object
    하나 이상(anyOf)
    object
  • ]
  • caps object
    하나 이상(anyOf)
    depth object
    하나 이상(anyOf)
    integer

    Possible values: >= 1

    frontier_per_level object
    하나 이상(anyOf)
    integer

    Possible values: >= 1

    max_nodes object
    하나 이상(anyOf)
    integer

    Possible values: >= 1

    max_edges object
    하나 이상(anyOf)
    integer

    Possible values: >= 1

    intermediate object
    하나 이상(anyOf)
    integer

    Possible values: >= 1

    matching object
    하나 이상(anyOf)
    integer

    Possible values: >= 1

    pin object
    하나 이상(anyOf)
    txn object필수
    하나 이상(anyOf)
    integer
    versions object
    하나 이상(anyOf)
    object
    page object
    하나 이상(anyOf)
    now object
    하나 이상(anyOf)
    string<date-time>
    columns object

    Terminal-type projection; key columns always ride

    하나 이상(anyOf)
  • Array [
  • string
  • ]
  • order_by object
    하나 이상(anyOf)
  • Array [
  • fieldField (string)필수
    directionDirection (string)

    Possible values: [asc, desc]

    기본값: asc
  • ]
  • limitLimit (integer)

    Possible values: >= 1

    기본값: 100
    cursor object
    하나 이상(anyOf)
    string
    rows object
    하나 이상(anyOf)
    now object
    하나 이상(anyOf)
    string<date-time>
    columns object

    Column names returned for this resource.

    하나 이상(anyOf)
  • Array [
  • string
  • ]
  • order_by object
    하나 이상(anyOf)
  • Array [
  • fieldField (string)필수
    directionDirection (string)

    Possible values: [asc, desc]

    기본값: asc
  • ]
  • limit object
    하나 이상(anyOf)
    integer

    Possible values: >= 1

    keys object
    하나 이상(anyOf)
    now object
    하나 이상(anyOf)
    string<date-time>
    aggregate object
    하나 이상(anyOf)
    now object
    하나 이상(anyOf)
    string<date-time>
    metrics object[]필수

    Possible values: >= 1

  • Array [
  • fnFn (string)필수

    Possible values: [count, count_distinct, sum, avg, min, max]

    column object

    Semantic column definition. Capability flags control filtering, sorting, grouping, and catalog visibility; values is exhaustive, samples is illustrative, and dictionary-backed columns suppress both value lists from semantic catalog output.

    하나 이상(anyOf)
    string
  • ]
  • group_by object
    하나 이상(anyOf)
  • Array [
  • string
  • ]
  • accuracyAccuracy (string)

    Possible values: [accurate, approximate]

    기본값: accurate
    limit object
    하나 이상(anyOf)
    integer

    Possible values: >= 1

    paths object
    하나 이상(anyOf)
    now object
    하나 이상(anyOf)
    string<date-time>
    columns object
    하나 이상(anyOf)
    object
    where object
    하나 이상(anyOf)
    object
    update object
    하나 이상(anyOf)
    values object필수
    property name*any
    delete object
    하나 이상(anyOf)
    object
    upsert object
    하나 이상(anyOf)
    object
    ensure object
    하나 이상(anyOf)
    update object필수
    property name*any
    insert object필수
    property name*any
    link object
    하나 이상(anyOf)
    source object필수
    property name*any
    target object필수
    property name*any
    attributes object
    하나 이상(anyOf)
    object
    unlink object
    하나 이상(anyOf)
    source object
    하나 이상(anyOf)
    object
    target object
    하나 이상(anyOf)
    object
    compile object
    하나 이상(anyOf)
    object
    Request
    {
    "version": 1,
    "from": {
    "entity": "string",
    "relation": "string",
    "anchors": [
    {}
    ]
    },
    "ops": [
    {
    "where": {},
    "traverse": "string",
    "direction": "out",
    "depth": 0,
    "to": "link",
    "alias": "string",
    "union": {
    "from": {
    "entity": "string",
    "relation": "string",
    "anchors": [
    {}
    ]
    },
    "ops": [
    null
    ],
    "caps": {
    "depth": 0,
    "frontier_per_level": 0,
    "max_nodes": 0,
    "max_edges": 0,
    "intermediate": 0,
    "matching": 0
    },
    "pin": {
    "txn": 0,
    "versions": {}
    }
    },
    "intersect": {
    "from": {
    "entity": "string",
    "relation": "string",
    "anchors": [
    {}
    ]
    },
    "ops": [
    null
    ],
    "caps": {
    "depth": 0,
    "frontier_per_level": 0,
    "max_nodes": 0,
    "max_edges": 0,
    "intermediate": 0,
    "matching": 0
    },
    "pin": {
    "txn": 0,
    "versions": {}
    }
    },
    "subtract": {
    "from": {
    "entity": "string",
    "relation": "string",
    "anchors": [
    {}
    ]
    },
    "ops": [
    null
    ],
    "caps": {
    "depth": 0,
    "frontier_per_level": 0,
    "max_nodes": 0,
    "max_edges": 0,
    "intermediate": 0,
    "matching": 0
    },
    "pin": {
    "txn": 0,
    "versions": {}
    }
    },
    "derive": {}
    }
    ],
    "caps": {
    "depth": 0,
    "frontier_per_level": 0,
    "max_nodes": 0,
    "max_edges": 0,
    "intermediate": 0,
    "matching": 0
    },
    "pin": {
    "txn": 0,
    "versions": {}
    },
    "page": {
    "now": "2024-07-29T15:51:28.071Z",
    "columns": [
    "string"
    ],
    "order_by": [
    {
    "field": "string",
    "direction": "asc"
    }
    ],
    "limit": 100,
    "cursor": "string"
    },
    "rows": {
    "now": "2024-07-29T15:51:28.071Z",
    "columns": [
    "string"
    ],
    "order_by": [
    {
    "field": "string",
    "direction": "asc"
    }
    ],
    "limit": 0
    },
    "keys": {
    "now": "2024-07-29T15:51:28.071Z"
    },
    "aggregate": {
    "now": "2024-07-29T15:51:28.071Z",
    "metrics": [
    {
    "fn": "count",
    "column": "string"
    }
    ],
    "group_by": [
    "string"
    ],
    "accuracy": "accurate",
    "limit": 0
    },
    "paths": {
    "now": "2024-07-29T15:51:28.071Z",
    "columns": {},
    "where": {}
    },
    "update": {
    "values": {}
    },
    "delete": {},
    "upsert": {},
    "ensure": {
    "update": {},
    "insert": {}
    },
    "link": {
    "source": {},
    "target": {},
    "attributes": {}
    },
    "unlink": {
    "source": {},
    "target": {}
    },
    "compile": {}
    }