Skip to content

Get Knowledge Topology

GET /knowledge-graph/topology

The shape of one base: what everything hangs off, and what it has never connected.

Two answers from one walk of the confirmed graph. hubs ranks the items by a weighted degree (the eight edge kinds are not worth the same, and a flat count would put whatever collected the most cheap relates_to edges at the top) and splits them into a principal and a secondary tier at one population deviation above the base’s own mean, which is a cut the base decides rather than a number in this file. gaps pairs the dense groups that have no confirmed relation between them and names, for each, the two items the embedding space already puts closest: the relation the base is missing, as something concrete to go and look at.

No model is called and none can be. The whole report is integer arithmetic over rows plus one cosine the database computes, which is why it is free, reproducible and safe to poll, exactly as GET /knowledge-health is.

There is no statuses parameter. Only confirmed edges count: a proposed relation is a suggestion the confirmation step has not accepted, and letting one close a gap would make this report answer “something already connects these” when nothing does.

Every ceiling has a flag. A shape drawn from a truncated graph is a different shape, and a reader who cannot tell will act on hubs that are not the base’s hubs.

NameInTypeNotes
kb_idquerystring (uuid)requiredthe base to measure
viewer_agent_idquerystring (uuid) | nulloptionalread as this agent: unlocks its private bases
StatusDescriptionBody
200Successful ResponseKnowledgeTopologyView
422Validation ErrorHTTPValidationError
Terminal window
curl -X GET https://your-deployment.example.com/knowledge-graph/topology \
-H "Authorization: Bearer $COBRE_TOKEN"
FieldTypeNotes
kb_idstring (uuid)required—
hubsKnowledgeHubView[]optional—
cutKnowledgeHubCutoptional—
gapsKnowledgeGapView[]optional—
edge_weightsobjectoptional—
total_itemsintegeroptionalDefault 0.
items_consideredintegeroptionalDefault 0.
confirmed_edgesintegeroptionalDefault 0.
groups_consideredintegeroptionalDefault 0.
truncated_at_item_limitbooleanoptionalDefault false.
truncated_at_edge_limitbooleanoptionalDefault false.
truncated_at_group_limitbooleanoptionalDefault false.
truncated_at_gap_limitbooleanoptionalDefault false.
truncated_at_bridge_candidate_limitbooleanoptionalDefault false.