The Knowledge Graph API turns the output of a concept (an edge predicate) into
an interactive graph. You can paginate the raw graph data, enumerate complete
paths between nodes, run graph analytics algorithms, and inspect the
concept-level lineage DAG for a project.
All paths are relative to the base URL and
require authentication. All
responses use the standard envelope.
Graph-building endpoints are paginated and
scoped.
Build a graph
Fetch the rows of an edge predicate and construct a graph from them. The
column_roles body field maps predicate column positions (zero-indexed) to
graph roles: source and target identify the nodes that each edge connects,
and the optional edge_value column becomes the edge label.
Two pagination modes are available:
records (default) — paginates over the raw edge rows. Fast for large
predicates; useful when you want to stream the graph in chunks.
paths — uses the Vadalog #PATHS operator to enumerate all complete
paths through the graph, then paginates over those paths. Set
recompute=true on the first request (or when source_node / target_node
change) to trigger execution; subsequent page requests can omit it to read
from the cached result. Path results are capped at 50,000 paths.
Example
When using pagination_mode=paths, send recompute=true only on the first
request (or when your filter nodes change). For all subsequent pages, omit
recompute (or pass false) to read from the cached parquet result — this
avoids re-running the Vadalog engine on every page turn.
Run graph analytics
Execute a graph analytics function over an edge predicate. The engine builds
the graph from the predicate, runs the selected algorithm, and returns the
result merged back onto the node list — each node gains an analytics field
with the computed value (e.g. a PageRank score or a connected-component ID).
Example
The shape of analytics on each node depends on the function’s result type:
List graph functions
Return the registry of available analytics functions together with their
parameter schemas. Use this to discover what values are valid for the
function field in Run graph analytics.
This endpoint takes no parameters.
Visualize concept lineage
Return the concept dependency DAG for a project as a graph. Each node
represents a concept (enriched with its output fields and types); each edge is
a transitive dependency between two concepts. Use this to understand how
concepts relate to one another before building or exploring a knowledge graph.
Example