Hanzo AI
OpenapiGraph

Create ingest

Reads a source and records what it states, through the same admission as assert.

POST /v1/graph/ingest

Addresshttps://api.hanzo.ai/v1/graph/ingest
MethodPOST
OperationgraphIngest
AuthAuthorization: Bearer $HANZO_API_KEY

Reads a source and records what it states, through the same admission as assert.

Each assertion's evidence is the section that stated it, <source>#<section>, so the same source at the same at records one set of rows however often it is delivered. What extract reports refused is not recorded; it is counted as refused, with its reason, in the order the document states it. A source stating no relation is refused whole.

Time: at is the valid time of every assertion recorded, which an as_of read is bounded by; each becomes knowable at the write, so a read with an earlier as_known does not see it.

Request

4 fields, body application/json (required).

FieldInTypeRequiredDescription
atbodystringAt is when what the source says was so, RFC 3339. Required by ingest — which records — and read by nothing in extract, which records nothing.
sourcebodystringyesSource names where the text came from — a URL, a document id, a page title.
subjectbodystringSubject is the entity the text is about before any heading names one.
textbodystringyesText is the document.

Response

StatusBodyMeaning
200graph.graphAssertOutok
defaultproblem-detailsrefused

200 body — 4 fields.

FieldInTypeAlwaysDescription
duplicatebodyinteger (int64)Duplicate is how many members this plane already held.
reasonsbodystring[]Reasons names why each refused member was refused, in the order sent.
recordedbodyinteger (int64)Recorded is how many members became new rows.
refusedbodyinteger (int64)Refused is how many members were turned away — a missing entity, a timestamp that is not RFC 3339, a confidence outside [0,1], a relation whose declared domain…

Failure carries the platform error shape — see Errors.

Examples

hanzo graph ingest

Graph API · All Hanzo APIs · Interactive reference

How is this guide?

On this page