indykite-ciq-create-relationship
Installation
SKILL.md
IndyKite ContX IQ - create a new relationship
A CIQ relationship-create policy declares an allowed_upserts.relationships.relationship_types whitelist of {type, source_node_label, target_node_label} triples; the Knowledge Query's upsert_relationships array names the new relationship and references variables from the policy's cypher as source and target. The two endpoint nodes are matched in the policy's cypher - they must already exist in the IKG. The new relationship is what's created.
This skill covers exactly that - relationship creation between two pre-existing nodes. Other paths are deliberately out of scope:
- Creating a new node uses
allowed_upserts.nodes.node_typesandupsert_nodes- seeindykite-ciq-create-node. - Creating a relationship to a brand-new node combines both: an
upsert_nodesentry for the new node plus anupsert_relationshipsentry that points itssourceortargetat the freshname. The schema supports this; this skill keeps the example tight to two existing endpoints for clarity. See "Adapting for a fresh endpoint" near the bottom. - Updating an existing relationship's properties uses
allowed_upserts.relationships.existing_relationships. - Deletes use
allowed_deletes.relationships.
For reads, see indykite-ciq-read.
When to use
Activate this skill when the user: