The Semantics of Reifying N-ary Relationships as Classes
|
|
|
- Magnus Bishop
- 10 years ago
- Views:
Transcription
1 The Semantics of Reifying N-ary Relationships as Classes Mohamed Dahchour and Alain Pirotte Université catholique de Louvain IAG School of Management, Information Systems Unit (ISYS) 1 Place des Doyens B-1348 Louvain-la-Neuve, Belgium [email protected],[email protected] Keywords: Abstract: information modeling, n-ary relationship reification Many data models do not directly support -ary relationships. In most cases, they are either reduced to some of their binary projections or directly translated into an -ary relationship relation in the relational model. This paper addresses the reification of an -ary relationship into a new class with binary relationships and studies the preservation of semantics in the translation. It shows that some semantics may be lost unless some explicit constraints are added to the binary schema. 1 INTRODUCTION Information modeling focuses on capturing and representing certain aspects of the real world relevant to the functions of an information system. The central constructs in information models are classes (or types, entities), representing important things of the application domain, and relationships among classes. It is relatively easy to identify classes that appropriately capture real-world objects: they directly correspond to the important concepts naturally manipulated by stakeholders in the application domain. The choice of appropriate relationships to associate classes is comparatively more difficult. Binary relationships are most frequent in information models. Still, some situations are naturally modeled with ternary and higher-degree relationships. Few models directly support both binary and -ary relationships (see, e.g., (Dey et al., 1999)). Most often, -ary relationships are dealt with in one of two ways (Batini et al., 1992; Elmasri and Navathe, 2000; Jones and Song, 1993; Jones and Song, 2000; Ling, 1985; McAllister and Sharpe, 1998; Teorey, 1994; Thalheim, 2000)): (i) reduce the -ary relationship to relationships of lower degree. This is not always done correctly, as pointed out in, e.g., (Batini et al., 1992; Elmasri and Navathe, 2000). The literature mostly addresses the conditions under which this decomposition is correct and discusses whether the semantics of the original relationship is preserved in the decomposition. To illustrate this approach, consider relationship works(team,project,budget) (Figure 1), giving information about teams working on projects with the budgets allotted. Relationship works can be modeled as three binary relationships workson(team,project), fundedby(project,budget), and usedby(team,budget) (Figure 1), only if a constraint similar to a relational join dependency holds between Team, Budget, and Project in the ternary relationship. (ii) evacuate the problem into relational modeling by defining a relationship relation that directly models the -ary relationship among classes as a relation with attributes, each linking, through a referential integrity constraint, to the primary key of an entity relation representing an entity class of the -ary relationship. The problem with this representation is that the shades of meaning of the original -ary relationship are blurred by the poorer expressive power of the relational model. This paper discusses a systematic approach, wholly within the entity-relationship model, to model an - ary relationship as binary relationships. The approach, which could be called reification or objectification, permits to take advantage of the richer semantics of the entity-relationship model for re-expressing the semantics of the -ary relationship. Our presentation is in line with our earlier work on generic rela- 1
2 Team (1,n) works Project 2.1 Cardinality Budget (1,n) workson Team usedby Budget Team teamw Works (1,n) Project budgetw Budget (c) Project (1,n) fundedby Figure 1: Modeling a ternary relationship with a set of binary relationships. tionships (see, e.g., (Dahchour, 2001; Dahchour et al., 1999)). To give the flavor of the approach, consider again relationship works(team,project,budget). It can be reified as new class Works with three binary relationships: teamw(team,works), projectw(project,works), and budgetw(budget,works) (see Figure 1(c)). The rest of the paper is organized as follows. Section 2 presents a common semantics for binary and -ary relationships. Section 3 presents the reification technique of -ary relationships, shows how the semantics of an -ary relationship can be described in terms of the binary relationships that represent it, and discusses some problems raised by reification. It is shown that some of the original semantics of the - ary relationship may be lost by reification unless additional constraints are made explicit. Section 4 summarizes and concludes the paper. 2 BINARY AND N-ARY RELATIONSHIPS This section presents a common semantics for binary and -ary relationships along several dimensions, including cardinality, existence dependency, attribute propagation, exclusion, and inclusion. Other dimensions, like symmetry/asymmetry, recursivity, and transitivity are not discussed here, as they specific to binary relationships. As for notations, binary relationships are drawn as straight lines as in UML, while - ary relationships are depicted as diamonds. The name of a relationship (resp., class) begins with a lowercase (resp., uppercase) letter. The cardinality dimension constrains the number of objects related by a relationship. Let R be a binary relationship associating classes C and C, and ( ) be the cardinality at the side of C. It reads as follows: each instance of C must participate in at least and at most links 1 in R at all times 2. The most frequent cardinalities are: (0,1) (at most one), (exactly one), (0, ) or (0,*) (any number, the unconstrained case), and (1, ) (at least one). For example, consider relationship employs(company(0, ),Person(0,1)). The (0,1) cardinality at the side of Person means that an employee can work for at most one company. The (0, ) cardinality at the side of Company means that each company can be related to any number of employees. Consider now ternary relationship works of Figure 1. The (0, ) cardinality at the side of Team means that a team can be associated to any number of (project,budget) pairs. The other cardinalities can be read in a similar way. An interesting discussion about the definition of cardinality, and the related notations and interpretations can be found in (Génova et al., 2001; Castellani et al., 200). 2.2 Existence Dependency Existence dependency characterizes whether or not an object can exist independently of related objects 3 : dependence means that the existence of an object of C depends on the existence of objects of C related to C by a binary relationship R. This is known as mandatory participation in ER modeling and expressed by a minimum cardinality greater or equal to 1 at the side of C in R. independence means that the existence of an object of C is independent of the existence of related objects of C. This is known as optional participation in ER modeling and expressed by a minimum cardinality equal to 0 at the side of C in R. Existence dependency also specifies how insertion or deletion of one object can influence the existence of connected objects. Let and be two objects related by link. There are three options for deletion operations to maintain the existence dependency: 1 Link is used for instance of a relationship. Links relate individual objects or entities. 2 We prefer this version of cardinalities attached to the source class of the relationship to that of UML, where they are attached to the target class, in particular because this version extends smoothly to -ary relationships 3 Existence dependency is sometimes referred to as referential integrity, which defines an inclusion relationship among two attributes defined on the same domain in different entities. 2
3 , default deletion: the deletion of an object implies the deletion of all links referencing it (e.g., deletion of implies deletion of ); cascade deletion: the deletion of an object implies the deletion of all links referencing it as well as of those objects themselves (e.g., deletion of implies deletion of and ); restrict deletion: the deletion of an object is prohibited if it is referred to by at least one object (e.g., deletion of is disallowed). Department employs (cascade) workson Employee offeredby Figure 2: Existence dependency. Deletion options can be associated with each class (or role) of a relationship. For example, in Figure 2, cascade deletion associated with class Department (or role employs) means that deleting a department entails deleting all its employees. Default deletion associated with class Employee (or role workson) states that deleting an employee only implies deleting its link to a department. For the ternary relationship in Figure 2, default deletion associated with class (or role offeredby) means that deleting a course only implies deleting its links in. 2.3 Attribute Propagation Attributes can propagate through relationships from one class to another. Propagated attributes are sometimes said to be derived. For example, consider relationship publish(article,journal), where class Journal has an attribute issuedate. An explicit attribute publicationdate is not necessary in class Article, as the information can be derived from attribute issue- Date of Journal via relationship publish. Such propagation mechanisms are expressed in ODMG (Cattell et al., 2000) by the so-called path expressions. For example, the publication date of an article article#1 can be expressed by the path expression article#1.journal#1.issuedate which returns the issue date of journal#1 where article#1 appeared. Attributes may also propagate through ternary relationships. As an example, consider relationship (,,), where class has an attribute #Hour giving the total number of hours for a course. The value of an attribute #Hour for class, to represent the total number of hours that a professor devotes to teaching, can be computed as the sum of #Hour values for the courses taught. For example, John.#Hour=sum(.#Hour) where belongs to the set of courses taught by John i.e., : (John,, )!. 2.4 Exclusion We retain both categories of exclusion defined in (Habrias, 1993), called role and relationship exclusion. Exclusive roles/relationships are noted as a dashed line labeled xor!. Role exclusion. Let R and R be two relationships sharing the same class C" at one end, and with classes C and C, respectively, at the other end. Let #%$'& (R ) denote the role played by C" in relationship R and ( $ & (R ) denote the set of instances of C" participating in relationship R. Exclusion between two roles #$'& ) R ) and #$'& ) R ) means that the sets ( $'& (R ) and ( $'& (R ) are disjoint. Formally, # $ & ) R ) xor!*# $ & ) R ) + (, $ & (R ) ( $ & (R ) = -. For example, exclusion between roles #.0/ :9;4 (rent) and #./2123 4<58729;4 (sell) in Figure 3 means that the same apartment cannot be simultaneously rented and sold. Apartment rent sell exam Client Figure 3: Role exclusion. An example of role exclusion between two ternary relationships is shown in Figure 3: #>='?@?A5 () xor!b# ='??5 (exam) expresses that a room cannot simultaneously hold a course and an exam. Relationship exclusion. Let R and R be two relationships sharing the same classes at their ends. Exclusion between relationships R and R means that the set of links of R and the set of links of R are disjoint. Formally, R xor! R + R R = -. For example, Figure 4 shows two exclusive binary relationships borrows and reserves, with the meaning 3
4 that a student cannot simultaneously borrow and reserve the same book. Student borrows reserves prescription interdiction BookCopy reimbursement (SocialSecurity,,) is shown in Figure 5. Inclusion of role #I 3JG:K (reimbursement) in role #8I 3JG:K (prescription) means that drugs reimbursed by Social Security are necessarily prescription drugs. Relationship inclusion. Inclusion of R in R means that the set of links of R is a subset of the set of links of R. Formally, R subset! R + R D R. For example, Figure 6 shows inclusion of relationship published in relationship accepted, meaning that an article published in a journal has necessarily been accepted for publication in that journal. published Figure 4: Relationship exclusion. Article Journal An example of relationship exclusion between two ternary relationships is depicted in Figure 4. It expresses that a doctor does not both prescribe and forbid the same drug to the same patient. accepted selection 2.5 Inclusion Employer Job Applicant Like exclusion, the inclusion dimension can be defined for both roles and relationships. Inclusive roles/relationships are noted as a dashed arrow labeled subset!. Role inclusion. Inclusion of role #$'& (R ) in role # $ & (R ) means that the set of instances of C" participating in R is a subset of the set of instances of C" participating in R. Formally, #C$'& (R ) subset! #$'& (R ) + ( $'& (R ) D ( $'& (R ). For example, Figure 5 shows inclusion of role #FE 4<G2H729;4 (practices) in role #E 46G:H729;4 (registers), with the meaning that a student who practices a sport has necessarily registered for that sport. Student SocialSecurity reimbursement practices registers Sport prescription Figure 5: Role inclusion. An example of role inclusion involving ternary relationships prescription(,,) and interview Figure 6: Relationship inclusion. An example of inclusion between two ternary relationships is shown in Figure 6. Relationship selection(employer,applicant,job) gives information about job selection. Relationship interview(employer,applicant,job) gives information about job interviews. Inclusion of selection in interview means that applicant L selected by employer M for job N was necessarily interviewed by M about N. 3 REIFYING N-ARY RELATIONSHIPS This section first presents the reification technique for -ary relationships. Then, it shows how the semantics of an -ary relationship can be described from the semantics of binary relationships and discusses some problems raised by this reification. A class representing a reified relationship is given the same name as the relationship with its first letter capitalized. 3.1 Reification Let R be an -ary relationship among classes C, C,..., C. Reifying (or objectifying) R consists in 4
5 creating a new class, say RClass 4, related by binary relationships R, R,..., R to each of the original classes C, C,..., C, respectively. The cardinality of RClass in R (OQPSRTPS ) is and that C in R (OUPVRWPV ) is the same as the cardinality of C in R. As an example, relationship prescription in Figure 7 is reified as class Prescription involved in three binary relationships as shown in Figure 7. prescription doctorp Prescription drugp patientp Figure 7: Reification of a ternary relationship. 3.2 Cardinality For the three binary relationships in Figure 7, the cardinality at the side of classes,, and (i.e., (0, )) is the same as the cardinality of the corresponding class in the ternary relationship prescription of Figure 7. The cardinality at the side of class Prescription is for all three binary relationships, meaning that an instance of class Prescription corresponds to exactly one doctor, one patient, and one drug. 3.3 Existence Dependency For the example in Figure 8, consider link (p,c,r) relating professor p, course c, and room r. The default mode in Figure 8 states that deleting c entails deleting link (p,c,r) only, while preserving objects p and r. After reifying relationship in class Offering (see Figure 8), link (p,c,r) is represented by three links: professoro(p,o), courseo(c,o), and roomo(r,o) where o is an instance of class Offering. The default mode associated with offeredby in Figure 8 can be expressed by the following modes (see Figure 8) performed in order: (i) cascade, associated with in relationship courseo, and (ii) default, associated with Offering in courseo, professoro, and roomo. 4 In ER modeling, this new class is sometimes called a weak entity (Elmasri and Navathe, 2000). professoro Offering offeredby roomo (cascade) courseo Figure 8: Existence dependency after reification. Mode (i) ensures that the deletion of C1 implies the deletion of o. Mode (ii) then ensures that, upon deletion of o, links professoro(p,o) and roomo(r,o) are deleted, but p and r are not. To generalize, consider a ternary relationship R associating classes C, C, and CX. Assume that R reifies as class RClass with three binary relationships R, R, and RX to the given classes C, C, and CX, respectively. Table 1 shows how the deletion options associated with R can be expressed in terms of the binary relationships that represent it. The deletion option Y associated with role is represented in the table as pair (,Y ). The first line of the table corresponds to the example of Figure 8. R before reification R after reification (# $[Z (R), default) (# $'Z (R ), cascade), (#=\$[] 1:^_^ (R` ), default) ( OaPQNWPcb ) (# $[Z (R), cascade) (# $'Z (R ), cascade), (#=\$[] 1:^_^ (R` ), cascade) ( OaPQNWPcb ) (# $[Z (R), restrict) (# $'Z (R ), restrict), (# =\$[] 1:^_^ (R` ), restrict) ( OaPQNWPcb ) Table 1: The existence dependency of a ternary relationship after reification. 3.4 Attribute Propagation Consider the propagation of attribute #Hour in relationship of Figure 9. After the reification of as shown in Figure 9, the value of #Hour for John can be computed as: John.#Hour=sum(.#Hour) where Q :d Offering, professoro(john, ) and courseo(, )!. 5
6 #Hour #Hour professoro Offering roomo courseo #Hour #Hour Figure 9: Attribute propagation after reification. 3.5 Exclusion Role exclusion. When both ternary relationships and exam of Figure 3 are reified as shown in Figure 10, the example of role exclusion in Figure 3 can be expressed in terms of exclusion between roles of two binary relationships roomo and roome, namely, # ='?@?5 (roomo) xor! # ='??5 (roome) (i.e., a room cannot simultaneously hold a course and an exam). forbid the same drug to the same patient) cannot be expressed in terms of the three role exclusion constraints shown in Figure 11. To accurately express the example of exclusion in Figure 4, the following additional constraint is required: e Y0 :, f8l :, Y : [ \f8 :Prescription (doctorp(y0,fc ) g drugp(y,fc ) g patientp(fl,f8 ))] + [h (dr :Interdiction (doctori(y0,r ) g drugi(y,r ) g patienti(f8l,r )))] 3.6 Inclusion Role inclusion. After reifying both ternary relationships reimbursement and prescription of Figure 5 as shown in Figure 12, the role inclusion in Figure 5 can be expressed in terms of inclusion of role # I 3JG:K (drugr) in role # I 3JG:K (drugp). SocialSecurity SocialSecR Reimbursement patientr drugr drugp patientp doctorp Prescription Figure 12: Role inclusion of Figure 5 after reification. professoro Offering roomo roome Exam professore courseo coursee Relationship inclusion. Like relationship exclusion, relationship inclusion in Figure 6 cannot be expressed by the conjunction of the three roleinclusion constraints shown in Figure 13. Figure 10: Role exclusion of Figure 3 after reification. Relationship exclusion. Unlike role exclusion, relationship exclusion for -ary relationships cannot be expressed in terms of exclusion between binary relationships. doctorp doctori Prescription drugp drugi Interdiction patientp patienti Figure 11: Relationship exclusion of Figure 4 is lost after reification. Figure 11 shows the reification of both ternary relationships prescription and interdiction of Figure 4 as classes Prescription and Interdiction, respectively. The example of relationship exclusion in Figure 4 (i.e., a doctor does not both prescribe and employers employeri Employer Selection Job jobs jobi Interview Applicant applicants applicanti Figure 13: Relationship exclusion of Figure 4 is lost after reification. To accurately express the example of inclusion constraint in Figure 6, the following additional constraint is needed: e M :Employer, L :Applicant, N :Job (i :Selection (employers( M,i ) g jobs(n,i ) g applicants(l,i ))) j%k (R :Interview (employeri( M,R ) g jobi(n,r ) g applicanti(l,r ))) 4 CONCLUSION This paper discussed the reification of -ary relationships as new classes with binary relationships. We 6
7 first defined a common semantics for both binary and -ary relationships along several dimensions, including cardinality, existence dependency, attribute propagation, exclusion, and inclusion. We then presented the reification approach, which consists in transforming an -ary relationship into a new class with new binary relationships. We then discussed some problems raised by this transformation. Although reification is often assumed to fully preserve the original semantics of the reified relationships, we showed that this is only true in part. The semantics of cardinality, existence dependency, attribute propagation, role exclusion, and role inclusion are indeed preserved, but relationship exclusion and inclusion are lost. We proposed additional constraints to fully recapture them. REFERENCES Batini, C., Ceri, S., and Navathe, S. (1992). Conceptual Database Design: An Entity-Relationship Approach. Benjamin/Cummings. Castellani, X., Habrias, H., and Perrin, P. (200). A synthesis on the definitions and the notations of cardinalities of relationships. Journal of Object- Oriented Programming, pages Cattell, R., Barry, D., Berler, M., and Eastman, J., editors (2000). The Object Data Standard: ODMG 3.0. Morgan Kaufmann. Dahchour, M. (2001). Integrating Generic Relationships into Object Models Using Metaclasses. PhD thesis, Département d ingénierie informatique, Université catholique de Louvain, Belgium. Dahchour, M., Pirotte, A., and Zimányi, E. (1999). Materialization and its metaclass implementation. Technical Report YEROOS TR-99/01, IAG-QANT, Université catholique de Louvain, Belgium. To be published in IEEE Transactions on Knowledge and Data Engineering. Dey, D., Storey, V., and Barron, T. (1999). Improving database design through the analysis of relationships. ACM Trans. on Database Systems, 24(4): Elmasri, R. and Navathe, S. (2000). Fundamentals of Database Systems. Addison-Wesley, 3rd edition. Génova, G., Llorens, J., and Martínez, P. (2001). Semantics of the minimum multiplicity in ternary associations in UML. In Gogolla, M. and Kobryn, C., editors, Proc. of the 4th Int. Conf. on the Unified Modeling Language, UML 01, LNCS 2185, Toronto, Ontario, Canada. Springer-Verlag. Habrias, H. (1993). Introduction à la spécification. Masson. Jones, T. and Song, I. (1993). Binary imposition rules and ternary decomposition. In Proc. of the Conf. on Information Science and Technology, InfoScience 93, pages , Seoul, Korea. Jones, T. and Song, I. (2000). Binary equivalents of ternary relationships in entity-relationship modeling: A logical decomposition approach. Journal of Database Management, pages Ling, T. (1985). A normal form for entity-relationship diagrams. In Chen, P., editor, Proc. of the 4th Int. Conf. on the Entity-Relationship Approach, ER 85, pages 24 35, Chicago, Illinois. McAllister, A. and Sharpe, D. (1998). An approach for decomposing n-ary data relationships. Software - Practice and Experience, 28(1): Teorey, T. (1994). Database Modeling and Design: The Fundamental Principles. Morgan Kaufmann, 2nd edition. Thalheim, B. (2000). Entity-Relationship Modeling. Foundations of Database Technology. Springer- Verlag. 7
Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model
Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Outline Using High-Level Conceptual Data Models for
Modern Systems Analysis and Design
Modern Systems Analysis and Design Prof. David Gadish Structuring System Data Requirements Learning Objectives Concisely define each of the following key data modeling terms: entity type, attribute, multivalued
IT2304: Database Systems 1 (DBS 1)
: Database Systems 1 (DBS 1) (Compulsory) 1. OUTLINE OF SYLLABUS Topic Minimum number of hours Introduction to DBMS 07 Relational Data Model 03 Data manipulation using Relational Algebra 06 Data manipulation
Lecture 12: Entity Relationship Modelling
Lecture 12: Entity Relationship Modelling The Entity-Relationship Model Entities Relationships Attributes Constraining the instances Cardinalities Identifiers Generalization 2004-5 Steve Easterbrook. This
IT2305 Database Systems I (Compulsory)
Database Systems I (Compulsory) INTRODUCTION This is one of the 4 modules designed for Semester 2 of Bachelor of Information Technology Degree program. CREDITS: 04 LEARNING OUTCOMES On completion of this
Unit 2.1. Data Analysis 1 - V2.0 1. Data Analysis 1. Dr Gordon Russell, Copyright @ Napier University
Data Analysis 1 Unit 2.1 Data Analysis 1 - V2.0 1 Entity Relationship Modelling Overview Database Analysis Life Cycle Components of an Entity Relationship Diagram What is a relationship? Entities, attributes,
THE ENTITY- RELATIONSHIP (ER) MODEL CHAPTER 7 (6/E) CHAPTER 3 (5/E)
THE ENTITY- RELATIONSHIP (ER) MODEL CHAPTER 7 (6/E) CHAPTER 3 (5/E) 2 LECTURE OUTLINE Using High-Level, Conceptual Data Models for Database Design Entity-Relationship (ER) model Popular high-level conceptual
Database Design Process
Database Design Process Entity-Relationship Model From Chapter 5, Kroenke book Requirements analysis Conceptual design data model Logical design Schema refinement: Normalization Physical tuning Problem:
Data Analysis 1. SET08104 Database Systems. Copyright @ Napier University
Data Analysis 1 SET08104 Database Systems Copyright @ Napier University Entity Relationship Modelling Overview Database Analysis Life Cycle Components of an Entity Relationship Diagram What is a relationship?
Database Design Process
Entity-Relationship Model Chapter 3, Part 1 Database Design Process Requirements analysis Conceptual design data model Logical design Schema refinement: Normalization Physical tuning 1 Problem: University
Chapter 2: Entity-Relationship Model. Entity Sets. " Example: specific person, company, event, plant
Chapter 2: Entity-Relationship Model! Entity Sets! Relationship Sets! Design Issues! Mapping Constraints! Keys! E-R Diagram! Extended E-R Features! Design of an E-R Database Schema! Reduction of an E-R
COMP 378 Database Systems Notes for Chapter 7 of Database System Concepts Database Design and the Entity-Relationship Model
COMP 378 Database Systems Notes for Chapter 7 of Database System Concepts Database Design and the Entity-Relationship Model The entity-relationship (E-R) model is a a data model in which information stored
IV. The (Extended) Entity-Relationship Model
IV. The (Extended) Entity-Relationship Model The Extended Entity-Relationship (EER) Model Entities, Relationships and Attributes Cardinalities, Identifiers and Generalization Documentation of EER Diagrams
An analysis of structural validity in entity-relationship modeling
Data & Knowledge Engineering 47 (2003) 67 205 www.elsevier.com/locate/datak An analysis of structural validity in entity-relationship modeling James Dullea a, Il-Yeol Song b, *, Ioanna Lamprou b a The
DATABASE DESIGN. - Developing database and information systems is performed using a development lifecycle, which consists of a series of steps.
DATABASE DESIGN - The ability to design databases and associated applications is critical to the success of the modern enterprise. - Database design requires understanding both the operational and business
A Tool for Generating Relational Database Schema from EER Diagram
A Tool for Generating Relational Schema from EER Diagram Lisa Simasatitkul and Taratip Suwannasart Abstract design is an important activity in software development. EER diagram is one of diagrams, which
Chapter 8 The Enhanced Entity- Relationship (EER) Model
Chapter 8 The Enhanced Entity- Relationship (EER) Model Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 8 Outline Subclasses, Superclasses, and Inheritance Specialization
CSC 742 Database Management Systems
CSC 742 Database Management Systems Topic #4: Data Modeling Spring 2002 CSC 742: DBMS by Dr. Peng Ning 1 Phases of Database Design Requirement Collection/Analysis Functional Requirements Functional Analysis
Chapter 2: Entity-Relationship Model. E-R R Diagrams
Chapter 2: Entity-Relationship Model What s the use of the E-R model? Entity Sets Relationship Sets Design Issues Mapping Constraints Keys E-R Diagram Extended E-R Features Design of an E-R Database Schema
Chapter 2: Entity-Relationship Model
Chapter 2: Entity-Relationship Model Entity Sets Relationship Sets Design Issues Mapping Constraints Keys E R Diagram Extended E-R Features Design of an E-R Database Schema Reduction of an E-R Schema to
Outline. Data Modeling. Conceptual Design. ER Model Basics: Entities. ER Model Basics: Relationships. Ternary Relationships. Yanlei Diao UMass Amherst
Outline Data Modeling Yanlei Diao UMass Amherst v Conceptual Design: ER Model v Relational Model v Logical Design: from ER to Relational Slides Courtesy of R. Ramakrishnan and J. Gehrke 1 2 Conceptual
Chapter 3. Data Modeling Using the Entity-Relationship (ER) Model
Chapter 3 Data Modeling Using the Entity-Relationship (ER) Model Chapter Outline Overview of Database Design Process Example Database Application (COMPANY) ER Model Concepts Entities and Attributes Entity
Database Design Overview. Conceptual Design ER Model. Entities and Entity Sets. Entity Set Representation. Keys
Database Design Overview Conceptual Design. The Entity-Relationship (ER) Model CS430/630 Lecture 12 Conceptual design The Entity-Relationship (ER) Model, UML High-level, close to human thinking Semantic
Entity-Relationship Model
UNIT -2 Entity-Relationship Model Introduction to ER Model ER model is represents real world situations using concepts, which are commonly used by people. It allows defining a representation of the real
2. Conceptual Modeling using the Entity-Relationship Model
ECS-165A WQ 11 15 Contents 2. Conceptual Modeling using the Entity-Relationship Model Basic concepts: entities and entity types, attributes and keys, relationships and relationship types Entity-Relationship
The Entity-Relationship Model
The Entity-Relationship Model 221 After completing this chapter, you should be able to explain the three phases of database design, Why are multiple phases useful? evaluate the significance of the Entity-Relationship
7.1 The Information system
Chapter 7. Database Planning, Design and Administration Last few decades have seen proliferation of software applications, many requiring constant maintenance involving: correcting faults, implementing
The Entity-Relationship Model
The Entity-Relationship Model Overview of Database Design Requirements analysis Conceptual design data model Logical design Schema refinement: Normalization Physical tuning Conceptual Design Entities Conceptual
Data Modeling Basics
Information Technology Standard Commonwealth of Pennsylvania Governor's Office of Administration/Office for Information Technology STD Number: STD-INF003B STD Title: Data Modeling Basics Issued by: Deputy
Lesson 8: Introduction to Databases E-R Data Modeling
Lesson 8: Introduction to Databases E-R Data Modeling Contents Introduction to Databases Abstraction, Schemas, and Views Data Models Database Management System (DBMS) Components Entity Relationship Data
Normalization in OODB Design
Normalization in OODB Design Byung S. Lee Graduate Programs in Software University of St. Thomas St. Paul, Minnesota [email protected] Abstract When we design an object-oriented database schema, we need
Data Modeling. Database Systems: The Complete Book Ch. 4.1-4.5, 7.1-7.4
Data Modeling Database Systems: The Complete Book Ch. 4.1-4.5, 7.1-7.4 Data Modeling Schema: The structure of the data Structured Data: Relational, XML-DTD, etc Unstructured Data: CSV, JSON But where does
Databases Model the Real World. The Entity- Relationship Model. Conceptual Design. Steps in Database Design. ER Model Basics. ER Model Basics (Contd.
The Entity- Relationship Model R &G - Chapter 2 A relationship, I think, is like a shark, you know? It has to constantly move forward or it dies. And I think what we got on our hands is a dead shark. Woody
Bridge from Entity Relationship modeling to creating SQL databases, tables, & relations
1 Topics for this week: 1. Good Design 2. Functional Dependencies 3. Normalization Readings for this week: 1. E&N, Ch. 10.1-10.6; 12.2 2. Quickstart, Ch. 3 3. Complete the tutorial at http://sqlcourse2.com/
A Comparative Analysis of Entity-Relationship Diagrams 1
A Comparative Analysis of Entity-Relationship Diagrams 1 Il-Yeol Song Drexel University Mary Evans USConnect E.K. Park U.S. Naval Academy The purpose of this article is to collect widely used entity-relationship
not necessarily strictly sequential feedback loops exist, i.e. may need to revisit earlier stages during a later stage
Database Design Process there are six stages in the design of a database: 1. requirement analysis 2. conceptual database design 3. choice of the DBMS 4. data model mapping 5. physical design 6. implementation
Data Modeling: Part 1. Entity Relationship (ER) Model
Data Modeling: Part 1 Entity Relationship (ER) Model MBA 8473 1 Cognitive Objectives (Module 2) 32. Explain the three-step process of data-driven information system (IS) development 33. Examine the purpose
How To Write A Diagram
Data Model ing Essentials Third Edition Graeme C. Simsion and Graham C. Witt MORGAN KAUFMANN PUBLISHERS AN IMPRINT OF ELSEVIER AMSTERDAM BOSTON LONDON NEW YORK OXFORD PARIS SAN DIEGO SAN FRANCISCO SINGAPORE
Database Design. Marta Jakubowska-Sobczak IT/ADC based on slides prepared by Paula Figueiredo, IT/DB
Marta Jakubowska-Sobczak IT/ADC based on slides prepared by Paula Figueiredo, IT/DB Outline Database concepts Conceptual Design Logical Design Communicating with the RDBMS 2 Some concepts Database: an
Lecture 6. SQL, Logical DB Design
Lecture 6 SQL, Logical DB Design Relational Query Languages A major strength of the relational model: supports simple, powerful querying of data. Queries can be written intuitively, and the DBMS is responsible
Requirement Analysis & Conceptual Database Design. Problem analysis Entity Relationship notation Integrity constraints Generalization
Requirement Analysis & Conceptual Database Design Problem analysis Entity Relationship notation Integrity constraints Generalization Introduction: Lifecycle Requirement analysis -> Text Conceptual Design
Database Design Process. Databases - Entity-Relationship Modelling. Requirements Analysis. Database Design
Process Databases - Entity-Relationship Modelling Ramakrishnan & Gehrke identify six main steps in designing a database Requirements Analysis Conceptual Design Logical Design Schema Refinement Physical
Foundations of Information Management
Foundations of Information Management - WS 2012/13 - Juniorprofessor Alexander Markowetz Bonn Aachen International Center for Information Technology (B-IT) Data & Databases Data: Simple information Database:
Databases and BigData
Eduardo Cunha de Almeida [email protected] Outline of the course Introduction Database Systems (E. Almeida) Distributed Hash Tables and P2P (C. Cassagnes) NewSQL (D. Kim and J. Meira) NoSQL (D. Kim)
The Relational Model. Ramakrishnan&Gehrke, Chapter 3 CS4320 1
The Relational Model Ramakrishnan&Gehrke, Chapter 3 CS4320 1 Why Study the Relational Model? Most widely used model. Vendors: IBM, Informix, Microsoft, Oracle, Sybase, etc. Legacy systems in older models
A brief overview of developing a conceptual data model as the first step in creating a relational database.
Data Modeling Windows Enterprise Support Database Services provides the following documentation about relational database design, the relational database model, and relational database software. Introduction
Database Systems Concepts, Languages and Architectures
These slides are for use with Database Systems Concepts, Languages and Architectures Paolo Atzeni Stefano Ceri Stefano Paraboschi Riccardo Torlone To view these slides on-screen or with a projector use
6NF CONCEPTUAL MODELS AND DATA WAREHOUSING 2.0
ABSTRACT 6NF CONCEPTUAL MODELS AND DATA WAREHOUSING 2.0 Curtis Knowles Georgia Southern University [email protected] Sixth Normal Form (6NF) is a term used in relational database theory by Christopher
Conceptual Design Using the Entity-Relationship (ER) Model
Conceptual Design Using the Entity-Relationship (ER) Model Module 5, Lectures 1 and 2 Database Management Systems, R. Ramakrishnan 1 Overview of Database Design Conceptual design: (ER Model is used at
XV. The Entity-Relationship Model
XV. The Entity-Relationship Model The Entity-Relationship Model Entities, Relationships and Attributes Cardinalities, Identifiers and Generalization Documentation of E-R Diagrams and Business Rules The
The Relational Model. Why Study the Relational Model? Relational Database: Definitions
The Relational Model Database Management Systems, R. Ramakrishnan and J. Gehrke 1 Why Study the Relational Model? Most widely used model. Vendors: IBM, Microsoft, Oracle, Sybase, etc. Legacy systems in
The E-R èentity-relationshipè data model views the real world as a set of basic objects èentitiesè and
CMPT-354-Han-95.3 Lecture Notes September 20, 1995 Chapter 2 The Entity-Relationship Model The E-R èentity-relationshipè data model views the real world as a set of basic objects èentitiesè and relationships
The Relational Model. Why Study the Relational Model? Relational Database: Definitions. Chapter 3
The Relational Model Chapter 3 Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 1 Why Study the Relational Model? Most widely used model. Vendors: IBM, Informix, Microsoft, Oracle, Sybase,
A Metamodel for Master Data
A Metamodel for Master Data Baba Piprani 1 and Suneil Dham 2 1 MetaGlobal Systems, Canada 2 Office of the Superintendent of Financial Institutions, Canada [email protected], [email protected]
Foundations of Information Management
Foundations of Information Management - WS 2009/10 Juniorprofessor Alexander Markowetz Bonn Aachen International Center for Information Technology (B-IT) Alexander Markowetz Born 1976 in Brussels, Belgium
2. Basic Relational Data Model
2. Basic Relational Data Model 2.1 Introduction Basic concepts of information models, their realisation in databases comprising data objects and object relationships, and their management by DBMS s that
Exercise 1: Relational Model
Exercise 1: Relational Model 1. Consider the relational database of next relational schema with 3 relations. What are the best possible primary keys in each relation? employ(person_name, street, city)
SOLVING SEMANTIC CONFLICTS IN AUDIENCE DRIVEN WEB DESIGN
SOLVING SEMANTIC CONFLICTS IN AUDIENCE DRIVEN WEB DESIGN Olga De Troyer Vrije Universiteit Brussel, WISE Pleinlaan 2 B-1050 Brussel Belgium [email protected] Peter Plessers Vrije Universiteit Brussel,
Relational model. Relational model - practice. Relational Database Definitions 9/27/11. Relational model. Relational Database: Terminology
COS 597A: Principles of Database and Information Systems elational model elational model A formal (mathematical) model to represent objects (data/information), relationships between objects Constraints
Language. Johann Eder. Universitat Klagenfurt. Institut fur Informatik. Universiatsstr. 65. A-9020 Klagenfurt / AUSTRIA
PLOP: A Polymorphic Logic Database Programming Language Johann Eder Universitat Klagenfurt Institut fur Informatik Universiatsstr. 65 A-9020 Klagenfurt / AUSTRIA February 12, 1993 Extended Abstract The
Principles of of Database Design
Database Design Foundations of of Information Management (WS (WS 2008/0 2008/09) Chapter 4? Principles of of Database Design Foundations of IM 1 Design of DB applications Relative costs for compensating
IMPLEMENTING SPATIAL DATA WAREHOUSE HIERARCHIES IN OBJECT-RELATIONAL DBMSs
IMPLEMENTING SPATIAL DATA WAREHOUSE HIERARCHIES IN OBJECT-RELATIONAL DBMSs Elzbieta Malinowski and Esteban Zimányi Computer & Decision Engineering Department, Université Libre de Bruxelles 50 av.f.d.roosevelt,
A Multidatabase System as 4-Tiered Client-Server Distributed Heterogeneous Database System
A Multidatabase System as 4-Tiered Client-Server Distributed Heterogeneous Database System Mohammad Ghulam Ali Academic Post Graduate Studies and Research Indian Institute of Technology, Kharagpur Kharagpur,
CS 4604: Introduc0on to Database Management Systems. B. Aditya Prakash Lecture #5: En-ty/Rela-onal Models- - - Part 1
CS 4604: Introduc0on to Database Management Systems B. Aditya Prakash Lecture #5: En-ty/Rela-onal Models- - - Part 1 Announcements- - - Project Goal: design a database system applica-on with a web front-
BİL 354 Veritabanı Sistemleri. Entity-Relationship Model
BİL 354 Veritabanı Sistemleri Entity-Relationship Model Steps in building a DB application Pick application domain Conceptual design How can I describe that data? What data do I need for my application
Logical Data Models for Cloud Computing Architectures
Logical Data Models for Cloud Computing Architectures Augustine (Gus) Samba, Kent State University Describing generic logical data models for two existing cloud computing architectures, the author helps
ER modelling, Weak Entities, Class Hierarchies, Aggregation
CS344 Database Management Systems ER modelling, Weak Entities, Class Hierarchies, Aggregation Aug 2 nd - Lecture Notes (Summary) Submitted by - N. Vishnu Teja Saurabh Saxena 09010125 09010145 (Most the
Mining Association Rules: A Database Perspective
IJCSNS International Journal of Computer Science and Network Security, VOL.8 No.12, December 2008 69 Mining Association Rules: A Database Perspective Dr. Abdallah Alashqur Faculty of Information Technology
Proceedings of the International MultiConference of Engineers and Computer Scientists 2013 Vol I, IMECS 2013, March 13-15, 2013, Hong Kong
, March 13-15, 2013, Hong Kong Risk Assessment for Relational Database Schema-based Constraint Using Machine Diagram Kanjana Eiamsaard 1, Nakornthip Prompoon 2 Abstract Information is a critical asset
Lecture Notes INFORMATION RESOURCES
Vilnius Gediminas Technical University Jelena Mamčenko Lecture Notes on INFORMATION RESOURCES Part I Introduction to Dta Modeling and MSAccess Code FMITB02004 Course title Information Resourses Course
Modeling the User Interface of Web Applications with UML
Modeling the User Interface of Web Applications with UML Rolf Hennicker,Nora Koch,2 Institute of Computer Science Ludwig-Maximilians-University Munich Oettingenstr. 67 80538 München, Germany {kochn,hennicke}@informatik.uni-muenchen.de
AVOIDANCE OF CYCLICAL REFERENCE OF FOREIGN KEYS IN DATA MODELING USING THE ENTITY-RELATIONSHIP MODEL
AVOIDANCE OF CYCLICAL REFERENCE OF FOREIGN KEYS IN DATA MODELING USING THE ENTITY-RELATIONSHIP MODEL Ben B. Kim, Seattle University, [email protected] ABSTRACT The entity-relationship (ER model is clearly
CHAPTER 22 Database Security Integration Using Role-Based Access Control
CHAPTER 22 Database Security Integration Using Role-Based Access Control Sylvia Osborn Department of Computer Science, The University of Western Ontario London, Ontario, Canada, N6A-5B7 [email protected]
Unit 5: Object-Role Modeling (ORM) http://www.heppnetz.de/teaching/dpm/
Modeling in Business in Information Systems Unternehmensmodellierung und -architekturen Unit 5: Object-Role Modeling (ORM) Professur für Allgemeine BWL, insbesondere E-Business http://www.heppnetz.de/teaching/dpm/
Entity/Relationship Modelling. Database Systems Lecture 4 Natasha Alechina
Entity/Relationship Modelling Database Systems Lecture 4 Natasha Alechina In This Lecture Entity/Relationship models Entities and Attributes Relationships Attributes E/R Diagrams For more information Connolly
How To Manage Data In A Database System
Database Systems Session 2 Main Theme Relational Data Model & Relational Database Constraints Dr. Jean-Claude Franchitti New York University Computer Science Department Courant Institute of Mathematical
1. Visual Paradigm for UML
Summary 1. Visual Paradigm for UML... 1 2. Creating the GeoProfile... 2 3. Applying Icons to Stereotypes... 11 4. Applying the GeoProfile... 12 1. Visual Paradigm for UML Visual Paradigm for UML (Visual
CONSTRAINT-BASED DATA QUALITY MANAGEMENT FRAMEWORK FOR OBJECT DATABASES
CONSTRAINT-BASED DATA QUALITY MANAGEMENT FRAMEWORK FOR OBJECT DATABASES Weber, David, ETH Zurich, Universitaetstrasse 6, 8092 Zurich, Switzerland, [email protected] Leone, Stefania, ETH Zurich, Universitaetstrasse
We know how to query a database using SQL. A set of tables and their schemas are given Data are properly loaded
E-R Diagram Database Development We know how to query a database using SQL A set of tables and their schemas are given Data are properly loaded But, how can we develop appropriate tables and their schema
Using UML Part Two Behavioral Modeling Diagrams
UML Tutorials Using UML Part Two Behavioral Modeling Diagrams by Sparx Systems All material Sparx Systems 2007 Sparx Systems 2007 Page 1 Trademarks Object Management Group, OMG, Unified Modeling Language,
Introduction to Database Systems CS4320/CS5320. CS4320/4321: Introduction to Database Systems. CS4320/4321: Introduction to Database Systems
Introduction to Database Systems CS4320/CS5320 Instructor: Johannes Gehrke http://www.cs.cornell.edu/johannes [email protected] CS4320/CS5320, Fall 2012 1 CS4320/4321: Introduction to Database Systems
Chapter 5 More SQL: Complex Queries, Triggers, Views, and Schema Modification
Chapter 5 More SQL: Complex Queries, Triggers, Views, and Schema Modification Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 5 Outline More Complex SQL Retrieval Queries
Role-based Authorization Constraints Specification Using Object Constraint Language
Role-based Authorization Constraints Specification Using Object Constraint Language Gail-Joon Ahn Department of Computer Science University of North Carolina at Charlotte [email protected] Michael. E. Shin
Entity - Relationship Modelling
Topic 5 Entity - Relationship Modelling LEARNING OUTCOMES When you have completed this Topic you should be able to: 1. Acquire the basic concepts of the Entity-Relationship (ER) model. 2. Discuss how to
Chapter 7 Application Protocol Reference Architecture
Application Protocol Reference Architecture Chapter 7 Application Protocol Reference Architecture This chapter proposes an alternative reference architecture for application protocols. The proposed reference
Tool Support for Software Variability Management and Product Derivation in Software Product Lines
Tool Support for Software Variability Management and Product Derivation in Software s Hassan Gomaa 1, Michael E. Shin 2 1 Dept. of Information and Software Engineering, George Mason University, Fairfax,
Winter 2003 1. Winter 2003 2
M Today s Lecture Database design through ER diagrams Creating and modifying relations, specifying integrity constraints using SQL Translate ER diagrams to relations A little on views Winter 2003 1 ai
Conceptual Design: Entity Relationship Models. Objectives. Overview
Conceptual Design: Entity Relationship Models Craig Van Slyke, University of Central Florida [email protected] John Day, Ohio University Objectives Define terms related to entity relationship modeling,
There are five fields or columns, with names and types as shown above.
3 THE RELATIONAL MODEL Exercise 3.1 Define the following terms: relation schema, relational database schema, domain, attribute, attribute domain, relation instance, relation cardinality, andrelation degree.
SQL DDL. DBS Database Systems Designing Relational Databases. Inclusion Constraints. Key Constraints
DBS Database Systems Designing Relational Databases Peter Buneman 12 October 2010 SQL DDL In its simplest use, SQL s Data Definition Language (DDL) provides a name and a type for each column of a table.
