Description Logics Reasoning Algorithms Concluding Remarks References. DL Reasoning. Stasinos Konstantopoulos. IIT, NCSR Demokritos

Similar documents
Extending the SHOIQ(D) Tableaux with DL-safe Rules: First Results

SEMANTIC WEB AND COMPARATIVE ANALYSIS OF INFERENCE ENGINES

Scalability via Parallelization of OWL Reasoning

Description logic reasoning using the PTTP approach

A platform for distributing and reasoning with OWL-EL knowledge bases in a Peer-to-Peer environment

Presented By Aditya R Joshi Neha Purohit

l A family of logic based KR formalisms l Distinguished by: l Decidable fragments of FOL l Closely related to Propositional Modal & Dynamic Logics

Description Logics and OWL

Description Logics and Disjunctive Datalog The Story so Far

On the Scalability of Description Logic Instance Retrieval

Reasoning with OWL - System Support and Insights -

Description Logic: A Formal Foundation for Ontology Languages and Tools

WSML Deliverable. D20.1 v0.2 OWL. WSML Working Draft January 6, 2005

COMP4418 Knowledge Representation and Reasoning

Week 4. COMP62342 Sean Bechhofer, Uli Sattler

A Typed Hybrid Description Logic Programming Language with Polymorphic Order-Sorted DL-Typed Unification for Semantic Web Type Systems

Efficient Two-Phase Data Reasoning for Description Logics

Semantic reasoning for dynamic knowledge bases. Lionel Médini M2IA Knowledge Dynamics 2018

OWL Rules, OK? Ian Horrocks Network Inference Carlsbad, CA, USA

D20.1 v0.2 OWL Flight

Lecture 17 of 41. Clausal (Conjunctive Normal) Form and Resolution Techniques

OWL and tractability. Based on slides from Ian Horrocks and Franz Baader. Combining the strengths of UMIST and The Victoria University of Manchester

Description Logic. Eva Mráková,

Local Closed World Reasoning with OWL 2

Automated Benchmarking of Description Logic Reasoners

Knowledge Representation and Reasoning Logics for Artificial Intelligence

Constraint Solving. Systems and Internet Infrastructure Security

WSML Deliverable. D20 v0.1. OWL Lite. WSML Working Draft June 21, 2004

Nonstandard Inferences in Description Logics

Appendix 1. Description Logic Terminology

Appendix 1. Description Logic Terminology

A Tableaux Decision Procedure for SHOIQ

Explaining Subsumption in ALEHF R + TBoxes

Logical reconstruction of RDF and ontology languages

Standardization of Ontologies

Ontologies and the Web Ontology Language OWL

OWL 2 Profiles. An Introduction to Lightweight Ontology Languages. Markus Krötzsch University of Oxford. Reasoning Web 2012

Algebraic Tableau Algorithm for ALCOQ

Foundations of AI. 9. Predicate Logic. Syntax and Semantics, Normal Forms, Herbrand Expansion, Resolution

OWL 2 Syntax and Semantics Sebastian Rudolph

Logic Programming and Resolution Lecture notes for INF3170/4171

OWL 2 The Next Generation. Ian Horrocks Information Systems Group Oxford University Computing Laboratory

F-OWL: an Inference Engine for the Semantic Web 1

OWL extended with Meta-modelling

Notes for Chapter 12 Logic Programming. The AI War Basic Concepts of Logic Programming Prolog Review questions

Knowledge Representation and Reasoning Logics for Artificial Intelligence

LTCS Report. Concept Descriptions with Set Constraints and Cardinality Constraints. Franz Baader. LTCS-Report 17-02

On the Scalability of Description Logic Instance Retrieval

HANDBOOK OF LOGIC IN ARTIFICIAL INTELLIGENCE AND LOGIC PROGRAMMING

DATABASE THEORY. Lecture 11: Introduction to Datalog. TU Dresden, 12th June Markus Krötzsch Knowledge-Based Systems

Learning Probabilistic Description Logics Theories

Scalable Semantic Retrieval Through Summarization and Refinement

Knowledge Engineering with Semantic Web Technologies

Benchmarking DL Reasoners Using Realistic Ontologies

Consequence based Procedure for Description Logics with Self Restriction

A Unified Logical Framework for Rules (and Queries) with Ontologies - position paper -

Stream Reasoning For Linked Data

Propositional Logic. Part I

Next Steps for OWL. University of Manchester, UK 2 Bell Labs Research, NJ (USA)

Probabilistic Information Integration and Retrieval in the Semantic Web

COMP718: Ontologies and Knowledge Bases

FOUNDATIONS OF SEMANTIC WEB TECHNOLOGIES

Scalable Ontology-Based Information Systems

SOWL QL : Querying Spatio-Temporal Ontologies In OWL 2.0

Constructive negation with the well-founded semantics for CLP

TROvE: a Graphical Tool to Evaluate OWL Reasoners

Benchmarking OWL Reasoners

Semantic Web Methoden, Werkzeuge und Anwendungen

Towards Parallel Classification of TBoxes

Towards Efficient Reasoning for Description Logics with Inverse Roles

FOUNDATIONS OF SEMANTIC WEB TECHNOLOGIES

SQL, DLs, Datalog, and ASP: comparison

Evaluating DBOWL: A Non-materializing OWL Reasoner based on Relational Database Technology

Knowledge Representation. CS 486/686: Introduction to Artificial Intelligence

Conjunctive queries. Many computational problems are much easier for conjunctive queries than for general first-order queries.

Building Rules on top of Ontologies? Inductive Logic Programming can help!

Safe Stratified Datalog With Integer Order Does not Have Syntax

Tabled Resolution. CSE 595 Semantic Web Instructor: Dr. Paul Fodor Stony Brook University

Parallel and Distributed Reasoning for RDF and OWL 2

DLDB3: A Scalable Semantic Web Knowledge Base System

Description Logics as Ontology Languages for Semantic Webs

Lightweight Semantic Web Motivated Reasoning in Prolog

Artificial Intelligence. Chapters Reviews. Readings: Chapters 3-8 of Russell & Norvig.

Implementação de Linguagens 2016/2017

AI Fundamentals: Knowledge Representation and Reasoning. Maria Simi

ABSTRACT DEBUGGING AND REPAIR OF OWL ONTOLOGIES. Professor James Hendler

Ulrike Sattler. University of Manchester, UK. TU Dresden, Germany. Institut für Theoretische Informatik

DATABASE THEORY. Lecture 18: Dependencies. TU Dresden, 3rd July Markus Krötzsch Knowledge-Based Systems

Leveraging the Expressivity of Grounded Conjunctive Query Languages

Description Logic: Axioms and Rules

Resolution (14A) Young W. Lim 6/14/14

Get my pizza right: Repairing missing is-a relations in ALC ontologies

Module 6. Knowledge Representation and Logic (First Order Logic) Version 2 CSE IIT, Kharagpur

PROTEIN: A PROver with a Theory Extension INterface

HD-rules: a hybrid system interfacing Prolog with DL-reasoners

Logic Languages. Hwansoo Han

Towards a Logical Reconstruction of Relational Database Theory

Optimising Terminological Reasoning for Expressive Description Logics

8. Negation 8-1. Deductive Databases and Logic Programming. (Sommer 2017) Chapter 8: Negation

DLP isn t so bad after all

Transcription:

Stasinos Konstantopoulos 10-3-2006

Overview Description Logics Definitions Some Family Members Reasoning Algorithms Introduction Resolution Calculus Tableau Calculus Concluding Remarks

Definitions The DL Family Definition A family of (mostly) First-Order Dyadic Logics with counting quantifiers, i.e. (mostly) fragments of C 2 Some include features exceed C 2, e.g. relation composition.

Some Family Members Some Family Members Some Simple DLs The following are PSpace-complete with an acyclic TBox and ExpTime-complete with a general TBox: ALC: all the usual connectives, both quantifiers ALCOR + (a.k.a. SO): with nominals and transitivity axioms SON and SOQ: with unqualified ( nr) and qualified ( nr.c) cardinality restrictions, resp.

Some Family Members Some Family Members Some more complex DLs ExpTime-complete: SHOQ adds role hierarchies SHIQ takes away nominals and adds role inversal SHIF takes away cardinality restrictions and only allows for functionality axioms, i.e. 1R Note, however, that: SHOIQ is NExpTime-complete in Q and N only simple roles (neither transitive nor have transitive subroles) are admitted; otherwise even SHN is undecidable.

Some Family Members Some Family Members Some Implemented DLs SHIQ (RacerPro) number restrictions only for roles without sub-roles SHIQ (KAON2) SHOIN (Pellet) SHOIQ (FaCT++)

Some Family Members Some Family Members Implemented DLs with datatype reasoning SHIQ (D ) (RacerPro) Integers: min/max restrictions Reals: linear polynomial (in-)equations over the reals or cardinals with order relations Strings: equalities and inequalities User-defined: none no feature chains on concrete domains SHOIN (D) (Pellet) SHOIQ(D) (FaCT++) OWL DL is SHOIN (D) and OWL Lite is SHIF(D)

Introduction Deductive Inference Entailment (semantics) is realised through (syntactic) inference operators. Inference operators form a semantically empty logical calculus, which we want to be: Sound (yield correct results) Complete (yield all corret results) Decidable (yield results in finite time)

Introduction Open World vs. Closed World Closed World binary predicates: either true or false; failure to prove is considered proof of falsity; negation-as-failure; model is presupposed; reasoner says: Give me a model and I ll give you an answer.

Introduction Open World vs. Closed World Open World ternary predicates: true, false, dunno; failure to prove is distinct from proof of falsity; explicit negation; results valid on all models; reasoner says: Here s your answer, you figure out what it means in your model.

Resolution Calculus Robinson Rule Definition Robinson (1965): R is resolved from clauses C 1 and C 2 iff there are literals l 1 C 1 and l 2 C 2 and substitution θ such that: l 1 θ = l 2 θ R = (C 1 {l 1 }) θ (C 2 {l 2 }) θ

Resolution Calculus Robinson Rule Characteristics and Application A general, sound and complete deduction rule. Non-deterministic AND non-deterministically applied. Linear resolution: restriction of the non-deterministic application of the rule. A fixed clause keeps being transformed by resolving it against other clauses in a given set.

Resolution Calculus SLD Resolution SLD Resolution: Selection Linear Definite Resolution. Proposed by Kowalski (1979). Linear resolution over definite clauses, using a selection function: 1. the fixed clause is the query 2. clauses in the set are definite An oracular function selects which atom in the query to resolve on and which definite clause in the query set to resolve against.

Resolution Calculus Warren Abstract Machine Top-Down Leftmost Resolution WAM(Q) resolves query Q = {q 1, q 2...q n }: 1. Get the left-most literal q. 2. For each clause p i of predicate P with head q, starting with the one provided first: 2.1 Unify with the head of the predicate: 2.1.1 if unification fails, re-iterate. 2.1.2 if unification succeeds, continue. 2.2 Replace q with the body of p i and perform all applicable unifications. 2.2.1 if unification fails, re-iterate. 2.2.2 if unification succeeds, continue. 3. Assign the result to Q. 4. If Q is empty, succeed. Else WAM(Q ).

Resolution Calculus Warren Abstract Machine Characteristics Left-to-right approximates the non-deterministic selection function of SLD Resolution Non-deterministic disjunction is deterministicised by considering the order rules were provided in. Effectively, WAM implements a depth-first, left-to-right traversal of the SLD tree. Semi-complete: can get stuck in infinite recursions.

Resolution Calculus Warren Abstract Machine Prolog implements WAM: definite clauses, plus one Horn query. SLDNF-Resolution: Normal Programs (with neg literals) under Closed-World Asumption, after finitely many steps. Cardinality restrictions can be coded using extra-logical predicates: findall/3 will retrieve all admissible instantiations but, a very expensive way to impose cardinality restrictions. i.d.b. can be used for more efficient solutions, but there is no general mechanism provided by the compiler. No concrete domains.

Resolution Calculus SLG Resolution General bottom-up resolution SLG Resolution: Selection Linear resolution for General LP, proposed by Chen and Warren (1996). Tabling: bottom-up resolution. Allows for infinite loop detection. Goal delaying: unground negative literals are delayed. If delay list cannot be closed, a conditional answer is returned (CWA not necessary). The mechanism behind DATALOG, DATALOG, and other deductive database languages.

Resolution Calculus SLG Resolution LRD-stratified Resolution LRD-stratified Resolution, proposed by Sagonas and Swift (1998): Left-to-right selection, allows delays. Restricted to stratified Normal-Clause Programmes (terminates). Implementation: SLG-WAM abstract machine, XSB compiler. Datalog systems: SLG systems complex terms are not supported, unification is strcmp() up to variable renaming DES (Prolog), Datalog++ (XSB) O-Telos: derived from Datalog and Telos (CML-like, SLD language). Implemented by ConceptBase (Prolog/Java)

Resolution Calculus SLG Resolution KAON2 KAON2: Implements SHIQ by reduction to DATALOG (Hustadt et al., 2004) SHIQ (D) coming soon why DATALOG and not DATALOG? In: OWL and (a deviation from) SWRL Out: SPARQL

Tableau Calculus Analytic Tableaux Definition α X, A B X, A, B γ X, xa X, A a x β X, A B X, A X, B δ X, xa X, A a x a in δ-rules must be a new symbol. a branch is closed if it contains F and F a tableau is closed if all its branches are closed.

Tableau Calculus Analytic Tableaux Comments The ABox can be incorporated in X, but optimised reasoners will query some form of instance DB. Adaptations for typed variables modify the γ and δ rules. How to use them: iff X is valid, then the tableau for X closes why not construct the tableau for X?

Tableau Calculus Implementations FaCT++ Implements SHOIQ(D) Implemented in C++ In: KRSS, DIG Out: DIG

Tableau Calculus Implementations Pellet Implements SHOIN (D): SHOIN with tableaux datatypes with a separate XSD reasoner Implemented in Java In: OWL, DIG Out: SPARQL, DIG

Tableau Calculus Implementations RacerPro Implements ALCQHI R+ (D ) plus a an incomplete bit of O: ABox checking, but no TBox inferance In: KRSS, RDF, OWL, DIG Out: nrql, OWL-QL, DIG

Tableau Calculus Implementations Jena Not really a reasoner, more of an RDFS validator: no abstract inference, only instance-based. Almost implements FL R + HIF: R.C only checks membership, cannot infer membership. Implemented in Java In: RDFS, OWL, DAML+OIL Out: RDQL

Tableau Calculus Implementations Other Hoolet: translates SHIF to first-order axioms and uses the Vampire first-order prover. Bell Labs Classic (Lisp) and NeoClassic (C++): the FL ON reasoners at the core of the Prose and Questar configurators for AT&T products. Back, Loom

Concluding Remarks Usual trade-off between expressivity and tractability Massive gains in expressive power: more than 2 variables cardinality restrictions Real-life problems not to be confused with theoretical complexity results we perform and complete NExpTime-complete and undecidable calculations every day implementations are heavily optimised and handle the hard bits extra-logically but might as well avoid them, if we can

Weidong Chen and David S. Warren. Tabled evaluation with delaying for general logic programs. Journal of the ACM, 43(1): 20 74, January 1996. Ullrich Hustadt, Boris Motik, and Ulrike Sattler. Reducing SHIQ Description Logic to Disjunctive Datalog programs. In Proc. of the 9th International Conference on Knowledge Representation and Reasoning (KR2004), pages 152 162, 2004. Robert A. Kowalski. Logic for Problem Solving, volume 7 of Artificial Intelligence Series. North Holland, New York, 1979. URL http://www.doc.ic.ac.uk/ rak/. John A. Robinson. A machine-oriented logic based on the resolution principle. Journal of the ACM, 12(1):23 41, 1965. Konstantinos Sagonas and Terrance Swift. An abstract machine for tabled execution of fixed-order stratified logic programs.

ACM Transactions on Programming Languages and Systems, 20 (3):586 634, May 1998. Evren Sirin, Bijan Parsia, Bernardo Cuenca Grau, Aditya Kalyanpur, and Yarden Katz. Pellet: a practical OWL-DL reasoner. URL http://www.mindswap.org/papers/pelletjws.pdf. Submitted for publication to Journal of Web Semantics, 2006.