SlideShare a Scribd company logo
1 of 49
Download to read offline
‫أكاديمية الحكومة اإللكترونية الفلسطينية‬
         The Palestinian eGovernment Academy
                          www.egovacademy.ps



 Tutorial 1: Data and Business Process Modeling

                         Session 7.2
Final Check and Schema Engineering Issues

                  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.


    11b5: Detect and resolve contradictions and implications at the
    conceptual level.


    11b4: Optimize, transform, and (re)engineer conceptual models.




                               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 set, subtype, & frequency constraints

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


• Final Check
   o Rules Implications
   o Rules Contradictions
   o Modeling Tips (Check List)

• Rules Verbalization
• Schema equivalence and Optimization
• Schema Modularization




                      PalGov © 2011     7
Constraint Implications (Examples)

Some constraints may imply each other (see cases below), the implied
constraint should be removed because it complicates the model without
bringing any value.




 Many different examples are given in previous chapters
                               PalGov © 2011                            8
Outline


• Final Check
   o Rules Implications
   o Rules Contradictions
   o Modeling Tips (Check List)

• Rules Verbalization
• Schema Equivalence and Optimization
• Schema Modularization




                      PalGov © 2011     9
Constraint Contradictions (Examples)

Some constraints may contradict each other (see cases below).


        D will never be                                C will never be populated,
        populated, because of                          because A ad B are
        the exclusive constraint                       disjoint by definition.



              One of the roles (r1, r2, or r3) will never be populated,
              because we have only two values possible „a1‟ and „a2‟

                 Due to the frequency constraint, there should be at least two
                 different values to populate r1. In order to populate r3, we
                 need, by the exclusion constraint, a value different from the
                 two for role r1. In total, we thus need three different values in
                 order to be able to populate both r1 and r2, but this
                 contradicts with the value constraint on object-type A: we only
                 have 2 values at our disposal.
                               PalGov © 2011                                    10
Constraint Contradictions (Examples)



the uniqueness constraint indicates that the role r1 should be played by at most
one element, while the frequency constraint demands that there are at least 2
and at most 5 participants in the role. It is thus impossible to populate r1.




If the frequency constraint 3-5 on r1 is satisfied, each instance of A must play
r1 at least three times, and thus three different instances of B are required.
However, there are only two possible instances of B, which are declared by the
value constraint {„x1‟, „x2‟}. Thus r1 cannot be populated.



                             Who can tell where the contradictions are?


                                   PalGov © 2011                                   11
Constraint Contradictions (Examples)

                            The exclusion constraint between the two roles r1
                            and r3 means that their populations should be
                            distinct. However, in order to satisfy the subset
                            constraint between the relations (r1; r2) and (r3;
                            r4), the populations of r1 and r3 should not be
                            distinct. In other words, the exclusion constraint
                            between roles r1 and r3 implies an exclusion
                            constraint between the relations (r1; r2) and (r3;
                            r4), which contradicts any subset or equality
                            constraints between both predicates.



 Many different examples are given in previous chapters

 Any Idea how to detect such contradictions automatically?



                               PalGov © 2011                                12
Reasoning on ORM Schemes

                   3-5

                                    {Math1, Prog1}
                  Teaches
    Person                         Course


                  Studies




 Schema satisfiability: A schema is satisfiable if and only if there is at
  least one concept in the schema that can be populated.           Weak satisfiability

 Concept satisfiability: A schema is satisfiable if and only if all
  concepts in the schema can be populated.

 Role satisfiability: A schema is satisfiable if and only if all roles in the
  schema can be populated.                                             Strong satisfiability

     Concept satisfiability implies schema satiability.
     Role satisfiability implies concept satiability.
                                        PalGov © 2011                                     13
Schema Satisfiability
                                                            Weak satisfiability

         A schema is satisfiable if and only if there is at least one concept in
         the schema that can be populated.

                                               Schema-Satisfiable,
                                                   because A, B, and C can be populated



               3-5           {Math1, Prog1}    Schema-Satisfiable,
Person                      Course            As both concepts alone (Person & Courses)
              Teaches                         can be populated, although the roles cannot
 P1                           Math1
 P2
                     - -
                              Prog1           be populated.


               3-5           {Math1, Prog1}    Schema-Unsatisfiable,
Person                      Course            As both concepts alone (Person &Courses)
              Teaches                         can be populated, although the roles cannot
  -                  - -       -              be populated.

                                          PalGov © 2011                               14
Concept Satisfiability

         A schema is satisfiable if and only if all concepts in the schema can be
           populated.


                                                Concept-Unsatisfiable,
                                                because there is one concept (i.e. D) that
                                               cannot be populated.


               3-5            {Math1, Prog1}    Concept-Satisfiable,
Person                       Course            As all concepts can be populated, although
              Teaches                          the roles cannot be populated.
 P1                            Math1
                     - -
 P2                            Prog1


               3-5           {Math1, Prog1}     Concept-Unsatisfiable,
Person                       Course            As no concepts can be populated, because
              Teaches
                                               of the mandatory constraints.
  -                  - -        -

                                          PalGov © 2011                                  15
Role Satisfiability
                                                      Strong satisfiability

  A schema is satisfiable if and only if all roles in the schema can be
    populated.

            3-5           {Math1, Prog1}    Role-Unsatisfiable,
Person                   Course            As no roles can be populated.
           Teaches




           3-5           {Math1, Prog1}     role-Unsatisfiable,
Person                   Course            As all roles cannot be populated.
          Teaches


           3-5
                                            role-Unsatisfiable,
                         {Math1, Prog1}    As not all roles can be populated.
          Teaches -
            -
Person                   Course



          Reviews
            P1 Math1
            P1 Prog1                PalGov © 2011                               16
Role Satisfiability
                                                      Strong satisfiability

  A schema is satisfiable if and only if all roles in the schema can be
    populated.

            3-5           {Math1, Prog1}    Role-Unsatisfiable,
Person                   Course            As no roles can be populated.
          Teaches


            Although it is a strong requirement, but we
           3-5
               recommend that your role-Unsatisfiable,
                       {Math1, Prog1}  conceptual model
Person                Course Role Satisfiable.
                         is           As all roles cannot be populated.
          Teaches


           3-5
                                            role-Unsatisfiable,
                         {Math1, Prog1}    As not all roles can be populated.
          Teaches
Person      -       -    Course



          Reviews
            P1 Math1
            P1 Prog1                PalGov © 2011                               17
DogmaModeler
                                    http://www.jarrar.info/Dogmamodeler/

Is the only tool that can detect constraint contradiction for ORM




                                 PalGov © 2011                             18
DogmaModeler
                                    http://www.jarrar.info/Dogmamodeler/

Is the only tool that can detect constraint contradiction for ORM




                                 PalGov © 2011                             19
DogmaModeler
                                    http://www.jarrar.info/Dogmamodeler/

Is the only tool that can detect constraint contradiction for ORM




                                 PalGov © 2011                             20
Outline


• Final Check
   o Rules Implications
   o Rules Contradictions
   o Modeling Tips (Check List)

• Rules Verbalization
• Schema Equivalence and Optimization
• Schema Modularization




                      PalGov © 2011     21
Modeling Tips and Common Mistakes
     (for beginners)

   Check each role in the model, whether it should be unique?
   Check each role in the model, whether it should be Mandatory?
   Check each entity (Object Type) whether it has an identity?
   Check each leaf nodes whether should be Value Type?
   Check each value constraint whether it placed on Value Type only?
   The syntax of values and ranges in value constraints is correct.
   Check each subtype, that it is playing some roles.
   External uniqueness and disjunctive mandatory constraints are
    placed on the correct roles.
   Preferred: If you have subtypes, then their supper type should have
    a value constraint.



                              PalGov © 2011                            22
Modeling Tips and Common Mistakes
         (for beginners)
    Role names:
        At least one role, in each relation, has a label.
        Names should be correct, expressive, and meaningful
        Naming style: for example “WorksFor”, “AffiliatedWith”, “IsOf”, etc.
    Concept Names:
        Should be expressive and meaningful (as used in the domain), correct translation
        Naming style: for example “FacultyMember”, “NaturalPerson”
        Don‟t use plural as concept labels (e.g., students, courses)
    ReadabilityBeauty of the Diagrams
     place related properties beside each other (country, city…) or (name, fname, lname).
     Flip roles if needed.
     Lines are straight, and the whole diagram is balanced (as much as you can)
     Page layout is landscape if needed.
     The sizes of the concepts are equal, unless you what to emphasize the main concepts.
     Important concepts are placed in the middle, and all concepts are aligned.
     Roles are aligned and similar roles have the size.
     Populate a page as much as you can (BUT NOT too much)
     Do not clone concepts if not necessary
     Modularize a large diagram into pages (but keep very related concepts in the same
      page).first pages contain the most important
     Write your project details (name, course, year, project#, date,….) in each page.
                                       PalGov © 2011                                        23
Outline


• Final Check
   o Rules Implications
   o Rules Contradictions
   o Modeling Tips (Check List)

• Rules Verbalization
• Schema Equivalence and Optimization
• Schema Modularization




                      PalGov © 2011     24
Rules Verbalization

       Verbalization is the process of writing the semantics captured by the
       ORM constrains as pseudo-natural language (fixed-syntax) sentences.



                                                         Notice that these verbalizations
                                                          can be generated atomically
                                                              using fixed templates



- Subsumption: Each Manager must be a type of Person.
- Mandatory: Each Person must Has at least one Name.
- Mandatory: Each Person must Has at least one BirthDate.
- InterUniqueness: The combination of {BirthDate, Name} must refer to at most one Person.
- Equality: Each Person WorksFor a Company must AffliatedWith that Company, and vice versa.
- Subset: Each Manager who Manages a Company must WorksFor that Company.
- ExMandatory: Each Account OwnedBy a Person or OwnedBy a Company, or both.
- Exclusion: No Account can be OwnedBy a Company and OwnedBy a Person.
                                         PalGov © 2011                                   25
Rules Verbalization

       Verbalization is the process of writing the semantics captured by the
       ORM constrains as pseudo-natural language (fixed-syntax) sentences.



                                               Notice that these verbalizations
        This pseudo-natural language is understandable for domain
                                                 can be generated atomically
         experts, which enables them to help in the modeling process, as
                                                    using fixed templates
         they can review whether the rules are correct.

        See http://www.jarrar.info/orm/verbalization/
         which offers templates for verbalizing ORM in 10 languages
- Subsumption: Each Manager must be a type of Person.
- Mandatory: Each Person must Has at least one Name.
- Mandatory: Each Person must Has at least one BirthDate.
- InterUniqueness: The combination of {BirthDate, Name} must refer to at most one Person.
- Equality: Each Person WorksFor a Company must AffliatedWith that Company, and vice versa.
- Subset: Each Manager who Manages a Company must WorksFor that Company.
- ExMandatory: Each Account OwnedBy a Person or OwnedBy a Company, or both.
- Exclusion: No Account can be OwnedBy a Company and OwnedBy a Person.
                                         PalGov © 2011                                   26
An ORM model with many constraints




              PalGov © 2011          27
Verbalization of the constraints (English)
-[Mandatory] Each Person must Has at least one PassPortNr.
-[Mandatory] Each Person must Has at least one BirthDate.
-[Mandatory] Each Account should be Owned-By Company or Owned-By Person.
-[Uniqueness] Each Person must Has at most one BirthDate.
-[Uniqueness] Each Person must Has at most one Name.
-[Uniqueness] Each Person must Has at most one PassPortNr.
-[Uniqueness] Each PassPortNr must IsOf at most one Person.
-[Uniqueness] It is possible that Person teaches more than one Course , and vice versa.
-[Uniqueness] It is possible that Person Reviews more than one Book , and vice versa.
-[Uniqueness] It is possible that Person Writes more than one Book , and vice versa.
-[Uniqueness] It is possible that Person Drivers more than one Car , and vice versa.
-[Uniqueness] The combination of { BirthDate and Name } must refer to at most one Person.
-[Exclusive] Each Person should be either Woman or Man.
-[Totality] Each Person must be, at least, Man or Woman.
-[Subset] If Person Drivers Car then this Person AuthorisedWith Driving Licence.
-[Subset] If Manager manages Company then this Person WorksFor that Company.
-[Equality] Person WorksFor University if and only if this Person teaches Course.
-[Equality] Person AffiliatedWith Company if and only if this Person WorksFor that Company.
-[Exclusion] No Account Owned-By Company and also Owned-By Person.
-[Exclusion] No Person Writes Book and also Reviews that Book.
-[Value] The possible instances of Country are :{Belgium, France, Germany}
-[Irreflexive] No Person ColleagueOf it/him self.
-[Symmetric] If Person X ColleagueOf Person Y, it must be vice versa.
-[Acyclic] Person cannot be directly (or indirectly through a chain) SuperiorOf it/him self .
-[Acyclic] Woman cannot be directly (or indirectly through a chain) SisterOf it/him self .
-[Asymmetric] If Person X WifeOf Person Y, it cannot be vice versa .
-[Intransitive] If Person X ParentOf Person Y, and Y ParentOf Z, then it cannot be that X ParentOf Z.
-[Frequency] If Person Teaches Course, then this Person Teaches at least 3 and at most 6 Course(s). 28
                                             PalGov © 2011
Same Example in Arabic




              PalGov © 2011   29
‫)‪Verbalization of all constraints (Arabic‬‬
                                                                      ‫-]‪ [Mandatory‬كل إِ ْنسان له رقم جواز سفر االقل‬
                                                                                 ‫َْ ََ ُ ََ‬
                                                            ‫-]‪ [Mandatory‬كل إِ ْنسان له تارخ مِيالد واحد على االقل‬
                                           ‫-]‪ [Mandatory‬كل حساب يجب ان يكون مملوك النسان او مملوك لشركة‬
                                                       ‫-]‪ [Uniqueness‬كل انسان له تاريخ ميالد واحد على االكثر‬
                                                                   ‫-]‪ [Uniqueness‬كل انسان له اسم واحد على االكثر‬
                                                    ‫-]‪ [Uniqueness‬كل انسان له رقم جواز سفر واحد على االكثر‬
                                                      ‫-]‪ [Uniqueness‬كل رقم جواز سفر النسان واحد على االكثر‬
                                          ‫-]‪ [Uniqueness‬كل انسان يمكن ان يدرس اكثر من مادة والعكس صحيح‬
                                           ‫-]‪ [Uniqueness‬كل انسان يمكن ان يؤلف اكثر من كتاب والعكس صحيح‬
                                     ‫-]‪ [Uniqueness‬كل انسان يمكن ان يعلق على اكثر من كتاب والعكس صحيح‬
                                          ‫-]‪ [Uniqueness‬كل انسان يمكن ان يقود اكثر من سيارة والعكس صحيح‬
                                  ‫-]‪ [Uniqueness‬اتحاد كل من تاريخ ميالد واسم يشير الى انسان واحد على االكثر‬
                                                         ‫-]‪ [Exclusive‬كل انسان يمكن ان يكون اما رجل او اِمْ رأَة‬
                                                            ‫َ‬
                                                                     ‫-]‪ [Totality‬كل انسان يجب ان يكون رجل او اِمْ رأَة‬
                                                                        ‫َ‬
                                              ‫-]‪ [Subset‬اذا انسان يقود سيارة فان هذا االنسان مخول برخصة سياقة‬
                                                   ‫-]‪ [Subset‬اذا مديريديرشركة فان هذا المديريعمل في هذة الشركة‬
                                         ‫-]‪ [Equality‬كل انسان يعمل في جامعة اذا و فقط اذا هذا االنسان يدرس مادة‬
                                ‫-]‪ [Equality‬كل انسان منسوب لشركة اذا و فقط اذا هذا االنسان يعمل في هذة الشركة‬
                             ‫-]‪ [Exclusion‬ال يمكن ان يكون حساب مملوك ال نسان و في نفس الوقت مملوك لشركة‬
                           ‫-]‪ [Exclusion‬ال يمكن ان يكون انسان يعلق على كتاب و في نفس الوقت يؤلف ذلك كتاب‬
                                                          ‫-]‪ [Value‬القيم الممكنة ل دولة هي:} بلجيكا, فرنسا, المانيا{‬
                                                                   ‫-]‪ [Irreflexive‬ال يجوز النسان ان يكون زميل لنفسه‬
                                                      ‫-]‪ [Symmetric‬اذا انسان س زميل ل ص,فان العكس بالعكس‬
                                 ‫-]‪ [Acyclic‬اليمكن النسان ان يكون )بطريقة مباشرة او غير مباشرة( اب او ام لنفسه‬
                              ‫-]‪ [Acyclic‬اليمكن النسان ان يكون )بطريقة مباشرة او غير مباشرة( مشرف على نفسه‬
                                           ‫-]‪ [Asymmetric‬اذا انسان س زوجة النسان ص, فان العكس غير صحيح‬
   ‫-]‪ [Intransitve‬ل ج اذا انسان س اب او ام النسان ص, و ص اب او ام النسان ج, فانه اليمكن ان يكون س اب او ام‬
                          ‫03 -]‪ [Frequency‬اذا االنسان يدرس مادة, فان هذا االنسان يجب ان © ‪ PalGov‬الى 3 مادة‬
                                      ‫1102 يدرس بين 2‬
Outline


• Final Check
   o Rules Implications
   o Rules Contradictions
   o Modeling Tips (Check List)

• Rules Verbalization
• Schema Equivalence and Optimization
• Schema Modularization




                      PalGov © 2011     31
Schema Equivalence and Optimization


• It is not surprising that people often come up with different ways (i.e.,
  deferent conceptual models) of describing the same reality.

• Two conceptual schemas are equivalent if and only if whatever UoD
  state or transition can be modeled in one can also be modeled in the
  other.

• What is the difference between these two schemes:




   The act of reshaping two equivalent schemes like this is said to
    be a conceptual schema transformation.
                             PalGov © 2011                               32
Schema Equivalence and Optimization

• Skills of schema transformations helps us to see what different
  design choices are possible.

• Moreover, if two independently developed schemas are to be either
  fully or partly integrated, we often need to resolve the differences in
  the ways that each schema models common UoD features.

• To do this, we need to know whether one representation can be
  transformed into the other, and if so, how.
• Another use of conceptual schema transformations is to reshape the
  original conceptual schema into one that maps directly to a more
  efficient implementation, or to more conceptually elegant schema.

• This process is known as conceptual schema optimization.

There are two class of schema transformations:
     Predicate Specialization, and Predicate Generalization
                             PalGov © 2011                                  33
Predicate Specialization and Generalization

   If two or more predicates may be thought of as special cases of a more
   general predicate, then we may replace them by the more general
   predicate, so long as the original distinction can be preserved in some way.




We generalize smoking and drinking into indulging in a vice, where vice has
two specific cases. If we transform in the opposite direction, we specialize
indulging in a vice into two predicates, one for each case.




                                  PalGov © 2011                                34
Predicate Specialization and Generalization

If two or more predicates may be thought of as special cases of a more
general predicate, then we may replace them by the more general
predicate, so long as the original distinction can be preserved in some way.


                                                         ?

Because there are exactly three kinds of medals, the ternary may be
specialized into three binaries, one for each medal kind,


                                                 Where m1, and each Si corresponds
                                                 to R where B = bi



  Theory: R may be specialized into S1..Sn by absorbing B.
                                 PalGov © 2011                                    35
Predicate Specialization and Generalization

The previous theorem always holds, but any constraint added to one of the
schemas must be translated into an equivalent, additional constraint on the
other schema.



                                                            Each Si corresponds to
                                                            R where B = bi




   The UC on the left is equivalent to the UCs on the right.


   If a UC in R spans a combination of B’s role and other roles, a UC
    spans the specialization of these other roles in S1,..,Sn, and conversely.


                                 PalGov © 2011                                   36
Predicate Specialization and Generalization


                                          ?
   The UC on the left is equivalent to the exclusion constraint on the right.


                                                ?
   The UC on the left is equivalent to the exclusion constraint on the right.

                                                              Where m1, and each
                                                              Si corresponds to R
                                                              where B = bi

   The UC on the left is equivalent to the exclusion constraint on the right.
If a UC spans all roles of R except for B’s role, then S1 .. Sn are mutually
exclusive, and conversely.
                                PalGov © 2011                                   37
Predicate Specialization and Generalization




                                                         ?

if any medal results are recorded for a country, all three medal results (gold, silver,
and bronze) are required. To express, we add an equality constraint between the
medal winning roles played by Country.


 If R is a ternary with a UC spanning just B’s role and one other role, then
  adding a frequency constraint of n to this other role is equivalent to adding an
  equality constraint over the specialized versions of that role.



                                       PalGov © 2011                                      38
Predicate Specialization and Generalization

  The impact of adding mandatory role and frequency constraints.



                                                         ?

                                                                      Each S corresponds
                                                                      to R where B = bi




 If A’s role (or role disjunction) in R is mandatory, then the disjunction of its
  specialized roles is mandatory, and conversely (1 i  m).
 If R is a ternary with a UC spanning just B’s role and one other role, then adding a
  mandatory role constraint and frequency constraint of n (the number of possible
  values for B) to this other role is equivalent to making each specialized version of that
  role mandatory.                     PalGov © 2011                                     39
Other Cases and Examples



                                               ?

Each car in the rally has two drivers (a main driver and a backup
driver), and each person drives exactly one car.


The drives predicate is specialized by absorbing Status.




                              PalGov © 2011                         40
Other Cases and Examples

                                                                      Each Si corresponds
                                                                      to R where T is
                                                                      restricted to B = bi




    Theory: R may be specialized into S1..Sn by absorbing B.

 Corollary 1: If s roles are mandatory in the left-hand schema, the disjunction of s
  roles in the right-hand schema is mandatory, and conversely.
 Corollary 2: If an external UC spans the roles of and in the left-hand schema, then a
  UC applies to each of s roles in the right-hand schema, and conversely.
 Corollary 3: If s role in the left-hand schema is mandatory, then each of s roles in
  the right-hand schema is mandatory, and conversely.
 Corollary 4: An equality constraint over s roles in the RHS is equivalent to a
  frequency constraint of on s role in the left-hand schema; this constraint is
  strengthened to if a UC exists on each of s roles in the right-hand schema.
                                       PalGov © 2011                                     41
Other Cases and Examples

                 Can the predicate be specialized?



                                ?               ?




• Transforming from the original schema to one of those strengthens the
  schema by adding information.
• Transforming in the opposite direction weakens the schema by losing
  information.
 Any such transformations that add or lose information should be the result
  of conscious decisions that are acceptable to the client (for which the
  business domain is being modeled).
                                PalGov © 2011                             42
Other Cases and Examples



                                                                  Each Si corresponds to
                                                                  one instance of R




     Theory: The left-hand schema implies the right-hand schema.


Corollary 1:If an equality constraint applies over s roles in the left-hand schema, then
the frequency constraint in the right-hand schema is strengthened to , and conversely.

Corollary 2: Adding a UC to role in the right-hand schema is equivalent in the left-
hand schema to adding UCs to s roles (making the S 1:1) and strengthening the
exclusion constraint to an exclusion constraint over s roles.
                                       PalGov © 2011                                       43
Outline


• Final Check
   o Rules Implications
   o Rules Contradictions
   o Modeling Tips (Check List)

• Rules Verbalization
• Schema Equivalence and Optimization
• Schema Modularization




                      PalGov © 2011     44
Modularization




                                  Develop a conceptual
                                   schema as a set of
                                   modules and later
                                   compose to form one
                                   module.

                 PalGov © 2011                            45
Modularization




                 PalGov © 2011   46
Modularization




Why to modularize?
Because Modules are:
Easier to reuse .1
Easier to build, maintain, and replace .2
Enable distributed development of modules .3
Enable the effective management and browsing .4


                   PalGov © 2011                  47
Modularization



                           When to Modularize?
                                Modularity criteria:
         Subject-oriented, related facts describing .1
                                same subject matter.
               Purpose/Task-oriented, related facts .2
                               describing same task.
      Stability, parts of the model that are not sure .3
                     about or might be changed, etc.




                  PalGov © 2011                            48
References

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

2. Mustafa Jarrar: Towards methodological principles for ontology
   engineering. PhD Thesis. Vrije Universiteit Brussel. (May 2005)

3. Mustafa Jarrar and Robert Meersman: Ontology Engineering -
   The DOGMA Approach. Book Chapter in "Advances in Web
   Semantics I". Chapter 3. Pages 7-34. LNCS 4891,
   Springer.ISBN:978-3540897835. (2008).



                               PalGov © 2011                         49

More Related Content

What's hot

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
 
Quality assurance 11x17
Quality assurance 11x17Quality assurance 11x17
Quality assurance 11x17swiss1234
 
Quality assurance 11x17
Quality assurance 11x17Quality assurance 11x17
Quality assurance 11x17swiss1234
 
Pal gov.tutorial3.session10.lab4
Pal gov.tutorial3.session10.lab4Pal gov.tutorial3.session10.lab4
Pal gov.tutorial3.session10.lab4Mustafa Jarrar
 
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
 
3 f6 8_databases
3 f6 8_databases3 f6 8_databases
3 f6 8_databasesop205
 

What's hot (11)

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
 
CG2010 Introducing MDSD
CG2010 Introducing MDSDCG2010 Introducing MDSD
CG2010 Introducing MDSD
 
Quality assurance 11x17
Quality assurance 11x17Quality assurance 11x17
Quality assurance 11x17
 
Quality assurance 11x17
Quality assurance 11x17Quality assurance 11x17
Quality assurance 11x17
 
Pal gov.tutorial3.session10.lab4
Pal gov.tutorial3.session10.lab4Pal gov.tutorial3.session10.lab4
Pal gov.tutorial3.session10.lab4
 
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
 
3 f6 8_databases
3 f6 8_databases3 f6 8_databases
3 f6 8_databases
 
Lifecycle
LifecycleLifecycle
Lifecycle
 
Online Tv Music Channel
Online Tv Music ChannelOnline Tv Music Channel
Online Tv Music Channel
 
TOOLS USA01.ppt
TOOLS USA01.pptTOOLS USA01.ppt
TOOLS USA01.ppt
 

Similar to Pal gov.tutorial1.session7 2.finalcheckandschemaengineeringissues

Business Process Modeling Notation Fundamentals
Business Process Modeling Notation FundamentalsBusiness Process Modeling Notation Fundamentals
Business Process Modeling Notation FundamentalsMustafa Jarrar
 
Pal gov.tutorial1.session15 16
Pal gov.tutorial1.session15 16Pal gov.tutorial1.session15 16
Pal gov.tutorial1.session15 16Mustafa Jarrar
 
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.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.session1.soa
Pal gov.tutorial3.session1.soaPal gov.tutorial3.session1.soa
Pal gov.tutorial3.session1.soaMustafa Jarrar
 
Pal gov.tutorial3.session13.bpel
Pal gov.tutorial3.session13.bpelPal gov.tutorial3.session13.bpel
Pal gov.tutorial3.session13.bpelMustafa Jarrar
 
Pal gov.tutorial3.session0.outline
Pal gov.tutorial3.session0.outlinePal gov.tutorial3.session0.outline
Pal gov.tutorial3.session0.outlineMustafa Jarrar
 
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
 
W4 ucl@md day2011
W4 ucl@md day2011W4 ucl@md day2011
W4 ucl@md day2011MDDAY11
 
Chapter1 conventional softwaremanagement (1)
Chapter1 conventional softwaremanagement (1)Chapter1 conventional softwaremanagement (1)
Chapter1 conventional softwaremanagement (1)Jkumararaja
 
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.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
 
chapter1-convehisudhiusdiudiudsiusdiuddsdshdibsdiubdsjxkjxjntionalsoftwareman...
chapter1-convehisudhiusdiudiudsiusdiuddsdshdibsdiubdsjxkjxjntionalsoftwareman...chapter1-convehisudhiusdiudiudsiusdiuddsdshdibsdiubdsjxkjxjntionalsoftwareman...
chapter1-convehisudhiusdiudiudsiusdiuddsdshdibsdiubdsjxkjxjntionalsoftwareman...WrushabhShirsat3
 
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
 
PerformanceG2 Cognos Training Course Catalog 2011
PerformanceG2 Cognos Training Course Catalog 2011PerformanceG2 Cognos Training Course Catalog 2011
PerformanceG2 Cognos Training Course Catalog 2011PerformanceG2, Inc.
 
SADP PPTs of all modules - Shanthi D.L.pdf
SADP PPTs of all modules - Shanthi D.L.pdfSADP PPTs of all modules - Shanthi D.L.pdf
SADP PPTs of all modules - Shanthi D.L.pdfB.T.L.I.T
 
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
 

Similar to Pal gov.tutorial1.session7 2.finalcheckandschemaengineeringissues (20)

Business Process Modeling Notation Fundamentals
Business Process Modeling Notation FundamentalsBusiness Process Modeling Notation Fundamentals
Business Process Modeling Notation Fundamentals
 
Pal gov.tutorial1.session15 16
Pal gov.tutorial1.session15 16Pal gov.tutorial1.session15 16
Pal gov.tutorial1.session15 16
 
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.session8.national student registry
Pal gov.tutorial1.session8.national student registryPal gov.tutorial1.session8.national student registry
Pal gov.tutorial1.session8.national student registry
 
DP PPTS by BK.pptx
DP PPTS by BK.pptxDP PPTS by BK.pptx
DP PPTS by BK.pptx
 
Pal gov.tutorial3.session1.soa
Pal gov.tutorial3.session1.soaPal gov.tutorial3.session1.soa
Pal gov.tutorial3.session1.soa
 
Pal gov.tutorial3.session13.bpel
Pal gov.tutorial3.session13.bpelPal gov.tutorial3.session13.bpel
Pal gov.tutorial3.session13.bpel
 
Pal gov.tutorial3.session0.outline
Pal gov.tutorial3.session0.outlinePal gov.tutorial3.session0.outline
Pal gov.tutorial3.session0.outline
 
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
 
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
 
0. About this course
0. About this course0. About this course
0. About this course
 
W4 ucl@md day2011
W4 ucl@md day2011W4 ucl@md day2011
W4 ucl@md day2011
 
Chapter1 conventional softwaremanagement (1)
Chapter1 conventional softwaremanagement (1)Chapter1 conventional softwaremanagement (1)
Chapter1 conventional softwaremanagement (1)
 
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...
 
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
 
chapter1-convehisudhiusdiudiudsiusdiuddsdshdibsdiubdsjxkjxjntionalsoftwareman...
chapter1-convehisudhiusdiudiudsiusdiuddsdshdibsdiubdsjxkjxjntionalsoftwareman...chapter1-convehisudhiusdiudiudsiusdiuddsdshdibsdiubdsjxkjxjntionalsoftwareman...
chapter1-convehisudhiusdiudiudsiusdiuddsdshdibsdiubdsjxkjxjntionalsoftwareman...
 
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
 
PerformanceG2 Cognos Training Course Catalog 2011
PerformanceG2 Cognos Training Course Catalog 2011PerformanceG2 Cognos Training Course Catalog 2011
PerformanceG2 Cognos Training Course Catalog 2011
 
SADP PPTs of all modules - Shanthi D.L.pdf
SADP PPTs of all modules - Shanthi D.L.pdfSADP PPTs of all modules - Shanthi D.L.pdf
SADP PPTs of all modules - Shanthi D.L.pdf
 
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
 

More from 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
 

More from 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
 

Recently uploaded

Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
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
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfChris Hunter
 
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
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701bronxfugly43
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 

Recently uploaded (20)

Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
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 ...
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
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
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 

Pal gov.tutorial1.session7 2.finalcheckandschemaengineeringissues

  • 1. ‫أكاديمية الحكومة اإللكترونية الفلسطينية‬ The Palestinian eGovernment Academy www.egovacademy.ps Tutorial 1: Data and Business Process Modeling Session 7.2 Final Check and Schema Engineering Issues 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. 11b5: Detect and resolve contradictions and implications at the conceptual level. 11b4: Optimize, transform, and (re)engineer conceptual models. 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 set, subtype, & frequency constraints 7. Final checks, & schema engineering issues PalGov © 2011 6
  • 7. Outline • Final Check o Rules Implications o Rules Contradictions o Modeling Tips (Check List) • Rules Verbalization • Schema equivalence and Optimization • Schema Modularization PalGov © 2011 7
  • 8. Constraint Implications (Examples) Some constraints may imply each other (see cases below), the implied constraint should be removed because it complicates the model without bringing any value.  Many different examples are given in previous chapters PalGov © 2011 8
  • 9. Outline • Final Check o Rules Implications o Rules Contradictions o Modeling Tips (Check List) • Rules Verbalization • Schema Equivalence and Optimization • Schema Modularization PalGov © 2011 9
  • 10. Constraint Contradictions (Examples) Some constraints may contradict each other (see cases below). D will never be C will never be populated, populated, because of because A ad B are the exclusive constraint disjoint by definition. One of the roles (r1, r2, or r3) will never be populated, because we have only two values possible „a1‟ and „a2‟ Due to the frequency constraint, there should be at least two different values to populate r1. In order to populate r3, we need, by the exclusion constraint, a value different from the two for role r1. In total, we thus need three different values in order to be able to populate both r1 and r2, but this contradicts with the value constraint on object-type A: we only have 2 values at our disposal. PalGov © 2011 10
  • 11. Constraint Contradictions (Examples) the uniqueness constraint indicates that the role r1 should be played by at most one element, while the frequency constraint demands that there are at least 2 and at most 5 participants in the role. It is thus impossible to populate r1. If the frequency constraint 3-5 on r1 is satisfied, each instance of A must play r1 at least three times, and thus three different instances of B are required. However, there are only two possible instances of B, which are declared by the value constraint {„x1‟, „x2‟}. Thus r1 cannot be populated. Who can tell where the contradictions are? PalGov © 2011 11
  • 12. Constraint Contradictions (Examples) The exclusion constraint between the two roles r1 and r3 means that their populations should be distinct. However, in order to satisfy the subset constraint between the relations (r1; r2) and (r3; r4), the populations of r1 and r3 should not be distinct. In other words, the exclusion constraint between roles r1 and r3 implies an exclusion constraint between the relations (r1; r2) and (r3; r4), which contradicts any subset or equality constraints between both predicates.  Many different examples are given in previous chapters  Any Idea how to detect such contradictions automatically? PalGov © 2011 12
  • 13. Reasoning on ORM Schemes 3-5 {Math1, Prog1} Teaches Person Course Studies  Schema satisfiability: A schema is satisfiable if and only if there is at least one concept in the schema that can be populated.  Weak satisfiability  Concept satisfiability: A schema is satisfiable if and only if all concepts in the schema can be populated.  Role satisfiability: A schema is satisfiable if and only if all roles in the schema can be populated.  Strong satisfiability  Concept satisfiability implies schema satiability.  Role satisfiability implies concept satiability. PalGov © 2011 13
  • 14. Schema Satisfiability  Weak satisfiability A schema is satisfiable if and only if there is at least one concept in the schema that can be populated.  Schema-Satisfiable, because A, B, and C can be populated 3-5 {Math1, Prog1}  Schema-Satisfiable, Person Course As both concepts alone (Person & Courses) Teaches can be populated, although the roles cannot P1 Math1 P2 - - Prog1 be populated. 3-5 {Math1, Prog1}  Schema-Unsatisfiable, Person Course As both concepts alone (Person &Courses) Teaches can be populated, although the roles cannot - - - - be populated. PalGov © 2011 14
  • 15. Concept Satisfiability A schema is satisfiable if and only if all concepts in the schema can be populated.  Concept-Unsatisfiable, because there is one concept (i.e. D) that cannot be populated. 3-5 {Math1, Prog1}  Concept-Satisfiable, Person Course As all concepts can be populated, although Teaches the roles cannot be populated. P1 Math1 - - P2 Prog1 3-5 {Math1, Prog1}  Concept-Unsatisfiable, Person Course As no concepts can be populated, because Teaches of the mandatory constraints. - - - - PalGov © 2011 15
  • 16. Role Satisfiability  Strong satisfiability A schema is satisfiable if and only if all roles in the schema can be populated. 3-5 {Math1, Prog1}  Role-Unsatisfiable, Person Course As no roles can be populated. Teaches 3-5 {Math1, Prog1}  role-Unsatisfiable, Person Course As all roles cannot be populated. Teaches 3-5  role-Unsatisfiable, {Math1, Prog1} As not all roles can be populated. Teaches - - Person Course Reviews P1 Math1 P1 Prog1 PalGov © 2011 16
  • 17. Role Satisfiability  Strong satisfiability A schema is satisfiable if and only if all roles in the schema can be populated. 3-5 {Math1, Prog1}  Role-Unsatisfiable, Person Course As no roles can be populated. Teaches Although it is a strong requirement, but we 3-5 recommend that your role-Unsatisfiable, {Math1, Prog1}  conceptual model Person Course Role Satisfiable. is As all roles cannot be populated. Teaches 3-5  role-Unsatisfiable, {Math1, Prog1} As not all roles can be populated. Teaches Person - - Course Reviews P1 Math1 P1 Prog1 PalGov © 2011 17
  • 18. DogmaModeler http://www.jarrar.info/Dogmamodeler/ Is the only tool that can detect constraint contradiction for ORM PalGov © 2011 18
  • 19. DogmaModeler http://www.jarrar.info/Dogmamodeler/ Is the only tool that can detect constraint contradiction for ORM PalGov © 2011 19
  • 20. DogmaModeler http://www.jarrar.info/Dogmamodeler/ Is the only tool that can detect constraint contradiction for ORM PalGov © 2011 20
  • 21. Outline • Final Check o Rules Implications o Rules Contradictions o Modeling Tips (Check List) • Rules Verbalization • Schema Equivalence and Optimization • Schema Modularization PalGov © 2011 21
  • 22. Modeling Tips and Common Mistakes (for beginners)  Check each role in the model, whether it should be unique?  Check each role in the model, whether it should be Mandatory?  Check each entity (Object Type) whether it has an identity?  Check each leaf nodes whether should be Value Type?  Check each value constraint whether it placed on Value Type only?  The syntax of values and ranges in value constraints is correct.  Check each subtype, that it is playing some roles.  External uniqueness and disjunctive mandatory constraints are placed on the correct roles.  Preferred: If you have subtypes, then their supper type should have a value constraint. PalGov © 2011 22
  • 23. Modeling Tips and Common Mistakes (for beginners)  Role names:  At least one role, in each relation, has a label.  Names should be correct, expressive, and meaningful  Naming style: for example “WorksFor”, “AffiliatedWith”, “IsOf”, etc.  Concept Names:  Should be expressive and meaningful (as used in the domain), correct translation  Naming style: for example “FacultyMember”, “NaturalPerson”  Don‟t use plural as concept labels (e.g., students, courses)  ReadabilityBeauty of the Diagrams  place related properties beside each other (country, city…) or (name, fname, lname).  Flip roles if needed.  Lines are straight, and the whole diagram is balanced (as much as you can)  Page layout is landscape if needed.  The sizes of the concepts are equal, unless you what to emphasize the main concepts.  Important concepts are placed in the middle, and all concepts are aligned.  Roles are aligned and similar roles have the size.  Populate a page as much as you can (BUT NOT too much)  Do not clone concepts if not necessary  Modularize a large diagram into pages (but keep very related concepts in the same page).first pages contain the most important  Write your project details (name, course, year, project#, date,….) in each page. PalGov © 2011 23
  • 24. Outline • Final Check o Rules Implications o Rules Contradictions o Modeling Tips (Check List) • Rules Verbalization • Schema Equivalence and Optimization • Schema Modularization PalGov © 2011 24
  • 25. Rules Verbalization Verbalization is the process of writing the semantics captured by the ORM constrains as pseudo-natural language (fixed-syntax) sentences. Notice that these verbalizations can be generated atomically using fixed templates - Subsumption: Each Manager must be a type of Person. - Mandatory: Each Person must Has at least one Name. - Mandatory: Each Person must Has at least one BirthDate. - InterUniqueness: The combination of {BirthDate, Name} must refer to at most one Person. - Equality: Each Person WorksFor a Company must AffliatedWith that Company, and vice versa. - Subset: Each Manager who Manages a Company must WorksFor that Company. - ExMandatory: Each Account OwnedBy a Person or OwnedBy a Company, or both. - Exclusion: No Account can be OwnedBy a Company and OwnedBy a Person. PalGov © 2011 25
  • 26. Rules Verbalization Verbalization is the process of writing the semantics captured by the ORM constrains as pseudo-natural language (fixed-syntax) sentences. Notice that these verbalizations  This pseudo-natural language is understandable for domain can be generated atomically experts, which enables them to help in the modeling process, as using fixed templates they can review whether the rules are correct.  See http://www.jarrar.info/orm/verbalization/ which offers templates for verbalizing ORM in 10 languages - Subsumption: Each Manager must be a type of Person. - Mandatory: Each Person must Has at least one Name. - Mandatory: Each Person must Has at least one BirthDate. - InterUniqueness: The combination of {BirthDate, Name} must refer to at most one Person. - Equality: Each Person WorksFor a Company must AffliatedWith that Company, and vice versa. - Subset: Each Manager who Manages a Company must WorksFor that Company. - ExMandatory: Each Account OwnedBy a Person or OwnedBy a Company, or both. - Exclusion: No Account can be OwnedBy a Company and OwnedBy a Person. PalGov © 2011 26
  • 27. An ORM model with many constraints PalGov © 2011 27
  • 28. Verbalization of the constraints (English) -[Mandatory] Each Person must Has at least one PassPortNr. -[Mandatory] Each Person must Has at least one BirthDate. -[Mandatory] Each Account should be Owned-By Company or Owned-By Person. -[Uniqueness] Each Person must Has at most one BirthDate. -[Uniqueness] Each Person must Has at most one Name. -[Uniqueness] Each Person must Has at most one PassPortNr. -[Uniqueness] Each PassPortNr must IsOf at most one Person. -[Uniqueness] It is possible that Person teaches more than one Course , and vice versa. -[Uniqueness] It is possible that Person Reviews more than one Book , and vice versa. -[Uniqueness] It is possible that Person Writes more than one Book , and vice versa. -[Uniqueness] It is possible that Person Drivers more than one Car , and vice versa. -[Uniqueness] The combination of { BirthDate and Name } must refer to at most one Person. -[Exclusive] Each Person should be either Woman or Man. -[Totality] Each Person must be, at least, Man or Woman. -[Subset] If Person Drivers Car then this Person AuthorisedWith Driving Licence. -[Subset] If Manager manages Company then this Person WorksFor that Company. -[Equality] Person WorksFor University if and only if this Person teaches Course. -[Equality] Person AffiliatedWith Company if and only if this Person WorksFor that Company. -[Exclusion] No Account Owned-By Company and also Owned-By Person. -[Exclusion] No Person Writes Book and also Reviews that Book. -[Value] The possible instances of Country are :{Belgium, France, Germany} -[Irreflexive] No Person ColleagueOf it/him self. -[Symmetric] If Person X ColleagueOf Person Y, it must be vice versa. -[Acyclic] Person cannot be directly (or indirectly through a chain) SuperiorOf it/him self . -[Acyclic] Woman cannot be directly (or indirectly through a chain) SisterOf it/him self . -[Asymmetric] If Person X WifeOf Person Y, it cannot be vice versa . -[Intransitive] If Person X ParentOf Person Y, and Y ParentOf Z, then it cannot be that X ParentOf Z. -[Frequency] If Person Teaches Course, then this Person Teaches at least 3 and at most 6 Course(s). 28 PalGov © 2011
  • 29. Same Example in Arabic PalGov © 2011 29
  • 30. ‫)‪Verbalization of all constraints (Arabic‬‬ ‫-]‪ [Mandatory‬كل إِ ْنسان له رقم جواز سفر االقل‬ ‫َْ ََ ُ ََ‬ ‫-]‪ [Mandatory‬كل إِ ْنسان له تارخ مِيالد واحد على االقل‬ ‫-]‪ [Mandatory‬كل حساب يجب ان يكون مملوك النسان او مملوك لشركة‬ ‫-]‪ [Uniqueness‬كل انسان له تاريخ ميالد واحد على االكثر‬ ‫-]‪ [Uniqueness‬كل انسان له اسم واحد على االكثر‬ ‫-]‪ [Uniqueness‬كل انسان له رقم جواز سفر واحد على االكثر‬ ‫-]‪ [Uniqueness‬كل رقم جواز سفر النسان واحد على االكثر‬ ‫-]‪ [Uniqueness‬كل انسان يمكن ان يدرس اكثر من مادة والعكس صحيح‬ ‫-]‪ [Uniqueness‬كل انسان يمكن ان يؤلف اكثر من كتاب والعكس صحيح‬ ‫-]‪ [Uniqueness‬كل انسان يمكن ان يعلق على اكثر من كتاب والعكس صحيح‬ ‫-]‪ [Uniqueness‬كل انسان يمكن ان يقود اكثر من سيارة والعكس صحيح‬ ‫-]‪ [Uniqueness‬اتحاد كل من تاريخ ميالد واسم يشير الى انسان واحد على االكثر‬ ‫-]‪ [Exclusive‬كل انسان يمكن ان يكون اما رجل او اِمْ رأَة‬ ‫َ‬ ‫-]‪ [Totality‬كل انسان يجب ان يكون رجل او اِمْ رأَة‬ ‫َ‬ ‫-]‪ [Subset‬اذا انسان يقود سيارة فان هذا االنسان مخول برخصة سياقة‬ ‫-]‪ [Subset‬اذا مديريديرشركة فان هذا المديريعمل في هذة الشركة‬ ‫-]‪ [Equality‬كل انسان يعمل في جامعة اذا و فقط اذا هذا االنسان يدرس مادة‬ ‫-]‪ [Equality‬كل انسان منسوب لشركة اذا و فقط اذا هذا االنسان يعمل في هذة الشركة‬ ‫-]‪ [Exclusion‬ال يمكن ان يكون حساب مملوك ال نسان و في نفس الوقت مملوك لشركة‬ ‫-]‪ [Exclusion‬ال يمكن ان يكون انسان يعلق على كتاب و في نفس الوقت يؤلف ذلك كتاب‬ ‫-]‪ [Value‬القيم الممكنة ل دولة هي:} بلجيكا, فرنسا, المانيا{‬ ‫-]‪ [Irreflexive‬ال يجوز النسان ان يكون زميل لنفسه‬ ‫-]‪ [Symmetric‬اذا انسان س زميل ل ص,فان العكس بالعكس‬ ‫-]‪ [Acyclic‬اليمكن النسان ان يكون )بطريقة مباشرة او غير مباشرة( اب او ام لنفسه‬ ‫-]‪ [Acyclic‬اليمكن النسان ان يكون )بطريقة مباشرة او غير مباشرة( مشرف على نفسه‬ ‫-]‪ [Asymmetric‬اذا انسان س زوجة النسان ص, فان العكس غير صحيح‬ ‫-]‪ [Intransitve‬ل ج اذا انسان س اب او ام النسان ص, و ص اب او ام النسان ج, فانه اليمكن ان يكون س اب او ام‬ ‫03 -]‪ [Frequency‬اذا االنسان يدرس مادة, فان هذا االنسان يجب ان © ‪ PalGov‬الى 3 مادة‬ ‫1102 يدرس بين 2‬
  • 31. Outline • Final Check o Rules Implications o Rules Contradictions o Modeling Tips (Check List) • Rules Verbalization • Schema Equivalence and Optimization • Schema Modularization PalGov © 2011 31
  • 32. Schema Equivalence and Optimization • It is not surprising that people often come up with different ways (i.e., deferent conceptual models) of describing the same reality. • Two conceptual schemas are equivalent if and only if whatever UoD state or transition can be modeled in one can also be modeled in the other. • What is the difference between these two schemes:  The act of reshaping two equivalent schemes like this is said to be a conceptual schema transformation. PalGov © 2011 32
  • 33. Schema Equivalence and Optimization • Skills of schema transformations helps us to see what different design choices are possible. • Moreover, if two independently developed schemas are to be either fully or partly integrated, we often need to resolve the differences in the ways that each schema models common UoD features. • To do this, we need to know whether one representation can be transformed into the other, and if so, how. • Another use of conceptual schema transformations is to reshape the original conceptual schema into one that maps directly to a more efficient implementation, or to more conceptually elegant schema. • This process is known as conceptual schema optimization. There are two class of schema transformations: Predicate Specialization, and Predicate Generalization PalGov © 2011 33
  • 34. Predicate Specialization and Generalization If two or more predicates may be thought of as special cases of a more general predicate, then we may replace them by the more general predicate, so long as the original distinction can be preserved in some way. We generalize smoking and drinking into indulging in a vice, where vice has two specific cases. If we transform in the opposite direction, we specialize indulging in a vice into two predicates, one for each case. PalGov © 2011 34
  • 35. Predicate Specialization and Generalization If two or more predicates may be thought of as special cases of a more general predicate, then we may replace them by the more general predicate, so long as the original distinction can be preserved in some way. ? Because there are exactly three kinds of medals, the ternary may be specialized into three binaries, one for each medal kind, Where m1, and each Si corresponds to R where B = bi Theory: R may be specialized into S1..Sn by absorbing B. PalGov © 2011 35
  • 36. Predicate Specialization and Generalization The previous theorem always holds, but any constraint added to one of the schemas must be translated into an equivalent, additional constraint on the other schema. Each Si corresponds to R where B = bi The UC on the left is equivalent to the UCs on the right.  If a UC in R spans a combination of B’s role and other roles, a UC spans the specialization of these other roles in S1,..,Sn, and conversely. PalGov © 2011 36
  • 37. Predicate Specialization and Generalization ? The UC on the left is equivalent to the exclusion constraint on the right. ? The UC on the left is equivalent to the exclusion constraint on the right. Where m1, and each Si corresponds to R where B = bi The UC on the left is equivalent to the exclusion constraint on the right. If a UC spans all roles of R except for B’s role, then S1 .. Sn are mutually exclusive, and conversely. PalGov © 2011 37
  • 38. Predicate Specialization and Generalization ? if any medal results are recorded for a country, all three medal results (gold, silver, and bronze) are required. To express, we add an equality constraint between the medal winning roles played by Country.  If R is a ternary with a UC spanning just B’s role and one other role, then adding a frequency constraint of n to this other role is equivalent to adding an equality constraint over the specialized versions of that role. PalGov © 2011 38
  • 39. Predicate Specialization and Generalization The impact of adding mandatory role and frequency constraints. ? Each S corresponds to R where B = bi  If A’s role (or role disjunction) in R is mandatory, then the disjunction of its specialized roles is mandatory, and conversely (1 i  m).  If R is a ternary with a UC spanning just B’s role and one other role, then adding a mandatory role constraint and frequency constraint of n (the number of possible values for B) to this other role is equivalent to making each specialized version of that role mandatory. PalGov © 2011 39
  • 40. Other Cases and Examples ? Each car in the rally has two drivers (a main driver and a backup driver), and each person drives exactly one car. The drives predicate is specialized by absorbing Status. PalGov © 2011 40
  • 41. Other Cases and Examples Each Si corresponds to R where T is restricted to B = bi Theory: R may be specialized into S1..Sn by absorbing B.  Corollary 1: If s roles are mandatory in the left-hand schema, the disjunction of s roles in the right-hand schema is mandatory, and conversely.  Corollary 2: If an external UC spans the roles of and in the left-hand schema, then a UC applies to each of s roles in the right-hand schema, and conversely.  Corollary 3: If s role in the left-hand schema is mandatory, then each of s roles in the right-hand schema is mandatory, and conversely.  Corollary 4: An equality constraint over s roles in the RHS is equivalent to a frequency constraint of on s role in the left-hand schema; this constraint is strengthened to if a UC exists on each of s roles in the right-hand schema. PalGov © 2011 41
  • 42. Other Cases and Examples Can the predicate be specialized? ? ? • Transforming from the original schema to one of those strengthens the schema by adding information. • Transforming in the opposite direction weakens the schema by losing information.  Any such transformations that add or lose information should be the result of conscious decisions that are acceptable to the client (for which the business domain is being modeled). PalGov © 2011 42
  • 43. Other Cases and Examples Each Si corresponds to one instance of R Theory: The left-hand schema implies the right-hand schema. Corollary 1:If an equality constraint applies over s roles in the left-hand schema, then the frequency constraint in the right-hand schema is strengthened to , and conversely. Corollary 2: Adding a UC to role in the right-hand schema is equivalent in the left- hand schema to adding UCs to s roles (making the S 1:1) and strengthening the exclusion constraint to an exclusion constraint over s roles. PalGov © 2011 43
  • 44. Outline • Final Check o Rules Implications o Rules Contradictions o Modeling Tips (Check List) • Rules Verbalization • Schema Equivalence and Optimization • Schema Modularization PalGov © 2011 44
  • 45. Modularization  Develop a conceptual schema as a set of modules and later compose to form one module. PalGov © 2011 45
  • 46. Modularization PalGov © 2011 46
  • 47. Modularization Why to modularize? Because Modules are: Easier to reuse .1 Easier to build, maintain, and replace .2 Enable distributed development of modules .3 Enable the effective management and browsing .4 PalGov © 2011 47
  • 48. Modularization When to Modularize? Modularity criteria: Subject-oriented, related facts describing .1 same subject matter. Purpose/Task-oriented, related facts .2 describing same task. Stability, parts of the model that are not sure .3 about or might be changed, etc. PalGov © 2011 48
  • 49. References 1. Information Modeling and Relational Databases: From Conceptual Analysis to Logical Design, Terry Halpin (ISBN 1- 55860-672-6) – Chapter 7 and 12. 2. Mustafa Jarrar: Towards methodological principles for ontology engineering. PhD Thesis. Vrije Universiteit Brussel. (May 2005) 3. Mustafa Jarrar and Robert Meersman: Ontology Engineering - The DOGMA Approach. Book Chapter in "Advances in Web Semantics I". Chapter 3. Pages 7-34. LNCS 4891, Springer.ISBN:978-3540897835. (2008). PalGov © 2011 49