Logics for Data and Knowledge Representation

Slides:



Advertisements
Similar presentations
Modal Logic with Variable Modalities & its Applications to Querying Knowledge Bases Evgeny Zolin The University of Manchester
Advertisements

CS848: Topics in Databases: Foundations of Query Optimization Topics covered  Introduction to description logic: Single column QL  The ALC family of.
OWL - DL. DL System A knowledge base (KB) comprises two components, the TBox and the ABox The TBox introduces the terminology, i.e., the vocabulary of.
An Introduction to Description Logics
1 A Description Logic with Concrete Domains CS848 presentation Presenter: Yongjuan Zou.
FiRE Fuzzy Reasoning Engine Nikolaos Simou National Technical University of Athens.
LDK R Logics for Data and Knowledge Representation Description Logics as query language.
An Introduction to Description Logics. What Are Description Logics? A family of logic based Knowledge Representation formalisms –Descendants of semantic.
Tableau Algorithm.
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
LDK R Logics for Data and Knowledge Representation ClassL (part 3): Reasoning with an ABox 1.
Topics in artificial intelligence 1/1 Dr hab. inż. Joanna Józefowska, prof. PP Reasoning and search techniques.
Logics for Data and Knowledge Representation Exercises: DL.
LDK R Logics for Data and Knowledge Representation Modal Logic Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto Giunchiglia,
1 How to decide Query Containment under Constraints using a Description Logic Ian Horrocks, Ulrike Sattler, Sergio Tessaris, and Stephan Tobies presented.
LDK R Logics for Data and Knowledge Representation PL of Classes.
LDK R Logics for Data and Knowledge Representation Description Logics (ALC)
More on Description Logic(s) Frederick Maier. Note Added 10/27/03 So, there are a few errors that will be obvious to some: So, there are a few errors.
LDK R Logics for Data and Knowledge Representation Description Logics.
Logics for Data and Knowledge Representation ClassL (part 1): syntax and semantics.
LDK R Logics for Data and Knowledge Representation Propositional Logic: Reasoning First version by Alessandro Agostini and Fausto Giunchiglia Second version.
Knowledge Representation in Description Logic. 1. Introduction Description logic denotes a family of knowledge representation formalisms that model the.
DL Overview Second Pass Ming Fang 06/19/2009. Outlines  Description Languages  Knowledge Representation in DL  Logical Inference in DL.
LDK R Logics for Data and Knowledge Representation ClassL (Propositional Description Logic with Individuals) 1.
LDK R Logics for Data and Knowledge Representation First Order Logics (FOL) Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto.
Logics for Data and Knowledge Representation Exercises: ClassL Fausto Giunchiglia, Rui Zhang and Vincenzo Maltese.
LDK R Logics for Data and Knowledge Representation ClassL (part 2): Reasoning with a TBox 1.
ece 627 intelligent web: ontology and beyond
LDK R Logics for Data and Knowledge Representation Propositional Logic Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto Giunchiglia,
Knowledge Repn. & Reasoning Lec #11+13: Frame Systems and Description Logics UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004.
Logics for Data and Knowledge Representation ClassL (part 1): syntax and semantics.
Knowledge Representation and Reasoning University "Politehnica" of Bucharest Department of Computer Science Fall 2011 Adina Magda Florea
Of 29 lecture 15: description logic - introduction.
CSE-291: Ontologies in Data Integration Department of Computer Science & Engineering University of California, San Diego CSE-291: Ontologies in Data Integration.
Logics for Data and Knowledge Representation Exercises: DL.
LDK R Logics for Data and Knowledge Representation Description Logics: family of languages.
Ontology Technology applied to Catalogues Paul Kopp.
Logics for Data and Knowledge Representation ClassL (part 1): syntax and semantics.
LDK R Logics for Data and Knowledge Representation Description Logics.
Logical Agents. Inference : Example 1 How many variables? 3 variables A,B,C How many models? 2 3 = 8 models.
Logical Agents. Outline Knowledge-based agents Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability.
1 Representing and Reasoning on XML Documents: A Description Logic Approach D. Calvanese, G. D. Giacomo, M. Lenzerini Presented by Daisy Yutao Guo University.
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
ece 720 intelligent web: ontology and beyond
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Description logics (book, page 456)
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
CIS Monthly Seminar – Software Engineering and Knowledge Management IS Enterprise Modeling Ontologies Presenter : Dr. S. Vasanthapriyan Senior Lecturer.
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
Presentation transcript:

Logics for Data and Knowledge Representation ClassL (part 2): TBOX and ABOX

Outline Terminology (TBox) Normalization of a TBox Reasoning with the TBox Some definitions Primitive and defined concepts Use and directly use Cyclic and acyclic terminologies Expansion of a TBox Eliminating the TBox: Reducing to DPLL reasoning 2

Terminology (TBox) TBOX :: NORMALIZATION :: REASONING WITH A TBOX :: DEFINITIONS :: ELIMINATING THE TBOX A terminology (or TBox) is a set of definitions and specializations Terminological axioms express constraints on the concepts of the language, i.e. they limit the possible models The TBox is the set of all the constraints on the possible models Equivalence TBOX Equality axiom Definition Woman ≡ Person ⊓ Female Man ≡ Person ⊓ ¬Woman Student ⊑ Person ⊓ Study Bachelor ≡ Student ⊓ Undergraduate PhD ⊑ Student ⊓ Lecturer Inclusion axiom Specialization Subsumption 3

Semantics: Venn diagrams to represent axioms TBOX :: NORMALIZATION :: REASONING WITH A TBOX :: DEFINITIONS :: ELIMINATING THE TBOX σ(A ⊑ B) σ(A ≡ B) B A A B 4

Normalization of a TBox TBOX :: NORMALIZATION :: REASONING WITH A TBOX :: DEFINITIONS :: ELIMINATING THE TBOX It is always possible to transform a specialization into a definition by introducing an auxiliary symbol as follows: If from a TBox we transform all specializations into definitions we say we have normalized the TBox A TBox with definitions only is called regular. Woman ⊑ Person (the specialization) Woman ≡ Person ⊓ Female (the normalized specialization) 5

Reasoning with a TBox T TBOX :: NORMALIZATION :: REASONING WITH A TBOX :: DEFINITIONS :: ELIMINATING THE TBOX Given two class-propositions P and Q, we want to reason about: Satisfiability w.r.t. T T ⊨ P ? A concept P is satisfiable w.r.t. a terminology T, if there exists an interpretation I with I ⊨ θ for all θ ∈ T, and such that I ⊨ P, I(P)≠∅ Subsumption T ⊨ P ⊑ Q? T ⊨ Q ⊑ P? A concept P is subsumed by a concept Q w.r.t. T if I(P)  I(Q) for every model I of T Equivalence T ⊨ P ⊑ Q and T ⊨ Q ⊑ P? Two concepts P and Q are equivalent w.r.t. T if I(P) = I(Q) for every model I of T Disjointness T ⊨ P ⊓ Q ⊑ ⊥? Two concepts P and Q are disjoint with respect to T if their intersection is empty, I(P)  I(Q) = ∅, for every model I of T 6

TBox: primitive and defined concepts TBOX :: NORMALIZATION :: REASONING WITH A TBOX :: DEFINITIONS :: ELIMINATING THE TBOX In a TBox there are two kinds of concepts (symbols): Primitive concepts (or base symbols), which occur only on the right hand of axioms Defined concepts (or name symbols) which occur on the left hand of axioms A ⊑ B ⊓ (C ⊔ D) B, C and D are primitive concepts. A is a defined concept 7

Use and direct use Let A and B be atomic concepts in a terminology T. TBOX :: NORMALIZATION :: REASONING WITH A TBOX :: DEFINITIONS :: ELIMINATING THE TBOX Let A and B be atomic concepts in a terminology T. We say that A directly uses B in T if B appears in the right hand of the defintion of A. We say that A uses B in T if B appears in the right hand after the definition of A has been “unfolded” so that there are only primitive concepts in the left hand side of the definition of A A ⊑ B ⊓ (C ⊔ D) A directly uses B, C, D A ⊑ B ⊓ (C ⊔ D) ---> A ⊑ (C ⊔ E) ⊓ (C ⊔ D) B ⊑ C ⊔ E A directly uses B; A uses E (because B is defined in terms of E) 8

Cyclic and acyclic terminologies TBOX :: NORMALIZATION :: REASONING WITH A TBOX :: DEFINITIONS :: ELIMINATING THE TBOX A terminology T contains a cycle (is cyclic) if it contains a concept which uses itself. A terminilogy is acyclic otherwise Father ≡ Male ⊓ hasChild hasChild ≡ Father ⊔ Mother Is cyclic Parent ≡ Father ⊔ Mother Father ⊑ Male Mother ⊑ Female Male ≡ Person ⊓  Female Is acyclic 9

Expansion and equivalent terminologies TBOX :: NORMALIZATION :: REASONING WITH A TBOX :: DEFINITIONS :: ELIMINATING THE TBOX The expansion T’ of an acyclic terminology T is a terminology obtained from T by unfolding all definitions until all concepts occurring on the right hand side of definitions are primitive (direct use only) T and T’ are equivalent when they have the same expansion. Reasoning with T’ will yield the same results as reasoning with T. If T’ is the expansion of T then they are equivalent. NOTE: it is possible to expand also a cyclic TBox. In some cases some models exist even if the TBox is cyclic. These models are called fixpoints and there are some methods to find them and break the recursion (we will not see them). T T’ A ⊑ B ⊓ (C ⊔ D) A ⊑ (C ⊔ E) ⊓ (C ⊔ D) B ⊑ (C ⊔ E) B ⊑ (C ⊔ E) 10

Expansion requires normalization TBOX :: NORMALIZATION :: REASONING WITH A TBOX :: DEFINITIONS :: ELIMINATING THE TBOX To expand a terminology we should first normalize it (not strictly necessary). Otherwise, if we use a specialization to expand a definition, definitions reduce to specializations, as below: From now on we deal with regular terminologies only (see next slide for the regular version of the terminology T above) T Parent ≡ Father ⊔ Mother Father ⊑ Male Mother ⊑ Female Male ≡ Person ⊓  Female T’ Parent ⊑ (Person ⊓  Female) ⊔ Female Father ⊑ Person ⊓  Female Mother ⊑ Female Male ≡ Person ⊓  Female 11

Concept expansion TBOX :: NORMALIZATION :: REASONING WITH A TBOX :: DEFINITIONS :: ELIMINATING THE TBOX For each concept C we define the expansion of C with respect to T as the concept C’ that is obtained from C by replacing each occurrence of a name symbol A in C by the concept D, where A≡D is the definition of A in T’, the expansion of T T Parent ≡ Mother ⊔ Father Father ≡ Male ⊓ hasChild Mother ≡ Female ⊓ hasChild Male ≡ Person ⊓  Female The expansion of Parent w.r.t. T is: (Female ⊓ hasChild) ⊔ (Person ⊓  Female ⊓ hasChild) NOTE: The expansion of T to T’ or C to C’ can be costly: In the worst case T’ is exponential in the size of T, and this propagates to single concepts. 12

PL and ClassL: table of the symbols TBOX :: NORMALIZATION :: REASONING WITH A TBOX :: DEFINITIONS :: ELIMINATING THE TBOX PL and ClassL are notational variants PL ClassL Syntax ∧ ⊓ ∨ ⊔  ⊤ ⊥ → ⊑ ↔ ≡ P, Q... Semantics ∆={true, false} ∆={o, …} (compare models) RECALL: A proposition P is true iff it is satisfiable 13

Reduction to subsumption and unsatisfiability TBOX :: NORMALIZATION :: REASONING WITH A TBOX :: DEFINITIONS :: ELIMINATING THE TBOX Reduction to subsumption. Given two concepts C and D, C is unsatisfiable ⇔ C ⊑ ⊥ C ≡ D ⇔ C ⊑ D and D ⊑ C C ⊥ D ⇔ C ⊓ D ⊑ ⊥ Reduction to unsatisfiability. Given two concepts C and D, C ⊑ D ⇔ C ⊓ D is unsatisfiable C ≡ D ⇔ both (C ⊓ D) and (C ⊓ D) are unsatisfiable C ⊥ D ⇔ C ⊓ D is unsatisfiable 14

Eliminating the TBox using expansion TBOX :: NORMALIZATION :: REASONING WITH A TBOX :: DEFINITIONS :: ELIMINATING THE TBOX Assume C’ expansion of C w.r.t. T. For all σ satisfying all the axioms in T we have: T ⊨ C iff σ ⊨ C’ (Satisfiability) T ⊨ C ⊑ D iff σ ⊨ C’ ⊑ D’ (Subsumption, Equivalence) T ⊨ C ⊓ D ⊑ ⊥ iff σ ⊨ C’ ⊓ D’ ⊑ ⊥ (Disjointness) T Person ≡ Male ⊓ Female Male ≡ Person ⊓  Female Is Person satisfiable? NO! The expansion of Person w.r.t. T is: (Person ⊓  Female) ⊓ Female which is equivalent to ⊥ and therefore unsatisfiable CHANGED AND MOVED 15

Eliminating the TBox: the algorithm TBOX :: NORMALIZATION :: REASONING WITH A TBOX :: DEFINITIONS :: ELIMINATING THE TBOX With acyclic TBoxes T it is always possible to reduce reasoning problems w.r.t. T to problems without T. See for instance the algorithm for subsumption (all the others can be reduced to it). Input: a TBox T, the two concepts C and D Output: true if C ⊑ D holds or false otherwise boolean function IsSubsumedBy(T, C, D) { T’ = Normalize(T); C’ = Expand(C, T’); D’ = Expand(D, T’); C’ = RewriteInPL(C’); D’ = RewriteInPL(D’); return DPLL(C’ → D’); } Normalization Expansion, TBox elimination Conversion in PL DPLL Reasoning 16

Outline World descriptions, assertions (ABox) Reasoning with the ABox Eliminating the ABox: Reducing to DPLL reasoning 17

ABOX :: REASONING WITH AN ABOX :: ELIMINATING THE ABOX ABox, syntax ABOX :: REASONING WITH AN ABOX :: ELIMINATING THE ABOX The second component of the knowledge base is the world description, the ABox. In an ABox one introduces individuals, by giving them names, and one asserts properties about them. We denote individual names as a, b, c,… An assertion with concept C is called concept assertion (or simply assertion) in the form: C(a), C(b), C(c), … Student(paul) Professor(fausto) To be read: paul belongs to (is in) Student fausto belongs to (is in) Professor 18

ABOX :: REASONING WITH AN ABOX :: ELIMINATING THE ABOX ABox, semantics ABOX :: REASONING WITH AN ABOX :: ELIMINATING THE ABOX We give semantics to ABoxes by extending interpretations to individual names An interpretation I: L  pow(∆I) not only maps atomic concepts to sets, but in addition it maps each individual name a to an element aI ∈ ∆I, namely I(a) = aI ∈ ∆I I(C(a)) = aI ∈ CI Unique name assumption (UNA). We assume that distinct individual names denote distinct objects in the domain NOTE: ∆I denotes the domain of interpretation, a denotes the symbol used for the individual (the name), while aI is the actual individual of the domain. 19

ABOX :: REASONING WITH AN ABOX :: ELIMINATING THE ABOX Reasoning Services ABOX :: REASONING WITH AN ABOX :: ELIMINATING THE ABOX Given an ABox A, we can reason (w.r.t. a TBox T) about the following: Satisfiability/Consistency: An ABox A is consistent with respect to T if there is an interpretation I which is a model of both A and T. Instance checking: checking whether an assertion C(a) is entailed by an ABox, i.e. checking whether a belongs to C. A ⊨ C(a) if every interpretation that satisfies A also satisfies C(a). Instance retrieval: given a concept C, retrieve all the instances a which satisfy C. Concept realization: given a set of concepts and an individual a find the most specific concept(s) C (w.r.t. subsumption ordering) such that A ⊨ C(a). 20

ABOX :: REASONING WITH AN ABOX :: ELIMINATING THE ABOX RECALL: ABoxes contain assertions of the form C(a). To eliminate the ABox we need to create a corresponding concept for each assertion, e.g. of the form C-a and a new axiom C-a ⊑ C. This causes an exponential blow up. A = {Master(Chen), Master(Paul), PhD(Enzo), PhD(Ronald), Assistant(Rui)} New concepts: Master-Chen, Master-Paul, PhD-Enzo, PhD-Ronald, Assistant-Rui Their interpretation is the singleton set containing the individual. T is extended with: {Master-Chen ⊑ Master, PhD-Enzo ⊑ PhD, Assistant-Rui ⊑ Assistant} 21

Eliminating the ABox: the algorithm ABOX :: REASONING WITH AN ABOX :: ELIMINATING THE ABOX It is always possible to reduce reasoning problems w.r.t. an acyclic TBox T and an ABox A to problems without them. See for instance the algorithm for subsumption (all the others can be reduced to it). Input: a TBox T, an ABox A, the two concepts C and D Output: true if C ⊑ D holds or false otherwise boolean function IsSubsumedBy(T, A, C, D) { A’ = Expand(A, T); T’ = ConvertAssertions(T, A’); return IsSubsumedBy(T’, C, D) ; } ABox expansion ABox elimination DPLL Reasoning by eliminating T’. (see previous lesson) 22