lbb_configure
Configure knowledge graph ontologies and rules. Define or evolve entity types, relations, properties, and inference rules; publish schemas and manage ontology versions.
Instructions
Mutate stored graph configuration. Actions: define_ontology (create a new graph ontology), evolve_ontology (evolve an existing graph's ontology in place by name — add_entity_type / add_relation / add_property (a typed scalar field so entity_properties can write it) / widen_relation, rename and set-inverse/cardinality, and data-gated narrow/remove; bumps the ontology version, preserves every record, no migration), publish_schema (activate a previewed RDF/SHACL shape bundle), and define_rules (replace the branch's stored inference rules — body/head terms may be variables or fixed entities, and not_exists combinators add stratified negation for universal conditions).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ops | No | Ontology changes to apply in order (additive, in-place edits, or subtractive) | |
| graph | No | Graph to create or redefine | |
| rules | No | ||
| action | Yes | Selects the variant (one of: define_ontology, define_rules, publish_schema, evolve_ontology). | |
| branch | No | Branch to target; defaults to the connection's branch | |
| format | No | ||
| shapes | No | ||
| source | No | ||
| ontology | No | ||
| relations | No | ||
| desired_mode | No | ||
| entity_types | No | ||
| confirm_empty | No | ||
| merge_default | No | ||
| preview_digest | No | ||
| confirm_restrictive | No | ||
| allow_data_conflicts | No | Apply subtractive ops (narrow/remove) even when current data conflicts; affected records are kept and begin to warn. Default false rejects a conflicting subtractive request and reports the conflicts. |