Skip to main content
POST
Query graph facts

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

database
string
required

Target database.

Body

application/json

POST /v1/graph_facts/{database}: one SQL statement over the facts the knowledge graph read from the database's text. It is the sweep a walk from a result cannot make: every fact of a party, a relation, a document, or matching some words, counted or listed. The facts are a facts table kept beside the database and never in its catalog; the statement reads that table and names no table of the database. An unknown field is refused.

sql
string
required

The statement, over facts: its columns are subject, relation, object, object_is_value, qualifiers, subject_node, object_node, document, source_table, source_column, evidence_id, evidence_last_id and built_ms, and its four text columns are full-text indexed for the search functions.

Response

The statement's rows. note says why there are none when the deployment builds no knowledge graph.

The statement's rows, and a note when the deployment builds no graph.

rows
object[]
required

The statement's rows, each a JSON object of column name to cell value.

note
string | null

Why there are no rows, when the deployment builds no knowledge graph. Absent otherwise.