Mandatory Rules in ORM

1,174 views

Published on

Lecture slides by Mustafa Jarrar at Birzeit University, Palestine.
See the course webpage at: http://jarrar-courses.blogspot.com/2011/09/knowledgeengineering-fall2011.html
and http://www.jarrar.info

and on Youtube:
http://www.youtube.com/watch?v=3_-HGnI6AZ0&list=PLDEA50C29F3D28257

Lecture Notes Knowledge Engineering (Ch5)

Published in: Technology, Education
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,174
On SlideShare
0
From Embeds
0
Number of Embeds
530
Actions
Shares
0
Downloads
0
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Mandatory Rules in ORM

  1. 1. 1Jarrar © 2015 (Chapter 5) Mandatory Rules in ORM Reference: Mustafa Jarrar: Lecture Notes on Mandatory Rules in ORM Birzeit University, Palestine, 2015 Mustafa Jarrar Birzeit University, Palestine mjarrar@birzeit.edu www.jarrar.info
  2. 2. 2Jarrar © 2015 Watch this lecture and download the slides from http://jarrar-courses.blogspot.com/2015/01/dataandbusinessprocessmodelling.html Some diagrams in this lecture are based on [1] Keywords: Mandatory, Role Mandatory, Disjunctive Mandatory, Cardinality, Business Rules,‫اجباري‬ ،‫ضرورة‬ Slides And Videos - Download, Watch, Interact
  3. 3. 3Jarrar © 2015  Part 1: What is Mandatory?  Part 2: Role-Mandatory Rules  Part 3: Disjunctive-Mandatory Rules Mandatory Rules in ORM Reference: Mustafa Jarrar: Lecture Notes on Mandatory Rules in ORM University of Birzeit, Palestine, 2015
  4. 4. 4Jarrar © 2015 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
  5. 5. 5Jarrar © 2015 Mandatory Versus Optional each Patient Has at least one PatientName Any problem with this table? By default, all roles are optional. How can we say that a role is mandatory?
  6. 6. 6Jarrar © 2015  Part 1: What is Mandatory?  Part 2: Role-Mandatory Rules  Part 3: Disjunctive-Mandatory Rules Mandatory Rules in ORM Reference: Mustafa Jarrar: Lecture Notes on Mandatory Rules in ORM University of Birzeit, Palestine, 2015
  7. 7. 7Jarrar © 2015 Mandatory Roles  Mandatoriness is implied with Value Types (by default). For example: it is assumed that “each PhoneNr is for at least one Patient”, because PhoneNr is a Value Type. ??
  8. 8. 8Jarrar © 2015 Mandatory Definition Role r is mandatory (for the population of A) Each instance of type A that is recorded in the database is also recorded to play r pop( r) = pop( A)
  9. 9. 9Jarrar © 2015 Mandatory Roles How can we decide to make a role mandatory? Recall our discussion on (Conceptual data modeling) versus (conceptual modeling) If a role is mandatory in the real world, it may be optional in the model. hashas
  10. 10. 10Jarrar © 2015  Part 1: What is Mandatory?  Part 2: Role-Mandatory Rules  Part 3: Disjunctive-Mandatory Rules Mandatory Rules in ORM Reference: Mustafa Jarrar: Lecture Notes on Mandatory Rules in ORM University of Birzeit, Palestine, 2015
  11. 11. 11Jarrar © 2015 Disjunctive Mandatory How to say that it is mandatory for each member to (PlaysFor | Coaches) a team, or both. We cannot have both roles optional, at least one role should be played. Disjunctive mandatory constraint: Each Member coaches or plays (or both).
  12. 12. 12Jarrar © 2015 Disjunctive Mandatory Alternative notations for disjunctive mandatory role constraint.
  13. 13. 13Jarrar © 2015 Definition of Disjunctive Mandatory Disjunctive mandatory role constraint The inclusive disjunction of roles r1...rn is mandatory for A i.e., each member of pop(A) plays r1 or r2 ...or rn (or all) i.e., each member of pop(A) plays at least one of r1 … rn
  14. 14. 14Jarrar © 2015 Another Example Each person must be a parent or child.
  15. 15. 15Jarrar © 2015 References 1. Terry Halpin, Tony Morgan: Information Modeling and Relational Databases, Second Edition. 2nd Edition. The Morgan Kaufmann Series in Data Management Systems. ISBN: 0123735688 2. Mustafa Jarrar and Stijn Heymans: Towards Pattern-Based Reasoning For Friendly Ontology Debugging. Journal of Artificial Intelligence Tools. Volume 17. No.4. World Scientific Publishing. Aug 2008. 3. Mustafa Jarrar: Mapping ORM Into The SHOIN/OWL Description Logic- Towards A Methodological And Expressive Graphical Notation For Ontology Engineering. In OTM 2007 workshops: Proceedings of the International Workshop on Object-Role Modeling (ORM'07). Pages (729-741), LNCS 4805, Springer. ISBN: 9783540768890. Portogal. November, 2007 4. Mustafa Jarrar: Towards Automated Reasoning On ORM Schemes. -Mapping ORM Into The DLR_idf Description Logic. In proceedings of the 26th International Conference on Conceptual Modeling (ER 2007). Pages (181-197). LNCS 4801, Springer. Auckland, New Zealand. ISBN 9783540755623. November 2007 5. Mustafa Jarrar and Stijn Heymans: Unsatisfiability Reasoning In ORM Conceptual Schemes. In Current Trends in Database Technology - EDBT 2006: Proceeding of the IFIP-2.6 International Conference on Semantics of a Networked. Pages (517-534). LNCS 4254, Springer. Munich, Germany. ISBN: 3540467882. March 2006. 6. Mustafa Jarrar, Maria Keet, and Paolo Dongilli: Multilingual Verbalization Of ORM Conceptual Models And Axiomatized Ontologies. Technical eport. STARLab, Vrije Universiteit Brussel, Feb 2006. 7. Mustafa Jarrar: Modularization And Automatic Composition Of Object-Role Modeling (ORM) Schemes. OTM 2005 Workshops: Proceedings of the Object-Role Modeling (ORM'05). Pages (613- 625). LNCS 3762, Springer. Larnaca, Cyprus. ISBN: 3540297391. November 2005.

×