SlideShare ist ein Scribd-Unternehmen logo
1 von 36
1Jarrar © 2015
Uniqueness and Identity
Rules in ORM
(Chapter 4)
Reference:
Mustafa Jarrar: Lecture Notes on Uniqueness and Identity Rules in ORM
Birzeit University, Palestine, 2015
Mustafa Jarrar
Birzeit University, Palestine
mjarrar@birzeit.edu
www.jarrar.info
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: Identity, Uniqueness, Cardinality, Business Rules, ‫,فريد‬ ‫,هوية‬
Slides And Videos - Download, Watch, Interact
3Jarrar © 2015
 Part 1: What is Uniqueness/Identity?
 Part 2: Internal Uniqueness (within a Fact Type)
 Part 3: External Uniqueness (across Fact Types)
 Part 4: Key Length and Reference Schema
Uniqueness and Identity
Rules in ORM
Reference:
Mustafa Jarrar: Lecture Notes on Uniqueness and Identity Rules in ORM
University of Birzeit, Palestine, 2015
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
5Jarrar © 2015
Identity Criteria and Uniqueness
In Data Modeling:
• One of more attributes (Name, Name+Birthday, …) that we can use
to uniquely refer to an entity, …within a contest!
• If we cannot easily find/use these attributes, we give an ID (ID
number, Book number, URI, IRI ….)
In reality
• A property that can be used to uniquely refer to an entity… in any
context, if this property is changed then the entity becomes another
(what identifies a person? Book?).
Notice that an attribute/property should be mandatory/essential to be
used for identification. (we will talk about this later).
6Jarrar © 2015
What is Uniqueness?
For each state taken individually, each person has at most one weight.
How can we record such information without redundancy?
7Jarrar © 2015
 Part 1: What is Uniqueness/Identity?
 Part 2: Internal Uniqueness (within a Fact Type)
 Part 3: External Uniqueness (across Fact Types)
 Part 4: Key Length and Reference Schema
Uniqueness and Identity
Rules in ORM
Reference:
Mustafa Jarrar: Lecture Notes on Uniqueness and Identity Rules in ORM
University of Birzeit, Palestine, 2015
8Jarrar © 2015
Uniqueness on Unary Fact Types
Is their any problem with this schema?
How can we prevent people adding such redundant information?
9Jarrar © 2015
Uniqueness on Unary Fact Types
The uniqueness constraint
ensures entities are
unique (no duplicates)
10Jarrar © 2015
Uniqueness on Binary Fact Types
Each Politician was born
in at most one Country
Each Country has at
most one head Politician
Each Politician heads
government of at most one
Country
11Jarrar © 2015
Uniqueness on Binary Fact Types
Who can give more examples?
Means many to many
It is possible that the same Politician visited more than one Country
and that the same Country was visited by more than one Politician
12Jarrar © 2015
Uniqueness on Binary Fact Types
What is unique here?
13Jarrar © 2015
Uniqueness on Binary Fact Types
What is unique here?
14Jarrar © 2015
Uniqueness on Binary Fact Types
No duplicates are allowed in a's column
Each a R's at most one b
No duplicates are allowed in b's column
Each b is R'd by at most one a
Both the foregoing constraints apply
No duplicate (a,b) rows are allowed
Each a may R many b and vice versa
The four uniqueness constraint patterns for a binary.
15Jarrar © 2015
How to think about Uniqueness
Is the population significant?
Adding counterexamples
to test the constraints

16Jarrar © 2015
Uniqueness on Binary Fact Types
Which is more realistic?
17Jarrar © 2015
Uniqueness on Ternary Fact Types
What are the uniqueness constraints?
Each (Person, Subject) combination is unique.
18Jarrar © 2015
Uniqueness on Ternary Fact Types
Allowed basic uniqueness constraints for a ternary.
19Jarrar © 2015
Uniqueness on Ternary Fact Types
What this uniqueness means?
20Jarrar © 2015
Uniqueness on Ternary Fact Types
Allowed uniqueness constraint combinations for a ternary.
21Jarrar © 2015
Uniqueness on Ternary Fact Types
Which of this constraint patterns is illegal? Why?



22Jarrar © 2015
Example of Uniqueness on n-ary fact types
Each (a,c,d) combination occurs on at most one row.
23Jarrar © 2015
Uniqueness with Nested Fact Types
 Explain what is unique
This constraint is particularly
important! Why?
24Jarrar © 2015
 Part 1: What is Uniqueness/Identity?
 Part 2: Internal Uniqueness (within a Fact Type)
 Part 3: External Uniqueness (across Fact Types)
 Part 4: Key Length and Reference Schema
Uniqueness and Identity
Rules in ORM
Reference:
Mustafa Jarrar: Lecture Notes on Uniqueness and Identity Rules in ORM
University of Birzeit, Palestine, 2015
25Jarrar © 2015
What is the difference between these?
 Explain the Joins
 Do we need uniqueness?
26Jarrar © 2015
External Uniqueness constraints
What is missing?
u
27Jarrar © 2015
External Uniqueness constraints
The meaning of the External Uniqueness
Each (b,c) combination is paired with at most one a
Each population R join S has bc unique
(where “join” denotes “conceptual inner join”)
28Jarrar © 2015
Example
29Jarrar © 2015
An Other Uniqueness
How to say that the combination of (Discipline, YearLevel,
SerialNr) is unique for each subject?
The Subject code might be generated from this combination
30Jarrar © 2015
Example with nest fact types
31Jarrar © 2015
 Part 1: What is Uniqueness/Identity?
 Part 2: Internal Uniqueness (within a Fact Type)
 Part 3: External Uniqueness (across Fact Types)
 Part 4: Key Length and Reference Schema
Uniqueness and Identity
Rules in ORM
Reference:
Mustafa Jarrar: Lecture Notes on Uniqueness and Identity Rules in ORM
University of Birzeit, Palestine, 2015
32Jarrar © 2015
Key Length Check
What is wrong?
Splits into
Each UC in an elementary
n-ary relationship must
span at least n-1 roles
33Jarrar © 2015
Key Length Check
Splits into
What is wrong?
34Jarrar © 2015
Reference Schemes
The identity is achieved if an entity has mandatory and unique role
In data modeling, each entity (i.e., Object Type) must have an identity.
This is not important (i.e. implicit) in ontology modeling.
35Jarrar © 2015
Project (Student Registry)
Description:
The central management of students’ profiles by the ministry of education is
becoming an urgent need in the last years. Many students in Palestine move from
one university to another, and they need to transfer their academic records. Also,
the ministry of higher education needs to certify the diplomas and mark sheets of
students. Moreover, there is a need to centrally manage/monitor students financial
aids. Therefore, the ministry of higher education has decided to build a national
student registry, such that, each semester every university has to send the
academic record (i.e., mark-sheet) of every student to the ministry of education. The
ministry will then update and integrate the academic records according to the data
combined from all universities into the national student registry.
The ministry wants to specify a data model (in ORM) to be used as a reference data
model of, including the business rules.
Develop a conceptual model (in both Arabic and English separately) for this
information system, which must be suitable for mark sheets in all Palestinian
universities (Tip: you may start with your own mark sheet).
 Deliver hard copy to my office, before February xx, 2015
36Jarrar © 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.

Weitere ähnliche Inhalte

Andere mochten auch

Jarrar: Knowledge Engineering- Course Outline
Jarrar: Knowledge Engineering- Course OutlineJarrar: Knowledge Engineering- Course Outline
Jarrar: Knowledge Engineering- Course OutlineMustafa Jarrar
 
Jarrar: Introduction to Data Integration
Jarrar: Introduction to Data IntegrationJarrar: Introduction to Data Integration
Jarrar: Introduction to Data IntegrationMustafa Jarrar
 
Jarrar: RDF Stores: Challenges and Solutions
Jarrar: RDF Stores: Challenges and SolutionsJarrar: RDF Stores: Challenges and Solutions
Jarrar: RDF Stores: Challenges and SolutionsMustafa Jarrar
 
Jarrar: RDFs -RDF Schema
Jarrar: RDFs -RDF SchemaJarrar: RDFs -RDF Schema
Jarrar: RDFs -RDF SchemaMustafa Jarrar
 
Jarrar: Data Fusion using RDF
Jarrar: Data Fusion using RDFJarrar: Data Fusion using RDF
Jarrar: Data Fusion using RDFMustafa Jarrar
 
Jarrar: The Next Generation of the Web 3.0: The Semantic Web Vesion
Jarrar: The Next Generation of the Web 3.0: The Semantic Web VesionJarrar: The Next Generation of the Web 3.0: The Semantic Web Vesion
Jarrar: The Next Generation of the Web 3.0: The Semantic Web VesionMustafa Jarrar
 
Jarrar: OWL -Web Ontology Language
Jarrar: OWL -Web Ontology LanguageJarrar: OWL -Web Ontology Language
Jarrar: OWL -Web Ontology LanguageMustafa Jarrar
 
Jarrar: RDF Stores -Challenges and Solutions
Jarrar: RDF Stores -Challenges and SolutionsJarrar: RDF Stores -Challenges and Solutions
Jarrar: RDF Stores -Challenges and SolutionsMustafa Jarrar
 
Jarrar: The Next Generation of the Web 3.0: The Semantic Web
Jarrar: The Next Generation of the Web 3.0: The Semantic WebJarrar: The Next Generation of the Web 3.0: The Semantic Web
Jarrar: The Next Generation of the Web 3.0: The Semantic WebMustafa Jarrar
 
Jarrar: OWL (Web Ontology Language)
Jarrar: OWL (Web Ontology Language)Jarrar: OWL (Web Ontology Language)
Jarrar: OWL (Web Ontology Language)Mustafa Jarrar
 
Jarrar: Conceptual Schema Design Steps
Jarrar: Conceptual Schema Design Steps Jarrar: Conceptual Schema Design Steps
Jarrar: Conceptual Schema Design Steps Mustafa Jarrar
 
Jarrar: RDFS ( RDF Schema)
Jarrar: RDFS ( RDF Schema) Jarrar: RDFS ( RDF Schema)
Jarrar: RDFS ( RDF Schema) Mustafa Jarrar
 
Jarrar: Data Schema Integration
Jarrar: Data Schema IntegrationJarrar: Data Schema Integration
Jarrar: Data Schema IntegrationMustafa Jarrar
 

Andere mochten auch (14)

Jarrar: Knowledge Engineering- Course Outline
Jarrar: Knowledge Engineering- Course OutlineJarrar: Knowledge Engineering- Course Outline
Jarrar: Knowledge Engineering- Course Outline
 
Jarrar: Introduction to Data Integration
Jarrar: Introduction to Data IntegrationJarrar: Introduction to Data Integration
Jarrar: Introduction to Data Integration
 
Jarrar: RDF Stores: Challenges and Solutions
Jarrar: RDF Stores: Challenges and SolutionsJarrar: RDF Stores: Challenges and Solutions
Jarrar: RDF Stores: Challenges and Solutions
 
Jarrar: RDFs -RDF Schema
Jarrar: RDFs -RDF SchemaJarrar: RDFs -RDF Schema
Jarrar: RDFs -RDF Schema
 
Jarrar: Data Fusion using RDF
Jarrar: Data Fusion using RDFJarrar: Data Fusion using RDF
Jarrar: Data Fusion using RDF
 
Jarrar: The Next Generation of the Web 3.0: The Semantic Web Vesion
Jarrar: The Next Generation of the Web 3.0: The Semantic Web VesionJarrar: The Next Generation of the Web 3.0: The Semantic Web Vesion
Jarrar: The Next Generation of the Web 3.0: The Semantic Web Vesion
 
Jarrar: RDFa
Jarrar: RDFaJarrar: RDFa
Jarrar: RDFa
 
Jarrar: OWL -Web Ontology Language
Jarrar: OWL -Web Ontology LanguageJarrar: OWL -Web Ontology Language
Jarrar: OWL -Web Ontology Language
 
Jarrar: RDF Stores -Challenges and Solutions
Jarrar: RDF Stores -Challenges and SolutionsJarrar: RDF Stores -Challenges and Solutions
Jarrar: RDF Stores -Challenges and Solutions
 
Jarrar: The Next Generation of the Web 3.0: The Semantic Web
Jarrar: The Next Generation of the Web 3.0: The Semantic WebJarrar: The Next Generation of the Web 3.0: The Semantic Web
Jarrar: The Next Generation of the Web 3.0: The Semantic Web
 
Jarrar: OWL (Web Ontology Language)
Jarrar: OWL (Web Ontology Language)Jarrar: OWL (Web Ontology Language)
Jarrar: OWL (Web Ontology Language)
 
Jarrar: Conceptual Schema Design Steps
Jarrar: Conceptual Schema Design Steps Jarrar: Conceptual Schema Design Steps
Jarrar: Conceptual Schema Design Steps
 
Jarrar: RDFS ( RDF Schema)
Jarrar: RDFS ( RDF Schema) Jarrar: RDFS ( RDF Schema)
Jarrar: RDFS ( RDF Schema)
 
Jarrar: Data Schema Integration
Jarrar: Data Schema IntegrationJarrar: Data Schema Integration
Jarrar: Data Schema Integration
 

Mehr von 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: Logical Foundation of Ontology Engineering
Jarrar: Logical Foundation of Ontology EngineeringJarrar: Logical Foundation of Ontology Engineering
Jarrar: Logical Foundation of Ontology EngineeringMustafa Jarrar
 

Mehr von 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: Logical Foundation of Ontology Engineering
Jarrar: Logical Foundation of Ontology EngineeringJarrar: Logical Foundation of Ontology Engineering
Jarrar: Logical Foundation of Ontology Engineering
 

Kürzlich hochgeladen

Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 

Kürzlich hochgeladen (20)

Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 

Uniqueness and Indentity Rules in ORM

  • 1. 1Jarrar © 2015 Uniqueness and Identity Rules in ORM (Chapter 4) Reference: Mustafa Jarrar: Lecture Notes on Uniqueness and Identity Rules in ORM Birzeit University, Palestine, 2015 Mustafa Jarrar Birzeit University, Palestine mjarrar@birzeit.edu www.jarrar.info
  • 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: Identity, Uniqueness, Cardinality, Business Rules, ‫,فريد‬ ‫,هوية‬ Slides And Videos - Download, Watch, Interact
  • 3. 3Jarrar © 2015  Part 1: What is Uniqueness/Identity?  Part 2: Internal Uniqueness (within a Fact Type)  Part 3: External Uniqueness (across Fact Types)  Part 4: Key Length and Reference Schema Uniqueness and Identity Rules in ORM Reference: Mustafa Jarrar: Lecture Notes on Uniqueness and Identity Rules in ORM University of Birzeit, Palestine, 2015
  • 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. 5Jarrar © 2015 Identity Criteria and Uniqueness In Data Modeling: • One of more attributes (Name, Name+Birthday, …) that we can use to uniquely refer to an entity, …within a contest! • If we cannot easily find/use these attributes, we give an ID (ID number, Book number, URI, IRI ….) In reality • A property that can be used to uniquely refer to an entity… in any context, if this property is changed then the entity becomes another (what identifies a person? Book?). Notice that an attribute/property should be mandatory/essential to be used for identification. (we will talk about this later).
  • 6. 6Jarrar © 2015 What is Uniqueness? For each state taken individually, each person has at most one weight. How can we record such information without redundancy?
  • 7. 7Jarrar © 2015  Part 1: What is Uniqueness/Identity?  Part 2: Internal Uniqueness (within a Fact Type)  Part 3: External Uniqueness (across Fact Types)  Part 4: Key Length and Reference Schema Uniqueness and Identity Rules in ORM Reference: Mustafa Jarrar: Lecture Notes on Uniqueness and Identity Rules in ORM University of Birzeit, Palestine, 2015
  • 8. 8Jarrar © 2015 Uniqueness on Unary Fact Types Is their any problem with this schema? How can we prevent people adding such redundant information?
  • 9. 9Jarrar © 2015 Uniqueness on Unary Fact Types The uniqueness constraint ensures entities are unique (no duplicates)
  • 10. 10Jarrar © 2015 Uniqueness on Binary Fact Types Each Politician was born in at most one Country Each Country has at most one head Politician Each Politician heads government of at most one Country
  • 11. 11Jarrar © 2015 Uniqueness on Binary Fact Types Who can give more examples? Means many to many It is possible that the same Politician visited more than one Country and that the same Country was visited by more than one Politician
  • 12. 12Jarrar © 2015 Uniqueness on Binary Fact Types What is unique here?
  • 13. 13Jarrar © 2015 Uniqueness on Binary Fact Types What is unique here?
  • 14. 14Jarrar © 2015 Uniqueness on Binary Fact Types No duplicates are allowed in a's column Each a R's at most one b No duplicates are allowed in b's column Each b is R'd by at most one a Both the foregoing constraints apply No duplicate (a,b) rows are allowed Each a may R many b and vice versa The four uniqueness constraint patterns for a binary.
  • 15. 15Jarrar © 2015 How to think about Uniqueness Is the population significant? Adding counterexamples to test the constraints 
  • 16. 16Jarrar © 2015 Uniqueness on Binary Fact Types Which is more realistic?
  • 17. 17Jarrar © 2015 Uniqueness on Ternary Fact Types What are the uniqueness constraints? Each (Person, Subject) combination is unique.
  • 18. 18Jarrar © 2015 Uniqueness on Ternary Fact Types Allowed basic uniqueness constraints for a ternary.
  • 19. 19Jarrar © 2015 Uniqueness on Ternary Fact Types What this uniqueness means?
  • 20. 20Jarrar © 2015 Uniqueness on Ternary Fact Types Allowed uniqueness constraint combinations for a ternary.
  • 21. 21Jarrar © 2015 Uniqueness on Ternary Fact Types Which of this constraint patterns is illegal? Why?   
  • 22. 22Jarrar © 2015 Example of Uniqueness on n-ary fact types Each (a,c,d) combination occurs on at most one row.
  • 23. 23Jarrar © 2015 Uniqueness with Nested Fact Types  Explain what is unique This constraint is particularly important! Why?
  • 24. 24Jarrar © 2015  Part 1: What is Uniqueness/Identity?  Part 2: Internal Uniqueness (within a Fact Type)  Part 3: External Uniqueness (across Fact Types)  Part 4: Key Length and Reference Schema Uniqueness and Identity Rules in ORM Reference: Mustafa Jarrar: Lecture Notes on Uniqueness and Identity Rules in ORM University of Birzeit, Palestine, 2015
  • 25. 25Jarrar © 2015 What is the difference between these?  Explain the Joins  Do we need uniqueness?
  • 26. 26Jarrar © 2015 External Uniqueness constraints What is missing? u
  • 27. 27Jarrar © 2015 External Uniqueness constraints The meaning of the External Uniqueness Each (b,c) combination is paired with at most one a Each population R join S has bc unique (where “join” denotes “conceptual inner join”)
  • 29. 29Jarrar © 2015 An Other Uniqueness How to say that the combination of (Discipline, YearLevel, SerialNr) is unique for each subject? The Subject code might be generated from this combination
  • 30. 30Jarrar © 2015 Example with nest fact types
  • 31. 31Jarrar © 2015  Part 1: What is Uniqueness/Identity?  Part 2: Internal Uniqueness (within a Fact Type)  Part 3: External Uniqueness (across Fact Types)  Part 4: Key Length and Reference Schema Uniqueness and Identity Rules in ORM Reference: Mustafa Jarrar: Lecture Notes on Uniqueness and Identity Rules in ORM University of Birzeit, Palestine, 2015
  • 32. 32Jarrar © 2015 Key Length Check What is wrong? Splits into Each UC in an elementary n-ary relationship must span at least n-1 roles
  • 33. 33Jarrar © 2015 Key Length Check Splits into What is wrong?
  • 34. 34Jarrar © 2015 Reference Schemes The identity is achieved if an entity has mandatory and unique role In data modeling, each entity (i.e., Object Type) must have an identity. This is not important (i.e. implicit) in ontology modeling.
  • 35. 35Jarrar © 2015 Project (Student Registry) Description: The central management of students’ profiles by the ministry of education is becoming an urgent need in the last years. Many students in Palestine move from one university to another, and they need to transfer their academic records. Also, the ministry of higher education needs to certify the diplomas and mark sheets of students. Moreover, there is a need to centrally manage/monitor students financial aids. Therefore, the ministry of higher education has decided to build a national student registry, such that, each semester every university has to send the academic record (i.e., mark-sheet) of every student to the ministry of education. The ministry will then update and integrate the academic records according to the data combined from all universities into the national student registry. The ministry wants to specify a data model (in ORM) to be used as a reference data model of, including the business rules. Develop a conceptual model (in both Arabic and English separately) for this information system, which must be suitable for mark sheets in all Palestinian universities (Tip: you may start with your own mark sheet).  Deliver hard copy to my office, before February xx, 2015
  • 36. 36Jarrar © 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.