Edges
List schema graph edges: computed relationships between document classes based on shared field overlap and embedding similarity, each with a 0-1 weight.
Edges are computed relationships between schema graph classes that quantify how two document types relate. Talonic computes two edge types: overlaps_with, based on Jaccard similarity over the field registry IDs the two classes share, and similar_to, based on cosine similarity between the classes' schema embeddings. Each edge carries a weight between 0 and 1 indicating relationship strength.
Use edges to understand the shape of your document landscape: which document types share fields (candidates for a shared user schema), and which are semantically close even without direct field overlap. Edges reference classes by UUID via source_schema_id and target_schema_id.
overlaps_with edges are kept when field overlap exceeds 0.1 Jaccard, similar_to edges when embedding cosine similarity exceeds 0.5. Absent edge means below threshold, not zero similarity./v1/schema-graph/edgesQuery parameters
curl
Response
Response fields
Response
{
"data": [
{
"id": "edge-uuid-1",
"source_schema_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"target_schema_id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"edge_type": "overlaps_with",
"weight": 0.87,
"computed_at": "2024-09-14T00:00:00.000Z"
}
]
}Errors
Error responses
Pair this with GET /v1/schema-graph/classes to build relationship maps between document types. High-weight overlaps_with edges (e.g. weight > 0.7) indicate strong field overlap, useful for identifying document types that should share user schema fields or be linked in cases. Feed the results directly into GET /v1/schema-graph/visualize for a D3-ready graph payload.