Skip to main content

exporter.to_semantic_viz_payload()

Build a statement-graph payload from a cell graph plus series bindings.

Usage

Source

exporter.to_semantic_viz_payload(
    graph,
    bindings,
    *,
    workbook,
    view=None,
    blank_ranges=None,
    rank_pull=DEFAULT_RANK_PULL
)

Does not construct cell-level LightweightVizCore and does not import inverted-tree emission. Catalog analysis fail-closes as SemanticCatalogError.

Parameters

graph: DependencyGraph

Cell-level dependency graph.

bindings: WorkbookSeriesBindings

Validated series bindings.

workbook: Path | str

Workbook path used to expand series geometry.

view: SemanticCatalogView | None = None

Precomputed catalog. When omitted, load_semantic_catalog runs.

blank_ranges: Iterable[str] | None = None

Sheet-qualified rectangles omitted from the graph. Forwarded to catalog edge classification when view is omitted.

rank_pull: RankPull = DEFAULT_RANK_PULL
Vertical pull towards input depth: "none", "between" series clusters (default), or "everywhere".

Raises

SemanticCatalogError

Catalog or instance-edge analysis failed.

ValueError
Unknown rank_pull.