SlideShare uma empresa Scribd logo
1 de 18
Reasoning of database consistency
through Description Logics
1Ahmad Karawash
Overview
Introduction
Data models and Description Logics
Description Logics and database querying
Data integration
Conclusion
Ahmad Karawash
Reasoning of database consistency through Description Logics
Definitions :
The object of knowledge representation is to express the problem in
computer-understandable form
Description Logics (DL) are a family of knowledge representation
languages called description languages.
Data model is essentially a language or set of concepts for describing
a class of certain kinds of databases.
Entity Relationship (ER) model used to describe the structure of data
stored in the database.
Introduction - Data models & DL - DL & database querying - Data integration - conclusion
Ahmad Karawash
Reasoning of database consistency through Description Logics
what is ER?
ER is the most widespread semantic data model, and it has become
a standard, extensively used in the design phase of commercial
applications.
Introduction - Data models & DL - DL & database querying - Data integration - conclusion
Ahmad Karawash
Reasoning of database consistency through Description Logics
ER elements:
- Entities set: set of objects that have common properties.(ex: object person have
name, phone, age).
- Relationships: set of tuples (instances), each of which represents an association among a
different combination of instances of the entities that participate in the relationship.
- Attributes: express the Elementary properties whose values belong to one of several
predefined domains, such as Integer, String, or Boolean.
- An IS-A relation between two entities is denoted by an arrow from the more specific to
the more general entity
-ER-role: is introduced since each entity can participate in a relationship more than once
,The arity of a relationship is the number of its ER-roles.
- Cardinality constraints can be attached to an ER-role in order to restrict the number of
times each instance of an entity is allowed to participate.
Introduction - Data models & DL - DL & database querying - Data integration - conclusion
Ahmad Karawash
Reasoning of database consistency through Description Logics
Introduction - Data models & DL - DL & database querying - Data integration - conclusion
ER symbols:
- Domain symbol (D)  has predefined domain DB
D
- Entity symbol (E) -> set of attribute symbol (A) each has a unique domain
- Relationship symbol (R) -> N ER-role symbols
- Cardinality constraint -> - cminS from ER-role -> nonnegative integer
- cmaxS from ER-role -> all positve integer (+infinity)
String, integer,
…
E
AA
R E2E1
ER-roleER-role
Ahmad Karawash
Reasoning of database consistency through Description Logics
Database (B) correspond to ER (S)
- Expressed by nonempty finite set ΔB & function .B (as in algebra f : E-> R)
-.B : D -> DB
D (maps to predefined domain string, integer, …)
- .B : E -> EB (maps from E to instance of E)
- .B : A -> AB (maps to instance of attribute that connects entity to domain)
.B : R -> RB (maps to instance of relationship that connect ER-roles to entities
T : ER-roles -> ΔB
<u1:o1,..,un:on>->T[ui]=oi )
Introduction - Data models & DL - DL & database querying - Data integration - conclusion
R1
R2
E
U1
U2
O1
O2
EB AB RB are instances of E, A, R
Ahmad Karawash
Reasoning of database consistency through Description Logics
Database (B) is legal to ER (S) if it satisfy :
- For each pair E1,E2 with E1 Is-a E2 => E1B C E2B
(all individuals that satisfies E1 also satisfies E2)
- For each pair R1,R2 with R1 Is-a R2 => R1B C R2B
- For each entity E : e belong EB there is only one a(e,d) belong to AB such that e
connect entity E to domain D.
- For each relation R of arity N : all instance has the form <U1:O1,…,Un:On>
- For each ER-role U of R with E : cmin(U) <= |{r belong R / r[U]=e }|<= cmax(U)
Introduction - Data models & DL - DL & database querying - Data integration - conclusion
Ahmad Karawash
Reasoning of database consistency through Description Logics
How to transform from ER to DLR knowledge?
DLR is an expressive Description Logic (DL) with n-ary relations,
particularly suited for modeling database schemas and queries.
To transform from ER to DLR, a mapping function (Ø) should be
introduced .
Introduction - Data models & DL - DL & database querying - Data integration - conclusion
Ahmad Karawash
Reasoning of database consistency through Description Logics
Introduction - Data models & DL - DL & database querying - Data integration - conclusion
Ø(S) -> gives the knowledge base of ER S
- Set of atomic concept of Ø(S)={set of entity & domain symbol of S}
- Set of relation concept of Ø(S)={
- R in S -> PR in Ø(S) [relation symbol between E and R]
- A in S -> PA in Ø(S) [attribute symbol between E and Domain] }
- Set of axiom : - E1 Is-a E2 => E1 C E2
- R1 Is-a R2 => PR1 C PR2
- For each attribute A with domain D of an entity E,
E C (forall[$1](PA ^ ($2:D))) ^ =1 [$1]PA
- For each relationship R of arity n with ER-roles
PR C ($μ R(U1):E1) ^ …••• ^($μ R(Un):En)
Ahmad Karawash
Reasoning of database consistency through Description Logics
Introduction - Data models & DL - DL & database querying - Data integration - conclusion
ER
DLR
Ahmad Karawash
Reasoning of database consistency through Description Logics
Introduction - Data models & DL - DL & database querying - Data integration - conclusion
What benefits can be derived from having established
relationships?
Reasoning:
- Entity satisfiability, i.e., whether for every concept C, S admits a model in
which it has a nonempty extension. If C must always have an empty
extension then there is an inconsistency
- Relation satisfiability, i.e., whether S admits a model in which a certain
relation has a nonempty extension.(similar to above)
- Consistency of the ER schema, i.e., whether S admits a finite model.
Without this, there is no database that satisfies the schema, so
inconsistent if infinite model.
Ahmad Karawash
Reasoning of database consistency through Description Logics
Introduction - Data models & DL - DL & database querying - Data integration - conclusion
Reasoning (continue):
Redundancy of the ER schema. Various forms of redundancy in the ER
schema can be detected: e.g., if A, B are entities and both A v B and B v A
hold, we can conclude that one of the entities is redundant.
- Stronger constraints on relationship roles.
- Entity subsumption, i.e., whether the extension of one concept B is a
subset of the extension of another concept A in every model of S. This
property suggests that the designer check for the possible omission of an
explicit IS-A relationship between B and A.
- Relation subsumption, i.e., whether the extension of one relation is a
subset of the extension of another relation in every model of S. (Similar to
the above.)
Ahmad Karawash
Reasoning of database consistency through Description Logics
Introduction - Data models & DL - DL & database querying - Data integration - conclusion
Description Logics as query languages:
- the query description can be compared to the inconsistent description. If
they are equivalent, then there is surely a mistake
- The query can be classified with respect to the concepts in the schema.
This can be used to help users pose queries in an unfamiliar domain.
- Queries can also be classified with respect to each other into a
subsumption hierarchy. In an environment where several people are
asking exploratory questions about the data over a long period of time
(e.g., data mining by humans), it is very useful to have the questions
organized
Ahmad Karawash
Data Integration
 Integrating different data sources is one of the fundamental problems
faced by the database community.
 The goal of a data integration system is to provide a uniform interface to
various data sources [Levy,2000].
 The design of a data integration system is a very complex task, which
comprises several different aspects.
Reasoning of database consistency through Description Logics
Introduction - Data models & DL - DL & database querying - Data integration - conclusion
Ahmad Karawash 6
Conclusion
 The greatest advantage of DL models is not representing
information model only but reasoning with the model.
 The subsumption relationship can be used for semantic query
optimization.
 DLs are useful in heterogeneous or federated databases.
 The meaning of the DL model is unambiguous and precise and is
capable to check the consistency of any entire model.
Reasoning of database consistency through Description Logics
Introduction - Data models & DL - DL & database querying - Data integration - conclusion
Ahmad Karawash 7
Any question?
Ahmad Karawash
Ahmad_karawash@hotmail.com
Ahmad Karawash
References
 Krötzsch, M., Simacikˇ, F., Horrocks, I.: A Description Logic Primer. CoRR.
abs/1201.4, 1–16 (2012).
 Lutz, C.,Toman, D.: Conjunctive Query Answering in the Description Logic EL using a
Relational Database System. International Joint Conferences on Artificial Intelligence.
pp. 2070–2075 (2009).
 Calvanese, D., De Giacomo, G., Lembo, D., Lenzerini, M., Rosati, R.: Data complexity
of query answering in description logics. Artif. Intell. 195, 335–360 (2013).
 Motik, B., Horrocks, I., Sattler, U.: Integrating Description Logics and Relational
Databases. Science (80-. ). 1–44 (2006).
 Bertossi, L.: Consistent query answering in databases, (2006).
 Borgida, A., Lenzerini, M., Rosati: Description Logics for Data Bases. Description
Logic Handbook. pp. 472–494 (2002).
 …..
Ahmad Karawash

Mais conteúdo relacionado

Mais procurados

Ch 6 Logical D B Design
Ch 6  Logical D B  DesignCh 6  Logical D B  Design
Ch 6 Logical D B Designguest8fdbdd
 
Dbms 7: ER Diagram Design Issue
Dbms 7: ER Diagram Design IssueDbms 7: ER Diagram Design Issue
Dbms 7: ER Diagram Design IssueAmiya9439793168
 
Relational Model and Relational Algebra - Lecture 3 - Introduction to Databas...
Relational Model and Relational Algebra - Lecture 3 - Introduction to Databas...Relational Model and Relational Algebra - Lecture 3 - Introduction to Databas...
Relational Model and Relational Algebra - Lecture 3 - Introduction to Databas...Beat Signer
 
Relational Database Design - Lecture 4 - Introduction to Databases (1007156ANR)
Relational Database Design - Lecture 4 - Introduction to Databases (1007156ANR)Relational Database Design - Lecture 4 - Introduction to Databases (1007156ANR)
Relational Database Design - Lecture 4 - Introduction to Databases (1007156ANR)Beat Signer
 
Ch 5 O O Data Modeling Class
Ch 5  O O  Data Modeling ClassCh 5  O O  Data Modeling Class
Ch 5 O O Data Modeling Classguest8fdbdd
 
ER Modeling and Introduction to RDBMS
ER Modeling and Introduction to RDBMSER Modeling and Introduction to RDBMS
ER Modeling and Introduction to RDBMSRubal Sagwal
 
Data modeling using the entity relationship model
Data modeling using the entity relationship modelData modeling using the entity relationship model
Data modeling using the entity relationship modelJafar Nesargi
 
Basic database analysis(database)
Basic database analysis(database)Basic database analysis(database)
Basic database analysis(database)welcometofacebook
 
Er model ppt
Er model pptEr model ppt
Er model pptPihu Goel
 
Data Models & Introduction to UML
Data Models & Introduction to UML Data Models & Introduction to UML
Data Models & Introduction to UML نبيله نواز
 
Islamic University Previous Year Question Solution 2019 (ADBMS)
Islamic University Previous Year Question Solution 2019 (ADBMS)Islamic University Previous Year Question Solution 2019 (ADBMS)
Islamic University Previous Year Question Solution 2019 (ADBMS)Rakibul Hasan Pranto
 
Mit202 data base management system(dbms)
Mit202  data base management system(dbms)Mit202  data base management system(dbms)
Mit202 data base management system(dbms)smumbahelp
 
Bca3020– data base management system(dbms)
Bca3020– data base management system(dbms)Bca3020– data base management system(dbms)
Bca3020– data base management system(dbms)smumbahelp
 
ER DIAGRAM & ER MODELING IN DBMS
ER DIAGRAM & ER MODELING IN DBMSER DIAGRAM & ER MODELING IN DBMS
ER DIAGRAM & ER MODELING IN DBMSssuser20b618
 

Mais procurados (20)

Ch 6 Logical D B Design
Ch 6  Logical D B  DesignCh 6  Logical D B  Design
Ch 6 Logical D B Design
 
Dbms 7: ER Diagram Design Issue
Dbms 7: ER Diagram Design IssueDbms 7: ER Diagram Design Issue
Dbms 7: ER Diagram Design Issue
 
The Relational Model
The Relational ModelThe Relational Model
The Relational Model
 
DBMS CS2
DBMS CS2DBMS CS2
DBMS CS2
 
Relational Model and Relational Algebra - Lecture 3 - Introduction to Databas...
Relational Model and Relational Algebra - Lecture 3 - Introduction to Databas...Relational Model and Relational Algebra - Lecture 3 - Introduction to Databas...
Relational Model and Relational Algebra - Lecture 3 - Introduction to Databas...
 
Relational Database Design - Lecture 4 - Introduction to Databases (1007156ANR)
Relational Database Design - Lecture 4 - Introduction to Databases (1007156ANR)Relational Database Design - Lecture 4 - Introduction to Databases (1007156ANR)
Relational Database Design - Lecture 4 - Introduction to Databases (1007156ANR)
 
Ch 5 O O Data Modeling Class
Ch 5  O O  Data Modeling ClassCh 5  O O  Data Modeling Class
Ch 5 O O Data Modeling Class
 
ER Modeling and Introduction to RDBMS
ER Modeling and Introduction to RDBMSER Modeling and Introduction to RDBMS
ER Modeling and Introduction to RDBMS
 
Denormalization
DenormalizationDenormalization
Denormalization
 
Data modeling using the entity relationship model
Data modeling using the entity relationship modelData modeling using the entity relationship model
Data modeling using the entity relationship model
 
E R model
E R modelE R model
E R model
 
Basic database analysis(database)
Basic database analysis(database)Basic database analysis(database)
Basic database analysis(database)
 
Entity relationship modelling
Entity relationship modellingEntity relationship modelling
Entity relationship modelling
 
Er model ppt
Er model pptEr model ppt
Er model ppt
 
DBMS 2 | Entity Relationship Model
DBMS 2 | Entity Relationship ModelDBMS 2 | Entity Relationship Model
DBMS 2 | Entity Relationship Model
 
Data Models & Introduction to UML
Data Models & Introduction to UML Data Models & Introduction to UML
Data Models & Introduction to UML
 
Islamic University Previous Year Question Solution 2019 (ADBMS)
Islamic University Previous Year Question Solution 2019 (ADBMS)Islamic University Previous Year Question Solution 2019 (ADBMS)
Islamic University Previous Year Question Solution 2019 (ADBMS)
 
Mit202 data base management system(dbms)
Mit202  data base management system(dbms)Mit202  data base management system(dbms)
Mit202 data base management system(dbms)
 
Bca3020– data base management system(dbms)
Bca3020– data base management system(dbms)Bca3020– data base management system(dbms)
Bca3020– data base management system(dbms)
 
ER DIAGRAM & ER MODELING IN DBMS
ER DIAGRAM & ER MODELING IN DBMSER DIAGRAM & ER MODELING IN DBMS
ER DIAGRAM & ER MODELING IN DBMS
 

Destaque

Dos bocas and caonillas reservoir optimization
Dos bocas and caonillas reservoir optimizationDos bocas and caonillas reservoir optimization
Dos bocas and caonillas reservoir optimizationCarlos Day PE, MBA, M.ASCE
 
Direct Policy Conditioning for reservoir operation
Direct Policy Conditioning for reservoir operationDirect Policy Conditioning for reservoir operation
Direct Policy Conditioning for reservoir operationAndrea Castelletti
 
Reasoning.pdf
Reasoning.pdfReasoning.pdf
Reasoning.pdfbwlomas
 
2 5 reasoning in algebra and geometry (1)
2 5 reasoning in algebra and geometry (1)2 5 reasoning in algebra and geometry (1)
2 5 reasoning in algebra and geometry (1)Mahr Rich
 
Default Logics for Plausible Reasoning with Controversial Axioms
Default Logics for Plausible Reasoning with Controversial AxiomsDefault Logics for Plausible Reasoning with Controversial Axioms
Default Logics for Plausible Reasoning with Controversial AxiomsRommel Carvalho
 
LL Upper Sec D - Logic and Reasoning
LL Upper Sec D - Logic and ReasoningLL Upper Sec D - Logic and Reasoning
LL Upper Sec D - Logic and ReasoningDesignlab Innovation
 
Logic-Based Representation, Reasoning and Machine Learning for Event Recognition
Logic-Based Representation, Reasoning and Machine Learning for Event RecognitionLogic-Based Representation, Reasoning and Machine Learning for Event Recognition
Logic-Based Representation, Reasoning and Machine Learning for Event RecognitionAlexanderArtikis
 
Reasoning in Description Logics
Reasoning in Description Logics  Reasoning in Description Logics
Reasoning in Description Logics R A Akerkar
 
Geometry 201 unit 2.5
Geometry 201 unit 2.5Geometry 201 unit 2.5
Geometry 201 unit 2.5Mark Ryder
 
Natural Language Processing: L03 maths fornlp
Natural Language Processing: L03 maths fornlpNatural Language Processing: L03 maths fornlp
Natural Language Processing: L03 maths fornlpananth
 
HC-4016, Heterogeneous Implementation of Neural Network Algorithms, by Dmitri...
HC-4016, Heterogeneous Implementation of Neural Network Algorithms, by Dmitri...HC-4016, Heterogeneous Implementation of Neural Network Algorithms, by Dmitri...
HC-4016, Heterogeneous Implementation of Neural Network Algorithms, by Dmitri...AMD Developer Central
 
Geometry 1.1 patterns and inductive reasoning
Geometry 1.1 patterns and inductive reasoningGeometry 1.1 patterns and inductive reasoning
Geometry 1.1 patterns and inductive reasoningkca1528
 
Direct use of hydroclimatic information for reservoir operation
Direct use of hydroclimatic information for reservoir operationDirect use of hydroclimatic information for reservoir operation
Direct use of hydroclimatic information for reservoir operationAndrea Castelletti
 
Deep Learning For Practitioners, lecture 2: Selecting the right applications...
Deep Learning For Practitioners,  lecture 2: Selecting the right applications...Deep Learning For Practitioners,  lecture 2: Selecting the right applications...
Deep Learning For Practitioners, lecture 2: Selecting the right applications...ananth
 
Recurrent Neural Network, Fractal for Deep Learning
Recurrent Neural Network, Fractal for Deep LearningRecurrent Neural Network, Fractal for Deep Learning
Recurrent Neural Network, Fractal for Deep Learning신동 강
 
Greek Power Point1.4 Segment 5
Greek Power Point1.4 Segment 5Greek Power Point1.4 Segment 5
Greek Power Point1.4 Segment 5greepie
 
Neural Network Based Player Retention Prediction in Free to Play Games
Neural Network Based Player Retention Prediction in Free to Play GamesNeural Network Based Player Retention Prediction in Free to Play Games
Neural Network Based Player Retention Prediction in Free to Play GamesAMR koura
 
5. more interest formula (part ii)
5. more interest formula (part ii)5. more interest formula (part ii)
5. more interest formula (part ii)Mohsin Siddique
 

Destaque (20)

Dos bocas and caonillas reservoir optimization
Dos bocas and caonillas reservoir optimizationDos bocas and caonillas reservoir optimization
Dos bocas and caonillas reservoir optimization
 
Direct Policy Conditioning for reservoir operation
Direct Policy Conditioning for reservoir operationDirect Policy Conditioning for reservoir operation
Direct Policy Conditioning for reservoir operation
 
Reasoning.pdf
Reasoning.pdfReasoning.pdf
Reasoning.pdf
 
2 5 reasoning in algebra and geometry (1)
2 5 reasoning in algebra and geometry (1)2 5 reasoning in algebra and geometry (1)
2 5 reasoning in algebra and geometry (1)
 
Default Logics for Plausible Reasoning with Controversial Axioms
Default Logics for Plausible Reasoning with Controversial AxiomsDefault Logics for Plausible Reasoning with Controversial Axioms
Default Logics for Plausible Reasoning with Controversial Axioms
 
LL Upper Sec D - Logic and Reasoning
LL Upper Sec D - Logic and ReasoningLL Upper Sec D - Logic and Reasoning
LL Upper Sec D - Logic and Reasoning
 
Logic-Based Representation, Reasoning and Machine Learning for Event Recognition
Logic-Based Representation, Reasoning and Machine Learning for Event RecognitionLogic-Based Representation, Reasoning and Machine Learning for Event Recognition
Logic-Based Representation, Reasoning and Machine Learning for Event Recognition
 
Neural network
Neural networkNeural network
Neural network
 
Reasoning in Description Logics
Reasoning in Description Logics  Reasoning in Description Logics
Reasoning in Description Logics
 
Geometry 201 unit 2.5
Geometry 201 unit 2.5Geometry 201 unit 2.5
Geometry 201 unit 2.5
 
Natural Language Processing: L03 maths fornlp
Natural Language Processing: L03 maths fornlpNatural Language Processing: L03 maths fornlp
Natural Language Processing: L03 maths fornlp
 
HC-4016, Heterogeneous Implementation of Neural Network Algorithms, by Dmitri...
HC-4016, Heterogeneous Implementation of Neural Network Algorithms, by Dmitri...HC-4016, Heterogeneous Implementation of Neural Network Algorithms, by Dmitri...
HC-4016, Heterogeneous Implementation of Neural Network Algorithms, by Dmitri...
 
Geometry 1.1 patterns and inductive reasoning
Geometry 1.1 patterns and inductive reasoningGeometry 1.1 patterns and inductive reasoning
Geometry 1.1 patterns and inductive reasoning
 
Direct use of hydroclimatic information for reservoir operation
Direct use of hydroclimatic information for reservoir operationDirect use of hydroclimatic information for reservoir operation
Direct use of hydroclimatic information for reservoir operation
 
(Part i)- open channels
(Part i)- open channels(Part i)- open channels
(Part i)- open channels
 
Deep Learning For Practitioners, lecture 2: Selecting the right applications...
Deep Learning For Practitioners,  lecture 2: Selecting the right applications...Deep Learning For Practitioners,  lecture 2: Selecting the right applications...
Deep Learning For Practitioners, lecture 2: Selecting the right applications...
 
Recurrent Neural Network, Fractal for Deep Learning
Recurrent Neural Network, Fractal for Deep LearningRecurrent Neural Network, Fractal for Deep Learning
Recurrent Neural Network, Fractal for Deep Learning
 
Greek Power Point1.4 Segment 5
Greek Power Point1.4 Segment 5Greek Power Point1.4 Segment 5
Greek Power Point1.4 Segment 5
 
Neural Network Based Player Retention Prediction in Free to Play Games
Neural Network Based Player Retention Prediction in Free to Play GamesNeural Network Based Player Retention Prediction in Free to Play Games
Neural Network Based Player Retention Prediction in Free to Play Games
 
5. more interest formula (part ii)
5. more interest formula (part ii)5. more interest formula (part ii)
5. more interest formula (part ii)
 

Semelhante a Reasoning of database consistency through description logics

Entity relationship model
Entity relationship modelEntity relationship model
Entity relationship modelasmitaanpat
 
Chapter 6 relational data model and relational
Chapter  6  relational data model and relationalChapter  6  relational data model and relational
Chapter 6 relational data model and relationalJafar Nesargi
 
Chapter 6 relational data model and relational
Chapter  6  relational data model and relationalChapter  6  relational data model and relational
Chapter 6 relational data model and relationalJafar Nesargi
 
Dbms ii mca-ch4-relational model-2013
Dbms ii mca-ch4-relational model-2013Dbms ii mca-ch4-relational model-2013
Dbms ii mca-ch4-relational model-2013Prosanta Ghosh
 
Lecture-2-Relational-Algebra-and-SQL-Advanced-DataBase-Theory-MS.pdf
Lecture-2-Relational-Algebra-and-SQL-Advanced-DataBase-Theory-MS.pdfLecture-2-Relational-Algebra-and-SQL-Advanced-DataBase-Theory-MS.pdf
Lecture-2-Relational-Algebra-and-SQL-Advanced-DataBase-Theory-MS.pdfssuserf86fba
 
Rdms-Relational Database Management System
Rdms-Relational Database Management SystemRdms-Relational Database Management System
Rdms-Relational Database Management SystemTonmoy zahid Rishad
 
Dbms presentation
Dbms presentationDbms presentation
Dbms presentationamaresh144
 
Er & eer to relational mapping
Er & eer to relational mappingEr & eer to relational mapping
Er & eer to relational mappingsaurabhshertukde
 
4_RelationalDataModelAndRelationalMapping.pdf
4_RelationalDataModelAndRelationalMapping.pdf4_RelationalDataModelAndRelationalMapping.pdf
4_RelationalDataModelAndRelationalMapping.pdfLPhct2
 
ENCh05.ppt
ENCh05.pptENCh05.ppt
ENCh05.pptBestnegi
 
Relational database
Relational databaseRelational database
Relational databaseDucat
 
Module 2 - part i
Module   2 - part iModule   2 - part i
Module 2 - part iParthNavale
 
4 the relational data model and relational database constraints
4 the relational data model and relational database constraints4 the relational data model and relational database constraints
4 the relational data model and relational database constraintsKumar
 
Week 4 The Relational Data Model & The Entity Relationship Data Model
Week 4 The Relational Data Model & The Entity Relationship Data ModelWeek 4 The Relational Data Model & The Entity Relationship Data Model
Week 4 The Relational Data Model & The Entity Relationship Data Modeloudesign
 
structureformal1.ppt
structureformal1.pptstructureformal1.ppt
structureformal1.pptFaiz Zeya
 

Semelhante a Reasoning of database consistency through description logics (20)

Entity relationship model
Entity relationship modelEntity relationship model
Entity relationship model
 
Unit 2 DBMS
Unit 2 DBMSUnit 2 DBMS
Unit 2 DBMS
 
Chapter 6 relational data model and relational
Chapter  6  relational data model and relationalChapter  6  relational data model and relational
Chapter 6 relational data model and relational
 
Chapter 6 relational data model and relational
Chapter  6  relational data model and relationalChapter  6  relational data model and relational
Chapter 6 relational data model and relational
 
Dbms ii mca-ch4-relational model-2013
Dbms ii mca-ch4-relational model-2013Dbms ii mca-ch4-relational model-2013
Dbms ii mca-ch4-relational model-2013
 
Lecture-2-Relational-Algebra-and-SQL-Advanced-DataBase-Theory-MS.pdf
Lecture-2-Relational-Algebra-and-SQL-Advanced-DataBase-Theory-MS.pdfLecture-2-Relational-Algebra-and-SQL-Advanced-DataBase-Theory-MS.pdf
Lecture-2-Relational-Algebra-and-SQL-Advanced-DataBase-Theory-MS.pdf
 
Rdms-Relational Database Management System
Rdms-Relational Database Management SystemRdms-Relational Database Management System
Rdms-Relational Database Management System
 
Dbms presentation
Dbms presentationDbms presentation
Dbms presentation
 
Er & eer to relational mapping
Er & eer to relational mappingEr & eer to relational mapping
Er & eer to relational mapping
 
4_RelationalDataModelAndRelationalMapping.pdf
4_RelationalDataModelAndRelationalMapping.pdf4_RelationalDataModelAndRelationalMapping.pdf
4_RelationalDataModelAndRelationalMapping.pdf
 
RDBMS
RDBMSRDBMS
RDBMS
 
ENCh05.ppt
ENCh05.pptENCh05.ppt
ENCh05.ppt
 
Rdbms
RdbmsRdbms
Rdbms
 
Relational database
Relational databaseRelational database
Relational database
 
Module 2 - part i
Module   2 - part iModule   2 - part i
Module 2 - part i
 
4 the relational data model and relational database constraints
4 the relational data model and relational database constraints4 the relational data model and relational database constraints
4 the relational data model and relational database constraints
 
Week 4 The Relational Data Model & The Entity Relationship Data Model
Week 4 The Relational Data Model & The Entity Relationship Data ModelWeek 4 The Relational Data Model & The Entity Relationship Data Model
Week 4 The Relational Data Model & The Entity Relationship Data Model
 
The Smartpath Information Systems | BASIC RDBMS CONCEPTS
The Smartpath Information Systems | BASIC RDBMS CONCEPTSThe Smartpath Information Systems | BASIC RDBMS CONCEPTS
The Smartpath Information Systems | BASIC RDBMS CONCEPTS
 
DBMS Part-2.pptx
DBMS Part-2.pptxDBMS Part-2.pptx
DBMS Part-2.pptx
 
structureformal1.ppt
structureformal1.pptstructureformal1.ppt
structureformal1.ppt
 

Mais de Ahmad karawash

Object-Oriented Programming (OOP)
Object-Oriented Programming (OOP)Object-Oriented Programming (OOP)
Object-Oriented Programming (OOP)Ahmad karawash
 
Introduction to-data-science
Introduction to-data-scienceIntroduction to-data-science
Introduction to-data-scienceAhmad karawash
 
How to understand your data
How to understand your dataHow to understand your data
How to understand your dataAhmad karawash
 
Cloud storage with AWS
Cloud storage with AWSCloud storage with AWS
Cloud storage with AWSAhmad karawash
 
Build a custom metrics on aws cloud
Build a custom metrics on aws cloudBuild a custom metrics on aws cloud
Build a custom metrics on aws cloudAhmad karawash
 
Password hashing, salting, bycrpt
Password hashing, salting, bycrptPassword hashing, salting, bycrpt
Password hashing, salting, bycrptAhmad karawash
 
Cloud computing and Service model
Cloud computing and Service modelCloud computing and Service model
Cloud computing and Service modelAhmad karawash
 
From use case to software architecture
From use case to software architectureFrom use case to software architecture
From use case to software architectureAhmad karawash
 

Mais de Ahmad karawash (10)

Object-Oriented Programming (OOP)
Object-Oriented Programming (OOP)Object-Oriented Programming (OOP)
Object-Oriented Programming (OOP)
 
Introduction to-data-science
Introduction to-data-scienceIntroduction to-data-science
Introduction to-data-science
 
How to understand your data
How to understand your dataHow to understand your data
How to understand your data
 
Cloud storage with AWS
Cloud storage with AWSCloud storage with AWS
Cloud storage with AWS
 
Message queues
Message queuesMessage queues
Message queues
 
Build a custom metrics on aws cloud
Build a custom metrics on aws cloudBuild a custom metrics on aws cloud
Build a custom metrics on aws cloud
 
Password hashing, salting, bycrpt
Password hashing, salting, bycrptPassword hashing, salting, bycrpt
Password hashing, salting, bycrpt
 
Brute Force Attack
Brute Force AttackBrute Force Attack
Brute Force Attack
 
Cloud computing and Service model
Cloud computing and Service modelCloud computing and Service model
Cloud computing and Service model
 
From use case to software architecture
From use case to software architectureFrom use case to software architecture
From use case to software architecture
 

Último

DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyAlfredo García Lavilla
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 

Último (20)

DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 
Commit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easyCommit 2024 - Secret Management made easy
Commit 2024 - Secret Management made easy
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 

Reasoning of database consistency through description logics

  • 1. Reasoning of database consistency through Description Logics 1Ahmad Karawash
  • 2. Overview Introduction Data models and Description Logics Description Logics and database querying Data integration Conclusion Ahmad Karawash
  • 3. Reasoning of database consistency through Description Logics Definitions : The object of knowledge representation is to express the problem in computer-understandable form Description Logics (DL) are a family of knowledge representation languages called description languages. Data model is essentially a language or set of concepts for describing a class of certain kinds of databases. Entity Relationship (ER) model used to describe the structure of data stored in the database. Introduction - Data models & DL - DL & database querying - Data integration - conclusion Ahmad Karawash
  • 4. Reasoning of database consistency through Description Logics what is ER? ER is the most widespread semantic data model, and it has become a standard, extensively used in the design phase of commercial applications. Introduction - Data models & DL - DL & database querying - Data integration - conclusion Ahmad Karawash
  • 5. Reasoning of database consistency through Description Logics ER elements: - Entities set: set of objects that have common properties.(ex: object person have name, phone, age). - Relationships: set of tuples (instances), each of which represents an association among a different combination of instances of the entities that participate in the relationship. - Attributes: express the Elementary properties whose values belong to one of several predefined domains, such as Integer, String, or Boolean. - An IS-A relation between two entities is denoted by an arrow from the more specific to the more general entity -ER-role: is introduced since each entity can participate in a relationship more than once ,The arity of a relationship is the number of its ER-roles. - Cardinality constraints can be attached to an ER-role in order to restrict the number of times each instance of an entity is allowed to participate. Introduction - Data models & DL - DL & database querying - Data integration - conclusion Ahmad Karawash
  • 6. Reasoning of database consistency through Description Logics Introduction - Data models & DL - DL & database querying - Data integration - conclusion ER symbols: - Domain symbol (D)  has predefined domain DB D - Entity symbol (E) -> set of attribute symbol (A) each has a unique domain - Relationship symbol (R) -> N ER-role symbols - Cardinality constraint -> - cminS from ER-role -> nonnegative integer - cmaxS from ER-role -> all positve integer (+infinity) String, integer, … E AA R E2E1 ER-roleER-role Ahmad Karawash
  • 7. Reasoning of database consistency through Description Logics Database (B) correspond to ER (S) - Expressed by nonempty finite set ΔB & function .B (as in algebra f : E-> R) -.B : D -> DB D (maps to predefined domain string, integer, …) - .B : E -> EB (maps from E to instance of E) - .B : A -> AB (maps to instance of attribute that connects entity to domain) .B : R -> RB (maps to instance of relationship that connect ER-roles to entities T : ER-roles -> ΔB <u1:o1,..,un:on>->T[ui]=oi ) Introduction - Data models & DL - DL & database querying - Data integration - conclusion R1 R2 E U1 U2 O1 O2 EB AB RB are instances of E, A, R Ahmad Karawash
  • 8. Reasoning of database consistency through Description Logics Database (B) is legal to ER (S) if it satisfy : - For each pair E1,E2 with E1 Is-a E2 => E1B C E2B (all individuals that satisfies E1 also satisfies E2) - For each pair R1,R2 with R1 Is-a R2 => R1B C R2B - For each entity E : e belong EB there is only one a(e,d) belong to AB such that e connect entity E to domain D. - For each relation R of arity N : all instance has the form <U1:O1,…,Un:On> - For each ER-role U of R with E : cmin(U) <= |{r belong R / r[U]=e }|<= cmax(U) Introduction - Data models & DL - DL & database querying - Data integration - conclusion Ahmad Karawash
  • 9. Reasoning of database consistency through Description Logics How to transform from ER to DLR knowledge? DLR is an expressive Description Logic (DL) with n-ary relations, particularly suited for modeling database schemas and queries. To transform from ER to DLR, a mapping function (Ø) should be introduced . Introduction - Data models & DL - DL & database querying - Data integration - conclusion Ahmad Karawash
  • 10. Reasoning of database consistency through Description Logics Introduction - Data models & DL - DL & database querying - Data integration - conclusion Ø(S) -> gives the knowledge base of ER S - Set of atomic concept of Ø(S)={set of entity & domain symbol of S} - Set of relation concept of Ø(S)={ - R in S -> PR in Ø(S) [relation symbol between E and R] - A in S -> PA in Ø(S) [attribute symbol between E and Domain] } - Set of axiom : - E1 Is-a E2 => E1 C E2 - R1 Is-a R2 => PR1 C PR2 - For each attribute A with domain D of an entity E, E C (forall[$1](PA ^ ($2:D))) ^ =1 [$1]PA - For each relationship R of arity n with ER-roles PR C ($μ R(U1):E1) ^ …••• ^($μ R(Un):En) Ahmad Karawash
  • 11. Reasoning of database consistency through Description Logics Introduction - Data models & DL - DL & database querying - Data integration - conclusion ER DLR Ahmad Karawash
  • 12. Reasoning of database consistency through Description Logics Introduction - Data models & DL - DL & database querying - Data integration - conclusion What benefits can be derived from having established relationships? Reasoning: - Entity satisfiability, i.e., whether for every concept C, S admits a model in which it has a nonempty extension. If C must always have an empty extension then there is an inconsistency - Relation satisfiability, i.e., whether S admits a model in which a certain relation has a nonempty extension.(similar to above) - Consistency of the ER schema, i.e., whether S admits a finite model. Without this, there is no database that satisfies the schema, so inconsistent if infinite model. Ahmad Karawash
  • 13. Reasoning of database consistency through Description Logics Introduction - Data models & DL - DL & database querying - Data integration - conclusion Reasoning (continue): Redundancy of the ER schema. Various forms of redundancy in the ER schema can be detected: e.g., if A, B are entities and both A v B and B v A hold, we can conclude that one of the entities is redundant. - Stronger constraints on relationship roles. - Entity subsumption, i.e., whether the extension of one concept B is a subset of the extension of another concept A in every model of S. This property suggests that the designer check for the possible omission of an explicit IS-A relationship between B and A. - Relation subsumption, i.e., whether the extension of one relation is a subset of the extension of another relation in every model of S. (Similar to the above.) Ahmad Karawash
  • 14. Reasoning of database consistency through Description Logics Introduction - Data models & DL - DL & database querying - Data integration - conclusion Description Logics as query languages: - the query description can be compared to the inconsistent description. If they are equivalent, then there is surely a mistake - The query can be classified with respect to the concepts in the schema. This can be used to help users pose queries in an unfamiliar domain. - Queries can also be classified with respect to each other into a subsumption hierarchy. In an environment where several people are asking exploratory questions about the data over a long period of time (e.g., data mining by humans), it is very useful to have the questions organized Ahmad Karawash
  • 15. Data Integration  Integrating different data sources is one of the fundamental problems faced by the database community.  The goal of a data integration system is to provide a uniform interface to various data sources [Levy,2000].  The design of a data integration system is a very complex task, which comprises several different aspects. Reasoning of database consistency through Description Logics Introduction - Data models & DL - DL & database querying - Data integration - conclusion Ahmad Karawash 6
  • 16. Conclusion  The greatest advantage of DL models is not representing information model only but reasoning with the model.  The subsumption relationship can be used for semantic query optimization.  DLs are useful in heterogeneous or federated databases.  The meaning of the DL model is unambiguous and precise and is capable to check the consistency of any entire model. Reasoning of database consistency through Description Logics Introduction - Data models & DL - DL & database querying - Data integration - conclusion Ahmad Karawash 7
  • 18. References  Krötzsch, M., Simacikˇ, F., Horrocks, I.: A Description Logic Primer. CoRR. abs/1201.4, 1–16 (2012).  Lutz, C.,Toman, D.: Conjunctive Query Answering in the Description Logic EL using a Relational Database System. International Joint Conferences on Artificial Intelligence. pp. 2070–2075 (2009).  Calvanese, D., De Giacomo, G., Lembo, D., Lenzerini, M., Rosati, R.: Data complexity of query answering in description logics. Artif. Intell. 195, 335–360 (2013).  Motik, B., Horrocks, I., Sattler, U.: Integrating Description Logics and Relational Databases. Science (80-. ). 1–44 (2006).  Bertossi, L.: Consistent query answering in databases, (2006).  Borgida, A., Lenzerini, M., Rosati: Description Logics for Data Bases. Description Logic Handbook. pp. 472–494 (2002).  ….. Ahmad Karawash