Beruflich Dokumente
Kultur Dokumente
Terry Halpin
ORM 2 Graphical Notation.docx © 2010, T. Halpin Last updated: 2010 Feb 4 Page 1/6
Construct Examples Description/Notes
Sport Person
Role names may be added in square
Ternary fact
brackets.
type [player]
Person Country Arrow-tips are used to reverse the default
… played … for ... … introduced … to ... left-right or top-down reading order.
Reading orders other than forward and
Food Cat
reverse are shown using named
Date Cat Food Date placeholders.
… ate … on ...
[Cat] ate [Food] on [Date]
Simple
Person Country The example constraint means that each
mandatory
was born in person was born in some country.
role constraint
Person Country The mandatory role dot may be placed at
was born in either end of the role connector.
Inclusive-or
has The constraint is displayed as a circled dot
constraint Passport
connected to the constrained roles. The
(disjunctive Visitor example constraint means that each visitor
mandatory
DriverLicence referenced in the model must have a
role)
has passport or a driver licence (or both).
Preferred
Country CountryCode A double bar on a UC indicates it underlies
internal UC
has / is of the preferred reference scheme.
ORM 2 Graphical Notation.docx © 2010, T. Halpin Last updated: 2010 Feb 4 Page 2/6
Construct Examples Description/Notes
has
External UC StateCode Here, each state is primarily identified by
(double-bar is in
combining its country and state code. Each
indicates State
Country combination of country and state name also
(.code)
preferred has
applies to only one state.
identifier) StateName
enrolled in
The arrow points from the subset end to the
is cancer prone
Subset superset end.
constraint Course
The role sequences at both ends must be
Person
compatible.
smokes Grade A connection to the junction of 2 roles
… for ... obtained ... constrains that role pair.
speaks is often used in The constrained role pair at the superset
Join subset Language
(.name) end is projected from a role path that
constraint
involves a conceptual join on Language. The
Advisor Country constraint declares that if an advisor serves
(.nr) (.code)
in a country then that advisor must speak a
serves in language that is often used in that country.
ORM 2 Graphical Notation.docx © 2010, T. Halpin Last updated: 2010 Feb 4 Page 3/6
Construct Examples Description/Notes
has systolic- This constraint means that a patient’s
Equality
systolic BP is recorded if and only if his/her
constraint
Patient BloodPressure diastolic BP is recorded.
An equality constraint may apply between 2
has diasystolic-
or more compatible role sequences,
possibly involving joins.
[languageSpoken] A fact type is either asserted, derived, or
Derived fact
Language semiderived.
type, and speaks
Person A derived fact type is marked with an
derivation rule
NrLanguages asterisk “*”. A derivation rule is supplied. A
speaks*
double asterisk “**” indicates derived and
*For each Person,
nrLanguages = count(languageSpoken). stored (eager evaluation).
ORM 2 Graphical Notation.docx © 2010, T. Halpin Last updated: 2010 Feb 4 Page 4/6
Construct Examples Description/Notes
12 This constrains the number of times an
Internal Person Jury is on / includes occurring instance of a role or role sequence
frequency is a member of
Panel may appear in each population.
constraint
4..7 Here: each jury has exactly 12 members;
Expert ≤5 ≥2 each panel that includes an expert includes
Paper at least 4 and at most 7 experts; each expert
reviews / is reviewed by reviews at most 5 papers; each paper that is
reviewed is reviewed by at least 2 experts;
Year Gender
and each department and year that has staff
2 numbers recorded in the quaternary
Department Quantity
appears there twice (once for each gender).
… in … had staff of … in ...
Symmetric
Symmetric + Irreflexive
Symmetric + Intransitive
= Purely Reflexive
ORM 2 Graphical Notation.docx © 2010, T. Halpin Last updated: 2010 Feb 4 Page 5/6
Construct Examples Description/Notes
≤2
is a parent of
ORM 2 Graphical Notation.docx © 2010, T. Halpin Last updated: 2010 Feb 4 Page 6/6