kapps_ogm.node.node_property_chains#

Property chain extraction utilities for Node instances.

kapps_ogm.node.node_property_chains.extract_property_chains(self: Node) → list[list[IRI | str]][source]#

Extract property chains from nested node data.

Reconstructs full IRIs from lined keys using hybrid lookup: 1. Direct IRI construction (already full IRI) 2. _iri_fields mapping (top-level properties from ClassSpec) 3. Decode from lined format (nested properties) 4. Fallback to string if all fail

Returns:

Property chains from root to each terminal value,

with all keys normalized to full IRIs where possible.

Return type:

list[list[IRI | str]]