Topics covered (class assignment)

Slides:



Advertisements
Similar presentations
Chapter 2 Revision of Mathematical Notations and Techniques
Advertisements

Query Answering based on Standard and Extended Modal Logic Evgeny Zolin The University of Manchester
Modal Logic with Variable Modalities & its Applications to Querying Knowledge Bases Evgeny Zolin The University of Manchester
CS848: Topics in Databases: Foundations of Query Optimization Topics covered  Introduction to description logic: Single column QL  The ALC family of.
Knowledge Representation and Reasoning using Description Logic Presenter Shamima Mithun.
Query Answering for OWL-DL with Rules Boris Motik Ulrike Sattler Rudi Studer.
An Introduction to Description Logics
Models of Concurrency Manna, Pnueli.
Vered Gafni – Formal Development of Real Time Systems 1 Statecharts Semantics.
Hybrid Systems Presented by: Arnab De Anand S. An Intuitive Introduction to Hybrid Systems Discrete program with an analog environment. What does it mean?
1 A Description Logic with Concrete Domains CS848 presentation Presenter: Yongjuan Zou.
Parallel Scheduling of Complex DAGs under Uncertainty Grzegorz Malewicz.
Combining the strengths of UMIST and The Victoria University of Manchester A Tableaux Decision Procedure for SHOIQ Ian Horrocks and Ulrike Sattler University.
1 Conditional XPath, the first order complete XPath dialect Maarten Marx Presented by: Einav Bar-Ner.
Foundations of Data-Flow Analysis. Basic Questions Under what circumstances is the iterative algorithm used in the data-flow analysis correct? How precise.
Dr. Alexandra I. Cristea CS 319: Theory of Databases: C3.
Reducing OWL Entailment to Description Logic Satisfiability Ian Horrocks and Patel Schneider Presented by: Muhammed Al-Muhammed.
Chapter 7 Reasoning about Knowledge by Neha Saxena Id: 13 CS 267.
Part 6: Description Logics. Languages for Ontologies In early days of Artificial Intelligence, ontologies were represented resorting to non-logic-based.
Basics of Reasoning in Description Logics
Relations Chapter 9.
Applied Discrete Mathematics Week 10: Equivalence Relations
CS848: Topics in Databases: Foundations of Query Optimization Topics Covered  Databases  QL  Query containment  More on QL.
Description Logics Franz Baader, Ian Horrocks, Ulrike Sattler Presented By Jahan Ara Arju Muhammad Nazmus Sakib CSCE
An Introduction to Description Logics. What Are Description Logics? A family of logic based Knowledge Representation formalisms –Descendants of semantic.
Ming Fang 6/12/2009. Outlines  Classical logics  Introduction to DL  Syntax of DL  Semantics of DL  KR in DL  Reasoning in DL  Applications.
Query Answering Based on the Modal Correspondence Theory Evgeny Zolin University of Manchester Manchester, UK
Chapter 9. Chapter Summary Relations and Their Properties Representing Relations Equivalence Relations Partial Orderings.
Chapter 9. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing Relations.
Using the TBox to Optimise SPARQL Queries Birte Glimm Yevgeny Kazakov Ilianna Kollia and Giorgos Stamou CS 848 Paper Critique Vishnu Prathish.
Chapter 9. Section 9.1 Binary Relations Definition: A binary relation R from a set A to a set B is a subset R ⊆ A × B. Example: Let A = { 0, 1,2 } and.
CS848: Topics in Databases: Foundations of Query Optimization Topics covered Overview of DEMO  Capturing database schema in QL  Differential query optimization.
Topics in artificial intelligence 1/1 Dr hab. inż. Joanna Józefowska, prof. PP Reasoning and search techniques.
Sets Define sets in 2 ways  Enumeration  Set comprehension (predicate on membership), e.g., {n | n  N   k  k  N  n = 10  k  0  n  50} the set.
1 How to decide Query Containment under Constraints using a Description Logic Ian Horrocks, Ulrike Sattler, Sergio Tessaris, and Stephan Tobies presented.
CS848: Topics in Databases: Foundations of Query Optimization Topics covered  Review of complexity.
Language: Set of Strings
The Semantic Web Presented by Zhimin Chen. HTML Is Human Readable, Not Machine understandable A Course Schedule Web Page Consequence: agents can’t effectively.
Mathematical Preliminaries
CS848: Topics in Databases: Information Integration Topics covered  Databases  QL  Query containment  An evaluation of QL.
DL Overview Second Pass Ming Fang 06/19/2009. Outlines  Description Languages  Knowledge Representation in DL  Logical Inference in DL.
Relations. Important Definitions We covered all of these definitions on the board on Monday, November 7 th. Definition 1 Definition 2 Definition 3 Definition.
THEORY OF COMPUTATION Komate AMPHAWAN 1. 2.
Chapter 9. Chapter Summary Relations and Their Properties n-ary Relations and Their Applications (not currently included in overheads) Representing Relations.
Chapter Relations and Their Properties
Description Logics Dr. Alexandra I. Cristea. Description Logics Description Logics allow formal concept definitions that can be reasoned about to be expressed.
ece 627 intelligent web: ontology and beyond
8.4 Closures of Relations Definition: The closure of a relation R with respect to property P is the relation obtained by adding the minimum number of.
Set Theory Concepts Set – A collection of “elements” (objects, members) denoted by upper case letters A, B, etc. elements are lower case brackets are used.
Presented by: Belgi Amir Seminar in Distributed Algorithms Designing correct concurrent algorithms Spring 2013.
Knowledge Representation and Reasoning University "Politehnica" of Bucharest Department of Computer Science Fall 2011 Adina Magda Florea
CSE-291: Ontologies in Data Integration Department of Computer Science & Engineering University of California, San Diego CSE-291: Ontologies in Data Integration.
LDK R Logics for Data and Knowledge Representation Description Logics: family of languages.
Lecture 9: Query Complexity Tuesday, January 30, 2001.
Math 3121 Abstract Algebra I Lecture 6 Midterm back over+Section 7.
1 Representing and Reasoning on XML Documents: A Description Logic Approach D. Calvanese, G. D. Giacomo, M. Lenzerini Presented by Daisy Yutao Guo University.
Binary Relation: A binary relation between sets A and B is a subset of the Cartesian Product A x B. If A = B we say that the relation is a relation on.
Representing Relations Using Digraphs
Relations and Their Properties
Unit-III Algebraic Structures
Relations Chapter 9.
ece 720 intelligent web: ontology and beyond
PROPERTIES OF REGULAR LANGUAGES
Simone Campanoni DFA foundations Simone Campanoni
CS201: Data Structures and Discrete Mathematics I
Logics for Data and Knowledge Representation
Lecture 10: Query Complexity
Description Logics.
Logics for Data and Knowledge Representation
Description logics (book, page 456)
Presentation transcript:

Topics covered (class assignment) SHIQ (from [Horrocks, Sattler and Tobies]) CS848: Topics in Databases: Foundations of Query Optimization

QL dependencies to DLA dependencies (class assignment) ( select name, age from EMP where loc = ‘Waterloo’ ) ´ ( select name, age from WATEMP ) ( select name where loc = ‘Toronto’ ) ´ ( select name from TOREMP ) ( select name from EMP ) ´ ( select name from WATEMP ) union all ( select name from TOREMP ) CS848: Topics in Databases: Foundations of Query Optimization

Dependency translation (cont’d) WEMP ´ EMP u (8loc.WATERLOO) WEMP v (> 1 eref) (8eref.WEMP) v C1 C1 v (8eref.WEMP) u (8wref.WATEMP) C1 v (C1:eref ! id) u (C1:wref ! id) C1 v (eref.name = wref.name) u (eref.age = wref.age) WATEMP v (> 1 wref) (8wref.WATEMP) v C1 TEMP ´ EMP u (8loc.TORONTO) TEMP v (> 1 eref) (8eref.TEMP) v C2 C2 v (8eref.TEMP) u (8tref.TOREMP) C2 v (C2:eref ! id) u (C2:tref ! id) C2 v (eref.name = tref.name) TOREMP v (> 1 tref) (8tref.TOREMP) v C2 CS848: Topics in Databases: Foundations of Query Optimization

Dependency translation (cont’d) EMP v (WEMP t TEMP) WATERLOO v STR u (:TORONTO) u (WATERLOO:! id) TORONTO v STR u (:WATERLOO) u (TORONTO:! id) ¤ v 8waterloo.WATERLOO ¤ v 8toronto.TORONTO CS848: Topics in Databases: Foundations of Query Optimization

Another approach WEMP ´ EMP u (8loc.WATERLOO) WEMP v (8wref.WATEMP) u (WEMP:wref ! id) WATEMP v (8eref.WEMP) u (WATEMP:eref ! id) WATEMP v (name = eref.name) u (age = eref.age) TEMP ´ EMP u (8loc.TORONTO) TEMP v (8tref.TOREMP) u (TEMP:tref ! id) TOREMP v (8eref.TEMP) u (TOREMP:eref ! id) TOREMP v (name = eref.name) EMP v (WEMP t TEMP) WATERLOO v STR u (:TORONTO) u (WATERLOO:! id) TORONTO v STR u (:WATERLOO) u (TORONTO:! id) ¤ v 8waterloo.WATERLOO ¤ v 8toronto.TORONTO CS848: Topics in Databases: Foundations of Query Optimization

Dialect SHIQ The S part stands for ALC plus transitive roles R+ µ R. Also introduces inverse roles. SI roles consist of (R [ {R- : R 2 R}) Inv(R) = R-; Inv(R-) = R. Trans(R) = true iff R 2 R+ or Inv(R) 2 R+ The H part means that we allows role inclusion axioms R1 v R2. Given a set R of role inclusion axioms, define the role hierarchy R+ ´ (R [ {Inv(R1) v Inv(R2) : R1 v R2 2 R}, v*) where v* is the reflexive transitive closure of v over R [ {Inv(R1) v Inv(R2) : R1 v R2 2 R}. CS848: Topics in Databases: Foundations of Query Optimization

Dialect SHIQ (cont’d) (union) D1 t D2 (D1)I [ (D2)I (universal concept) > D (primitive concept) C (C)I (transitive role) R 2 R+ (R)I = ((R)I )+ (negation) :D D – (D)I (intersection) D1 u D2 (D1)I Å (D2)I S (union) D1 t D2 (D1)I [ (D2)I (role value restriction) 8R.D {e1 : 8e2: (e1, e2) 2 (R)I ! e2 2 (D)I} (role existence) 9R.D {e1 : 9e2: (e1, e2) 2 (R)I Æ e2 2 (D)I} (role hierarchy) R1 v R2 (R1)I µ (R2)I H (inverse role) R- {(e2, e1) : (e1, e2) 2 (R)I} I (number restriction) (> n R) {e1 : |{e2 : (e1, e2) 2 (R)I}| ¸ n} N (number restriction) (6 n R) {e1 : n ¸ |{e2 : (e1, e2) 2 (R)I}|} (qualified number restriction) (> n R D) {e1 : |{e2 : (e1, e2) 2 (R)I Æ e2 2 (D)I}| ¸ n} Q (qualified number restriction) (6 n R D) {e1 : n ¸ |{e2 : (e1, e2) 2 (R)I Æ e2 2 (D)I}|} CS848: Topics in Databases: Foundations of Query Optimization

Dialect SHIQ (cont’d) An interpretation I satisfies a role hierarchy R+ iff (R1)I µ (R2)I for each R1 v* R2 2 R+. Concept D is satisfiable with respect to role hierarchy R+ iff there exists I that satisfies R+ and for which (D)I ¹ ;. CS848: Topics in Databases: Foundations of Query Optimization

Internalization in SHIQ Given terminology T, role inclusion axioms R, SHIQ concept D and transitive role U not occurring in T, D or R, define DT ´ u {:D1 t D2 : D1 v D2 2 T } and RU ´ R [ {R v U, Inv(R) v U : R occurs in T, D or R}. Then D is satisfiable with respect to T and R+ iff D u DT u 8U.DT is satisfiable with respect to (RU)+. CS848: Topics in Databases: Foundations of Query Optimization

Reasoning in SHIQ Based on an extension of the union generalized chase for ALC. To accommodate role inclusion hierarchies, allow arcs in a partial database to be labeled with sets of role names and role inverses. Write L(x, y) to denote the set of (possibly inverse) roles that label an arc from x to y. Write »D to denote the negation normal form of a SHIQ concept :D, and clos(D) to denote the smallest set of concepts in negation normal form that contains »D and is closed under subconcepts and ». Node y is an R2-successor of node x if an arc from x to y exists such that R1 2 L(x, y) and R1 v* R2. Node y is an R-neighbour of x iff y is an R-successor of x, or if x is an Inv(R)-successor of y. CS848: Topics in Databases: Foundations of Query Optimization

:C u 9(R1)-.(C u (6 1 R1)) u 8(R2)-.(9(R1)-.(C u (6 1 R1))) Blocking in SHIQ As with ALC with arbitrary terminologies, SHIN does not have the finite model property; e.g., when R2 is a transitive super-role of R1, :C u 9(R1)-.(C u (6 1 R1)) u 8(R2)-.(9(R1)-.(C u (6 1 R1))) requires the existence of an infinite (R1)- path. Therefore need blocking in chases to ensure termination. CS848: Topics in Databases: Foundations of Query Optimization

Blocking in SHIQ (cont’d) Node y2 is directly blocked in a partial database if it has ancestors y1, x2 and x1 such that 1. arcs exists from y1 to y2 and from x1 to x2, 2. L(x1, x2) = L(y1, y2), 3. L(x1) = L(y1) and 4. L(x2) = L(y2). In such cases, x2 is said to block y2. A node is indirectly blocked iff one of its ancestors is blocked or it has an incoming arc with an empty label. A node is blocked iff it is directly or indirectly blocked. CS848: Topics in Databases: Foundations of Query Optimization

The SHIQ chase u–rule: if 1. D1 u D2 2 L(x), 2. x is not indirectly blocked, and 3. {D1, D2} * L(x) then L(x) Ã L(x) [ {D1, D2} t–rule: if 1. D1 t D2 2 L(x), 2. x is not indirectly blocked and 3. {D1, D2} Å L(x) = ; then L(x) Ã L(x) [ {D1} or L(x) Ã L(x) [ {D2}. CS848: Topics in Databases: Foundations of Query Optimization

The SHIQ chase (cont’d) 9–rule: if 1. 9R.D 2 L(x), 2. x is not blocked and 3. x has no R-neighbour y with D 2 L(y) then create a new node y and arc (x, y) with L(x, y) Ã {R} and L(y) Ã {D}. 8–rule: if 1. 8R.D 2 L(x), 2. x is nor indirectly blocked and 3. there is an R-neighbour y of x with D Ï L(y) then L(y) Ã L(y) [ {D}. CS848: Topics in Databases: Foundations of Query Optimization

The SHIQ chase (cont’d) 8+ rule: if 1. 8R2.D 2 L(x), 2. x is not indirectly blocked, 3. there is some R1 such that Trans(R1) and R1 v* R2, 4. there is an R1–neighbour y of x such that 8R1.D Ï L(y) then L(y) Ã L(y) [ {8R1.D}. choose-rule: if 1. (6 n R D) 2 L(x) or (> n R D) 2 L(x), 3. there is an R-neighbour y of x such that {D, »D} Å L(y) = ; then L(y) Ã L(y) [ {D} or L(y) Ã L(y) [ {»D}. CS848: Topics in Databases: Foundations of Query Optimization

The SHIQ chase (cont’d) >–rule: if 1. (> n R D) 2 L(x), 2. x is not blocked, 3. there are not n R-neighbours y1, … , yn of x with D 2 L(yi) and yi ¹ yj for 1  i < j  n then create n new nodes y1, … , yn and arcs (x, yi) with L(x, yi) Ã {R}, L(yi) Ã {D} and yi ¹ yj for 1  i < j  n. CS848: Topics in Databases: Foundations of Query Optimization

The SHIQ chase (cont’d) 6–rule: if 1. (6 n R D) 2 L(x), 2. x is not indirectly blocked, 3. there are n+1 R-neighbours y1, … , yn+1 of x such that D 2 L(yi), y2 is not an ancestor of x and not y1 ¹ y2 then do the following: 1. L(y1) Ã L(y1) [ L(y2); 2. L(y1, x) Ã L(y1, x) [ Inv(L(x, y2)) if y1 is an ancestor of x; 3. L(x, y1) Ã L(x, y1) [ L(x, y2) if y1 is not an ancestor of x; 4. L(x, y2) Ã ; and 5. set z ¹ y1 for all z such that z ¹ y2. CS848: Topics in Databases: Foundations of Query Optimization

Complexity of reasoning A role is simple if it is neither transitive nor has transitive subroles. Theorem: The concept membership problem for SHIQ in which only simple roles occur within the scope of number restrictions is DEXPTIME-complete. Theorem: The concept membership problem for SI is PSPACE-complete. Theorem: The concept inclusion problem for SHIN in which arbitrary roles can occur within the scope of number restrictions is undecidable. CS848: Topics in Databases: Foundations of Query Optimization