indykite-ciq-create-relationship
IndyKite ContX IQ - create a new relationship
Create a brand-new relationship between two nodes that already exist in the IndyKite Graph (IKG), driven by a ContX IQ policy + Knowledge Query and run via POST /contx-iq/v1/execute. The policy declares an allowed_upserts.relationships.relationship_types whitelist of {type, source_node_label, target_node_label} triples and matches the two endpoint nodes in its cypher; the Knowledge Query's upsert_relationships array names the new relationship and references those cypher variables as source and target. The endpoint nodes must already exist - only the relationship is 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: