quipu_set
Atomically replaces every current value of an entity's predicate with a single new value in the default graph, preventing duplicate or empty-predicate states during updates.
Instructions
Atomically SET (entity, predicate) to exactly one value in the ROOT/default graph. Supplying a graph field is refused; named-graph facts are untouched. Retracts every current object on that predicate and asserts the new one in a single transaction. The supersede primitive — re-parenting (reports_to A -> B) is one call, with no empty-predicate window and no way to end up with two supervisors by forgetting the retract half. SINGLE-VALUE semantics: replaces ALL current objects; to add without removing, assert via quipu_knot.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| actor | No | Who is performing the set | |
| graph | No | Unsupported: omit this field. This tool operates only on ROOT/default graph; use graph-scoped quipu_update for named graphs. | |
| value | Yes | New object value. A bare string is a literal; use {"iri": "..."} for an edge, or {"int"|"float"|"bool": ...} / {"value", "lang"|"datatype"}. A bare string aimed at an IRI-valued predicate is refused loudly. | |
| entity | Yes | IRI of the entity (must exist) | |
| source | No | Provenance source of the update. | |
| predicate | Yes | Predicate IRI to set (may be new) | |
| timestamp | No | ISO-8601 timestamp for the supersede |