Knowledge Representation and Description Logic Part 2

Similar documents
Structured Descriptions & Tradeoff Between Expressiveness and Tractability

An Introduction to Description Logics

Description Logics. an introduction into its basic ideas

An Introduction to Description Logic III

Knowledge Representation and Description Logic Part 3

Chapter 2 Background. 2.1 A Basic Description Logic

Logics for Data and Knowledge Representation

Phase 1. Phase 2. Phase 3. History. implementation of systems based on incomplete structural subsumption algorithms

Description Logics. Glossary. Definition

Introduzione alle logiche descrittive

OPPA European Social Fund Prague & EU: We invest in your future.

Restricted role-value-maps in a description logic with existential restrictions and terminological cycles

Lightweight Description Logics: DL-Lite A and EL ++

Description Logics. Adrian Groza. Department of Computer Science Technical University of Cluj-Napoca

Description Logics (DLs)

ALC Concept Learning with Refinement Operators

DESCRIPTION LOGICS. Paula Severi. October 12, University of Leicester

Principles of Knowledge Representation and Reasoning

Mathematical Logics Description Logic: Introduction

A RESOLUTION DECISION PROCEDURE FOR SHOIQ

Description logics. Description Logics. Applications. Outline. Syntax - AL. Tbox and Abox

Fuzzy Description Logics

Inverting Proof Systems for Secrecy under OWA

Modular Reuse of Ontologies: Theory and Practice

Mathematical Logics Description Logic: Tbox and Abox

Knowledge Representation for the Semantic Web Lecture 2: Description Logics I

OWL Semantics COMP Sean Bechhofer Uli Sattler

Teil III: Wissensrepräsentation und Inferenz. Kap.11: Beschreibungslogiken

Decidability of SHI with transitive closure of roles

A Survey of Temporal Knowledge Representations

A Zadeh-Norm Fuzzy Description Logic for Handling Uncertainty: Reasoning Algorithms and the Reasoning System

FOUNDATIONS OF SEMANTIC WEB TECHNOLOGIES

Relations to first order logic

Knowledge Bases in Description Logics

CS560 Knowledge Discovery and Management. CS560 - Lecture 3 1

arxiv: v2 [cs.lo] 21 Jul 2014

03 Review of First-Order Logic

Optimisation of Terminological Reasoning

Reasoning About Typicality in ALC and EL

A Crisp Representation for Fuzzy SHOIN with Fuzzy Nominals and General Concept Inclusions

Closed World Reasoning for OWL2 with Negation As Failure

Quasi-Classical Semantics for Expressive Description Logics

Modeling Ontologies Using OWL, Description Graphs, and Rules

An Introduction to Description Logic IX Tableau-based algorithm

Consequence-Based Reasoning for Ontology Classification

A Refined Tableau Calculus with Controlled Blocking for the Description Logic SHOI

Knowledge Representation for the Semantic Web

Introduction to Description Logic and Ontology Languages

Translating Ontologies from Predicate-based to Frame-based Languages

University of Oxford. Consequence-based Datatype Reasoning in EL: Identifying the Tractable Fragments

Least Common Subsumers and Most Specific Concepts in a Description Logic with Existential Restrictions and Terminological Cycles*

A New Approach to Knowledge Base Revision in DL-Lite

OWL Basics. Technologies for the Semantic Web. Building a Semantic Web. Ontology

Revising General Knowledge Bases in Description Logics

Complexity of Subsumption in the EL Family of Description Logics: Acyclic and Cyclic TBoxes

Probabilistic Ontologies: Logical Approach

Web Ontology Language (OWL)

INTEGRITY CONSTRAINTS FOR THE SEMANTIC WEB: AN OWL 2 DL EXTENSION

A normal form for hypergraph-based module extraction for SROIQ

Extended Decision Procedure for a Fragment of HL with Binders

Reasoning in the SHOQ(D n ) Description Logic

EXPLANATION AND DIAGNOSIS SERVICES FOR UNSATISFIABILITY AND INCONSISTENCY IN DESCRIPTION LOGICS

Week 4. COMP62342 Sean Bechhofer, Uli Sattler

Part 1: (Pills of) Knowledge Representation and Reasoning. Lucia Winter School, Daniele Nardi, December 2013 Knowledge Representation and Reasoning 1

On Axiomatic Rejection for the Description Logic ALC

Ontology and Database Systems: Knowledge Representation and Ontologies Part 2: Description Logics

Logic: Propositional Logic Truth Tables

473 Topics. Knowledge Representation III First-Order Logic. Logic-Based KR. Propositional. Logic vs. First Order

Role-depth Bounded Least Common Subsumers by Completion for EL- and Prob-EL-TBoxes

A MILP-based decision procedure for the (Fuzzy) Description Logic ALCB

Extracting Modules from Ontologies: A Logic-based Approach

Kernel Contraction in EL

Nonmonotonic Reasoning in Description Logic by Tableaux Algorithm with Blocking

OWL Semantics. COMP60421 Sean Bechhofer University of Manchester

The Complexity of Lattice-Based Fuzzy Description Logics

Tableau-based Revision for Expressive Description Logics with Individuals

Context-Sensitive Description Logics in a Dynamic Setting

A Fuzzy Description Logic

OntoRevision: A Plug-in System for Ontology Revision in

ALC + T: a Preferential Extension of Description Logics

Tractable Extensions of the Description Logic EL with Numerical Datatypes

The Bayesian Ontology Language BEL

An Introduction to Description Logics: Techniques, Properties, and Applications. NASSLLI, Day 2, Part 2. Reasoning via Tableau Algorithms.

Complexity Results and Practical Algorithms for Logics in Knowledge Representation

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

A Logical Framework for Modularity of Ontologies

Forgetting and uniform interpolation in large-scale description logic terminologies

The Information Flow Foundation for Fusing Inferences

Knowledge Representation and Description Logic Part 1

All Elephants are Bigger than All Mice

Plan-based Axiom Absorption for Tableau-based Description. Logics Reasoning

Paraconsistent OWL and Related Logics

First Order Logic (FOL)

From OWL to Description Logics. U. Straccia (ISTI - CNR) DLs & SW / 170

Knowledge base (KB) = set of sentences in a formal language Declarative approach to building an agent (or other system):

Inconsistency-Tolerant Reasoning with OWL DL

LTCS Report. Decidability and Complexity of Threshold Description Logics Induced by Concept Similarity Measures. LTCS-Report 16-07

First Order Logic: Syntax and Semantics

Translating XML Web Data into Ontologies

Transcription:

Knowledge Representation and Description Logic Part 2 Renata Wassermann renata@ime.usp.br Computer Science Department University of São Paulo September 2014 IAOA School Vitória Renata Wassermann Knowledge Representation and Description Logic Part 2 1 / 40

Interpretations - Blocks world A Green B C Non green Is there a green block directly on top of a non-green one? Renata Wassermann Knowledge Representation and Description Logic Part 2 2 / 40

Interpretations - Blocks world A Green B C Non green S = {On(a,b), On(b,c), Green(a), Green(c)} Renata Wassermann Knowledge Representation and Description Logic Part 2 3 / 40

Interpretations - Blocks world A Green B C Non green S = {On(a,b), On(b,c), Green(a), Green(c)} α = x y(green(x) Green(y) On(x,y)) Renata Wassermann Knowledge Representation and Description Logic Part 2 3 / 40

Interpretations - Blocks world A Green B C Non green S = {On(a,b), On(b,c), Green(a), Green(c)} α = x y(green(x) Green(y) On(x,y)) S =α? Renata Wassermann Knowledge Representation and Description Logic Part 2 3 / 40

Exercise on interpretations (Brachman & Levesque) For each of the following sentences, give a logical interpretation that makes that sentence false and the other two sentences true: (a) x y z((p(x, y) P(y, z)) P(x, z)) (b) x y((p(x, y) P(y, x)) x = y) (c) x y(p(a, y) P(x, b)) Renata Wassermann Knowledge Representation and Description Logic Part 2 4 / 40

(a) x y z((p(x, y) P(y, z)) P(x, z)) (b) x y((p(x, y) P(y, x)) x = y) (c) x y(p(a, y) P(x, b)) I = D, I D = {d 1, d 2, d 3 } I [P] = {(d 1, d 2 ), (d 2, d 3 )} I [a] = d 3 I [b] = d 2 Renata Wassermann Knowledge Representation and Description Logic Part 2 5 / 40

(a) x y z((p(x, y) P(y, z)) P(x, z)) (b) x y((p(x, y) P(y, x)) x = y) (c) x y(p(a, y) P(x, b)) I = D, I D = {d 1, d 2 } I [P] = {(d 1, d 2 ), (d 2, d 1 ), (d 1, d 1 ), (d 2, d 2 )} = DÖD I [a] = d 1 I [b] = d 2 Renata Wassermann Knowledge Representation and Description Logic Part 2 6 / 40

(a) x y z((p(x, y) P(y, z)) P(x, z)) (b) x y((p(x, y) P(y, x)) x = y) (c) x y(p(a, y) P(x, b)) I = D, I D = {d 1, d 2 } I [P] = {(d 1, d 2 )} I [a] = d 1 I [b] = d 1 Renata Wassermann Knowledge Representation and Description Logic Part 2 7 / 40

Deductive Inference Process of finding entailments of KB. Renata Wassermann Knowledge Representation and Description Logic Part 2 8 / 40

Deductive Inference Process of finding entailments of KB. Process is sound if whenever it produces α, then KB = α Renata Wassermann Knowledge Representation and Description Logic Part 2 8 / 40

Deductive Inference Process of finding entailments of KB. Process is sound if whenever it produces α, then KB = α Process is complete if whenever KB = α, it produces α Renata Wassermann Knowledge Representation and Description Logic Part 2 8 / 40

Satisfiability KB = α iff KB { α} has no model Renata Wassermann Knowledge Representation and Description Logic Part 2 9 / 40

Satisfiability KB = α iff KB { α} has no model Undecidable for first-order logic! Renata Wassermann Knowledge Representation and Description Logic Part 2 9 / 40

Satisfiability KB = α iff KB { α} has no model Undecidable for first-order logic! If we want to have inference procedures that always give an answer, tradeoff expressivity for tractability. Renata Wassermann Knowledge Representation and Description Logic Part 2 9 / 40

What are DLs? (Horrocks) Family of logic-based knowledge representation formalisms well-suited for the representation of and reasoning about terminological knowledge descendants of semantics networks, frame-based systems, and KL-ONE aka terminological KR systems, concept languages, etc. Renata Wassermann Knowledge Representation and Description Logic Part 2 10 / 40

Brief history of Description Logics Semantic Networks Peirce 1909: Logic of the future Quillian s thesis 60s: Semantic memory The meaning of a concept comes from its relationship to other concepts The information is stored by interconnecting nodes with labelled arcs. Cat Fish is a lives in Mammal Water Renata Wassermann Knowledge Representation and Description Logic Part 2 11 / 40

Brief history of Description Logics Semantic Networks Vertebra Cat has Fur has is a has is a is a Animal Mammal Bear is a Fish is a Whale Water lives in lives in Renata Wassermann Knowledge Representation and Description Logic Part 2 12 / 40

Brief history of Description Logics Woods What s in a link? (1975) cat colour black Renata Wassermann Knowledge Representation and Description Logic Part 2 13 / 40

Brief history of Description Logics Woods What s in a link? (1975) cat colour black All cats are all black. Renata Wassermann Knowledge Representation and Description Logic Part 2 13 / 40

Brief history of Description Logics Woods What s in a link? (1975) cat colour black All cats are all black. All cats have some colour black. Renata Wassermann Knowledge Representation and Description Logic Part 2 13 / 40

Brief history of Description Logics Woods What s in a link? (1975) cat colour black All cats are all black. All cats have some colour black. There is a cat which is all black. Renata Wassermann Knowledge Representation and Description Logic Part 2 13 / 40

Brief history of Description Logics Woods What s in a link? (1975) cat colour black All cats are all black. All cats have some colour black. There is a cat which is all black. There is a cat which has some colour black. Renata Wassermann Knowledge Representation and Description Logic Part 2 13 / 40

Brief history of Description Logics KL-ONE Brachman s thesis, Harvard, 1977 William A. Woods, James G. Schmolze, The KL-ONE family, 1992 Used by companies and research institutes. Focus on NLP. Semantics must be clear. Concept structuring primitives. Basis for what comes next... Renata Wassermann Knowledge Representation and Description Logic Part 2 14 / 40

Brief history of Description Logics KL-ONE Separate terminological and assertional knowledge External meaning of is a (sets and instances) Multiple inheritance Allows for automatic classification Renata Wassermann Knowledge Representation and Description Logic Part 2 15 / 40

Brief history of Description Logics KL-ONE Separate terminological and assertional knowledge External meaning of is a (sets and instances) Multiple inheritance Allows for automatic classification Example: infer that Woman with sons is more specific than Woman with children Renata Wassermann Knowledge Representation and Description Logic Part 2 15 / 40

Brief history of Description Logics The beginning of the modern era The Tractability of Subsumption in Frame-Based Description Languages, Brachman and Levesque, 1984. Here we present evidence as to how the cost of computing one kind of inference is directly related to the expressiveness of the representation language. As it turns out, this cost is perilously sensitive to small changes in the representation language. Even a seemingly simple frame-based description language can pose intractable computational obstacles. Renata Wassermann Knowledge Representation and Description Logic Part 2 16 / 40

Main ideas DL Knowledge Base Description of the concepts and their properties Description of concrete situations. Renata Wassermann Knowledge Representation and Description Logic Part 2 17 / 40

Main ideas Concepts Represent classes (sets) May be atomic or constructed from other concepts: Female Female Human Renata Wassermann Knowledge Representation and Description Logic Part 2 18 / 40

Main ideas Roles Represent relations (properties) May be used to restrict concepts: Female Human haschild.female Female haschild.human Renata Wassermann Knowledge Representation and Description Logic Part 2 19 / 40

Main ideas TBox A TBox contains the terminological knowledge: Concept definitions (introduce names for concepts): Father Man haschild. Axioms (restrict models): Mother Woman BlackCat Cat hascolour.black Renata Wassermann Knowledge Representation and Description Logic Part 2 20 / 40

Main ideas ABox The ABox contains assertions about individuals: Concept assertions: BlackCat(mimi) Mother haschild.woman(mary) Role assertions: haschild(mary,betty) Renata Wassermann Knowledge Representation and Description Logic Part 2 21 / 40

The typical language Attributive Concept Language with Complements (Schmidt-Schauß and Smolka, 1991). Concept construction closed under boolean operations. Basis for more expressive languages. Renata Wassermann Knowledge Representation and Description Logic Part 2 22 / 40

Syntax Concepts C, D A C C D C D R.C R.C Renata Wassermann Knowledge Representation and Description Logic Part 2 23 / 40

Semantics Interpretations I: I (domain of interpretation) function that assigns to each: A, a set A I I r, a binary relation R I I I. a, an element a I I Renata Wassermann Knowledge Representation and Description Logic Part 2 24 / 40

Semantics Extending the interpretation function I = I I = ( C) I = I \C I (C D) I = C I D I (C D) I = C I D I ( R.C) I = {a I b.(a, b) R I b C I } ( R.C) I = {a I b.(a, b) R I b C I } Renata Wassermann Knowledge Representation and Description Logic Part 2 25 / 40

Semantics Semantics of the TBox An interpretation I satisfies C D iff C I = D I. C D iff C I D I. a TBox T iff it satisfies all elements of T Renata Wassermann Knowledge Representation and Description Logic Part 2 26 / 40

Semantics Semantics of the ABox An interpretation I satisfies C(a) iff a I C I. r(a, b) iff (a I, b I ) r I. an ABox A iff it satisfies all elements of A Renata Wassermann Knowledge Representation and Description Logic Part 2 27 / 40

Semantics DL Knowledge Base An ALC Knowledge Base is a pair Σ = T, A, where T is a TBox A is an ABox An interpretation I is a model of Σ if it satisfies T and A. A knowledge base Σ is said to be satisfiable if it admits a model. Renata Wassermann Knowledge Representation and Description Logic Part 2 28 / 40

Semantics Logical Consequence Σ = ϕ iff every model of Σ is a model of ϕ Renata Wassermann Knowledge Representation and Description Logic Part 2 29 / 40

Semantics Logical Consequence Σ = ϕ iff every model of Σ is a model of ϕ teaches.course GraduateStudent Professor teaches(john, cs101) Course(cs101) Professor(john) Renata Wassermann Knowledge Representation and Description Logic Part 2 29 / 40

Semantics Logical Consequence Σ = ϕ iff every model of Σ is a model of ϕ teaches.course GraduateStudent Professor teaches(john, cs101) Course(cs101) Professor(john) Σ =GraduateStudent(john) Renata Wassermann Knowledge Representation and Description Logic Part 2 29 / 40

Semantics Example (Horrocks) - TBox HogwartsStudent Student attendsschool.hogwarts HogwartsStudent haspet.(owl Cat Toad) haspet.phoenix Wizard Phoenix (Owl Cat Toad) Renata Wassermann Knowledge Representation and Description Logic Part 2 30 / 40

Semantics Example (Horrocks) - ABox Facts: HogwartsStudent(harryPotter) Inferences: Renata Wassermann Knowledge Representation and Description Logic Part 2 31 / 40

Semantics Example (Horrocks) - ABox Facts: HogwartsStudent(harryPotter) Inferences: attendsschool.hogwarts(harrypotter) Renata Wassermann Knowledge Representation and Description Logic Part 2 31 / 40

Semantics Example (Horrocks) - ABox Facts: HogwartsStudent(harryPotter) haspet(harrypotter, hedwig) Inferences: attendsschool.hogwarts(harrypotter) Renata Wassermann Knowledge Representation and Description Logic Part 2 31 / 40

Semantics Example (Horrocks) - ABox Facts: HogwartsStudent(harryPotter) haspet(harrypotter, hedwig) Inferences: attendsschool.hogwarts(harrypotter) (Owl Cat Toad)(hedwig) Renata Wassermann Knowledge Representation and Description Logic Part 2 31 / 40

Semantics Example (Horrocks) - ABox Facts: HogwartsStudent(harryPotter) haspet(harrypotter, hedwig) Phoenix(fawks) Inferences: attendsschool.hogwarts(harrypotter) (Owl Cat Toad)(hedwig) Renata Wassermann Knowledge Representation and Description Logic Part 2 31 / 40

Semantics Example (Horrocks) - ABox Facts: HogwartsStudent(harryPotter) haspet(harrypotter, hedwig) Phoenix(fawks) Inferences: attendsschool.hogwarts(harrypotter) (Owl Cat Toad)(hedwig) haspet(harrypotter,fawks) Renata Wassermann Knowledge Representation and Description Logic Part 2 31 / 40

Semantics Example (Horrocks) - ABox Facts: HogwartsStudent(harryPotter) haspet(harrypotter, hedwig) Phoenix(fawks) haspet(dumbledore,fawks) Inferences: attendsschool.hogwarts(harrypotter) (Owl Cat Toad)(hedwig) haspet(harrypotter,fawks) Renata Wassermann Knowledge Representation and Description Logic Part 2 31 / 40

Semantics Example (Horrocks) - ABox Facts: HogwartsStudent(harryPotter) haspet(harrypotter, hedwig) Phoenix(fawks) haspet(dumbledore,fawks) Inferences: attendsschool.hogwarts(harrypotter) (Owl Cat Toad)(hedwig) haspet(harrypotter,fawks) Wizard(dumbledore) and HogwartsStudent(dumbledore) Renata Wassermann Knowledge Representation and Description Logic Part 2 31 / 40

Semantics Reasoning Services Satisfiability: Checking whether Σ has a model Concept Satisfiability (w.r.t. Σ): Checking whether there is a model I of Σ such that C I Σ = C Student Person Renata Wassermann Knowledge Representation and Description Logic Part 2 32 / 40

Semantics Reasoning Services Subsumption (w.r.t. Σ): Checking whether for all models I of Σ, C I D I. Σ = C D Student Person This is the first problem that was studied (classification). For simple logics, solved by structural methods. Renata Wassermann Knowledge Representation and Description Logic Part 2 33 / 40

Semantics Reasoning Services Instance Checking (w.r.t. Σ): Checking whether for all models I of Σ, a I C I. Σ = C(a) Renata Wassermann Knowledge Representation and Description Logic Part 2 34 / 40

Semantics Reasoning Services Instance Checking (w.r.t. Σ): Checking whether for all models I of Σ, a I C I. Σ = C(a) Retrieval Finding the individuals a s.t. for all models I of Σ, a I C I {a Σ = C(a)} Renata Wassermann Knowledge Representation and Description Logic Part 2 34 / 40

Semantics Reasoning Services Instance Checking (w.r.t. Σ): Checking whether for all models I of Σ, a I C I. Σ = C(a) Retrieval Finding the individuals a s.t. for all models I of Σ, a I C I {a Σ = C(a)} Realization Finding the concepts C s.t. for all models I of Σ, a I C I {C Σ = C(a)} Renata Wassermann Knowledge Representation and Description Logic Part 2 34 / 40

Semantics Reasoning services All boils down to satisfiability. Renata Wassermann Knowledge Representation and Description Logic Part 2 35 / 40

Semantics Reasoning services All boils down to satisfiability. Concept satisfiability: Σ = C Renata Wassermann Knowledge Representation and Description Logic Part 2 35 / 40

Semantics Reasoning services All boils down to satisfiability. Concept satisfiability: Σ = C iff Σ {(C)(x)} is satisfiable. Renata Wassermann Knowledge Representation and Description Logic Part 2 35 / 40

Semantics Reasoning services All boils down to satisfiability. Concept satisfiability: Σ = C iff Σ {(C)(x)} is satisfiable. Subsumption: Σ = C D Renata Wassermann Knowledge Representation and Description Logic Part 2 35 / 40

Semantics Reasoning services All boils down to satisfiability. Concept satisfiability: Σ = C iff Σ {(C)(x)} is satisfiable. Subsumption: Σ = C D iff Σ {(C D)(x)} is not satisfiable. Renata Wassermann Knowledge Representation and Description Logic Part 2 35 / 40

Translation into FOL Concepts are translated into formulas with one free variable: t(c D) = t(c) t(d) t( r.c) = yr(x, y) t y (C) t( r.c) = yr(x, y) t y (C) And then axioms C D correspond to x(t(c) t(d)) Renata Wassermann Knowledge Representation and Description Logic Part 2 36 / 40

Translation into FOL Cat Mammal xcat(x) Mammal(x) Student haspet.(owl Cat Toad) x(student(x) y (haspet(x,y) (Owl(y) Cat(y) Toad(y)))) Renata Wassermann Knowledge Representation and Description Logic Part 2 37 / 40

Below ALC EL C, D A C D R.C Looks rather inexpressive, but: SNOMED, Galen, etc. Renata Wassermann Knowledge Representation and Description Logic Part 2 38 / 40

Above ALC SHOIQ S = ALC+ transitive roles H = role hierarchies O = nominals I = inverse of roles Q = qualified number restriction Renata Wassermann Knowledge Representation and Description Logic Part 2 39 / 40

Above ALC SHOIQ S = ALC+ transitive roles (ancestor) H = role hierarchies O = nominals I = inverse of roles Q = qualified number restriction Renata Wassermann Knowledge Representation and Description Logic Part 2 39 / 40

Above ALC SHOIQ S = ALC+ transitive roles (ancestor) H = role hierarchies (hasson haschild) O = nominals I = inverse of roles Q = qualified number restriction Renata Wassermann Knowledge Representation and Description Logic Part 2 39 / 40

Above ALC SHOIQ S = ALC+ transitive roles (ancestor) H = role hierarchies (hasson haschild) O = nominals ({hogwarts}) I = inverse of roles Q = qualified number restriction Renata Wassermann Knowledge Representation and Description Logic Part 2 39 / 40

Above ALC SHOIQ S = ALC+ transitive roles (ancestor) H = role hierarchies (hasson haschild) O = nominals ({hogwarts}) I = inverse of roles (ispetof = haspet 1 ) Q = qualified number restriction Renata Wassermann Knowledge Representation and Description Logic Part 2 39 / 40

Above ALC SHOIQ S = ALC+ transitive roles (ancestor) H = role hierarchies (hasson haschild) O = nominals ({hogwarts}) I = inverse of roles (ispetof = haspet 1 ) Q = qualified number restriction (> 3hasChild.Male) Renata Wassermann Knowledge Representation and Description Logic Part 2 39 / 40

Above ALC OWL Web Ontology Language W3C standard for ontologies since 2004 Based on SHOIQ XML syntax Renata Wassermann Knowledge Representation and Description Logic Part 2 40 / 40