SlideShare una empresa de Scribd logo
1 de 18
Descargar para leer sin conexión
Your Moderator 
Karen Lopez 
Sr. Project Manager / ArchitectInfoadvisors 
@datachick 
#BCDModeling 
Joining Karen 
Gordon Everest 
Professor Emeritus 
University of Minnesota
1 
Data Modeling Challenges, 2014/8 
Subtypes & Supertypes 
35START 
The Data Modeler's 
most Valuable Construct 
© Gordon C. Everest, All rights reserved. 
©Gordon C. Everest 
Professor Emeritus of MIS and Database 
Carlson School of Management 
University of Minnesota 
geverest@umn.edu 
N
2 
A Fundamental Assumption in a Data Model Diagram 
•The main construct is an Entity. 
•Each labeled box/circle represents an Entity Type 
–a Defined Structure (a schema template) 
–a Population of Instances 
•Grouping Instances into Types is essentially Arbitrary. 
–The world isn’t naturally that way; the designer imposes a view 
•All Entity Type Populations are strictly Disjoint(mutually exclusive; or non-overlapping). 
–At least that is the system’s assumption, thus each file/table has its own set of records/tuples. 
SSTYPE 
What about: 
EMPLOYEE 
SHAREHOLDER 
CUSTOMER 
Is this always true? 
Are there likely to be three files/tables?
3 
ORDER 
Using Subtypes and Supertypes 
•Subtypes and Supertypes allow us toformally representoverlapping populations 
–Every member of a subtype populationis-amember of its supertype population(s). 
so we can model: 
•different rolesplayed by members of a common population, e.g.: 
–role determines the attributes 
ORDERRECEIVED 
ORDERVALIDATED& ACCEPTED 
ORDERFILLED 
ORDERREJECTED 
BACK 
ORDER 
Smith & Smith, ACM TODS, 1977/6. 
SSTYPE 
EMPLOYEE 
SHAREHOLDER 
CUSTOMER 
PERSON 
•different statesof an entity (over time), e.g.:
4 
Subtype-Supertype "Relationship" 
•Tempting to call it a "Relationship,” but … 
•pop(subtype) pop(supertype) 
SUBSET of 
•AND the related members in the two setsare the sameinstance 
–that is what makes it different from relationships in a traditional ER/Relational data model, where the entity type populations are (assumed) disjoint! 
SSTYPE 
Supertype 
Subtype 
1:1 
< is-a
5 
Generalization / Specialization 
Forming Entity Types 
SSTYPE 
–An “arbitrary” choice made by the Database Designer 
–Recognizing when to use Subtypes and Supertypes 
–Think about the entity populationsyou are modeling 
Two basic and distinct situations: 
•Generalization: (bottom-up -from several to a common supertype) 
–When you observe commonalities (e.g., common attributes*) across multiple entity populations. -the members may actually be from the same population, the same type of ‘thing’, so define a common supertype. 
•Specialization: (top-down -from one to subtypes) 
–When there is something special about a subset of a population 
-They have some unique attributes* 
-You want to treat them differently 
-e.g., Apply a constraint, or have some attributes mandatory 
*NOTE: speaking of attributes in ORM, means roles in relationships with other objects.
6 
Subtypes and Supertypes 
TWO CONDITIONS MUST ALWAYSBE TRUE: 
•each subtype population must be a subset(potentially) of each of its supertype populationsi.e., each instance of the subtype is in everysupertype population 
•each subtype inherits allthe roles of its supertypes andmust have additionalroles/relationships 
More Instances(larger population) 
If either condition is NOT true, no reason to call out the subtype in a separate definition. 
is-a 
is-a 
name 
birthdate 
position 
salary 
organizational unit 
budget authorization 
More Attributes/Roles/Relationships 
SSTYPE 
 
EMPLOYEE 
BOSS 
PERSON
7 
PERSON 
Diagramming Subtypes and Supertypes 
Two Basic Representations: 
EMPLOYEE 
BOSS 
SHAREHOLDER 
SSTYPE 
A 
B 
C 
D 
E 
1. NESTED(Euler Diagram) 
+Intuitive -visually shows inclusion 
+Clean and Compact 
–Generally assumed disjoint 
–Only good for simple cases 
–Not good for complex cases 
–difficult to represent both exclusive and overlapping subtypes(like a Venn Diagram):
8 
Diagramming Subtypes and Supertypes 
Two Basic Representations: 
2. SEPARATED 
+More common 
+Easier to show constraintsand multiple supertypesfor more complex cases. 
–not visually intuitive 
–confusion with "relationship" 
–Adds more “clutter” 
is-a 
is-a 
PERSON 
EMPLOYEE 
SHAREHOLDER 
IDEF1X 
IE 
EER 
SSTYPE 
PERSON 
EMPLOYEE 
SHAREHOLDER 
ORM, UML 
Always, onlydisjoint(exclusive) 
EMPLOYEE 
BOSS 
PERSON 
SHAREHOLDER
9 
Subtype / Supertype Constraints 
WITHOUT CONSTRAINTS, ASSUME THE MORE GENERAL CASE: 
SSTYPE 
•overlappingsubtype populations 
–else Disjoint,so apply Exclusionconstraint: 
•non-exhaustive(Partial) on the supertype, i.e., a supertype instance need not be in anysubtype 
–else Mandatory/Totality/Dependency constraint 
=> Declare constraints on the more restrictive cases 
•Some systems allow only Disjoint and Total 
–it is possible to model Overlapping, even if the system only allows Disjoint subtypes. HOW? 
•Some systems make Disjoint and/or Total the defaults 
N
10 
● 
Diagramming S/Stype Constraints 
CONSTRAINTS(3 cases): 
F 
S 
C 
W 
M 
S 
B 
M 
O 
e.g., MAN, WOMAN, CHILD 
e.g., OVIPAROUS, MAMMAL, BIRD, FISH 
SSTYPE 
1. Exclusiveordisjoint subtypes– 
2. ExhaustiveorTotal on the supertype– 
N 
X 
X 
X 
● 
X
11 
Diagramming Exercise 
•Convert the following Nested diagram into a Separated S/Stype diagram: 
A 
B 
C 
D 
E 
SSTYPE 
A 
B 
C 
D 
E 
How to model 'E' ? 
Any constraints required? 
X 
What if only exclusive subtypes allowed? 
G 
G 
B 
C 
D 
BC 
CD 
How to model 'E' ?
12 
S/Stype Constraints -Other Notations 
Exclusive ExhaustiveordisjointoverlappingorTotalPartial 
T 
• 
SSTYPE 
ORM* 
IE 
EER 
IDEF1X 
UML / ODL 
X 
(default) 
(default) 
*combined 
X 
d 
o 
(explicit English labels on the S/Stype arcs) 
X 
• 
(only) 
(can’t define) 
in NIAM
13 
"Well -Defined" Subtypes 
•based on an attribute of the supertype 
–called the "distinguishing" attribute 
•characteristics of the relationshipdetermine the constraints on the subtypes 
–mandatory attribute => exhaustive/totality constraint 
–single-valued attribute => exclusive subtypes constraint 
SSTYPE 
X 
M:1 
{ M, F } 
•What if the attribute is optional? 
•What if a multi-valued attribute (M:N relationship)? 
Patient 
Male 
Female 
Sex 
X 
● 
●
14 
Subtype Definition 
Attribute-Defined Subtype(Intentional Set) 
•a rule for including a Supertype instance in the Subtype 
•Defined in terms of the values of a supertype attribute 
–in general, a Boolean expression on attribute(s) of the supertype 
•can be considered a constraintrule on subset membership 
•there are many possible subgroupings (specializations) of an entity type based on the values of its attributes, so find those that matter. 
•it is not always possible to define the rules for membership in a subtype, hence: Extensional Set… 
SSTYPE
15 
Subtype Definition 
User-Defined Subtype(Extensional Set) 
•inclusion determined by “existence” in the set; membership is manual, the system cannot automate or validate membership. 
•Some systems requiresubtype definitions such as VisioEA(but... as free-form text!) 
•Can always come up with an artificial distinguishing attribute 
SSTYPE 
Fixed Subtype 
•Each member instance must belong to that subtype for its whole lifetime, else: 
Role or Phase/State Subtype 
•An object plays different roles (may be multiple) & can change 
•An object moves through various stages or states.
16 
Mapping to (Relational) Tables 
THREE BASIC CHOICES: (may be hybrids) 
•Supertype only: (Absorption -'flatten' up) 
Halpin08, §11.3, p.497. 
GIVEN: 
KPD { Pi }… { Ai }… { Bi }… 
KA{ Pi }… { Ai }… 
KB{ Pi }… { Bi }… 
CONSIDER: 
•Exclusive: on A & B-A & B overlapping 
•Exhaustive (Total): P in neither A or B 
•#attribs of P vs. A,B 
KPD { Pi }… 
KA { Ai }… 
KB{ Bi }… 
SSTYPE 
P(K) 
A 
B 
D = DistinguishingAttribute on P(optional?) (single-valued?) 
•Subtypes only: (not possible in VisioEA) (Separation -'flatten' down) 
•Both: (Partition) 
PROBLEMS: 
•Redundancy 
•Incomplete 
•Querying
17 
Inheritance and Reuse 
•Separate but related notions -often confused (Chris Date got it right) 
DESIGNNOTION based oncharacteristics ofpopulations: 
•Multiple populations with some different characteristics sharing some common characteristics, … so define a supertype (generalization). 
•Need for special treatment of a subset of a population… so define a subtype (specialization) 
–Subtype inherits common characteristics from its supertypesplus has some additional characteristics of interest 
CONSTRUCTION-implementation efficiency => REUSE 
•Inheritanceof definitions of data and procedures 
–for efficiency of implementation 
SOLVING PROBLEMS: 
–overriding and blocking 
–multiple inheritance =>conflict, priority order 
–static (copy at creation time only), vs. dynamic (maintain linkage to automatically inherit changes) 
SSTYPE

Más contenido relacionado

La actualidad más candente

Part1 of SQL Tuning Workshop - Understanding the Optimizer
Part1 of SQL Tuning Workshop - Understanding the OptimizerPart1 of SQL Tuning Workshop - Understanding the Optimizer
Part1 of SQL Tuning Workshop - Understanding the OptimizerMaria Colgan
 
DOAG Oracle Unified Audit in Multitenant Environments
DOAG Oracle Unified Audit in Multitenant EnvironmentsDOAG Oracle Unified Audit in Multitenant Environments
DOAG Oracle Unified Audit in Multitenant EnvironmentsStefan Oehrli
 
NoSql Data Management
NoSql Data ManagementNoSql Data Management
NoSql Data Managementsameerfaizan
 
IoT Physical Devices and End Points.pdf
IoT Physical Devices and End Points.pdfIoT Physical Devices and End Points.pdf
IoT Physical Devices and End Points.pdfGVNSK Sravya
 
Real Time Network Monitoring System
Real  Time  Network  Monitoring  SystemReal  Time  Network  Monitoring  System
Real Time Network Monitoring SystemGirish Naik
 
Oracle RDBMS architecture
Oracle RDBMS architectureOracle RDBMS architecture
Oracle RDBMS architectureMartin Berger
 
IOT and its communication models and protocols.pdf
IOT and its communication models and protocols.pdfIOT and its communication models and protocols.pdf
IOT and its communication models and protocols.pdfMD.ANISUR RAHMAN
 
Fundamentals of Database ppt ch04
Fundamentals of Database ppt ch04Fundamentals of Database ppt ch04
Fundamentals of Database ppt ch04Jotham Gadot
 
Conceptual vs. Logical vs. Physical Data Modeling
Conceptual vs. Logical vs. Physical Data ModelingConceptual vs. Logical vs. Physical Data Modeling
Conceptual vs. Logical vs. Physical Data ModelingDATAVERSITY
 
Summary data modelling
Summary data modellingSummary data modelling
Summary data modellingNovita Sari
 
Analytics, Machine Learning and Internet of Things
Analytics, Machine Learning and Internet of ThingsAnalytics, Machine Learning and Internet of Things
Analytics, Machine Learning and Internet of ThingsRoshan Thomas
 
What’s New in Oracle Database 19c - Part 1
What’s New in Oracle Database 19c - Part 1What’s New in Oracle Database 19c - Part 1
What’s New in Oracle Database 19c - Part 1Satishbabu Gunukula
 
Information Assurance And Security - Chapter 3 - Lesson 3
Information Assurance And Security - Chapter 3 - Lesson 3Information Assurance And Security - Chapter 3 - Lesson 3
Information Assurance And Security - Chapter 3 - Lesson 3MLG College of Learning, Inc
 
Less13 performance
Less13 performanceLess13 performance
Less13 performanceAmit Bhalla
 
Lecture-1: Introduction to system integration and architecture - course overv...
Lecture-1: Introduction to system integration and architecture - course overv...Lecture-1: Introduction to system integration and architecture - course overv...
Lecture-1: Introduction to system integration and architecture - course overv...Mubashir Ali
 
Why Data Virtualization? An Introduction
Why Data Virtualization? An IntroductionWhy Data Virtualization? An Introduction
Why Data Virtualization? An IntroductionDenodo
 
Less06 networking
Less06 networkingLess06 networking
Less06 networkingAmit Bhalla
 
Internet Of Things: Convergence
Internet Of Things: ConvergenceInternet Of Things: Convergence
Internet Of Things: ConvergenceDaniel Kolodziej
 
Protocols for IoT
Protocols for IoTProtocols for IoT
Protocols for IoTAmit Dev
 

La actualidad más candente (20)

Part1 of SQL Tuning Workshop - Understanding the Optimizer
Part1 of SQL Tuning Workshop - Understanding the OptimizerPart1 of SQL Tuning Workshop - Understanding the Optimizer
Part1 of SQL Tuning Workshop - Understanding the Optimizer
 
DOAG Oracle Unified Audit in Multitenant Environments
DOAG Oracle Unified Audit in Multitenant EnvironmentsDOAG Oracle Unified Audit in Multitenant Environments
DOAG Oracle Unified Audit in Multitenant Environments
 
NoSql Data Management
NoSql Data ManagementNoSql Data Management
NoSql Data Management
 
IoT Physical Devices and End Points.pdf
IoT Physical Devices and End Points.pdfIoT Physical Devices and End Points.pdf
IoT Physical Devices and End Points.pdf
 
Real Time Network Monitoring System
Real  Time  Network  Monitoring  SystemReal  Time  Network  Monitoring  System
Real Time Network Monitoring System
 
Oracle RDBMS architecture
Oracle RDBMS architectureOracle RDBMS architecture
Oracle RDBMS architecture
 
IOT and its communication models and protocols.pdf
IOT and its communication models and protocols.pdfIOT and its communication models and protocols.pdf
IOT and its communication models and protocols.pdf
 
Fundamentals of Database ppt ch04
Fundamentals of Database ppt ch04Fundamentals of Database ppt ch04
Fundamentals of Database ppt ch04
 
Conceptual vs. Logical vs. Physical Data Modeling
Conceptual vs. Logical vs. Physical Data ModelingConceptual vs. Logical vs. Physical Data Modeling
Conceptual vs. Logical vs. Physical Data Modeling
 
IoT Security
IoT SecurityIoT Security
IoT Security
 
Summary data modelling
Summary data modellingSummary data modelling
Summary data modelling
 
Analytics, Machine Learning and Internet of Things
Analytics, Machine Learning and Internet of ThingsAnalytics, Machine Learning and Internet of Things
Analytics, Machine Learning and Internet of Things
 
What’s New in Oracle Database 19c - Part 1
What’s New in Oracle Database 19c - Part 1What’s New in Oracle Database 19c - Part 1
What’s New in Oracle Database 19c - Part 1
 
Information Assurance And Security - Chapter 3 - Lesson 3
Information Assurance And Security - Chapter 3 - Lesson 3Information Assurance And Security - Chapter 3 - Lesson 3
Information Assurance And Security - Chapter 3 - Lesson 3
 
Less13 performance
Less13 performanceLess13 performance
Less13 performance
 
Lecture-1: Introduction to system integration and architecture - course overv...
Lecture-1: Introduction to system integration and architecture - course overv...Lecture-1: Introduction to system integration and architecture - course overv...
Lecture-1: Introduction to system integration and architecture - course overv...
 
Why Data Virtualization? An Introduction
Why Data Virtualization? An IntroductionWhy Data Virtualization? An Introduction
Why Data Virtualization? An Introduction
 
Less06 networking
Less06 networkingLess06 networking
Less06 networking
 
Internet Of Things: Convergence
Internet Of Things: ConvergenceInternet Of Things: Convergence
Internet Of Things: Convergence
 
Protocols for IoT
Protocols for IoTProtocols for IoT
Protocols for IoT
 

Similar a Big Challenges in Data Modeling: Supertyping and Subtyping

SQL Tutorial - Basics of Structured Query Language Day 1.pdf
SQL Tutorial - Basics of Structured Query Language Day 1.pdfSQL Tutorial - Basics of Structured Query Language Day 1.pdf
SQL Tutorial - Basics of Structured Query Language Day 1.pdfRiturajDas28
 
Ibps it officer exam capsule by affairs cloud
Ibps it officer exam capsule by affairs cloudIbps it officer exam capsule by affairs cloud
Ibps it officer exam capsule by affairs cloudaffairs cloud
 
Ibps it officer exam capsule by affairs cloud
Ibps it officer exam capsule by affairs cloudIbps it officer exam capsule by affairs cloud
Ibps it officer exam capsule by affairs cloudaffairs cloud
 
Chapter – 2 Data Models.pdf
Chapter – 2 Data Models.pdfChapter – 2 Data Models.pdf
Chapter – 2 Data Models.pdfTamiratDejene1
 
ER diagram slides for datanase stujdy-1.pdf
ER diagram slides for datanase stujdy-1.pdfER diagram slides for datanase stujdy-1.pdf
ER diagram slides for datanase stujdy-1.pdfSadiaSharmin40
 
Entity Relationship Model
Entity Relationship ModelEntity Relationship Model
Entity Relationship ModelNeil Neelesh
 
Entity-Relationship Data Model
Entity-Relationship Data ModelEntity-Relationship Data Model
Entity-Relationship Data ModelBishrul Haq
 
Advance database system(part 4)
Advance database system(part 4)Advance database system(part 4)
Advance database system(part 4)Abdullah Khosa
 
39f1b9a797dbms chapter2 b.sc2
39f1b9a797dbms chapter2 b.sc239f1b9a797dbms chapter2 b.sc2
39f1b9a797dbms chapter2 b.sc2Mukund Trivedi
 
39f1b9a797dbms chapter2 b.sc2 (1)
39f1b9a797dbms chapter2 b.sc2 (1)39f1b9a797dbms chapter2 b.sc2 (1)
39f1b9a797dbms chapter2 b.sc2 (1)Mukund Trivedi
 
Machine Learning Comparative Analysis - Part 1
Machine Learning Comparative Analysis - Part 1Machine Learning Comparative Analysis - Part 1
Machine Learning Comparative Analysis - Part 1Kaniska Mandal
 
DBMS & SQL Notes .pdf
DBMS & SQL Notes .pdfDBMS & SQL Notes .pdf
DBMS & SQL Notes .pdfDieHardGamer
 

Similar a Big Challenges in Data Modeling: Supertyping and Subtyping (20)

er-models.pptx
er-models.pptxer-models.pptx
er-models.pptx
 
SQL Tutorial - Basics of Structured Query Language Day 1.pdf
SQL Tutorial - Basics of Structured Query Language Day 1.pdfSQL Tutorial - Basics of Structured Query Language Day 1.pdf
SQL Tutorial - Basics of Structured Query Language Day 1.pdf
 
Ibps it officer exam capsule by affairs cloud
Ibps it officer exam capsule by affairs cloudIbps it officer exam capsule by affairs cloud
Ibps it officer exam capsule by affairs cloud
 
Ibps it officer exam capsule by affairs cloud
Ibps it officer exam capsule by affairs cloudIbps it officer exam capsule by affairs cloud
Ibps it officer exam capsule by affairs cloud
 
Chapter – 2 Data Models.pdf
Chapter – 2 Data Models.pdfChapter – 2 Data Models.pdf
Chapter – 2 Data Models.pdf
 
2 er
2 er2 er
2 er
 
Enhanced ER(database)
Enhanced ER(database)Enhanced ER(database)
Enhanced ER(database)
 
ER diagram slides for datanase stujdy-1.pdf
ER diagram slides for datanase stujdy-1.pdfER diagram slides for datanase stujdy-1.pdf
ER diagram slides for datanase stujdy-1.pdf
 
Entity Relationship Model
Entity Relationship ModelEntity Relationship Model
Entity Relationship Model
 
Database design
Database designDatabase design
Database design
 
DBMS CS2
DBMS CS2DBMS CS2
DBMS CS2
 
Unit 02 dbms
Unit 02 dbmsUnit 02 dbms
Unit 02 dbms
 
Entity-Relationship Data Model
Entity-Relationship Data ModelEntity-Relationship Data Model
Entity-Relationship Data Model
 
Advance database system(part 4)
Advance database system(part 4)Advance database system(part 4)
Advance database system(part 4)
 
39f1b9a797dbms chapter2 b.sc2
39f1b9a797dbms chapter2 b.sc239f1b9a797dbms chapter2 b.sc2
39f1b9a797dbms chapter2 b.sc2
 
39f1b9a797dbms chapter2 b.sc2 (1)
39f1b9a797dbms chapter2 b.sc2 (1)39f1b9a797dbms chapter2 b.sc2 (1)
39f1b9a797dbms chapter2 b.sc2 (1)
 
Machine Learning Comparative Analysis - Part 1
Machine Learning Comparative Analysis - Part 1Machine Learning Comparative Analysis - Part 1
Machine Learning Comparative Analysis - Part 1
 
DBMS & SQL Notes.pdf
DBMS & SQL Notes.pdfDBMS & SQL Notes.pdf
DBMS & SQL Notes.pdf
 
DBMS & SQL Notes .pdf
DBMS & SQL Notes .pdfDBMS & SQL Notes .pdf
DBMS & SQL Notes .pdf
 
DBMS_Notes (1).pdf
DBMS_Notes (1).pdfDBMS_Notes (1).pdf
DBMS_Notes (1).pdf
 

Más de DATAVERSITY

Architecture, Products, and Total Cost of Ownership of the Leading Machine Le...
Architecture, Products, and Total Cost of Ownership of the Leading Machine Le...Architecture, Products, and Total Cost of Ownership of the Leading Machine Le...
Architecture, Products, and Total Cost of Ownership of the Leading Machine Le...DATAVERSITY
 
Data at the Speed of Business with Data Mastering and Governance
Data at the Speed of Business with Data Mastering and GovernanceData at the Speed of Business with Data Mastering and Governance
Data at the Speed of Business with Data Mastering and GovernanceDATAVERSITY
 
Exploring Levels of Data Literacy
Exploring Levels of Data LiteracyExploring Levels of Data Literacy
Exploring Levels of Data LiteracyDATAVERSITY
 
Building a Data Strategy – Practical Steps for Aligning with Business Goals
Building a Data Strategy – Practical Steps for Aligning with Business GoalsBuilding a Data Strategy – Practical Steps for Aligning with Business Goals
Building a Data Strategy – Practical Steps for Aligning with Business GoalsDATAVERSITY
 
Make Data Work for You
Make Data Work for YouMake Data Work for You
Make Data Work for YouDATAVERSITY
 
Data Catalogs Are the Answer – What is the Question?
Data Catalogs Are the Answer – What is the Question?Data Catalogs Are the Answer – What is the Question?
Data Catalogs Are the Answer – What is the Question?DATAVERSITY
 
Data Catalogs Are the Answer – What Is the Question?
Data Catalogs Are the Answer – What Is the Question?Data Catalogs Are the Answer – What Is the Question?
Data Catalogs Are the Answer – What Is the Question?DATAVERSITY
 
Data Modeling Fundamentals
Data Modeling FundamentalsData Modeling Fundamentals
Data Modeling FundamentalsDATAVERSITY
 
Showing ROI for Your Analytic Project
Showing ROI for Your Analytic ProjectShowing ROI for Your Analytic Project
Showing ROI for Your Analytic ProjectDATAVERSITY
 
How a Semantic Layer Makes Data Mesh Work at Scale
How a Semantic Layer Makes  Data Mesh Work at ScaleHow a Semantic Layer Makes  Data Mesh Work at Scale
How a Semantic Layer Makes Data Mesh Work at ScaleDATAVERSITY
 
Is Enterprise Data Literacy Possible?
Is Enterprise Data Literacy Possible?Is Enterprise Data Literacy Possible?
Is Enterprise Data Literacy Possible?DATAVERSITY
 
The Data Trifecta – Privacy, Security & Governance Race from Reactivity to Re...
The Data Trifecta – Privacy, Security & Governance Race from Reactivity to Re...The Data Trifecta – Privacy, Security & Governance Race from Reactivity to Re...
The Data Trifecta – Privacy, Security & Governance Race from Reactivity to Re...DATAVERSITY
 
Emerging Trends in Data Architecture – What’s the Next Big Thing?
Emerging Trends in Data Architecture – What’s the Next Big Thing?Emerging Trends in Data Architecture – What’s the Next Big Thing?
Emerging Trends in Data Architecture – What’s the Next Big Thing?DATAVERSITY
 
Data Governance Trends - A Look Backwards and Forwards
Data Governance Trends - A Look Backwards and ForwardsData Governance Trends - A Look Backwards and Forwards
Data Governance Trends - A Look Backwards and ForwardsDATAVERSITY
 
Data Governance Trends and Best Practices To Implement Today
Data Governance Trends and Best Practices To Implement TodayData Governance Trends and Best Practices To Implement Today
Data Governance Trends and Best Practices To Implement TodayDATAVERSITY
 
2023 Trends in Enterprise Analytics
2023 Trends in Enterprise Analytics2023 Trends in Enterprise Analytics
2023 Trends in Enterprise AnalyticsDATAVERSITY
 
Data Strategy Best Practices
Data Strategy Best PracticesData Strategy Best Practices
Data Strategy Best PracticesDATAVERSITY
 
Who Should Own Data Governance – IT or Business?
Who Should Own Data Governance – IT or Business?Who Should Own Data Governance – IT or Business?
Who Should Own Data Governance – IT or Business?DATAVERSITY
 
Data Management Best Practices
Data Management Best PracticesData Management Best Practices
Data Management Best PracticesDATAVERSITY
 
MLOps – Applying DevOps to Competitive Advantage
MLOps – Applying DevOps to Competitive AdvantageMLOps – Applying DevOps to Competitive Advantage
MLOps – Applying DevOps to Competitive AdvantageDATAVERSITY
 

Más de DATAVERSITY (20)

Architecture, Products, and Total Cost of Ownership of the Leading Machine Le...
Architecture, Products, and Total Cost of Ownership of the Leading Machine Le...Architecture, Products, and Total Cost of Ownership of the Leading Machine Le...
Architecture, Products, and Total Cost of Ownership of the Leading Machine Le...
 
Data at the Speed of Business with Data Mastering and Governance
Data at the Speed of Business with Data Mastering and GovernanceData at the Speed of Business with Data Mastering and Governance
Data at the Speed of Business with Data Mastering and Governance
 
Exploring Levels of Data Literacy
Exploring Levels of Data LiteracyExploring Levels of Data Literacy
Exploring Levels of Data Literacy
 
Building a Data Strategy – Practical Steps for Aligning with Business Goals
Building a Data Strategy – Practical Steps for Aligning with Business GoalsBuilding a Data Strategy – Practical Steps for Aligning with Business Goals
Building a Data Strategy – Practical Steps for Aligning with Business Goals
 
Make Data Work for You
Make Data Work for YouMake Data Work for You
Make Data Work for You
 
Data Catalogs Are the Answer – What is the Question?
Data Catalogs Are the Answer – What is the Question?Data Catalogs Are the Answer – What is the Question?
Data Catalogs Are the Answer – What is the Question?
 
Data Catalogs Are the Answer – What Is the Question?
Data Catalogs Are the Answer – What Is the Question?Data Catalogs Are the Answer – What Is the Question?
Data Catalogs Are the Answer – What Is the Question?
 
Data Modeling Fundamentals
Data Modeling FundamentalsData Modeling Fundamentals
Data Modeling Fundamentals
 
Showing ROI for Your Analytic Project
Showing ROI for Your Analytic ProjectShowing ROI for Your Analytic Project
Showing ROI for Your Analytic Project
 
How a Semantic Layer Makes Data Mesh Work at Scale
How a Semantic Layer Makes  Data Mesh Work at ScaleHow a Semantic Layer Makes  Data Mesh Work at Scale
How a Semantic Layer Makes Data Mesh Work at Scale
 
Is Enterprise Data Literacy Possible?
Is Enterprise Data Literacy Possible?Is Enterprise Data Literacy Possible?
Is Enterprise Data Literacy Possible?
 
The Data Trifecta – Privacy, Security & Governance Race from Reactivity to Re...
The Data Trifecta – Privacy, Security & Governance Race from Reactivity to Re...The Data Trifecta – Privacy, Security & Governance Race from Reactivity to Re...
The Data Trifecta – Privacy, Security & Governance Race from Reactivity to Re...
 
Emerging Trends in Data Architecture – What’s the Next Big Thing?
Emerging Trends in Data Architecture – What’s the Next Big Thing?Emerging Trends in Data Architecture – What’s the Next Big Thing?
Emerging Trends in Data Architecture – What’s the Next Big Thing?
 
Data Governance Trends - A Look Backwards and Forwards
Data Governance Trends - A Look Backwards and ForwardsData Governance Trends - A Look Backwards and Forwards
Data Governance Trends - A Look Backwards and Forwards
 
Data Governance Trends and Best Practices To Implement Today
Data Governance Trends and Best Practices To Implement TodayData Governance Trends and Best Practices To Implement Today
Data Governance Trends and Best Practices To Implement Today
 
2023 Trends in Enterprise Analytics
2023 Trends in Enterprise Analytics2023 Trends in Enterprise Analytics
2023 Trends in Enterprise Analytics
 
Data Strategy Best Practices
Data Strategy Best PracticesData Strategy Best Practices
Data Strategy Best Practices
 
Who Should Own Data Governance – IT or Business?
Who Should Own Data Governance – IT or Business?Who Should Own Data Governance – IT or Business?
Who Should Own Data Governance – IT or Business?
 
Data Management Best Practices
Data Management Best PracticesData Management Best Practices
Data Management Best Practices
 
MLOps – Applying DevOps to Competitive Advantage
MLOps – Applying DevOps to Competitive AdvantageMLOps – Applying DevOps to Competitive Advantage
MLOps – Applying DevOps to Competitive Advantage
 

Último

presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...Zilliz
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Zilliz
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobeapidays
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...apidays
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...apidays
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingEdi Saputra
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...apidays
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CVKhem
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfOverkill Security
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbuapidays
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsNanddeep Nachan
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusZilliz
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...apidays
 

Último (20)

presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
Apidays Singapore 2024 - Scalable LLM APIs for AI and Generative AI Applicati...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
A Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source MilvusA Beginners Guide to Building a RAG App Using Open Source Milvus
A Beginners Guide to Building a RAG App Using Open Source Milvus
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 

Big Challenges in Data Modeling: Supertyping and Subtyping

  • 1. Your Moderator Karen Lopez Sr. Project Manager / ArchitectInfoadvisors @datachick #BCDModeling Joining Karen Gordon Everest Professor Emeritus University of Minnesota
  • 2. 1 Data Modeling Challenges, 2014/8 Subtypes & Supertypes 35START The Data Modeler's most Valuable Construct © Gordon C. Everest, All rights reserved. ©Gordon C. Everest Professor Emeritus of MIS and Database Carlson School of Management University of Minnesota geverest@umn.edu N
  • 3. 2 A Fundamental Assumption in a Data Model Diagram •The main construct is an Entity. •Each labeled box/circle represents an Entity Type –a Defined Structure (a schema template) –a Population of Instances •Grouping Instances into Types is essentially Arbitrary. –The world isn’t naturally that way; the designer imposes a view •All Entity Type Populations are strictly Disjoint(mutually exclusive; or non-overlapping). –At least that is the system’s assumption, thus each file/table has its own set of records/tuples. SSTYPE What about: EMPLOYEE SHAREHOLDER CUSTOMER Is this always true? Are there likely to be three files/tables?
  • 4. 3 ORDER Using Subtypes and Supertypes •Subtypes and Supertypes allow us toformally representoverlapping populations –Every member of a subtype populationis-amember of its supertype population(s). so we can model: •different rolesplayed by members of a common population, e.g.: –role determines the attributes ORDERRECEIVED ORDERVALIDATED& ACCEPTED ORDERFILLED ORDERREJECTED BACK ORDER Smith & Smith, ACM TODS, 1977/6. SSTYPE EMPLOYEE SHAREHOLDER CUSTOMER PERSON •different statesof an entity (over time), e.g.:
  • 5. 4 Subtype-Supertype "Relationship" •Tempting to call it a "Relationship,” but … •pop(subtype) pop(supertype) SUBSET of •AND the related members in the two setsare the sameinstance –that is what makes it different from relationships in a traditional ER/Relational data model, where the entity type populations are (assumed) disjoint! SSTYPE Supertype Subtype 1:1 < is-a
  • 6. 5 Generalization / Specialization Forming Entity Types SSTYPE –An “arbitrary” choice made by the Database Designer –Recognizing when to use Subtypes and Supertypes –Think about the entity populationsyou are modeling Two basic and distinct situations: •Generalization: (bottom-up -from several to a common supertype) –When you observe commonalities (e.g., common attributes*) across multiple entity populations. -the members may actually be from the same population, the same type of ‘thing’, so define a common supertype. •Specialization: (top-down -from one to subtypes) –When there is something special about a subset of a population -They have some unique attributes* -You want to treat them differently -e.g., Apply a constraint, or have some attributes mandatory *NOTE: speaking of attributes in ORM, means roles in relationships with other objects.
  • 7. 6 Subtypes and Supertypes TWO CONDITIONS MUST ALWAYSBE TRUE: •each subtype population must be a subset(potentially) of each of its supertype populationsi.e., each instance of the subtype is in everysupertype population •each subtype inherits allthe roles of its supertypes andmust have additionalroles/relationships More Instances(larger population) If either condition is NOT true, no reason to call out the subtype in a separate definition. is-a is-a name birthdate position salary organizational unit budget authorization More Attributes/Roles/Relationships SSTYPE  EMPLOYEE BOSS PERSON
  • 8. 7 PERSON Diagramming Subtypes and Supertypes Two Basic Representations: EMPLOYEE BOSS SHAREHOLDER SSTYPE A B C D E 1. NESTED(Euler Diagram) +Intuitive -visually shows inclusion +Clean and Compact –Generally assumed disjoint –Only good for simple cases –Not good for complex cases –difficult to represent both exclusive and overlapping subtypes(like a Venn Diagram):
  • 9. 8 Diagramming Subtypes and Supertypes Two Basic Representations: 2. SEPARATED +More common +Easier to show constraintsand multiple supertypesfor more complex cases. –not visually intuitive –confusion with "relationship" –Adds more “clutter” is-a is-a PERSON EMPLOYEE SHAREHOLDER IDEF1X IE EER SSTYPE PERSON EMPLOYEE SHAREHOLDER ORM, UML Always, onlydisjoint(exclusive) EMPLOYEE BOSS PERSON SHAREHOLDER
  • 10. 9 Subtype / Supertype Constraints WITHOUT CONSTRAINTS, ASSUME THE MORE GENERAL CASE: SSTYPE •overlappingsubtype populations –else Disjoint,so apply Exclusionconstraint: •non-exhaustive(Partial) on the supertype, i.e., a supertype instance need not be in anysubtype –else Mandatory/Totality/Dependency constraint => Declare constraints on the more restrictive cases •Some systems allow only Disjoint and Total –it is possible to model Overlapping, even if the system only allows Disjoint subtypes. HOW? •Some systems make Disjoint and/or Total the defaults N
  • 11. 10 ● Diagramming S/Stype Constraints CONSTRAINTS(3 cases): F S C W M S B M O e.g., MAN, WOMAN, CHILD e.g., OVIPAROUS, MAMMAL, BIRD, FISH SSTYPE 1. Exclusiveordisjoint subtypes– 2. ExhaustiveorTotal on the supertype– N X X X ● X
  • 12. 11 Diagramming Exercise •Convert the following Nested diagram into a Separated S/Stype diagram: A B C D E SSTYPE A B C D E How to model 'E' ? Any constraints required? X What if only exclusive subtypes allowed? G G B C D BC CD How to model 'E' ?
  • 13. 12 S/Stype Constraints -Other Notations Exclusive ExhaustiveordisjointoverlappingorTotalPartial T • SSTYPE ORM* IE EER IDEF1X UML / ODL X (default) (default) *combined X d o (explicit English labels on the S/Stype arcs) X • (only) (can’t define) in NIAM
  • 14. 13 "Well -Defined" Subtypes •based on an attribute of the supertype –called the "distinguishing" attribute •characteristics of the relationshipdetermine the constraints on the subtypes –mandatory attribute => exhaustive/totality constraint –single-valued attribute => exclusive subtypes constraint SSTYPE X M:1 { M, F } •What if the attribute is optional? •What if a multi-valued attribute (M:N relationship)? Patient Male Female Sex X ● ●
  • 15. 14 Subtype Definition Attribute-Defined Subtype(Intentional Set) •a rule for including a Supertype instance in the Subtype •Defined in terms of the values of a supertype attribute –in general, a Boolean expression on attribute(s) of the supertype •can be considered a constraintrule on subset membership •there are many possible subgroupings (specializations) of an entity type based on the values of its attributes, so find those that matter. •it is not always possible to define the rules for membership in a subtype, hence: Extensional Set… SSTYPE
  • 16. 15 Subtype Definition User-Defined Subtype(Extensional Set) •inclusion determined by “existence” in the set; membership is manual, the system cannot automate or validate membership. •Some systems requiresubtype definitions such as VisioEA(but... as free-form text!) •Can always come up with an artificial distinguishing attribute SSTYPE Fixed Subtype •Each member instance must belong to that subtype for its whole lifetime, else: Role or Phase/State Subtype •An object plays different roles (may be multiple) & can change •An object moves through various stages or states.
  • 17. 16 Mapping to (Relational) Tables THREE BASIC CHOICES: (may be hybrids) •Supertype only: (Absorption -'flatten' up) Halpin08, §11.3, p.497. GIVEN: KPD { Pi }… { Ai }… { Bi }… KA{ Pi }… { Ai }… KB{ Pi }… { Bi }… CONSIDER: •Exclusive: on A & B-A & B overlapping •Exhaustive (Total): P in neither A or B •#attribs of P vs. A,B KPD { Pi }… KA { Ai }… KB{ Bi }… SSTYPE P(K) A B D = DistinguishingAttribute on P(optional?) (single-valued?) •Subtypes only: (not possible in VisioEA) (Separation -'flatten' down) •Both: (Partition) PROBLEMS: •Redundancy •Incomplete •Querying
  • 18. 17 Inheritance and Reuse •Separate but related notions -often confused (Chris Date got it right) DESIGNNOTION based oncharacteristics ofpopulations: •Multiple populations with some different characteristics sharing some common characteristics, … so define a supertype (generalization). •Need for special treatment of a subset of a population… so define a subtype (specialization) –Subtype inherits common characteristics from its supertypesplus has some additional characteristics of interest CONSTRUCTION-implementation efficiency => REUSE •Inheritanceof definitions of data and procedures –for efficiency of implementation SOLVING PROBLEMS: –overriding and blocking –multiple inheritance =>conflict, priority order –static (copy at creation time only), vs. dynamic (maintain linkage to automatically inherit changes) SSTYPE