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

audit_property_coverage

Audit which portfolio cross-edges of a given type are MISSING required `properties` keys (the completeness check for a property backfill, without a shell over `portfolio.upg`). Given `edge_type` and `required_keys`, returns the edges that lack any of them, plus (when `check_values`) the edges whose present values fail the type property schema. Resolves entity titles. Example: `audit_property_coverage({ edge_type: "competitor_classified_as_classification_value", required_keys: ["confidence", "assessed_on"] })` returns `missing: []` once every classify edge carries both. Read-only.

Workspace & Portfoliosatomic (read-only). Reads the portfolio document only.

Arguments

edge_typestringrequired

Cross-edge type to audit (e.g. competitor_classified_as_classification_value).

required_keysarrayrequired

The properties keys that should be present on every edge of this type (e.g. ["confidence", "assessed_on"]).

source_product_idstringoptional

Restrict to edges whose source node is in this product.

check_valuesbooleanoptional

Also report edges whose PRESENT properties fail the type property schema (off-scale, missing nested keys). Default true.

Returns

Shape
{ edge_type, required_keys, total, complete, missing: [{ edge_id, source, target, source_title?, target_title?, missing_keys }], malformed?: [...] }

See Also