Conceptual / semantic modelling

Slides:



Advertisements
Similar presentations
Entity Relationship (ER) Modeling
Advertisements

Chapter 6: Entity-Relationship Model
3/25/2017.
Entity Relationship (E-R) Modeling
Chapter 9 Structuring System Data Requirements
Chapter 7 System Models.
Copyright © 2003 Pearson Education, Inc. Slide 1 Computer Systems Organization & Architecture Chapters 8-12 John D. Carpinelli.
Copyright © 2011, Elsevier Inc. All rights reserved. Chapter 6 Author: Julia Richards and R. Scott Hawley.
Author: Julia Richards and R. Scott Hawley
Properties Use, share, or modify this drill on mathematic properties. There is too much material for a single class, so you’ll have to select for your.
1 RA I Sub-Regional Training Seminar on CLIMAT&CLIMAT TEMP Reporting Casablanca, Morocco, 20 – 22 December 2005 Status of observing programmes in RA I.
Properties of Real Numbers CommutativeAssociativeDistributive Identity + × Inverse + ×
Create an Application Title 1A - Adult Chapter 3.
Relational data integrity
Database Design: ER Modelling (Continued)
Lecture 7 Enhanced Entity-Relationship Modelling & Advanced Normalisation.
Database Design Process
R ELATIONAL M ODEL TO SQL Data Model. 22 C ONCEPTUAL D ESIGN : ER TO R ELATIONAL TO SQL How to represent Entity sets, Relationship sets, Attributes, Key.
1 SA0951a Entity-Relationship Modelling. 2 What is it about? ER model is used to show the Conceptual schema of an organisation. Independent of specific.
Basel-ICU-Journal Challenge18/20/ Basel-ICU-Journal Challenge8/20/2014.
1..
the Entity-Relationship (ER) Model
Relational Database Design Via ER Modelling
CONTROL VISION Set-up. Step 1 Step 2 Step 3 Step 5 Step 4.
Lecture plan Outline of DB design process Entity-relationship model
Chapter 6: ER – Entity Relationship Diagram
Model and Relationships 6 M 1 M M M M M M M M M M M M M M M M
Chapter 2 Entity-Relationship Data Modeling: Tools and Techniques
Entity-Relationship Model
Analyzing Genes and Genomes
Systems Analysis and Design in a Changing World, Fifth Edition
©Brooks/Cole, 2001 Chapter 12 Derived Types-- Enumerated, Structure and Union.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 12 View Design and Integration.
Essential Cell Biology
PSSA Preparation.
Essential Cell Biology
Immunobiology: The Immune System in Health & Disease Sixth Edition
Energy Generation in Mitochondria and Chlorplasts
1 © Prentice Hall, 2002 Chapter 4: The Enhanced E-R Model and Business Rules Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott,
Modeling Main issues: What do we want to build How do we write this down.
Enhanced/Extended Relationship-Diagram
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model.
Lecture Eleven Entity-Relationship Modelling
Modeling Data The Entity Relationship Model (ER) For Database Design.
Data Modeling ISYS 464. Database Design Process Conceptual database design: –The process of creating a data model independent of implementation details.
Entity-Relationship (E-R) Model
Database Design & ER Diagrams
Ch5: ER Diagrams - Part 2 Much of the material presented in these slides was developed by Dr. Ramon Lawrence at the University of Iowa.
Chapter 12 Entity-Relationship Modeling Pearson Education © 2009.
1 Web-Enabled Decision Support Systems Entity-Relationship Modeling Prof. Name Position (123) University Name.
DeSiamorewww.desiamore.com/ifm1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
CSE314 Database Systems Data Modeling Using the Entity- Relationship (ER) Model Doç. Dr. Mehmet Göktürk src: Elmasri & Navanthe 6E Pearson Ed Slide Set.
Entity-relationship Modeling Transparencies 1. ©Pearson Education 2009 Objectives How to use ER modeling in database design. The basic concepts of an.
Entity-Relationship Model
Entity Relationship Modeling
Chapter 12 Entity-Relationship Modeling Pearson Education © 2009.
Chapter 11 & 12 Entity-Relationship (E-R) Model Characteristics of E-R Model Components of E-R Model Example of E-R Model Enhanced E-R Model.
DeSiamorePowered by DeSiaMore1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
Msigwaemhttp//:msigwaem.ueuo.com/1 Database Management Systems (DBMS)  B. Computer Science and BSc IT Year 1.
Databases Illuminated Chapter 3 The Entity Relationship Model.
advanced data modeling
Chapter 8 Entity-Relationship Modeling Pearson Education © 2009.
Data Modeling Using the Entity- Relationship (ER) Model
The Enhanced Entity- Relationship (EER) Model
Conceptual Design & ERD Modelling
Entity-Relationship Modelling
Entity-Relationship Modeling
Chapter Entity-Relationship Modeling & Enhanced Entity- Relationship Modeling.
Entity-Relationship Modelling
Chapter Entity-Relationship Modeling & Enhanced Entity- Relationship Modeling.
Presentation transcript:

Conceptual / semantic modelling

Overview design; conceptual design; ER model concepts; semantic aspects; problems; Enhanced ER (EER) modelling; transforming an ER (EER) model into a relational model

Design you know the mechanics for building a database system, but don’t know how to design it

Design requirements specification conceptual (semantic) design logical design physical design and implementation testing and validation maintenance

Conceptual (semantic) design constructing a model of the information used in an organisation independently of any targeted DBMS and of any physical considerations - high level of abstraction conceptual model - a more structured description (as opposed to a NL description) try to capture as much meaning as possible model - constructed within a theory terminology (ambiguity): model most popular conceptual data model (theory) ER (or E/R) model (theory) - Chen (1976) UML notation

ER model attribute

Concepts of the ER model semantic, not formal may be understood differently (by designers); results: different models of the same real life system however, an ER model is a semi-formal description (see below) not directly implementable needs to be translated into an implementable model (e.g. the relational model) why, then, doing it in the first instance? symbolic level formal description based on a set of informally defined concepts most popular: ER diagram

Entity entity type entity instance strong/regular entity type a concept identified as having an independent existence entity instance strong/regular entity type weak entity type its existence is dependent on some other entity types examples think ...

ER diagram - entity (UML) Student Student studNo Book-Loan

ER diagram - entity (before)

Attributes a property/characteristic of an entity (or relationship) type instances of the same type have properties in common attribute domain should be included in a fully developed data model attributes simple / composite single-valued / multi-valued derived candidate key / primary key / composite key (note: no foreign key!)

ER diagram - attributes (UML) Student name {PPK} dOB {PPK} day month year sex /age address no code city telNo[1..*] course /fees

ER diagram - attributes (before)

Relationships do not mistake with relation (in the relational model) relationship type a (meaningful) association between entity types participants - the entities involved in the relationship relationship instance degree number of participating entities (types) binary ternary, quaternary … recursive

ER diagram - binary relationships (UML) Book Student Borrows Title Author Edition name dOB Department Belongs To name

ER diagram - binary relationships (before)

ER diagram - ternary relationship (UML) Module code Student Teach name dOB Lecturer name

ER diagram - recursive relationships (UML) Representative Student Represents name dOB Represented

ER diagram - more than one relationship between two entities HeadofDepartment Manages Staff Department name dOB name BelongsTo Member

ER diagram - relationships with attributes (UML) IsAffiliatedTo Staff Department name dOB name date position

ER diagram - relationships with attributes (before)

Structural constraints on relationships cardinality constraints multiplicity cardinality participation relevant to all possibilities - i.e., not to a certain extension

Structural constraints on relationships (UML) Rents Room 0..1 hall no 0..1 Student 0..* Advises name dOB 1 0..* Tutor name Teaches 1..*

ER diagram - structural constraints (before) rented_house M 1 1 owns rents has M N 1 tenant landlord house history

Problems with ER models connection traps a link between two entities seems to have been represented via another entity, but the actual model does not capture that fan traps symbolically: two (1:M) relationships fan out of an entity it is not always a trap chasm traps symbolically: a pathway representing a link contains a relationship with a partial participation a good understanding of the application is required

ER diagram - fan trap Course Project Student Attends Proposes 1 1 code 1..* 1..* Student Project name name dOB

ER diagram - fan trap explanation

ER diagram - solution to a fan trap Student Attends Takes 1..* 1..* name dOB 1 1 Course Project hall no name can you think of another solution?

ER diagram - chasm trap Project Course Student Proposes Takes 1..* 0..1 name 1 0..* Course Student hall no name dOB

ER diagram - solution to a chasm trap Project Proposes Takes 1..* 0..1 name 1 0..* Course Student 1 Attends 1..* hall no name dOB why not always represent all the relationships?

The Enhanced ER model (EER) additional semantic modelling concepts for “richer” (more comprehensive) representations type hierarchies specialisation / generalisation subclass / superclass attribute inheritance aggregation hierarchies aggregation composition

Specialisation / generalisation equivalent names: specialisation hierarchy, generalisation hierarchy or IS-A hierarchy specialisation identifying classes among the instances of an entity type, by identifying distinguishing properties (attributes); a top down approach generalisation grouping entity types into one single class, by disregarding differentiating properties (attributes) a bottom up approach attribute inheritance

Specialisation / generalisation Staff empNo {PK} name salary position Manager Developer Support SalesStaff experience bonus language projects area speciality sales

Specialisation / generalisation Staff empNo {PK} name salary position Manager experience bonus Developer language projects Support area SalesStaff speciality sales FullTime PartTime notice workLoad jobLevel

Constraints overlapping of the child subclasses disjoint - {OR} overlapping - {AND} participation of the parent superclass total - {Mandatory} partial - {Optional}

Constraints Staff FullTime PartTime empNo {PK} name salary position {Optional, OR} {Mandatory, OR} Manager experience bonus Developer language projects Support area SalesStaff speciality sales FullTime PartTime notice workLoad jobLevel

Specialisation / generalisation more than one parent Manager SalesStaff experience bonus speciality sales {Optional} SalesManager target child inherits attributes of both parents

Aggregation Course Module Staff Student code 0..* 0..* 1..1 Supports IsRegisteredFor 1..* 1..* 0..* Module Staff Student code name name dOB

Composition Account Agreement Transaction Overdraft no 1..1 1..1 1..1 1..* 0..* Agreement Overdraft Transaction text date dateValidUntil amount date type amount

Summary conceptual model ER Model EER model entity attribute relationship multiplicity traps EER model generalisation/specialisation constraints aggregation