ontocast.stategraph.helpers¶
all_unit_patch_source_iris(state)
¶
Sorted unique ontology IRIs appearing in any unit's patch source list.
Source code in ontocast/stategraph/helpers.py
build_document_excerpt(state)
¶
Create a representative excerpt from sampled source units.
Source code in ontocast/stategraph/helpers.py
build_ontology_delta_graph(result)
¶
Build a delta graph from a unit ontology result.
Only insert triples are retained — delete operations in GraphUpdate are intentionally discarded. The reduce stage cannot safely apply deletions across parallel unit results because the same triple may be "kept" by another unit; preserving deletes would require a consensus policy that is not yet implemented. Any unit that emits deletes should be reviewed for whether its intent is achievable with inserts alone, or whether a future per-anchor delete-reconciliation pass is required.
If no update operations exist the current ontology snapshot is used as the delta (fresh-generation path).