Skip to main content

Relation

A classifier that defines the properties of a set of relations of the subject domain, such as studies in or buys product from. Relation is abstract: it is never serialized on its own and has no type of its own. A serialized relation is always either a binary relation or an n-ary relation.

Being a Classifier, Relation carries isAbstract and properties; being a Decoratable, it also carries stereotype and isDerived; and it carries the properties common to all model elements. A relation's ends are Property elements referenced, in order, from its properties array.

Binary relation​

A relation between two members — for example the «material» studies in relation connecting Student and University. See BinaryRelation for its properties, diagrams, and JSON examples (including parthood and aggregation).

N-ary relation​

A relation that connects more than two members — for example a ternary allocation relation joining Employee, Project, and Role. See NaryRelation for its properties, diagram, and JSON examples.