The interplay of mandatory role and set-comparison constraints Dr. Peter Bollen School of Business and Economics Maastricht University, the Netherlands.

Slides:



Advertisements
Similar presentations
Three-Step Database Design
Advertisements

Database Systems: Design, Implementation, and Management Tenth Edition
Analysis Modeling.
1 Modeling Reactive Behavior in ORM © 2003, T. A. Halpin & Gerd Wagner Terry Halpin Northface University Salt Lake City, USA.
Database Systems: Design, Implementation, and Management Tenth Edition
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 5 More SQL: Complex Queries, Triggers, Views, and Schema Modification.
The Relational Database Model:
Chapter 8 Structuring System Data Requirements
Inner join, self join and Outer join Sen Zhang. Joining data together is one of the most significant strengths of a relational database. A join is a query.
Logical Database Design Nazife Dimililer. II - Logical Database Design Two stages –Building and validating local logical model –Building and validating.
1 CONCEPTUAL SCHEMA DESIGN PROCESS Information Processing and Technology, 2001 Yr 12 IPT.
Objectives of the Lecture :
1 NORMA Lab. 4 File: NORMA_Lab4.ppt. Author: T. Halpin. Last updated: 2011 September 6 Revision: Adding Value Constraints, Set-comparison Constraints Adding.
OBJECT-ROLE MODELING (ORM/NIAM)
44220: Database Design & Implementation Logical Data Modelling Ian Perry Room: C48 Tel Ext.: 7287
Chapter 4 The Relational Model.
1 Introduction to modeling Relational modelling Slides for this part are based on Chapters 11 from Halpin, T. & Morgan, T. 2008, Information Modeling and.
Chapter 6 System Engineering - Computer-based system - System engineering process - “Business process” engineering - Product engineering (Source: Pressman,
Pairwise Alignment, Part I Constructing the Values and Directions Tables from 2 related DNA (or Protein) Sequences.
DAT375 Modeling Business Requirements using Object Role Modeling (Part 1) LeRoy Tuttle, Jr. Program Manager Microsoft.
Profiling Metadata Specifications David Massart, EUN Budapest, Hungary – Nov. 2, 2009.
Integrating Business Process Models with Ontologies Peter De Baer, Pieter De Leenheer, Gang Zhao, Robert Meersman {Peter.De.Baer, Pieter.De.Leenheer,
1 CONCEPTUAL SCHEMA DESIGN PROCESS Information Processing and Technology, 2001 Yr 12 IPT.
Chapter 9 Designing Databases Modern Systems Analysis and Design Sixth Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich.
Relational DB Components
9/14/2012ISC329 Isabelle Bichindaritz1 Database System Life Cycle.
Concepts and Terminology Introduction to Database.
MIS 301 Information Systems in Organizations Dave Salisbury ( )
Describing Process Specifications and Structured Decisions Systems Analysis and Design, 7e Kendall & Kendall 9 © 2008 Pearson Prentice Hall.
1 The Relational Database Model. 2 Learning Objectives Terminology of relational model. How tables are used to represent data. Connection between mathematical.
Chapter 8 Data Modeling Advanced Concepts Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition.
9/7/2012ISC329 Isabelle Bichindaritz1 The Relational Database Model.
1 Relational Databases and SQL. Learning Objectives Understand techniques to model complex accounting phenomena in an E-R diagram Develop E-R diagrams.
1 5 Normalization. 2 5 Database Design Give some body of data to be represented in a database, how do we decide on a suitable logical structure for that.
SC32 FBM Study Group Report Korea SC32 Meetings, May 2013 Baba Piprani - Serge Valera 1 ISO/IEC JTC1/SC32/WG2 N1801.
1 NORMA Lab. 5 Duplicating Object Type and Predicate Shapes Finding Displayed Shapes Using the Diagram Spy Using Multiple Windows Using the Context Window.
Metamodels for Object Role Modeling Hongyan Song March 2005.
Relational Algebra – Part 2
Copyright 2006 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Third Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
1 A Demo of Logical Database Design. 2 Aim of the demo To develop an understanding of the logical view of data and the importance of the relational model.
1 © Prentice Hall, 2002 Chapter 5: Logical Database Design and the Relational Model Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B.
1 Introduction to modeling ER modelling Slides for this part are based on Chapters 8 from Halpin, T. & Morgan, T. 2008, Information Modeling and Relational.
Part4 Methodology of Database Design Chapter 07- Overview of Conceptual Database Design Lu Wei College of Software and Microelectronics Northwestern Polytechnical.
1 Introduction to modeling Object-role modelling (ORM) Slides for this part are based on Chapters 3-7 from Halpin, T. & Morgan, T. 2008, Information Modeling.
Databases Illuminated Chapter 3 The Entity Relationship Model.
Announcements Reading for Monday –4.6 Homework 3 – Due 9/29.
CSE314 Database Systems Lecture 3 The Relational Data Model and Relational Database Constraints Doç. Dr. Mehmet Göktürk src: Elmasri & Navanthe 6E Pearson.
CS 103 Discrete Structures Lecture 13 Induction and Recursion (1)
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design, 2 nd Edition Copyright 2003 © John Wiley & Sons, Inc. All rights reserved.
Entity Relationship Diagram (ERD). Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 5 (Part a): Logical Database Design and the Relational Model Modern Database Management.
CHAPTER 2 : RELATIONAL DATA MODEL Prepared by : nbs.
Introduction to modeling
Methodology - Logical Database Design. 2 Step 2 Build and Validate Local Logical Data Model To build a local logical data model from a local conceptual.
Copyright © 2011 Pearson Education Process Specifications and Structured Decisions Systems Analysis and Design, 8e Kendall & Kendall Global Edition 9.
1 Reference Scheme Reduction on Subtypes in ORM Andy Carver and Terry Halpin INTI International University, Malaysia
Fact-Based Specification of a Data Modeling Kernel of the UML Superstructure Joost Doesburg Herman Balsters.
1 The Relational Data Model David J. Stucki. Relational Model Concepts 2 Fundamental concept: the relation  The Relational Model represents an entire.
Logical Database Design and the Rational Model
Business System Development
More SQL: Complex Queries,
Tables and Their Characteristics
“The Danish suggestion”
NORMA Lab. 4 Revision: Adding Value Constraints, Set-comparison Constraints Adding Frequency Constraints Adding Ring Constraints Adding Subtyping Adding.
Entity Relationship Diagrams
SBVR : a fact-oriented OMG standard
Chapter 11 Describing Process Specifications and Structured Decisions
Introduction to modeling
Database Management system
Implementation of Learning Systems
Presentation transcript:

The interplay of mandatory role and set-comparison constraints Dr. Peter Bollen School of Business and Economics Maastricht University, the Netherlands 1 Dr. Peter Bollen, ORM 2012, 13 September 2012, Rome, Italy

Introduction In this presentation we will give a formal modeling procedure to derive mandatory role constraints that is a further specification of step 6 of the ORM-CSDP. This procedure will contain an algorithm that can be applied by an analyst in an analyst-user dialogue leading leading to a complete procedure-driven derivation of all mandatory role constraints in a given Universe of Discourse (UoD). Dr. Peter Bollen, ORM 2012, 13 September 2012, Rome, Italy2

Definition of Mandatory Role constraints In the FBM defining literature a mandatory role is defined as follows: ‘A role is mandatory if and only if, for all states of the database, the role must be played by every member of the population of its object type; otherwise the role is optional’ (Halpin and Morgan, 2008: p. 162). Dr. Peter Bollen, ORM 2012, 13 September 2012, Rome, Italy3

The Conceptual Schema Design Procedure in Fact- based Modeling Dr. Peter Bollen, ORM 2012, 13 September 2012, Rome, Italy4 CSDP StepsHalpin and Morgan (2008) step 1From examples to elementary facts step 2Draw fact types and populate step 3Trim schema; note basic derivations step 4Add uniqueness constraints and check arity of fact types step 5 Add mandatory role constraints and check for logical derivations step 6Add value, subset, equality, exclusion and subtype constraints step 7Add other constraints and perform final checks

If we for example consider the following fact types: Person lives at Address Person owns Car and the following documented business rule: For every Person an Address must be recorded This business rule maps to a mandatory role constraint defined on the Person role of the Person lives at Address fact type. Dr. Peter Bollen, ORM 2012, 13 September 2012, Rome, Italy5

In some exploratory knowledge domains the tacit (business) rules that govern the domain can only be made explicit by rigorously applying a conceptual schema design procedure in which the FBM analyst present permutations of domain examples to the domain expert in order to derive instances of domain constraints. Dr. Peter Bollen, ORM 2012, 13 September 2012, Rome, Italy6

The set-comparison constraint derivation algorithm (presented during ORM 2011) Algorithm 2: Set comparison constraint derivation. BEGIN take first role combination WHILE still rolecombinations SETCOMPARISON_on_2_rolecombinations Let (R1,....RN) and (RN+1,....R2n) be the role combinations on which the set comparison should be performed. Let (a1,.. M) be a sentence instance of the fact type (FT1) that contains roles (R1,....RN) (MN) Let N+1,.. 2N+L and N+1,.. 2N+L be sentence instances of the fact type (FT2) that contains roles (RN+1,....R2n) Furthermore, let IM:={FT1,FT2}. Create three user examples that reflect following fact type extensions (FT1+FT2): EXT1(IM): { (1,.. M)} EXT2(IM): { (1,.. M),( N+1,.. 2N+L) | 1=N+1 ,.. N= 2N} EXT3(IM): { (1,.. M),( N+1,.. 2N+L), (N+1,.. 2N+L) | 1=N+1 ,.. N= 2N} Let the user determine which of these extensions refer to an allowed population state for the universe of discourse by showing (sets of) real-life examples that match these three extensions one at a time. Dr. Peter Bollen, ORM 2012, 13 September 2012, Rome, Italy7 ENDWHILE END

The kernel of the set-comparison constraint derivation algorithm consists of the generation of 3 example populations for each pair of role (combination)(s) on which potentially set-comparison constraints can be defined. For each pair of roles played by the same object type, the following example extensions have to be generated: Dr. Peter Bollen, ORM 2012, 13 September 2012, Rome, Italy8

Summarizing the results of the application of the set-comparison derivation algorithm We note that for the other 4 possible outcomes of the algorithm no set-comparison constraints will be derived. Dr. Peter Bollen, ORM 2012, 13 September 2012, Rome, Italy EXT1AllowedNot Allowed Allowed EXT2Allowed Not Allowed EXT3Not AllowedAllowedNot Allowed Constraint type Subset1 (FT2->FT1) Subset2 (FT1->FT2) equalityexclusion

An integrated algorithm to derive mandatory role and set- comparison constraints We will now take the set-comparison constraint derivation algorithm as a starting point for an integrated algorithm in which we can ‘derive’ the mandatory role constraints by analyzing the subset- and equality constraint configurations that are centered around a given object type. It is further assumed that the ‘independence’ status of this object type is known. Dr. Peter Bollen, ORM 2012, 13 September 2012, Rome, Italy10

The integrated algorithm will contain the set-comparison derivation algorithm. The outcome of the first step in the algorithm will contain all set-comparison constraints between pairs of role(s) (combinations) and will therefore lead to a constraint configuration as is shown on the next slide. Dr. Peter Bollen, ORM 2012, 13 September 2012, Rome, Italy11

Dr. Peter Bollen, ORM 2012, 13 September 2012, Rome, Italy12

Dr. Peter Bollen, ORM 2012, 13 September 2012, Rome, Italy13 Algorithm A BEGIN Algorithm derive set-comparison and mandatory role(fact type model,object type). WHILE still rolecombinations left DO Take next_2_role_combination Algorithm SETCOMPARISON_on_2_rolecombinations(see [7]) ENDWHILE create a tabular format by 1. copying subset constraints 1-on-1 into the table 2. copying exclusion constraints into exactly one of the applicable table cells. 3. copying an equality constraint as 2 subset constraints, mirrored across the diagonal of the table 4. remove all copied set-comparison constraints from the information model take the first column from the table WHILE still columns left DO Take next column. Check all entries in the column IF (all column entries = subset constraint AND object type IS NOT independent) THEN mandatory role defined for the role on the column. Remove subset constraints from column ENDIF ENDWHILE WHILE still constraint entries in table DO check next constraint IF constraint=subset THEN check for mirrored constraint IF mirrored constraint exist THEN add equality constraint in model Remove both subset constraints fr table ELSE add subset constraint in model Remove sub-set constraint from table ENDIF ELSE add exclusion constraint to model Remove exclusion constraint from table ENDIF ENDWHILE Remove implied constraints END

Create a tabular format by: 1.copying subset constraints 1-on-1 into the table 2. copying exclusion constraints into exactly one of the applicable table cells. 3. copying an equality constraint as 2 2 subset constraints, mirrored across the diagonal of the table 4. remove all copied set-comparison constraints from the information model

IF (all column entries = subset constraint AND object type IS NOT independent) THEN mandatory role defined for the role on the column. Remove subset constraints from column ENDIF IF mirrored constraint exist THEN add equality constraint in model Remove both subset constraints fr table ELSE add subset constraint in model Remove sub-set constraint from table ENDIF Dr. Peter Bollen, ORM 2012, 13 September 2012, Rome, Italy15

Dr. Peter Bollen, ORM 2012, 13 September 2012, Rome, Italy16

Dr. Peter Bollen, ORM 2012, 13 September 2012, Rome, Italy17

Dr. Peter Bollen, ORM 2012, 13 September 2012, Rome, Italy18

The integration of the mandatory role and set-comparison constraints from local sub- schemas to a global schema By integrating two conceptual schemas, (some of) the mandatory role constraints in the local conceptual schema(s) cannot directly be copied into the integrated schema that captures the global ‘semantics’ of the local mandatory role constraint. Dr. Peter Bollen, ORM 2012, 13 September 2012, Rome, Italy19

We therefore, propose to apply the set- comparison constraint derivation algorithm first when analyzing the ‘local’ UoD’s Dr. Peter Bollen, ORM 2012, 13 September 2012, Rome, Italy20

Dr. Peter Bollen, ORM 2012, 13 September 2012, Rome, Italy21 In UoD1 we have fact types and constraints that represent the following (local) domain semantics: Each employee has exactly one rank. Each employee has exactly one supervisor Each supervisor is an employee. In UoD2 we have the following (local) domain semantics: Each employee is located in exactly one room An employee can be reached via zero, one or more telephone extensions. Note that in UoD2 only a subset of the ‘global’ employee population is relevant: those employees that are located in a room. This explains the existence of mandatory role constraint c7 in the right-hand figure.

Proto Conceptual schemas Dr. Peter Bollen, ORM 2012, 13 September 2012, Rome, Italy22

Semantics of the integrated domain Each employee has exactly one rank. Each employee has exactly one supervisor Each supervisor is an employee. An employee can be located in a room. An employee that is located in a room can be reached via zero, one or more telephone extensions Dr. Peter Bollen, ORM 2012, 13 September 2012, Rome, Italy23

We notice that the result of the integration of the local schemas into a global schema with global semantics has had the following implications in terms of the mandatory role and set-comparison constraints: mandatory role constraint c7 in the local schema has been replaced by subset constraint c8 in the global schema. Dr. Peter Bollen, ORM 2012, 13 September 2012, Rome, Italy24

In this case it is recommended to apply the set- comparison derivation algorithm in for the creation of the local proto conceptual schemas. In an integration step of two (or more) proto conceptual schemas the same algorithm can be applied on those new role combinations that have emerged from the federation of the local proto conceptual schemas into the new ‘global’ proto-conceptual schema (procedure beta ). The latter schema can now serve as input for procedure gamma, i.e. the application of the 2 nd part of the set- comparison and mandatory role derivation algorithm to map the set-comparison constraints to mandatory role and remaining (non-implied) set comparison constraints Dr. Peter Bollen, ORM 2012, 13 September 2012, Rome, Italy25

Dr. Peter Bollen, ORM 2012, 13 September 2012, Rome, Italy26

Conclusion In this presentation we have shown that the algorithm for the ‘example-based’ derivation of set-comparison constraints can be used as a starting point for an integrated algorithm that will generate the mandatory role and the non-implied set-comparison constraints. We have also shown that for the integration of multiple ‘local’ conceptual schemas, the logic of the algorithm allows us to integrate those sub-schemas with a minimum of integration effort. By expressing the mandatory role constraints in the local (proto) schema as (combinations of) set comparison constraints the process of data federation can focus on the derivation of set-comparison constraints for the ‘new’ role combinations that govern the integrated UoD. Dr. Peter Bollen, ORM 2012, 13 September 2012, Rome, Italy27