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.
1from objectrequired
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
- string
- null
relation object
RelationType id
- string
- null
anchors object
Start rows as {key column: value} maps
- object[]
- null
ops object[]
where object
- object
- null
traverse object
- string
- string[]
- null
direction object
- string
- null
Possible values: [out, in]
depth object
- integer
- null
Possible values: >= 1
to object
- string
- null
linkalias object
- string
- null
Possible values: non-empty
union object
- Definition
- null
from objectrequired
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
- string
- null
relation object
RelationType id
- string
- null
anchors object
Start rows as {key column: value} maps
- object[]
- null
caps object
- Caps
- null
depth object
- integer
- null
Possible values: >= 1
frontier_per_level object
- integer
- null
Possible values: >= 1
max_nodes object
- integer
- null
Possible values: >= 1
max_edges object
- integer
- null
Possible values: >= 1
intermediate object
- integer
- null
Possible values: >= 1
matching object
- integer
- null
Possible values: >= 1
pin object
- Pin
- null
txn objectrequired
- integer
- object
versions object
- object
- null
intersect object
- Definition
- null
from objectrequired
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
- string
- null
relation object
RelationType id
- string
- null
anchors object
Start rows as {key column: value} maps
- object[]
- null
caps object
- Caps
- null
depth object
- integer
- null
Possible values: >= 1
frontier_per_level object
- integer
- null
Possible values: >= 1
max_nodes object
- integer
- null
Possible values: >= 1
max_edges object
- integer
- null
Possible values: >= 1
intermediate object
- integer
- null
Possible values: >= 1
matching object
- integer
- null
Possible values: >= 1
pin object
- Pin
- null
txn objectrequired
- integer
- object
versions object
- object
- null
subtract object
- Definition
- null
from objectrequired
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
- string
- null
relation object
RelationType id
- string
- null
anchors object
Start rows as {key column: value} maps
- object[]
- null
caps object
- Caps
- null
depth object
- integer
- null
Possible values: >= 1
frontier_per_level object
- integer
- null
Possible values: >= 1
max_nodes object
- integer
- null
Possible values: >= 1
max_edges object
- integer
- null
Possible values: >= 1
intermediate object
- integer
- null
Possible values: >= 1
matching object
- integer
- null
Possible values: >= 1
pin object
- Pin
- null
txn objectrequired
- integer
- object
versions object
- object
- null
derive object
- object
- null
caps object
- Caps
- null
depth object
- integer
- null
Possible values: >= 1
frontier_per_level object
- integer
- null
Possible values: >= 1
max_nodes object
- integer
- null
Possible values: >= 1
max_edges object
- integer
- null
Possible values: >= 1
intermediate object
- integer
- null
Possible values: >= 1
matching object
- integer
- null
Possible values: >= 1
pin object
- Pin
- null
txn objectrequired
- integer
- object
versions object
- object
- null
page object
- PageArgs
- null
now object
- string<date-time>
- null
columns object
Terminal-type projection; key columns always ride
- string[]
- null
order_by object
- object[]
- null
Possible values: [asc, desc]
ascPossible values: >= 1
100cursor object
- string
- null
rows object
- RowsArgs
- null
now object
- string<date-time>
- null
columns object
Column names returned for this resource.
- string[]
- null
order_by object
- object[]
- null
Possible values: [asc, desc]
asclimit object
- integer
- null
Possible values: >= 1
keys object
- KeysArgs
- null
now object
- string<date-time>
- null
aggregate object
- AggregateArgs
- null
now object
- string<date-time>
- null
metrics object[]required
Possible values: >= 1
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.
- string
- null
group_by object
- string[]
- null
Possible values: [accurate, approximate]
accuratelimit object
- integer
- null
Possible values: >= 1
paths object
- PathsArgs
- null
now object
- string<date-time>
- null
columns object
- object
- null
where object
- object
- null
update object
- UpdateArgs
- null
values objectrequired
delete object
- DeleteArgs
- null
upsert object
- UpsertArgs
- null
ensure object
- EnsureArgs
- null
update objectrequired
insert objectrequired
link object
- LinkArgs
- null
source objectrequired
target objectrequired
attributes object
- object
- null
unlink object
- UnlinkArgs
- null
source object
- object
- null
target object
- object
- null
compile object
- CompileArgs
- null
{
"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": {}
}