Skip to content
UPG is in early alpha. The specification is still evolving and may change between versions.
Tools/Workspace & Portfolios/create_classification_edge

create_classification_edge

Place a node in a classification cell, carrying optional confidence and provenance as edge metadata (confidence / assessed_on / rationale / evidence). A typed convenience over the generic edge writers, mirroring create_parity_edge: it picks the edge type from the source node type (a competitor source writes competitor_classified_as_classification_value; any other node writes the polymorphic node_classified_as_classification_value), expands a friendly confidence (low/medium/high) into the canonical confidence_5 assessment, defaults assessed_on to today, and routes automatically. A registry/{value} target (or a supplied node_product_id) writes a cross-edge; a bare local value writes a catalogue edge.

Workspace & Portfoliosinherits the delegated writer's atomicity.

Arguments

node_idstringrequired

The node being classified (the edge source). Bare, or {product_id}/{node_id}.

classification_value_idstringrequired

The target classification_value. Bare for a local value, or registry/{value} for a canonical.

node_product_idstringoptional

Cross mode: product id holding node_id (defaults to the active product).

confidencestringoptional

Confidence this node belongs in this cell. Expanded to a confidence_5 assessment.

lowmediumhigh
assessed_onstringoptional

ISO date the classification was made or last re-checked. Defaults to today.

rationalestringoptional

Short note on why this node sits in this cell.

evidencestringoptional

A source URL, or a competitor_signal / evidence node id backing the classification.

supersedebooleanoptional

When this classifies the source to a new value on a single-select axis, retire its prior same-axis edge (default true) and record the move in the reclassification history. Set false to keep both values (additive). A multi-select axis always keeps both.

auto_create_portfoliobooleanoptional

Cross mode only: create an empty portfolio document if none exists (default false).

Returns

JSON: the created edge (within-graph or cross-product shape).

See Also