Skip to content

Graph-Native Infrastructure for Context and Accountable AI Systems

Merge branch 'main' into feat/explorer-vocab-ui

Mohd Kaife00bdfe8d4d7
diff --cc semantica/context/context_graph.py
index f8d6ca22,0bdf2be7..f2cbfd9d
--- a/semantica/context/context_graph.py
+++ b/semantica/context/context_graph.py
@@@ -1240,17 -983,13 +1240,17 @@@ class ContextGraph
gen = (
{
- "source": e.source_id or "",
- "target": e.target_id or "",
- "type": e.edge_type or "related_to",
- "weight": e.weight if e.weight is not None else 1.0,
- "metadata": e.metadata or {},
+ "id": e.edge_id,
+ "familyId": e.family_id or e.edge_id,
+ "source": e.source_id,
+ "target": e.target_id,
+ "type": e.edge_type,
+ "weight": e.weight,
+ "metadata": e.metadata,
+ "valid_from": e.valid_from,
+ "valid_until": e.valid_until,
}
- for e in source
+ for e in source if e.source_id and e.target_id
)
stop = skip + limit if limit is not None else None
return list(itertools.islice(gen, skip, stop))