Ratify a relation
ratify_relationConfirm a legacy relation (state UNKNOWN, with no reliable start date or evidence) so it becomes CURRENT with a start date and evidence.
Only works on legacy relations that are still current; other relations
are rejected. If the legacy relation type is not in the vocabulary, pass
a core or extension type (see get_ontology) in relation_type, and set
invertir=True if source and target must be swapped. The original
predicate is kept in the evidence.
Args:
relation_id: Relation id (from query_world_model with
aspect="evidence").
valid_from: ISO 8601 date from which the relation holds.
evidence_ref: What verified it: a command and its output
(measurement), a URL or person (source), or an existing episode
id (episode).
evidence_kind: 'measurement' (default), 'source' or 'episode'.
relation_type: Vocabulary type to use if the legacy type is not one.
invertir: Swap source and target.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invertir | No | ||
| valid_from | Yes | ||
| relation_id | Yes | ||
| evidence_ref | Yes | ||
| evidence_kind | No | measurement | |
| relation_type | No |