Beginner

Link Types

Module Summary

Explore how Link Types create relationships between Object Types, modeling how entities in your business are connected.

What Is a Link Type?

A Link Type defines a named, directional relationship between two Object Types. It specifies which properties form the foreign key and how many objects can sit on each side (one-to-one, one-to-many, or many-to-many). For example, a Link Type "Employee → Office" might join on a office_id property shared between the Employee and Office objects.

Cardinality Matters

Choosing the right cardinality is critical for how applications traverse the graph: - One-to-one: an Employee has exactly one Badge. - One-to-many: an Office has many Employees. - Many-to-many: Students enroll in multiple Courses; each Course has many Students. Getting cardinality right ensures Workshop widgets and Functions return the correct shape of data.

Traversing the Ontology Graph

Once links are defined, you can traverse the Ontology like a graph. In Functions you can write employee.office.city to go from an employee to their office's city. In Workshop, users can click an employee row and instantly see their linked office, manager, or projects. This graph traversal is what makes the Ontology feel like a connected knowledge base rather than a collection of tables.

Key Takeaways

  • Link Types define named relationships between Object Types.
  • Cardinality (one-to-one, one-to-many, many-to-many) shapes how data is traversed.
  • Links let you navigate the Ontology like a connected graph.
  • Properly modelled links power Workshop drill-downs and Function queries.