Skip to main content

Module cross_graph

Module cross_graph 

Source
Expand description

Cross-graph node copy (tear-out fork): mints a node in this graph from a donor node in another graph, recording cross-graph derivation provenance. Cross-graph node copy — the kernel half of the tear-out “fork” / cross-graph composability gesture (tear-out brief §7.5; tearout-composability plan C4).

A node→node derivation within one graph rides a petgraph Provenance edge. A cross-graph copy’s source node lives in a different graph, so the relation cannot be a petgraph edge; the derivation is recorded on the minted node as a NodeDerivation instead (see node.rs / types.rs). That record is the lineage pointer back to the source and projects to a <copy> {provenance predicate} <source> statement under the RDF projection.

WASM-clean: must compile to wasm32-unknown-unknown (mirrors graph/mod.rs).

Structs§

ComponentCopy
The result of Graph::copy_component_from: the minted keys plus the (source id, new id) pairs, in copy order. The id remap is the seam the host’s facet-carry maps donor facets through (a forked node keeps its whole per-node character — arrangement.*, web.*, foreign namespaces — by copying facets from source to new).