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

Similar documents
Description Logics: an Introductory Course on a Nice Family of Logics. Day 2: Tableau Algorithms. Uli Sattler

2. A tableau algorithm for ALC with TBoxes, number restrictions, and inverse roles. Extend ALC-tableau algorithm from first session with

Week 4. COMP62342 Sean Bechhofer, Uli Sattler

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

An Introduction to Description Logics: Techniques, Properties, and Applications. NASSLLI, Day 3, Part 2. Computational Complexity.

Fuzzy Description Logics

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

Decidability of SHI with transitive closure of roles

On the Decidability Status of Fuzzy ALC with General Concept Inclusions

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

Chapter 2 Background. 2.1 A Basic Description Logic

Description Logics: a Nice Family of Logics. Day 4: More Complexity & Undecidability ESSLLI Uli Sattler and Thomas Schneider

Expressive number restrictions in Description Logics

A tableaux calculus for ALC + T min R

Structured Descriptions & Tradeoff Between Expressiveness and Tractability

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

Optimisation of Terminological Reasoning

A Tableau Algorithm for Fuzzy Description Logics over Residuated De Morgan Lattices

A Description Logic with Transitive and Inverse Roles and Role Hierarchies

Next. Description Logics: a Nice Family of Logics. Some

Description Logics (DLs)

On Axiomatic Rejection for the Description Logic ALC

From Tableaux to Automata for Description Logics

Nonmonotonic Reasoning in Description Logic by Tableaux Algorithm with Blocking

Tableau-based Revision for Expressive Description Logics with Individuals

Description Logics. an introduction into its basic ideas

PSpace Automata for Description Logics

A Tableaux-based Algorithm for Description Logics with Transitive Closure of Roles in Concept and Role Inclusion Axioms

Decidability of Description Logics with Transitive Closure of Roles in Concept and Role Inclusion Axioms

A PSpace Algorithm for Acyclic Epistemic DL ALCS5 m

The Complexity of Lattice-Based Fuzzy Description Logics

Quasi-Classical Semantics for Expressive Description Logics

Part 1: Propositional Logic

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

arxiv: v2 [cs.lo] 21 Jul 2014

Computational Logic. Davide Martinenghi. Spring Free University of Bozen-Bolzano. Computational Logic Davide Martinenghi (1/30)

Decidable and Undecidable Extensions of ALC with Composition-Based Role Inclusion Axioms

A Framework for Reasoning with Expressive Continuous Fuzzy Description Logics

A Description Logic with Concrete Domains and a Role-forming Predicate Operator

Reasoning in the SHOQ(D n ) Description Logic

Description Logics. Deduction in Propositional Logic. franconi. Enrico Franconi

3 Propositional Logic

Algebraic Tableau Reasoning for the Description Logic SHOQ

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

A Logical Framework for Modularity of Ontologies

Inverting Proof Systems for Secrecy under OWA

The Description Logic ABox Update Problem Revisited

Prime Implicate Normal Form for ALC Concepts

A METRIC INTERVAL-BASED TEMPORAL DESCRIPTION LOGIC

A Tableaux Decision Procedure for SHOIQ

A Survey of Temporal Knowledge Representations

Two Types of Key Constraints in Description Logics with Concrete Domains. Dũng Dinh-Khac

Fuzzy DLs over Finite Lattices with Nominals

An Introduction to Description Logic III

Gödel Negation Makes Unwitnessed Consistency Crisp

Adding Context to Tableaux for DLs

The Fuzzy Description Logic ALC F LH

Reasoning About Typicality in ALC and EL

LTCS Report. Blocking and Pinpointing in Forest Tableaux. LTCS-Report 08-02

Propositional Calculus - Semantics (3/3) Moonzoo Kim CS Dept. KAIST

A Goal-Oriented Algorithm for Unification in EL w.r.t. Cycle-Restricted TBoxes

Conservative Extensions in Expressive Description Logics

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

Reasoning with Annotated Description Logic Ontologies

Temporal Logic - Soundness and Completeness of L

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

An Introduction to Description Logics

ALC Concept Learning with Refinement Operators

Propositional Calculus - Soundness & Completeness of H

A Tableau Algorithm for Description Logics with Nominal Schema

Towards Distributed Tableaux Reasoning Procedure for DDL with Increased Subsumption Propagation between Remote Ontologies

Tractable Extensions of the Description Logic EL with Numerical Datatypes

Generating Armstrong ABoxes for ALC TBoxes

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

The Bayesian Ontology Language BEL

Extended Decision Procedure for a Fragment of HL with Binders

Logics for Data and Knowledge Representation

Axiom Pinpointing in General Tableaux

On Subsumption and Instance Problem in ELH w.r.t. General TBoxes

Part 1: Propositional Logic

Exploiting Pseudo Models for TBox and ABox Reasoning in Expressive Description Logics

High Performance Absorption Algorithms for Terminological Reasoning

Towards a Paradoxical Description Logic for the Semantic Web

Optimal Interpolation in ALC

Introduzione alle logiche descrittive

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

Uncertainty in Description Logics: a Lattice-based Approach

Complexities of Horn Description Logics

ALC + T: a Preferential Extension of Description Logics

Closed World Reasoning for OWL2 with Negation As Failure

Normal Forms of Propositional Logic

EXPLANATION AND DIAGNOSIS SERVICES FOR UNSATISFIABILITY AND INCONSISTENCY IN DESCRIPTION LOGICS

Description Logics with Concrete Domains and Functional Dependencies

Proof-theoretic Approach to Deciding Subsumption and Computing Least Common Subsumer in EL w.r.t. Hybrid TBoxes

Finding the Largest Datalog Fragment of Description Logic

Deductive Systems. Lecture - 3

Modular Reuse of Ontologies: Theory and Practice

Propositional Dynamic Logic

First-order resolution for CTL

Transcription:

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

Today relationship between standard DL reasoning problems a tableau algorithm to decide consistency of ALC ontologies and all other standard DL reasoning problems a proof of its correctness with some model properties some optimisations As a result, we should have a deep understanding the semantics a deep understanding of the reasoning problems some understanding of the sources of complexity 2

Standard DL Reasoning Problems Given an ontology O = (T, A), is O consistent? O =? is O coherent? is there concept name A with O = A? compute class hierarchy! for all concept names A, B: O = A B? classify individuals! for all concept names A, individual names b: O = b : B? Theorem 2 Let O be an ontology and a an individual name not in O. Then 1. C is satisfiable w.r.t. O iff O {a : C} is consistent 2. O is coherent iff, for each concept name A, O {a : A} is consistent 3. O = A B iff O {a : (A B)} is not consistent 4. O = b : B iff O {b : B} is not consistent a decision procedure to solve consistency decides all standard DL reasoning problems 3

Decision Procedure A problem is a set P M e.g., M is the set of all ALC ontologies, P M is the set of all consistent ALC ontologies...and the problem P is to decide whether, for a given m M, we have m P An algorithm is a decision procedure for a problem P M if it is sound for P : if it answers m P, then m P complete for P : if m P, then it answers m P terminating: it stops after finitely many steps on any input m M Why does sound and complete not suffice for being a decision procedure? 4

A tableau algorithm for ALC ontologies For now: ALC:,,, r.c, r.c an algorithm to decide consistency of an ontology The algorithm decides Is O consistent? by trying to construct a model I for O: if successful, O is consistent: look, here is a (description of a) model otherwise, no model exists provably (we were not simply too lazy to find it) Algorithm works on a set of ABoxes: intialised with a singleton set S = {A} when started with O = (T, A) ABoxes are extended by rules to make constraints on models of O explicit O is consistent if, for (at least) one of the ABoxes A in S, (T, A ) is consistent 5

Negation Normal Form Technical: we say C and D are equivalent, written C D, if they mutually subsume each other. Technical: all concepts are assumed to be in Negation Normal Form transform all concepts in O into NNF(C) by pushing negation inwards, using (C D) C D (C D) C D ( R.C) ( R. C) ( R.C) ( R. C) Lemma: Let C be an ALC concept. Then C NNF(C). From now on, all concepts in GCIs and concept assertions are assumed to be in NNF, and we use C to denote the NNF( C). 6

A tableau algorithm for ALC ontologies The algorithm works on sets of ABoxes S starts with a singleton set S = {A} when started with O = (T, A) applies rules that infer constraints on models of O a rule is applied to some A S; its application replaces A with one or two ABoxes answers O is consistent if rule application leads to an ABox A that is complete, i.e., to which no more rules apply and clash-free, i.e., {a : A, a : A} A, for any a, A for optimisation, we can avoid applying rules to ABoxes containing a clash 7

Using the tableau algorithm for ALC ontologies Following Theorem 2, we can use the algorithm to test satisfiability of a concept C by starting it with {a : C} satisfiability of a concept C wr.t. O by starting it with O {a : C} (a not in O) subsumption C D by starting it with {a : (C D)} subsumption C D wr.t. O by starting it with O {a : (C D)} (a not in O) whether b is an instance of C w.r.t. O by starting it with O {b : C}...and interpreting the results according to Theorem 2. 8

Preliminary Tableau Expansion Rules for ALC -rule: if a : C 1 C 2 A and {a : C 1, a : C 2 } A then replace A with A {a : C 1, a : C 2 } -rule: if a : C 1 C 2 A and {a : C 1, a : C 2 } A = then replace A with A {a : C 1 } and A {a : C 2 } -rule: if a : s.c A and there is no b with {(a, b) : s, b : C} A then create a new individual name c and replace A with A {(a, c) : s, c : C} -rule: if {a : s.c, (a, b) : s} A and b : C A then replace A with A {b : C} GCI-rule: if C D T and a : ( C D) A for a in A, then replace A with A {a : ( C D)} 9

Tableau Algorithm for ALC: Observations We only apply rules if their application does something new The -rule is the only one to replace an ABox with more than one other To understand the GCI-rule, convince yourself that I satisfies a GCI C D iff, for each e I, we have e C I or e D I and e C I is the case iff e ( C) I The GCI-rule adds a disjunction per individual and GCI this is bad, and stupid for GCIs with a concept name on its left hand side (why?) we add an abbreviated GCI rule: GCI-2-rule: if B is a concept name, a : F A for a : B A and B F T, then replace A with A {a : F } If A is replaced with A, then A A 10

Tableau Algorithm for ALC Example: apply the tableau algorithm to O = (T, A) with T = {A B r.g r.c, A = { a : A, b : E, E A H r.f, (a, c) : r, (b, c) : r, G E P, c : G} H E r. C} 11

Termination of our Tableau Algorithm for ALC As is, the tableau algorithm does not terminate: Example: apply the tableau algorithm to O = (T, A) with T = {A r.a} and A = {a : A}. To ensure termination, use blocking: each rule is only applicable to an individual a in an ABox A if there is no other individual b with {C a : C A} {C b : C A}. In case we have a freshly introduced individual (i.e., not present in input ontology) a, an individual b with {C a : C A} {C b : C A}, b is older than a (i.e., was created earlier than a) we say b blocks a and we say a is blocked. 12

Tableau Expansion Rules for ALC -rule: if a : C 1 C 2 A, a is not blocked, and {a : C 1, a : C 2 } A then replace A with A {a : C 1, a : C 2 } -rule: if a : C 1 C 2 A, a is not blocked, and {a : C 1, a : C 2 } A = then replace A with A {a : C 1 } and A {a : C 2 } -rule: if a : s.c A, a is not blocked, and there is no b with {(a, b) : s, b : C} A then create a new individual c and replace A with A {(a, c) : s, c : C} -rule: if {a : s.c, (a, b) : s} A, a is not blocked, and b : C A GCI-rule: if then replace A with A {b : C} C D T, a is not blocked, and if C is a concept name, a : C A but a : D A, then replace A with A {a : D} else if a : ( C D) A for a in A, then replace A with A {a : ( C D)} 13

Termination of our Tableau Algorithm for ALC Convince yourself that, for the given example, the tableau algorithm terminates: Example: apply the tableau algorithm to O = (T, A) with T = {A r.a} and A = {a : A}....now for the general case! 14

Properties of our tableau algorithm Lemma 3: Let O an ALC ontology in NNF. Then 1. the algorithm terminates when applied to O 2. if the rules generate a complete & clash-free ABox, then O is consistent 3. if O is consistent, then the rules generate a clash-free & complete ABox Corollary 1: 1. Our tableau algorithm decides consistency of ALC ontologies. 2. Satisfiability (and subsumption) of ALC concepts is decidable in PSpace. 3. Consistency of ALC ontologies is decidable in ExpSpace. 4. ALC ontologies have the finite model property i.e., every consistent ontology has a finite model. 5. ALC ontologies have the tree model property i.e., every consistent ontology has a tree model. 15

Proof of Lemma 3.1: Termination Let sub(o) be the set of all subconcepts of concepts occurring in A together with all subconcepts of C D for each C D T. (1) Termination is a consequence of these observations: 1. a rule replaces one ABox with at most two ABoxes 2. the ABoxes are constructed in a monotonic way, i.e., each rule adds assertions, nothing is removed 3. concept assertions added are restricted to sub(o) and # sub(o) Σ C D O (2 + C + D ) + Σ a : C O C because, at each position in a concept, at most one sub-concept starts 4. due to blocking, there can be at most 2 # sub(o) individuals in each ABox: if {C a : C A} {C b : C A}, a is blocked and no rules are applied to a. Eventually, all ABoxes will be complete (and possibly have a clash), and the algorithm terminates. 16

Proof of Lemma 3.2: Soundness (2) Let A f be a complete & clash-free ABox generated for O = (T, A), and let B f be A f without assertions involving blocked individuals. Define an interpretation I as follows: I := {x x is an individual in B f } A I := {x I x : A B f } for concept names A r I := {(x, y) I I (x, y) : r B f or (x, y ) : r A f and y blocks y in A f } and show, by induction on structure of concepts: (C1) x : D B f implies x D I (C2) C D T implies C I D I I is a model of (T, B f ) (I satisfies all role assertions by definition) I is a model of (T, A) because A B f O = (T, A) is consistent 17