Skip to content

Farkitect is in early access. New features arrive most weeks, and these pages are updated with them. See What's New for the latest.

Advanced Metamodel Features

This tutorial covers advanced M2 metamodel features that let you build richer, more expressive modelling languages. You’ll extend the Farquind Org Map with class generalization, owned elements, and display templates.

Prerequisites: You’ve completed Adding Properties to Your Metamodel and have the Farquind Org Map metamodel with Person, Team, System, properties, and enumerations.

Generalization lets one element type inherit from another — sharing its properties and its place in relationship rules. This avoids duplicating property definitions across similar types. Appearance is not inherited: each type has its own.

Suppose you want both Person and Team to share a common Description property. Rather than adding it to both, create a superclass:

  1. In the People & Teams layer, create a new element type called Organisational Entity
  2. Add a property: Description (String, 0..1)
  3. This element type will serve as the abstract superclass. Open Advanced in its Properties and tick Abstract: nothing can then be created as an Organisational Entity, it leaves the Palette, and its name shows in italics in the Explorer
  1. Select the Person element type
  2. In the Properties panel, open Inheritance and click + Add under Superclasses
  3. Choose Organisational Entity from the list
  4. Repeat for the Team element type

Or do it from the other side: select Organisational Entity, open Inheritance, and add Person and Team under Subclasses. Either way the heading then reads Inheritance · 2 subclasses on Organisational Entity and Inheritance · 1 superclass on Person and Team.

Now both Person and Team inherit the Description property from Organisational Entity. When a user creates an M1 Person or Team, the Description field appears automatically alongside their own properties (Title, Department, etc.).

In your M1 model, select any Person or Team instance. The Properties panel shows both:

  • Own properties defined directly on the element type (Title, Department for Person)
  • Inherited properties from the superclass (Description from Organisational Entity)

Inherited properties behave identically to own properties — they can be edited, appear in catalogs, and render in diagram compartments.

Owned elements (also called subordinate elements) are elements that live inside a parent element and appear in a compartment on diagrams. The classic example is attributes inside an entity in a data model.

Suppose you want System elements to show their key interfaces as a list inside the node on diagrams.

  1. In the Technology layer, create a new element type called Interface
  2. In its Properties, open Subordination and tick Is Subordinate, so it is created inside a System and not from the Palette
  3. Configure its notation (smaller default size)
  4. Add a property: Protocol (String, 0..1)

Configure the parent to accept owned elements

Section titled “Configure the parent to accept owned elements”
  1. Select the System element type
  2. In the Properties panel, open Subordination
  3. Under Subordinate Types, click + Add Subordinate Type
  4. Fill in the entry:
    • ID: interfaces
    • Label: Interfaces
    • Classifier: Interface (the owned element type you just created)
    • Display template: {name} : {Protocol}

Still in the Interfaces entry under Subordinate Types, tick Show on diagram nodes. Every System node now has a compartment, headed Interfaces, listing its interfaces. Auto-adjust node height is ticked for you, so each node grows to fit its list.

  1. In the Explorer, right-click FQ Vessels in your M1 model
  2. Choose Add Interface…
  3. Create interfaces: Telemetry API, Fleet Dashboard API, Alert Webhook
  4. Set Protocol values: REST, GraphQL, Webhook

On the diagram, FQ Vessels now renders with a compartment showing:

┌─────────────────────┐
│ FQ Vessels │
├─────────────────────┤
│ Interfaces │
│ Telemetry API : REST │
│ Fleet Dashboard : GQL│
│ Alert Webhook : Hook │
└─────────────────────┘

The display template {name} : {Protocol} controls how each owned element renders in the compartment.

Display templates control how owned elements render inside their parent’s compartment. They use {propertyName} placeholders that are replaced with actual property values.

  • {name} — the element’s name
  • {PropertyName} — a property value by name
  • {PropertyName? [suffix]:} — conditional: only show the suffix if the property has a value
  • Literal text is included as-is
Template Renders as
{name} Telemetry API
{name} : {Protocol} Telemetry API : REST
{name}{Protocol? ({Protocol}):} Telemetry API (REST) or Alert Webhook if no protocol

Multiplicities specify how many instances of each end can participate in a relationship — similar to cardinality in data modelling.

Configure multiplicities on a relationship type

Section titled “Configure multiplicities on a relationship type”
  1. Select the Belongs To relationship type
  2. In the Properties panel, look for the Show Multiplicities toggle in the notation section
  3. Enable it

When multiplicities are enabled, edges display source and target multiplicity labels on the diagram (e.g., “1” at the Team end, “0..*” at the Person end — one team has many members).

Multiplicity values are set on individual M1 relationship instances via the Properties panel — Source Multiplicity and Target Multiplicity fields.

  • How to create superclass element types and set up generalization for property inheritance
  • How to define owned element types that live inside parent elements
  • How to show owned elements in a compartment on the parent’s diagram nodes
  • How display templates control the rendering of owned elements in compartments
  • How to enable and use relationship multiplicities

Farkitect

Model anything.

“Welcome back — your diagrams have been plotting without you.”


Release 385 · 27 Nov 2026

Top packages: Inclusion and Sharing; Create New Version; Delete from Project

Release
385
Released
27 Nov 2026, 21:29 UTC
Built
27 Nov 2026, 21:30 UTC
Environment
Production
Surface
Docs
Commit
a5968f3
Branch
main