Skip to article
KaeshinOntology handbook

What are you trying to do?

Find a concept, a how-to, or a plant example.
Ontology/Model your business
Model your business6 min read

Abstract types and interfaces

Choose a shared family, a shared agreement, or an ordinary type with its own records.

Kaeshin Data Platform · For workspace admins and business teams

Ask what should be shared

As the factory model grows, Machine and Inspection tool may share an Asset family. They have common fields such as asset code and common links such as location. A parent type can hold those definitions; its subtypes inherit the parent’s fields and links.

Mark Asset as Abstract when it is only a grouping. You then create records as Machine or Inspection tool, not directly as Asset. This prevents a vague “asset” record when your process needs to know which kind it is. A parent need not be abstract if direct records have a clear business meaning.

Build a family with a parent type

Use an open draft and appropriate schema editing access. Start with a small, stable shared definition: changing the parent can affect all of its subtypes.

  1. In Schema → Object types → New type, create Asset and select Abstract if it should only group other types.

  2. Add the common fields to Asset. Do not put Machine-only values on Asset just because one subtype needs them.

  3. Create Machine. In Subtype of, choose Asset. Save, then inspect Fields to distinguish its own fields from those inherited from Asset.

  4. Add Machine’s specific fields. Create Inspection tool with the same parent and inspect its inherited definition as well.

  5. Review and publish. In Records, create examples using the concrete subtypes and check their shared and specific fields.

Use an interface for a common agreement

An interface describes an agreement that different types fulfill using their own properties, links and actions. Those types do not have to belong to the same family. For example, a Trackable interface could ask both Material and Machine for a recognizable tracking code while they remain different kinds of things.

The interface names slots; each implementing type supplies what fills them. A slot can describe a property, a link or an action. An action slot expects matching inputs and outputs, rather than simply an action with a similar name. This is useful when the same task must work across different types with a consistent meaning.

Implement and check the agreement

  1. Open Schema → Interfaces → New interface. Give the agreement a clear name, then add its Properties, Links or Actions. Mark the slots that implementors must supply as Required.

  2. Open the object type’s Interfaces tab and choose Implement interface. Select the interface and choose what fills each slot. Create a field or select an offered compatible field where appropriate.

  3. For links, add the actual link type under Links first. For actions, choose one that fits the type and the required inputs and outputs.

  4. Save and inspect any unfilled slots. Required empty slots prevent publication; every choice is checked again when publishing.

Keep the first model simple

The Supplier and Material quickstart needs neither an abstract parent nor an interface. Add either when repeated definitions or a shared task make the benefit clear. Removing an interface implementation leaves the type’s fields, links and actions in place; it removes the agreement’s slot choices. Always review affected types before publishing a shared change.

✳

Take the next step in your own business.