Enhanced entity-relationship modelling concepts. (Lecture 3)

Содержание

Слайд 2

Enhanced Entity-Relationship Modelling Concepts Lecture 3

Enhanced Entity-Relationship Modelling Concepts

Lecture 3

Слайд 3

Agenda 1.Relationships with degree higher then 2 2.EER concepts specialisation/generalisation 3.Alternative ER/EER notation

Agenda

1.Relationships with degree higher then 2
2.EER concepts specialisation/generalisation
3.Alternative ER/EER notation

Слайд 4

1.Relationships with degree higher then 2 Cardinality Participation Entity Type Occurrence

1.Relationships with degree higher then 2

Cardinality

Participation

Entity

Type

Occurrence

Strong

Weak

Multiplicity

Relationship

Type

Occurrence

Degree

Attribute

Complex

Simple

Single valued

Multi valued

Слайд 5

1.Relationships with degree higher then 2 Degree of a Relationship Number

1.Relationships with degree higher then 2

Degree of a Relationship
Number of participating

entities in relationship.
Relationship of degree:
two is binary;
three is ternary;
four is quaternary.
Слайд 6

1.Relationships with degree higher then 2 Ternary relationship called ‘Registers’

1.Relationships with degree higher then 2

Ternary relationship called ‘Registers’

Слайд 7

1.Relationships with degree higher then 2 Quaternary relationship called ‘Arranges’

1.Relationships with degree higher then 2

Quaternary relationship called ‘Arranges’

Слайд 8

1.Relationships with degree higher then 2 Multiplicity for Complex Relationships Number

1.Relationships with degree higher then 2

Multiplicity for Complex Relationships
Number (or

range) of possible occurrences of an entity type in an n-ary relationship when other (n-1) values are fixed.
Слайд 9

1.Relationships with degree higher then 2 Ternary relationship called ‘Registers’

1.Relationships with degree higher then 2

Ternary relationship called ‘Registers’

Слайд 10

1.Relationships with degree higher then 2 Ternary relationship called ‘Registers’ with

1.Relationships with degree higher then 2

Ternary relationship called ‘Registers’ with Values

for Staff and Branch Entities Fixed
Слайд 11

1.Relationships with degree higher then 2 Try to detect multiplicities for

1.Relationships with degree higher then 2

Try to detect multiplicities for remaining

participating entities in ternary relationship Registers
Note: You can make appropriate assumptions and detect multiplicities accordingly
Слайд 12

Agenda 1.Relationships with degree higher then 2 2.EER concepts specialisation/generalisation 3.Alternative ER/EER notation

Agenda

1.Relationships with degree higher then 2
2.EER concepts specialisation/generalisation
3.Alternative ER/EER notation

Слайд 13

2.1.The Enhanced Entity-Relationship Model Semantic concepts are incorporated into the original

2.1.The Enhanced Entity-Relationship Model

Semantic concepts are incorporated into the original ER

model and called the Enhanced Entity-Relationship (EER) model.
Examples of additional concepts of EER model are:
specialization / generalization;
aggregation;
composition.
Слайд 14

2.2. Specialisation/Generalisation Superclass An entity type that includes one or more

2.2. Specialisation/Generalisation

Superclass
An entity type that includes one or more distinct subgroupings

of its occurrences.
Subclass
A distinct subgrouping of occurrences of an entity type.
Слайд 15

2.2. Specialisation/Generalisation Superclass/subclass relationship is one-to-one (1:1). Superclass may contain overlapping

2.2. Specialisation/Generalisation

Superclass/subclass relationship is one-to-one (1:1).
Superclass may contain overlapping or

distinct subclasses.
Not all members of a superclass need to be a member of a subclass.
Слайд 16

2.2. Specialisation/Generalisation Attribute Inheritance An entity in a subclass represents same

2.2. Specialisation/Generalisation

Attribute Inheritance
An entity in a subclass represents same ‘real world’

object as in superclass, and may possess subclass-specific attributes, as well as those associated with the superclass.
Слайд 17

2.2. Specialisation/Generalisation Specialization Process of maximizing differences between members of an

2.2. Specialisation/Generalisation

Specialization
Process of maximizing differences between members of an entity

by identifying their distinguishing characteristics.
Generalization
Process of minimizing differences between entities by identifying their common characteristics.
Слайд 18

2.2. Specialisation/Generalisation

2.2. Specialisation/Generalisation

Слайд 19

2.2. Specialisation/Generalisation

2.2. Specialisation/Generalisation

Слайд 20

2.2. Specialisation/Generalisation

2.2. Specialisation/Generalisation

Слайд 21

2.2. Specialisation/Generalisation

2.2. Specialisation/Generalisation

Слайд 22

2.3. Multiplicity constraints in Specialisation/Generalisation Participation constraint Determines whether every member

2.3. Multiplicity constraints in Specialisation/Generalisation

Participation constraint
Determines whether every member in superclass

must participate as a member of a subclass.
May be mandatory (total) or optional.
Слайд 23

2.3. Multiplicity constraints in Specialisation/Generalisation Disjoint constraint Describes relationship between members

2.3. Multiplicity constraints in Specialisation/Generalisation

Disjoint constraint
Describes relationship between members of

the subclasses and indicates whether member of a superclass can be a member of one, or more than one, subclass.
May be disjoint (OR) or overlapping (AND)
Слайд 24

2.3. Multiplicity constraints in Specialisation/Generalisation

2.3. Multiplicity constraints in Specialisation/Generalisation

Слайд 25

2.3. Multiplicity constraints in Specialisation/Generalisation

2.3. Multiplicity constraints in Specialisation/Generalisation

Слайд 26

2.3. Multiplicity constraints in Specialisation/Generalisation

2.3. Multiplicity constraints in Specialisation/Generalisation

Слайд 27

2.4. EER

2.4. EER

Слайд 28

2.5. Aggregation Represents a ‘has-a’ or ‘is-part-of’ relationship between entity types,

2.5. Aggregation

Represents a ‘has-a’ or ‘is-part-of’ relationship between entity types, where

one represents the ‘whole’ and the other ‘the part’.
Слайд 29

2.6. Composition Specific form of aggregation that represents an association between

2.6. Composition

Specific form of aggregation that represents an association between entities,

where there is a strong ownership and coincidental lifetime between the ‘whole’ and the ‘part’.
Слайд 30

Agenda 1.Relationships with degree higher then 2 2.EER concepts specialisation/generalisation 3.Alternative ER/EER notation

Agenda

1.Relationships with degree higher then 2
2.EER concepts specialisation/generalisation
3.Alternative ER/EER notation

Слайд 31

3.1. Chen’s ER-diagram notation Meaning ENTITY TYPE WEAK ENTITY TYPE RELATIONSHIP

3.1. Chen’s ER-diagram notation

Meaning
ENTITY TYPE
WEAK ENTITY TYPE
RELATIONSHIP TYPE
IDENTIFYING RELATIONSHIP TYPE
ATTRIBUTE
KEY ATTRIBUTE
MULTIVALUED

ATTRIBUTE
COMPOSITE ATTRIBUTE
DERIVED ATTRIBUTE
TOTAL PARTICIPATION OF E2 IN R
CARDINALITY RATIO 1:N FOR E1:E2 IN R
STRUCTURAL CONSTRAINT (min, max) ON PARTICIPATION OF E IN R

Symbol

R

E2

E1

R

E2

R

(min,max)

E

N

Слайд 32

3.1. Chen’s ER-diagram notation

3.1. Chen’s ER-diagram notation

Слайд 33

3.1. Chen’s ER-diagram notation

3.1. Chen’s ER-diagram notation

Слайд 34

3.1. Chen’s ER-diagram notation

3.1. Chen’s ER-diagram notation

Слайд 35

3.1. Chen’s ER-diagram notation

3.1. Chen’s ER-diagram notation

Слайд 36

3.1. Chen’s ER-diagram notation

3.1. Chen’s ER-diagram notation

Слайд 37

3.1. Chen’s ER-diagram notation

3.1. Chen’s ER-diagram notation