ER Modelling: Introduction To Modeling
ER Modelling: Introduction To Modeling
ER modelling
Slides for this part are based on
Chapters 8 from Halpin, T. & Morgan, T. 2008, Information Modeling and
Relational Databases, Second Edition (ISBN: 978-0-12-373568-3),
published by Morgan Kaufmann Publishers.
1
Where are we?
# Title Date
1 Introduction 07.10.2013
2 ORM modeling 21.10.2013
3 Relational modeling 04.11.2013
4 ER modeling 18.11.2013
5 OO modeling 02.12.2013
6 Process modeling 16.12.2013
7 Service modeling 13.01.2014
8 Exam 27.01.2014
2
Intro
Material on this slide based on Ch 8.1 in Halpin, T. & Morgan, T. 2008, Information Modeling and Relational Databases, Second Edition
3
Barker notation
• Attributes:
– “#” indicates that the attribute is, or is a component of, the primary identifier of
the entity type
– “*” indicates that the attribute is mandatory
– “°” indicates the attribute is optional
• Relationships are restricted to binaries
– A solid half-line denotes a mandatory role, and a dotted half-line indicates an
optional role
– Crow’s foot notation is used for cardinality; intuitively indicates “many”, by its
many “toes”; the absence of a crow’s foot intuitively indicates “one”
Material on this slide based on Ch 8.2 in Halpin, T. & Morgan, T. 2008, Information Modeling and Relational Databases, Second Edition
4
Barker notation (cont’)
Material on this slide based on Ch 8.2 in Halpin, T. & Morgan, T. 2008, Information Modeling and Relational Databases, Second Edition
5
Equivalent Barker ER and ORM diagrams
Material on this slide based on Ch 8.2 in Halpin, T. & Morgan, T. 2008, Information Modeling and Relational Databases, Second Edition
6
Composite identification in Barker ER
• A bar “|” across one end of a relationship indicates that the relationship
is a component of the primary identifier for the entity type at that end.
Material on this slide based on Ch 8.2 in Halpin, T. & Morgan, T. 2008, Information Modeling and Relational Databases, Second Edition
7
Other constraints in Barker ER
Material on this slide based on Ch 8.2 in Halpin, T. & Morgan, T. 2008, Information Modeling and Relational Databases, Second Edition
8
Other constraints in Barker ER
Material on this slide based on Ch 8.2 in Halpin, T. & Morgan, T. 2008, Information Modeling and Relational Databases, Second Edition
9
Barker ER notation – summary
Material on this slide based on Ch 8.2 in Halpin, T. & Morgan, T. 2008, Information Modeling and Relational Databases, Second Edition
10
Information Engineering (IE) Notation
Material on this slide based on Ch 8.3 in Halpin, T. & Morgan, T. 2008, Information Modeling and Relational Databases, Second Edition
11
Equivalent constraint patterns in IE and ORM
Material on this slide based on Ch 8.3 in Halpin, T. & Morgan, T. 2008, Information Modeling and Relational Databases, Second Edition
12
IDEF1X notation overview
Material on this slide based on Ch 8.4 in Halpin, T. & Morgan, T. 2008, Information Modeling and Relational Databases, Second Edition
13
ERmap – Mapping from ORM to ER
Material on this slide based on Ch 8.5 in Halpin, T. & Morgan, T. 2008, Information Modeling and Relational Databases, Second Edition
14
Some examples of ERmap steps
Step 1.2
Step 3
Step 1.3
Step 4
Material on this slide based on Ch 8.5 in Halpin, T. & Morgan, T. 2008, Information Modeling and Relational Databases, Second Edition
15
Some remarks on ER vs ORM
16
Resources
• Tools:
– RISE Editor: http://www.risetobloome.com/
– Calligra Flow: http://www.calligra.org/flow/
– Dia: http://live.gnome.org/Dia/
17
Next lecture
# Title Date
1 Introduction 07.10.2013
2 ORM modeling 21.10.2013
3 Relational modeling 04.11.2013
4 ER modeling 18.11.2013
5 OO modeling 02.12.2013
6 Process modeling 16.12.2013
7 Service modeling 13.01.2014
8 Exam 27.01.2014
18
Questions?
19