SlideShare une entreprise Scribd logo
1  sur  43
Télécharger pour lire hors ligne
‫أكاديمية الحكومة اإللكترونية الفلسطينية‬
          The Palestinian eGovernment Academy
                           www.egovacademy.ps



  Tutorial 1: Data and Business Process Modeling

                            Session 5
Subtype Relations and Other Constraints

                  Prof. Mustafa Jarrar
                 Sina Institute, University of Birzeit
                         mjarrar@birzeit.edu
                            www.jarrar.info


                            Reviewed by
             Prof. Marco Ronchetti, Trento University, Italy
                             PalGov © 2011                         1
About

This tutorial is part of the PalGov project, funded by the TEMPUS IV program of the
Commission of the European Communities, grant agreement 511159-TEMPUS-1-
2010-1-PS-TEMPUS-JPHES. The project website: www.egovacademy.ps
Project Consortium:
             Birzeit University, Palestine
                                                           University of Trento, Italy
             (Coordinator )


             Palestine Polytechnic University, Palestine   Vrije Universiteit Brussel, Belgium


             Palestine Technical University, Palestine
                                                           Université de Savoie, France

             Ministry of Telecom and IT, Palestine
                                                           University of Namur, Belgium
             Ministry of Interior, Palestine
                                                           TrueTrust, UK
             Ministry of Local Government, Palestine


Coordinator:
Dr. Mustafa Jarrar
Birzeit University, P.O.Box 14- Birzeit, Palestine
Telfax:+972 2 2982935 mjarrar@birzeit.eduPalGov © 2011
                                                                                                 2
© Copyright Notes
Everyone is encouraged to use this material, or part of it, but should properly
cite the project (logo and website), and the author of that part.


No part of this tutorial may be reproduced or modified in any form or by any
means, without prior written permission from the project, who have the full
copyrights on the material.




                   Attribution-NonCommercial-ShareAlike
                                CC-BY-NC-SA

This license lets others remix, tweak, and build upon your work non-
commercially, as long as they credit you and license their new creations
under the identical terms.

                                    PalGov © 2011                                 3
Tutorial Map


                       Intended Learning Objectives
                                                                                                                      Topic                       Time
Module 1 (Conceptual Date Modeling)
                                                                                               Module I: Conceptual Data Modeling
A: Knowledge and Understanding
11a1: Demonstrate knowledge of conceptual modeling notations and concepts                       Session 0: Outline and Introduction
11a2: Demonstrate knowledge of Object Role Modeling (ORM) methodology.                          Session 1.1: Information Modeling                 1
11a3: Explain and demonstrate the concepts of data integrity & business rules                   Session 1.2: Conceptual Data Modeling using ORM   1
B: Intellectual Skills                                                                          Session 1.3: Conceptual Analyses                  1
11b1: Analyze application and domain requirements at the conceptual level,                      Session 2: Lab- Conceptual Analyses               3
and formalize it using ORM.                                                                     Session 3.1: Uniqueness Rules                     1.5
11b2: Analyze entity identity at the application and domain levels.                             Session 3.2: Mandatory Rules                      1.5
11b4: Optimize, transform, and (re)engineer conceptual models.                                  Session 4: Lab- Uniqueness & Mandatory Rules      3
11b5: Detect &resolve contradictions & implications at the conceptual level.                    Session 5: Subtypes and Other Rules               3
C: Professional and Practical Skills                                                            Session 6: Lab- Subtypes and Other Rules          3
11c1: Using ORM modeling tools (Conceptual Modeling Tools).                                     Session 7.1: Schema Equivalence &Optimization     1.5
Module 2 (Business Process Modeling)                                                            Session 7.2: Rules Check &Schema Engineering      1.5
A: Knowledge and Understanding                                                                  Session 8: Lab- National Student Registry         3
12a1: Demonstrate knowledge of business process modeling notations and concepts.
                                                                                               Module II: Business Process Modeling
12a2: Demonstrate knowledge of business process modeling and mapping.
12a3: Demonstrate understand of business process optimization and re-engineering.               Session 9: BP Management and BPMN: An Overview    3
B: Intellectual Skills                                                                          Session 10: Lab - BP Management                   3
12b1: Identify business processes.                                                              Session 11: BPMN Fundamentals                     3
12b2: Model and map business processes.                                                         Session 12: Lab - BPMN Fundamentals               3
12b3: Optimize and re-engineer business processes.                                              Session 13: Modeling with BPMN                    3
C: Professional and Practical Skills                                                            Session 14: Lab- Modeling with BPMN               3
12c1: Using business process modeling tools, such as MS Visio.                                  Session 15: BP Management & Reengineering         3
                                                                                                Session 16: Lab- BP Management & Reengineering    3

                                                                               PalGov © 2011                                                             4
Session ILOs

After completing this session students will be able to:
  11a3: Explain and demonstrate the concepts of data integrity and
   business rules.

  11b1: Analyze application and domain requirements at the
   conceptual level, and formalize it using ORM.

  11b2: Analyze entity identity at the application and domain levels.




                                PalGov © 2011                           5
Conceptual Schema Design Steps

1. From examples to elementary facts

2. Draw fact types and apply population check

3. Combine entity types

4. Add uniqueness constraints

5. Add mandatory constraints

6. Add subtype relations and other constraints

7. Final checks, & schema engineering issues
                   PalGov © 2011                 6
Outline


  • Quick Math background
  • Value Constraints
  • Set Constrains
     o Subset
     o Equality
     o Exclusion

  • Subtype relations
  • Frequency constraints



                   PalGov © 2011   7
Mathematical Background

Hypothetical Euler diagrams for set comparisons.




                          PalGov © 2011            8
Mathematical Background


Venn diagrams for three set-forming operations.




                             PalGov © 2011        9
Mathematical Background




Venn diagrams for (a) A is a proper subset of B and (b) four sets.




                           PalGov © 2011                             10
Outline


  • Quick Math background
  • Value Constraints
  • Set Constrains
     o Subset
     o Equality
     o Exclusion

  • Subtype relations
  • Frequency constraints



                   PalGov © 2011   11
Value Constraint

                         Called Value Constraint

                                   A set of values, from
                                   which the value of
                                   the MedalKind is
                                   limited to




              PalGov © 2011                                12
Value Constraint



          The value of sex should be one of {„M‟, „F‟}




                 PalGov © 2011                           13
Value Constraint

Value constraints may list the possible values of a value type.




 Who can give more examples?


                               PalGov © 2011                      14
Outline


  • Quick Math background
  • Value Constraints
  • Set Constrains
     o Subset
     o Equality
     o Exclusion

  • Subtype relations
  • Frequency constraints



                   PalGov © 2011   15
Role subset/equality constraint




Subset constraint:                            Equality constraint:
Every Member booked an Hour                   Every Member „has‟ ReactionTime
should play sport.                            should „has‟ HeartRate, and every
                                              Member „has‟ HeartRate should
                                              „has‟ ReactionTime.


                              PalGov © 2011                                   16
Role subset constraint




              Notice that this subset constraint is
              implied, and should be removed.

              That is, there is no need to say that every A
              playing r2 must also play r1 (subset), because the
              mandatory constraint here means that every A
              must play r1 (the Mandatory implies the subset).

               PalGov © 2011                                  17
Role equality constraint




               Also this quality constraint is implied,
               and should be removed.




               PalGov © 2011                              18
Implication


 Who can explain the difference?




The two constraints in the first model say: each A must play r1 or r2 (or
both), and that if A plays r2 then it must play r1. This means that r1 must
be always played (which is the second model)


                                  PalGov © 2011                               19
Role Exclusion Constraint




                              Exclusion constraint:
                              Every Employee is allocated a
                              ParkingSpace should not claim
                              MoneyAmt.
              PalGov © 2011                                   20
Role Exclusion Constraint




              PalGov © 2011   21
Role Exclusion Constraint



                           Each partner must be either a husband
                           or wife (but not both at the same time).




Called “Exclusive-or”




                        PalGov © 2011                             22
Exclusive-or (another example)



                               Each Account must be
                               OwnedBy a Person or a
                               Company, but not both.




               PalGov © 2011                            23
Role Exclusion Constraint


Each person has at most one of three vices. i.e., from 0 to 3 vices.




                         It can be written also as




                             PalGov © 2011                             24
Pair Exclusion Constraint



                               How can we restrict that a
                               person can drive a car only if
                               he owns that car.




               PalGov © 2011                                    25
Pair-subset constraint




An example of a tuple-subset constraint between sequences of three roles.




                                PalGov © 2011                               26
Equality Constraint




               PalGov © 2011   27
Pair Exclusion Constraint




Can the same person „own‟ and „wants to buy‟ the same car?

                         PalGov © 2011                       28
What is Wrong?



                                             




Implies              Implies           Implies




                 PalGov © 2011                   29
Outline


  • Quick Math background
  • Value Constraints
  • Set Constrains
     o Subset
     o Equality
     o Exclusion

  • Subtype relations
  • Frequency constraints



                   PalGov © 2011   30
Subtypes




                          Person




                 Male                     Female



• Generalization/Specialization hierarchy.
• A subtype inherits the properties of its supertype.


                          PalGov © 2011                 31
Subtypes




                                                                    Person


                                                                         *
                                                      Australian                Female




                                                                    Female
                                                                   Australian



* The indirect subtype connection is implied, so it should be omitted
                                      PalGov © 2011                                      32
Subtypes




           PalGov © 2011   33
Subtypes




        Person
                                     Person                   Person




 Male        Female           Male        Female       Male         Female


There is no person that   Every person must be a   Every person must be
can be Male and Female    Male or a female.        either a Male or a Female
at the same time.                 PalGov © 2011                                34
Subtypes




What is
Inherited?




                        PalGov © 2011   35
What is Wrong?




                 PalGov © 2011   36
Outline


  • Quick Math background
  • Value Constraints
  • Set Constrains
     o Subset
     o Equality
     o Exclusion

  • Subtype relations
  • Frequency constraints          also called “Occurrence constraints”




                   PalGov © 2011                                          37
Frequency constraints

       To indicate that each entry in a fact column must occur there exactly n
       times, the number n is written beside the role.

Each city in the first
column must occur                                            each drive kind in the
    three times.                                             Second column must
                                                             appear there twice




 A compound transaction is needed to initially populate this fact type
 requiring at least six facts to be added.
                                    PalGov © 2011                                 38
Frequency constraints


                                 n
                   A             r


    Each member of pop(r) occurs there exactly n times.

    n must be a positive integer.


               1
A              r                       A             r


    If n = 1, this is equivalent to a uniqueness constraint

                            PalGov © 2011                     39
Compound Frequency Constraint




The values of (Year and City) must occur exactly three times

                           PalGov © 2011                       40
Ranged Frequency Constraint

Examples of minimum and maximum frequency constraints.


                          Each name of panel must occur at least 4
                          and at most 7 times. That is, each panel
                          must include 4 to 7 experts




      Each expert can referee 5 papers
      Each paper can be refereed by at least two experts.

                          PalGov © 2011                          41
Discussion



Summarize what you learned? And what you think about it?



Compare what you learned with EER and UML?



Questions & Suggestions?




                        PalGov © 2011                      42
References

1. Information Modeling and Relational Databases: From
   Conceptual Analysis to Logical Design, Terry Halpin (ISBN 1-
   55860-672-6) – Chapter 6.




                               PalGov © 2011                      43

Contenu connexe

Tendances

Pal gov.tutorial1.session9 10.bpmn-overview (mahmoud saheb's conflicted copy ...
Pal gov.tutorial1.session9 10.bpmn-overview (mahmoud saheb's conflicted copy ...Pal gov.tutorial1.session9 10.bpmn-overview (mahmoud saheb's conflicted copy ...
Pal gov.tutorial1.session9 10.bpmn-overview (mahmoud saheb's conflicted copy ...Mustafa Jarrar
 
Pal gov.tutorial1.session15 16
Pal gov.tutorial1.session15 16Pal gov.tutorial1.session15 16
Pal gov.tutorial1.session15 16Mustafa Jarrar
 
Operation research mb 301
Operation research mb 301Operation research mb 301
Operation research mb 301pallavidawra1
 
Pal gov.tutorial3.session11.integration.patterns
Pal gov.tutorial3.session11.integration.patternsPal gov.tutorial3.session11.integration.patterns
Pal gov.tutorial3.session11.integration.patternsMustafa Jarrar
 
Efficient Route Discovery In Mobile Ad Hoc Network
Efficient  Route  Discovery In  Mobile  Ad  Hoc  NetworkEfficient  Route  Discovery In  Mobile  Ad  Hoc  Network
Efficient Route Discovery In Mobile Ad Hoc Networksomarka
 
3 f6 8_databases
3 f6 8_databases3 f6 8_databases
3 f6 8_databasesop205
 
Representing Business Processes: Conceptual Model and Design Methodology
Representing Business Processes: Conceptual Model and Design MethodologyRepresenting Business Processes: Conceptual Model and Design Methodology
Representing Business Processes: Conceptual Model and Design MethodologyMichele Chinosi
 

Tendances (8)

Pal gov.tutorial1.session9 10.bpmn-overview (mahmoud saheb's conflicted copy ...
Pal gov.tutorial1.session9 10.bpmn-overview (mahmoud saheb's conflicted copy ...Pal gov.tutorial1.session9 10.bpmn-overview (mahmoud saheb's conflicted copy ...
Pal gov.tutorial1.session9 10.bpmn-overview (mahmoud saheb's conflicted copy ...
 
Pal gov.tutorial1.session15 16
Pal gov.tutorial1.session15 16Pal gov.tutorial1.session15 16
Pal gov.tutorial1.session15 16
 
Operation research mb 301
Operation research mb 301Operation research mb 301
Operation research mb 301
 
Pal gov.tutorial3.session11.integration.patterns
Pal gov.tutorial3.session11.integration.patternsPal gov.tutorial3.session11.integration.patterns
Pal gov.tutorial3.session11.integration.patterns
 
Ahmad Hammoud Resume
Ahmad Hammoud ResumeAhmad Hammoud Resume
Ahmad Hammoud Resume
 
Efficient Route Discovery In Mobile Ad Hoc Network
Efficient  Route  Discovery In  Mobile  Ad  Hoc  NetworkEfficient  Route  Discovery In  Mobile  Ad  Hoc  Network
Efficient Route Discovery In Mobile Ad Hoc Network
 
3 f6 8_databases
3 f6 8_databases3 f6 8_databases
3 f6 8_databases
 
Representing Business Processes: Conceptual Model and Design Methodology
Representing Business Processes: Conceptual Model and Design MethodologyRepresenting Business Processes: Conceptual Model and Design Methodology
Representing Business Processes: Conceptual Model and Design Methodology
 

En vedette

Thesismay Edite Da 2d
Thesismay Edite Da 2dThesismay Edite Da 2d
Thesismay Edite Da 2dkteppe20
 
EVALUACIÓN, SEGUIMIENTO Y ACREDITACIÓN DE LAS ENSEÑANZAS UNIVERSITARIAS: PASA...
EVALUACIÓN, SEGUIMIENTO Y ACREDITACIÓN DE LAS ENSEÑANZAS UNIVERSITARIAS: PASA...EVALUACIÓN, SEGUIMIENTO Y ACREDITACIÓN DE LAS ENSEÑANZAS UNIVERSITARIAS: PASA...
EVALUACIÓN, SEGUIMIENTO Y ACREDITACIÓN DE LAS ENSEÑANZAS UNIVERSITARIAS: PASA...Universidad Internacional Menendez Pelayo
 
A Corporate Conspiracy Chapter 2.4 Where Mortals Fear To Tread
A Corporate Conspiracy Chapter 2.4 Where Mortals Fear To TreadA Corporate Conspiracy Chapter 2.4 Where Mortals Fear To Tread
A Corporate Conspiracy Chapter 2.4 Where Mortals Fear To TreadStephanie Sahr
 
Vilma - Curso HASAS
Vilma - Curso HASASVilma - Curso HASAS
Vilma - Curso HASASNina
 
En la nube TIC - SprinTAC Tarragona
En la nube TIC - SprinTAC TarragonaEn la nube TIC - SprinTAC Tarragona
En la nube TIC - SprinTAC TarragonaCarlos Paez
 

En vedette (7)

Celebration desserts
Celebration dessertsCelebration desserts
Celebration desserts
 
Thesismay Edite Da 2d
Thesismay Edite Da 2dThesismay Edite Da 2d
Thesismay Edite Da 2d
 
EVALUACIÓN, SEGUIMIENTO Y ACREDITACIÓN DE LAS ENSEÑANZAS UNIVERSITARIAS: PASA...
EVALUACIÓN, SEGUIMIENTO Y ACREDITACIÓN DE LAS ENSEÑANZAS UNIVERSITARIAS: PASA...EVALUACIÓN, SEGUIMIENTO Y ACREDITACIÓN DE LAS ENSEÑANZAS UNIVERSITARIAS: PASA...
EVALUACIÓN, SEGUIMIENTO Y ACREDITACIÓN DE LAS ENSEÑANZAS UNIVERSITARIAS: PASA...
 
A Corporate Conspiracy Chapter 2.4 Where Mortals Fear To Tread
A Corporate Conspiracy Chapter 2.4 Where Mortals Fear To TreadA Corporate Conspiracy Chapter 2.4 Where Mortals Fear To Tread
A Corporate Conspiracy Chapter 2.4 Where Mortals Fear To Tread
 
Into House
Into HouseInto House
Into House
 
Vilma - Curso HASAS
Vilma - Curso HASASVilma - Curso HASAS
Vilma - Curso HASAS
 
En la nube TIC - SprinTAC Tarragona
En la nube TIC - SprinTAC TarragonaEn la nube TIC - SprinTAC Tarragona
En la nube TIC - SprinTAC Tarragona
 

Similaire à Here are some key points about subset constraints:- A subset constraint specifies that the population of one role must be a subset of the population of another role. - It is used to model hierarchical or "is-a" relationships between roles.- A common example is an "Employee is-a Person" constraint, where the Employee role is a subset of the Person role.- Subset constraints help enforce integrity by ensuring all instances of one role are also instances of the other role.- They can be implied by other constraints like mandatory roles, so it's important to only specify explicit constraints.The example shown illustrates how a subset constraint may be redundant and unnecessary if it is already implied by another constraint like

Business Process Modeling Notation Fundamentals
Business Process Modeling Notation FundamentalsBusiness Process Modeling Notation Fundamentals
Business Process Modeling Notation FundamentalsMustafa Jarrar
 
Pal gov.tutorial1.session8.national student registry
Pal gov.tutorial1.session8.national student registryPal gov.tutorial1.session8.national student registry
Pal gov.tutorial1.session8.national student registryMustafa Jarrar
 
Pal gov.tutorial3.session13.bpel
Pal gov.tutorial3.session13.bpelPal gov.tutorial3.session13.bpel
Pal gov.tutorial3.session13.bpelMustafa Jarrar
 
Pal gov.tutorial3.session1.soa
Pal gov.tutorial3.session1.soaPal gov.tutorial3.session1.soa
Pal gov.tutorial3.session1.soaMustafa Jarrar
 
Pal gov.tutorial3.session10.lab4
Pal gov.tutorial3.session10.lab4Pal gov.tutorial3.session10.lab4
Pal gov.tutorial3.session10.lab4Mustafa Jarrar
 
Pal gov.tutorial3.session0.outline
Pal gov.tutorial3.session0.outlinePal gov.tutorial3.session0.outline
Pal gov.tutorial3.session0.outlineMustafa Jarrar
 
How to implement a theory of correctness in the area of business processes an...
How to implement a theory of correctness in the area of business processes an...How to implement a theory of correctness in the area of business processes an...
How to implement a theory of correctness in the area of business processes an...Universität Rostock
 
Pal gov.tutorial2.session12 2.architectural solutions for the integration issues
Pal gov.tutorial2.session12 2.architectural solutions for the integration issuesPal gov.tutorial2.session12 2.architectural solutions for the integration issues
Pal gov.tutorial2.session12 2.architectural solutions for the integration issuesMustafa Jarrar
 
Pal gov.tutorial3.session5.lab2
Pal gov.tutorial3.session5.lab2Pal gov.tutorial3.session5.lab2
Pal gov.tutorial3.session5.lab2Mustafa Jarrar
 
C#.net, C Sharp.Net Online Training Course Content
C#.net, C Sharp.Net Online Training Course ContentC#.net, C Sharp.Net Online Training Course Content
C#.net, C Sharp.Net Online Training Course ContentSVRTechnologies
 
Pal gov.tutorial2.session13 1.data schema integration
Pal gov.tutorial2.session13 1.data schema integrationPal gov.tutorial2.session13 1.data schema integration
Pal gov.tutorial2.session13 1.data schema integrationMustafa Jarrar
 
Pal gov.tutorial4.session1 1.needforsharedsemantics
Pal gov.tutorial4.session1 1.needforsharedsemanticsPal gov.tutorial4.session1 1.needforsharedsemantics
Pal gov.tutorial4.session1 1.needforsharedsemanticsMustafa Jarrar
 
Pal gov.tutorial4.session1 1.needforsharedsemantics
Pal gov.tutorial4.session1 1.needforsharedsemanticsPal gov.tutorial4.session1 1.needforsharedsemantics
Pal gov.tutorial4.session1 1.needforsharedsemanticsMustafa Jarrar
 
W4 ucl@md day2011
W4 ucl@md day2011W4 ucl@md day2011
W4 ucl@md day2011MDDAY11
 
Pal gov.tutorial3.session12.lab5
Pal gov.tutorial3.session12.lab5Pal gov.tutorial3.session12.lab5
Pal gov.tutorial3.session12.lab5Mustafa Jarrar
 
Se chapter 1,2,3 2 mark qa
Se chapter 1,2,3   2 mark  qaSe chapter 1,2,3   2 mark  qa
Se chapter 1,2,3 2 mark qaAruna M
 
Pal gov.tutorial3.session6.soap
Pal gov.tutorial3.session6.soapPal gov.tutorial3.session6.soap
Pal gov.tutorial3.session6.soapMustafa Jarrar
 

Similaire à Here are some key points about subset constraints:- A subset constraint specifies that the population of one role must be a subset of the population of another role. - It is used to model hierarchical or "is-a" relationships between roles.- A common example is an "Employee is-a Person" constraint, where the Employee role is a subset of the Person role.- Subset constraints help enforce integrity by ensuring all instances of one role are also instances of the other role.- They can be implied by other constraints like mandatory roles, so it's important to only specify explicit constraints.The example shown illustrates how a subset constraint may be redundant and unnecessary if it is already implied by another constraint like (20)

Business Process Modeling Notation Fundamentals
Business Process Modeling Notation FundamentalsBusiness Process Modeling Notation Fundamentals
Business Process Modeling Notation Fundamentals
 
Pal gov.tutorial1.session8.national student registry
Pal gov.tutorial1.session8.national student registryPal gov.tutorial1.session8.national student registry
Pal gov.tutorial1.session8.national student registry
 
Pal gov.tutorial3.session13.bpel
Pal gov.tutorial3.session13.bpelPal gov.tutorial3.session13.bpel
Pal gov.tutorial3.session13.bpel
 
Pal gov.tutorial3.session1.soa
Pal gov.tutorial3.session1.soaPal gov.tutorial3.session1.soa
Pal gov.tutorial3.session1.soa
 
Pal gov.tutorial3.session10.lab4
Pal gov.tutorial3.session10.lab4Pal gov.tutorial3.session10.lab4
Pal gov.tutorial3.session10.lab4
 
Pal gov.tutorial3.session0.outline
Pal gov.tutorial3.session0.outlinePal gov.tutorial3.session0.outline
Pal gov.tutorial3.session0.outline
 
0. About this course
0. About this course0. About this course
0. About this course
 
How to implement a theory of correctness in the area of business processes an...
How to implement a theory of correctness in the area of business processes an...How to implement a theory of correctness in the area of business processes an...
How to implement a theory of correctness in the area of business processes an...
 
DP PPTS by BK.pptx
DP PPTS by BK.pptxDP PPTS by BK.pptx
DP PPTS by BK.pptx
 
Pal gov.tutorial2.session12 2.architectural solutions for the integration issues
Pal gov.tutorial2.session12 2.architectural solutions for the integration issuesPal gov.tutorial2.session12 2.architectural solutions for the integration issues
Pal gov.tutorial2.session12 2.architectural solutions for the integration issues
 
Pal gov.tutorial3.session5.lab2
Pal gov.tutorial3.session5.lab2Pal gov.tutorial3.session5.lab2
Pal gov.tutorial3.session5.lab2
 
C#.net, C Sharp.Net Online Training Course Content
C#.net, C Sharp.Net Online Training Course ContentC#.net, C Sharp.Net Online Training Course Content
C#.net, C Sharp.Net Online Training Course Content
 
Pal gov.tutorial2.session13 1.data schema integration
Pal gov.tutorial2.session13 1.data schema integrationPal gov.tutorial2.session13 1.data schema integration
Pal gov.tutorial2.session13 1.data schema integration
 
Pal gov.tutorial4.session1 1.needforsharedsemantics
Pal gov.tutorial4.session1 1.needforsharedsemanticsPal gov.tutorial4.session1 1.needforsharedsemantics
Pal gov.tutorial4.session1 1.needforsharedsemantics
 
Pal gov.tutorial4.session1 1.needforsharedsemantics
Pal gov.tutorial4.session1 1.needforsharedsemanticsPal gov.tutorial4.session1 1.needforsharedsemantics
Pal gov.tutorial4.session1 1.needforsharedsemantics
 
W4 ucl@md day2011
W4 ucl@md day2011W4 ucl@md day2011
W4 ucl@md day2011
 
Pal gov.tutorial3.session12.lab5
Pal gov.tutorial3.session12.lab5Pal gov.tutorial3.session12.lab5
Pal gov.tutorial3.session12.lab5
 
Mini Project- Torque Control of a DC Motor
Mini Project- Torque Control of a DC MotorMini Project- Torque Control of a DC Motor
Mini Project- Torque Control of a DC Motor
 
Se chapter 1,2,3 2 mark qa
Se chapter 1,2,3   2 mark  qaSe chapter 1,2,3   2 mark  qa
Se chapter 1,2,3 2 mark qa
 
Pal gov.tutorial3.session6.soap
Pal gov.tutorial3.session6.soapPal gov.tutorial3.session6.soap
Pal gov.tutorial3.session6.soap
 

Plus de Mustafa Jarrar

Clustering Arabic Tweets for Sentiment Analysis
Clustering Arabic Tweets for Sentiment AnalysisClustering Arabic Tweets for Sentiment Analysis
Clustering Arabic Tweets for Sentiment AnalysisMustafa Jarrar
 
Classifying Processes and Basic Formal Ontology
Classifying Processes  and Basic Formal OntologyClassifying Processes  and Basic Formal Ontology
Classifying Processes and Basic Formal OntologyMustafa Jarrar
 
Discrete Mathematics Course Outline
Discrete Mathematics Course OutlineDiscrete Mathematics Course Outline
Discrete Mathematics Course OutlineMustafa Jarrar
 
Business Process Implementation
Business Process ImplementationBusiness Process Implementation
Business Process ImplementationMustafa Jarrar
 
Business Process Design and Re-engineering
Business Process Design and Re-engineeringBusiness Process Design and Re-engineering
Business Process Design and Re-engineeringMustafa Jarrar
 
BPMN 2.0 Analytical Constructs
BPMN 2.0 Analytical ConstructsBPMN 2.0 Analytical Constructs
BPMN 2.0 Analytical ConstructsMustafa Jarrar
 
BPMN 2.0 Descriptive Constructs
BPMN 2.0 Descriptive Constructs  BPMN 2.0 Descriptive Constructs
BPMN 2.0 Descriptive Constructs Mustafa Jarrar
 
Introduction to Business Process Management
Introduction to Business Process ManagementIntroduction to Business Process Management
Introduction to Business Process ManagementMustafa Jarrar
 
Customer Complaint Ontology
Customer Complaint Ontology Customer Complaint Ontology
Customer Complaint Ontology Mustafa Jarrar
 
Subset, Equality, and Exclusion Rules
Subset, Equality, and Exclusion RulesSubset, Equality, and Exclusion Rules
Subset, Equality, and Exclusion RulesMustafa Jarrar
 
Schema Modularization in ORM
Schema Modularization in ORMSchema Modularization in ORM
Schema Modularization in ORMMustafa Jarrar
 
On Computer Science Trends and Priorities in Palestine
On Computer Science Trends and Priorities in PalestineOn Computer Science Trends and Priorities in Palestine
On Computer Science Trends and Priorities in PalestineMustafa Jarrar
 
Lessons from Class Recording & Publishing of Eight Online Courses
Lessons from Class Recording & Publishing of Eight Online CoursesLessons from Class Recording & Publishing of Eight Online Courses
Lessons from Class Recording & Publishing of Eight Online CoursesMustafa Jarrar
 
Presentation curras paper-emnlp2014-final
Presentation curras paper-emnlp2014-finalPresentation curras paper-emnlp2014-final
Presentation curras paper-emnlp2014-finalMustafa Jarrar
 
Jarrar: Future Internet in Horizon 2020 Calls
Jarrar: Future Internet in Horizon 2020 CallsJarrar: Future Internet in Horizon 2020 Calls
Jarrar: Future Internet in Horizon 2020 CallsMustafa Jarrar
 
Habash: Arabic Natural Language Processing
Habash: Arabic Natural Language ProcessingHabash: Arabic Natural Language Processing
Habash: Arabic Natural Language ProcessingMustafa Jarrar
 
Adnan: Introduction to Natural Language Processing
Adnan: Introduction to Natural Language Processing Adnan: Introduction to Natural Language Processing
Adnan: Introduction to Natural Language Processing Mustafa Jarrar
 
Riestra: How to Design and engineer Competitive Horizon 2020 Proposals
Riestra: How to Design and engineer Competitive Horizon 2020 ProposalsRiestra: How to Design and engineer Competitive Horizon 2020 Proposals
Riestra: How to Design and engineer Competitive Horizon 2020 ProposalsMustafa Jarrar
 
Bouquet: SIERA Workshop on The Pillars of Horizon2020
Bouquet: SIERA Workshop on The Pillars of Horizon2020Bouquet: SIERA Workshop on The Pillars of Horizon2020
Bouquet: SIERA Workshop on The Pillars of Horizon2020Mustafa Jarrar
 
Jarrar: Sparql Project
Jarrar: Sparql ProjectJarrar: Sparql Project
Jarrar: Sparql ProjectMustafa Jarrar
 

Plus de Mustafa Jarrar (20)

Clustering Arabic Tweets for Sentiment Analysis
Clustering Arabic Tweets for Sentiment AnalysisClustering Arabic Tweets for Sentiment Analysis
Clustering Arabic Tweets for Sentiment Analysis
 
Classifying Processes and Basic Formal Ontology
Classifying Processes  and Basic Formal OntologyClassifying Processes  and Basic Formal Ontology
Classifying Processes and Basic Formal Ontology
 
Discrete Mathematics Course Outline
Discrete Mathematics Course OutlineDiscrete Mathematics Course Outline
Discrete Mathematics Course Outline
 
Business Process Implementation
Business Process ImplementationBusiness Process Implementation
Business Process Implementation
 
Business Process Design and Re-engineering
Business Process Design and Re-engineeringBusiness Process Design and Re-engineering
Business Process Design and Re-engineering
 
BPMN 2.0 Analytical Constructs
BPMN 2.0 Analytical ConstructsBPMN 2.0 Analytical Constructs
BPMN 2.0 Analytical Constructs
 
BPMN 2.0 Descriptive Constructs
BPMN 2.0 Descriptive Constructs  BPMN 2.0 Descriptive Constructs
BPMN 2.0 Descriptive Constructs
 
Introduction to Business Process Management
Introduction to Business Process ManagementIntroduction to Business Process Management
Introduction to Business Process Management
 
Customer Complaint Ontology
Customer Complaint Ontology Customer Complaint Ontology
Customer Complaint Ontology
 
Subset, Equality, and Exclusion Rules
Subset, Equality, and Exclusion RulesSubset, Equality, and Exclusion Rules
Subset, Equality, and Exclusion Rules
 
Schema Modularization in ORM
Schema Modularization in ORMSchema Modularization in ORM
Schema Modularization in ORM
 
On Computer Science Trends and Priorities in Palestine
On Computer Science Trends and Priorities in PalestineOn Computer Science Trends and Priorities in Palestine
On Computer Science Trends and Priorities in Palestine
 
Lessons from Class Recording & Publishing of Eight Online Courses
Lessons from Class Recording & Publishing of Eight Online CoursesLessons from Class Recording & Publishing of Eight Online Courses
Lessons from Class Recording & Publishing of Eight Online Courses
 
Presentation curras paper-emnlp2014-final
Presentation curras paper-emnlp2014-finalPresentation curras paper-emnlp2014-final
Presentation curras paper-emnlp2014-final
 
Jarrar: Future Internet in Horizon 2020 Calls
Jarrar: Future Internet in Horizon 2020 CallsJarrar: Future Internet in Horizon 2020 Calls
Jarrar: Future Internet in Horizon 2020 Calls
 
Habash: Arabic Natural Language Processing
Habash: Arabic Natural Language ProcessingHabash: Arabic Natural Language Processing
Habash: Arabic Natural Language Processing
 
Adnan: Introduction to Natural Language Processing
Adnan: Introduction to Natural Language Processing Adnan: Introduction to Natural Language Processing
Adnan: Introduction to Natural Language Processing
 
Riestra: How to Design and engineer Competitive Horizon 2020 Proposals
Riestra: How to Design and engineer Competitive Horizon 2020 ProposalsRiestra: How to Design and engineer Competitive Horizon 2020 Proposals
Riestra: How to Design and engineer Competitive Horizon 2020 Proposals
 
Bouquet: SIERA Workshop on The Pillars of Horizon2020
Bouquet: SIERA Workshop on The Pillars of Horizon2020Bouquet: SIERA Workshop on The Pillars of Horizon2020
Bouquet: SIERA Workshop on The Pillars of Horizon2020
 
Jarrar: Sparql Project
Jarrar: Sparql ProjectJarrar: Sparql Project
Jarrar: Sparql Project
 

Dernier

Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Disha Kariya
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 

Dernier (20)

Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 

Here are some key points about subset constraints:- A subset constraint specifies that the population of one role must be a subset of the population of another role. - It is used to model hierarchical or "is-a" relationships between roles.- A common example is an "Employee is-a Person" constraint, where the Employee role is a subset of the Person role.- Subset constraints help enforce integrity by ensuring all instances of one role are also instances of the other role.- They can be implied by other constraints like mandatory roles, so it's important to only specify explicit constraints.The example shown illustrates how a subset constraint may be redundant and unnecessary if it is already implied by another constraint like

  • 1. ‫أكاديمية الحكومة اإللكترونية الفلسطينية‬ The Palestinian eGovernment Academy www.egovacademy.ps Tutorial 1: Data and Business Process Modeling Session 5 Subtype Relations and Other Constraints Prof. Mustafa Jarrar Sina Institute, University of Birzeit mjarrar@birzeit.edu www.jarrar.info Reviewed by Prof. Marco Ronchetti, Trento University, Italy PalGov © 2011 1
  • 2. About This tutorial is part of the PalGov project, funded by the TEMPUS IV program of the Commission of the European Communities, grant agreement 511159-TEMPUS-1- 2010-1-PS-TEMPUS-JPHES. The project website: www.egovacademy.ps Project Consortium: Birzeit University, Palestine University of Trento, Italy (Coordinator ) Palestine Polytechnic University, Palestine Vrije Universiteit Brussel, Belgium Palestine Technical University, Palestine Université de Savoie, France Ministry of Telecom and IT, Palestine University of Namur, Belgium Ministry of Interior, Palestine TrueTrust, UK Ministry of Local Government, Palestine Coordinator: Dr. Mustafa Jarrar Birzeit University, P.O.Box 14- Birzeit, Palestine Telfax:+972 2 2982935 mjarrar@birzeit.eduPalGov © 2011 2
  • 3. © Copyright Notes Everyone is encouraged to use this material, or part of it, but should properly cite the project (logo and website), and the author of that part. No part of this tutorial may be reproduced or modified in any form or by any means, without prior written permission from the project, who have the full copyrights on the material. Attribution-NonCommercial-ShareAlike CC-BY-NC-SA This license lets others remix, tweak, and build upon your work non- commercially, as long as they credit you and license their new creations under the identical terms. PalGov © 2011 3
  • 4. Tutorial Map Intended Learning Objectives Topic Time Module 1 (Conceptual Date Modeling) Module I: Conceptual Data Modeling A: Knowledge and Understanding 11a1: Demonstrate knowledge of conceptual modeling notations and concepts Session 0: Outline and Introduction 11a2: Demonstrate knowledge of Object Role Modeling (ORM) methodology. Session 1.1: Information Modeling 1 11a3: Explain and demonstrate the concepts of data integrity & business rules Session 1.2: Conceptual Data Modeling using ORM 1 B: Intellectual Skills Session 1.3: Conceptual Analyses 1 11b1: Analyze application and domain requirements at the conceptual level, Session 2: Lab- Conceptual Analyses 3 and formalize it using ORM. Session 3.1: Uniqueness Rules 1.5 11b2: Analyze entity identity at the application and domain levels. Session 3.2: Mandatory Rules 1.5 11b4: Optimize, transform, and (re)engineer conceptual models. Session 4: Lab- Uniqueness & Mandatory Rules 3 11b5: Detect &resolve contradictions & implications at the conceptual level. Session 5: Subtypes and Other Rules 3 C: Professional and Practical Skills Session 6: Lab- Subtypes and Other Rules 3 11c1: Using ORM modeling tools (Conceptual Modeling Tools). Session 7.1: Schema Equivalence &Optimization 1.5 Module 2 (Business Process Modeling) Session 7.2: Rules Check &Schema Engineering 1.5 A: Knowledge and Understanding Session 8: Lab- National Student Registry 3 12a1: Demonstrate knowledge of business process modeling notations and concepts. Module II: Business Process Modeling 12a2: Demonstrate knowledge of business process modeling and mapping. 12a3: Demonstrate understand of business process optimization and re-engineering. Session 9: BP Management and BPMN: An Overview 3 B: Intellectual Skills Session 10: Lab - BP Management 3 12b1: Identify business processes. Session 11: BPMN Fundamentals 3 12b2: Model and map business processes. Session 12: Lab - BPMN Fundamentals 3 12b3: Optimize and re-engineer business processes. Session 13: Modeling with BPMN 3 C: Professional and Practical Skills Session 14: Lab- Modeling with BPMN 3 12c1: Using business process modeling tools, such as MS Visio. Session 15: BP Management & Reengineering 3 Session 16: Lab- BP Management & Reengineering 3 PalGov © 2011 4
  • 5. Session ILOs After completing this session students will be able to: 11a3: Explain and demonstrate the concepts of data integrity and business rules. 11b1: Analyze application and domain requirements at the conceptual level, and formalize it using ORM. 11b2: Analyze entity identity at the application and domain levels. PalGov © 2011 5
  • 6. Conceptual Schema Design Steps 1. From examples to elementary facts 2. Draw fact types and apply population check 3. Combine entity types 4. Add uniqueness constraints 5. Add mandatory constraints 6. Add subtype relations and other constraints 7. Final checks, & schema engineering issues PalGov © 2011 6
  • 7. Outline • Quick Math background • Value Constraints • Set Constrains o Subset o Equality o Exclusion • Subtype relations • Frequency constraints PalGov © 2011 7
  • 8. Mathematical Background Hypothetical Euler diagrams for set comparisons. PalGov © 2011 8
  • 9. Mathematical Background Venn diagrams for three set-forming operations. PalGov © 2011 9
  • 10. Mathematical Background Venn diagrams for (a) A is a proper subset of B and (b) four sets. PalGov © 2011 10
  • 11. Outline • Quick Math background • Value Constraints • Set Constrains o Subset o Equality o Exclusion • Subtype relations • Frequency constraints PalGov © 2011 11
  • 12. Value Constraint Called Value Constraint A set of values, from which the value of the MedalKind is limited to PalGov © 2011 12
  • 13. Value Constraint The value of sex should be one of {„M‟, „F‟} PalGov © 2011 13
  • 14. Value Constraint Value constraints may list the possible values of a value type.  Who can give more examples? PalGov © 2011 14
  • 15. Outline • Quick Math background • Value Constraints • Set Constrains o Subset o Equality o Exclusion • Subtype relations • Frequency constraints PalGov © 2011 15
  • 16. Role subset/equality constraint Subset constraint: Equality constraint: Every Member booked an Hour Every Member „has‟ ReactionTime should play sport. should „has‟ HeartRate, and every Member „has‟ HeartRate should „has‟ ReactionTime. PalGov © 2011 16
  • 17. Role subset constraint Notice that this subset constraint is implied, and should be removed. That is, there is no need to say that every A playing r2 must also play r1 (subset), because the mandatory constraint here means that every A must play r1 (the Mandatory implies the subset). PalGov © 2011 17
  • 18. Role equality constraint Also this quality constraint is implied, and should be removed. PalGov © 2011 18
  • 19. Implication Who can explain the difference? The two constraints in the first model say: each A must play r1 or r2 (or both), and that if A plays r2 then it must play r1. This means that r1 must be always played (which is the second model) PalGov © 2011 19
  • 20. Role Exclusion Constraint Exclusion constraint: Every Employee is allocated a ParkingSpace should not claim MoneyAmt. PalGov © 2011 20
  • 21. Role Exclusion Constraint PalGov © 2011 21
  • 22. Role Exclusion Constraint Each partner must be either a husband or wife (but not both at the same time). Called “Exclusive-or” PalGov © 2011 22
  • 23. Exclusive-or (another example) Each Account must be OwnedBy a Person or a Company, but not both. PalGov © 2011 23
  • 24. Role Exclusion Constraint Each person has at most one of three vices. i.e., from 0 to 3 vices. It can be written also as PalGov © 2011 24
  • 25. Pair Exclusion Constraint How can we restrict that a person can drive a car only if he owns that car. PalGov © 2011 25
  • 26. Pair-subset constraint An example of a tuple-subset constraint between sequences of three roles. PalGov © 2011 26
  • 27. Equality Constraint PalGov © 2011 27
  • 28. Pair Exclusion Constraint Can the same person „own‟ and „wants to buy‟ the same car? PalGov © 2011 28
  • 29. What is Wrong?      Implies Implies Implies PalGov © 2011 29
  • 30. Outline • Quick Math background • Value Constraints • Set Constrains o Subset o Equality o Exclusion • Subtype relations • Frequency constraints PalGov © 2011 30
  • 31. Subtypes Person Male Female • Generalization/Specialization hierarchy. • A subtype inherits the properties of its supertype. PalGov © 2011 31
  • 32. Subtypes Person * Australian Female Female Australian * The indirect subtype connection is implied, so it should be omitted PalGov © 2011 32
  • 33. Subtypes PalGov © 2011 33
  • 34. Subtypes Person Person Person Male Female Male Female Male Female There is no person that Every person must be a Every person must be can be Male and Female Male or a female. either a Male or a Female at the same time. PalGov © 2011 34
  • 35. Subtypes What is Inherited? PalGov © 2011 35
  • 36. What is Wrong? PalGov © 2011 36
  • 37. Outline • Quick Math background • Value Constraints • Set Constrains o Subset o Equality o Exclusion • Subtype relations • Frequency constraints also called “Occurrence constraints” PalGov © 2011 37
  • 38. Frequency constraints To indicate that each entry in a fact column must occur there exactly n times, the number n is written beside the role. Each city in the first column must occur each drive kind in the three times. Second column must appear there twice A compound transaction is needed to initially populate this fact type requiring at least six facts to be added. PalGov © 2011 38
  • 39. Frequency constraints n A r Each member of pop(r) occurs there exactly n times. n must be a positive integer. 1 A r A r If n = 1, this is equivalent to a uniqueness constraint PalGov © 2011 39
  • 40. Compound Frequency Constraint The values of (Year and City) must occur exactly three times PalGov © 2011 40
  • 41. Ranged Frequency Constraint Examples of minimum and maximum frequency constraints. Each name of panel must occur at least 4 and at most 7 times. That is, each panel must include 4 to 7 experts Each expert can referee 5 papers Each paper can be refereed by at least two experts. PalGov © 2011 41
  • 42. Discussion Summarize what you learned? And what you think about it? Compare what you learned with EER and UML? Questions & Suggestions? PalGov © 2011 42
  • 43. References 1. Information Modeling and Relational Databases: From Conceptual Analysis to Logical Design, Terry Halpin (ISBN 1- 55860-672-6) – Chapter 6. PalGov © 2011 43