Entities and relations

1 min read

An entity tells the AI what a table or query is, in your business language.

Create an entity

  1. Open Ontology. If it's empty, click Create the first entity; otherwise use Entity in the toolbar.
  2. Type the Name (up to 60 characters, for example Customer) and check the slug.
  3. Write a Description: what it represents and what it's used for. Without a description, the AI doesn't know what it is (the node warns you).
  4. Pick the source: a table or a query in the workspace.
  5. Tick the parameters: the columns that identify or filter the entity (for example region or estado). For table columns, KoData can detect their values so the AI uses them correctly.
  6. Save.

Relate entities

  1. In the Graph, drag from one entity's handle to another.
  2. Pick the type: has many, belongs to or has one, and the columns that join them.

An entity can't relate to itself, and each pair of entities allows one relation of each type.

Good practices

  • One entity per concept, not per table: Shipment can be backed by a query that already cleans the table.
  • Short, concrete descriptions, with the terms your team uses.
  • If you change a table or column slug, KoData updates the ontology.

Note: Entities used to live in Settings › Entity definitions. That link now opens Ontology.