Beruflich Dokumente
Kultur Dokumente
2001 John Mylopoulos The Entity-Relationship Model -- 1 2001 John Mylopoulos The Entity-Relationship Model -- 2
Information Systems Analysis and Design csc340 Information Systems Analysis and Design csc340
Entities
n These represent classes of objects (facts, things, people,...) that have
properties in common and an autonomous existence.
n City, Department, Employee, Purchase and Sale are examples of
entities for a commercial organization.
n An instance of an entity is an object in the class represented by the
The Constructs of entity.
the E-R Model n Stockholm, Helsinki, are examples of instances of the entity City,
and the employees Peterson and Johanson are examples of
instances of the Employee entity.
n The E-R model is very different from the relational model in which it is
not possible to represent an object without knowing its properties (an
employee is represented by a tuple containing the name, surname, age,
and other attributes.)
AND/XOR
2001 John Mylopoulos The Entity-Relationship Model -- 3 2001 John Mylopoulos The Entity-Relationship Model -- 4
Information Systems Analysis and Design csc340 Information Systems Analysis and Design csc340
2001 John Mylopoulos The Entity-Relationship Model -- 5 2001 John Mylopoulos The Entity-Relationship Model -- 6
1
Information Systems Analysis and Design csc340 Information Systems Analysis and Design csc340
Exam
2001 John Mylopoulos The Entity-Relationship Model -- 7 2001 John Mylopoulos The Entity-Relationship Model -- 8
Information Systems Analysis and Design csc340 Information Systems Analysis and Design csc340
Meets
Meets instances
instances
Course
Course instances
instances Room
Room instances
instances
2001 John Mylopoulos The Entity-Relationship Model -- 9 2001 John Mylopoulos The Entity-Relationship Model -- 10
Information Systems Analysis and Design csc340 Information Systems Analysis and Design csc340
2001 John Mylopoulos The Entity-Relationship Model -- 11 2001 John Mylopoulos The Entity-Relationship Model -- 12
2
Information Systems Analysis and Design csc340 Information Systems Analysis and Design csc340
Shipment
Shipment
FilledBy
FilledBy Contains
Contains
Part
Part Attributes
AND Order
Order XOR n These describe the elementary properties of entities or relationships.
n For example, Surname, Salary and Age are possible attributes of
Generates
Generates Requests
Requests
Invoice Service the Employee entity, while Date and Mark are possible attributes for
Invoice Service
the relationship Exam between Student and Course.
n An attribute associates with each instance of an entity (or relationship)
FilledBy Contains
Contains Part a value belonging to a set known as the domain of the attribute.
Shipment
Shipment FilledBy Order Part
Order n The domain contains the admissible values for the attribute.
Requests
Requests
Invoice
Invoice Generates
Generates Service
Service
2001 John Mylopoulos The Entity-Relationship Model -- 13 2001 John Mylopoulos The Entity-Relationship Model -- 14
Information Systems Analysis and Design csc340 Information Systems Analysis and Design csc340
2001 John Mylopoulos The Entity-Relationship Model -- 15 2001 John Mylopoulos The Entity-Relationship Model -- 16
Information Systems Analysis and Design csc340 Information Systems Analysis and Design csc340
2001 John Mylopoulos The Entity-Relationship Model -- 17 2001 John Mylopoulos The Entity-Relationship Model -- 18
3
Information Systems Analysis and Design csc340 Information Systems Analysis and Design csc340
2001 John Mylopoulos The Entity-Relationship Model -- 19 2001 John Mylopoulos The Entity-Relationship Model -- 20
Information Systems Analysis and Design csc340 Information Systems Analysis and Design csc340
2001 John Mylopoulos The Entity-Relationship Model -- 21 2001 John Mylopoulos The Entity-Relationship Model -- 22
Information Systems Analysis and Design csc340 Information Systems Analysis and Design csc340
2001 John Mylopoulos The Entity-Relationship Model -- 23 2001 John Mylopoulos The Entity-Relationship Model -- 24
4
Information Systems Analysis and Design csc340 Information Systems Analysis and Design csc340
Car Registration#
2001 John Mylopoulos The Entity-Relationship Model -- 25 2001 John Mylopoulos The Entity-Relationship Model -- 26
Information Systems Analysis and Design csc340 Information Systems Analysis and Design csc340
2001 John Mylopoulos The Entity-Relationship Model -- 27 2001 John Mylopoulos The Entity-Relationship Model -- 28
Information Systems Analysis and Design csc340 Information Systems Analysis and Design csc340
2001 John Mylopoulos The Entity-Relationship Model -- 29 2001 John Mylopoulos The Entity-Relationship Model -- 30
5
Information Systems Analysis and Design csc340 Information Systems Analysis and Design csc340
Generalizations
n These represent logical links between an entity E, known as Properties of Generalization
parent entity, and one or more entities E 1,...,En called child
n Every instance of a child entity is also an instance of the parent entity.
entities, of which E is more general, in the sense that they are a
particular case. n Every property of the parent entity (attribute, identifier, relationship or
other generalization) is also a property of a child entity. This property
n In this situation we say that E is a generalization of E1,...,En and
of generalizations is known as inheritance.
that the entities E1,...,En are specializations of E.
2001 John Mylopoulos The Entity-Relationship Model -- 31 2001 John Mylopoulos The Entity-Relationship Model -- 32
Information Systems Analysis and Design csc340 Information Systems Analysis and Design csc340
2001 John Mylopoulos The Entity-Relationship Model -- 33 2001 John Mylopoulos The Entity-Relationship Model -- 34
Information Systems Analysis and Design csc340 Information Systems Analysis and Design csc340
2001 John Mylopoulos The Entity-Relationship Model -- 35 2001 John Mylopoulos The Entity-Relationship Model -- 36
6
Information Systems Analysis and Design csc340 Information Systems Analysis and Design csc340
2001 John Mylopoulos The Entity-Relationship Model -- 37 2001 John Mylopoulos The Entity-Relationship Model -- 38
Information Systems Analysis and Design csc340 Information Systems Analysis and Design csc340
2001 John Mylopoulos The Entity-Relationship Model -- 39 2001 John Mylopoulos The Entity-Relationship Model -- 40