OWL 2 Rules (Part 2) Tutorial at ESWC2009 May 31, Pascal Hitzler. AIFB, Universität Karlsruhe (TH) Markus Krötzsch

Similar documents
FOUNDATIONS OF SEMANTIC WEB TECHNOLOGIES

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

Description Logics. Markus Krötzsch, František Simančík, and Ian Horrocks. Department of Computer Science, University of Oxford, UK

Integrating OWL and Rules: A Syntax Proposal for Nominal Schemas

A Matter of Principles: Towards the Largest DLP Possible

OWL + Rules =..? David Carral 1 Matthias Knorr 2 Adila Krisnadhi 1. 10th Extended Semantic Web Conference (ESWC) 2013

D3.1.3 Defining the Features of the WSML-DL v2.0 Language

Consequence based Procedure for Description Logics with Self Restriction

A Solution for the Man-Man Problem in the Family History Knowledge Base

DLP isn t so bad after all

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

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

Approximate OWL Instance Retrieval with SCREECH

Knowledge Representation for the Semantic Web

Semantics. KR4SW Winter 2011 Pascal Hitzler 1

Description Logics and Disjunctive Datalog The Story so Far

Standardization of Ontologies

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

Local Closed World Reasoning with OWL 2

jcel: A Modular Rule-based Reasoner

Principles of Knowledge Representation and Reasoning

Semantic Web Methoden, Werkzeuge und Anwendungen

OWL 2 Syntax and Semantics Sebastian Rudolph

OWL 2 Profiles. An Introduction to Lightweight Ontology Languages. Маркус Крёч (Markus Krötzsch) University of Oxford. KESW Summer School 2012

TrOWL: Tractable OWL 2 Reasoning Infrastructure

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

FOUNDATIONS OF SEMANTIC WEB TECHNOLOGIES

Probabilistic Information Integration and Retrieval in the Semantic Web

a paradigm for the Introduction to Semantic Web Semantic Web Angelica Lo Duca IIT-CNR Linked Open Data:

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

OWL extended with Meta-modelling

Rewriting Ontology-Mediated Queries. Carsten Lutz University of Bremen

Description Logic: A Formal Foundation for Ontology Languages and Tools

RECENT ADVANCES IN REASONING WITH EXISTENTIAL RULES

On the Reduction of Dublin Core Metadata Application Profiles to Description Logics and OWL

Knowledge Representation for the Semantic Web

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

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

Reasoning with Rules SWRL as Example. Jan Pettersen Nytun, UIA

Week 4. COMP62342 Sean Bechhofer, Uli Sattler

Description Logic Programs: A Practical Choice For the Modelling of Ontologies

SEMANTIC WEB AND COMPARATIVE ANALYSIS OF INFERENCE ENGINES

SPARQL: An RDF Query Language

Practical Aspects of Query Rewriting for OWL 2

A Tool for Storing OWL Using Database Technology

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

Extracting knowledge from Ontology using Jena for Semantic Web

logic importance logic importance (2) logic importance (3) specializations of logic Horn logic specializations of logic RDF and OWL

FOUNDATIONS OF DATABASES AND QUERY LANGUAGES

Linking Data with RDF

RELATIONAL REPRESENTATION OF ALN KNOWLEDGE BASES

Constraint Solving. Systems and Internet Infrastructure Security

So many Logics, so little time

Extending Conceptual Logic Programs with Arbitrary Rules

Querying Data through Ontologies

Scalable Ontology-Based Information Systems

A Knowledge Compilation Technique for ALC Tboxes

Category Theory in Ontology Research: Concrete Gain from an Abstract Approach

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

A Meta-logical Approach for Reasoning with Ontologies and Rules Expressed In OWL 2

On the Scalability of Description Logic Instance Retrieval

Range Restriction for General Formulas

Efficiently Managing Data Intensive Ontologies

Description Logics and OWL

W3C Rule Interchange Format

FOUNDATIONS OF SEMANTIC WEB TECHNOLOGIES

D3.1.1 Defining the features of the WSML- Quark language

Description Logic. Eva Mráková,

Knowledge Engineering with Semantic Web Technologies

Integrating SysML and OWL

Mandatory exercises. INF3580/4580 Semantic Technologies Spring 2017 Lecture 12: OWL: Loose Ends. Outline. Make it simple!

Appendix 1. Description Logic Terminology

Diagnosis through constrain propagation and dependency recording. 2 ATMS for dependency recording

EQuIKa System: Supporting OWL applications with local closed world assumption

Appendix 1. Description Logic Terminology

Explaining Subsumption in ALEHF R + TBoxes

How to Reason with OWL in a Logic Programming System

Schema-Agnostic Query Rewriting in SPARQL 1.1

Towards Reusable Explanation Services in Protege

Reasoning and Query Answering in Description Logics

Description Logics as Ontology Languages for Semantic Webs

Logical reconstruction of RDF and ontology languages

A Meta-logical Approach for Reasoning with Ontologies and Rules in OWL 2

Rules, RIF and RuleML

Stream Reasoning For Linked Data

Answer Sets and the Language of Answer Set Programming. Vladimir Lifschitz

Scalability via Parallelization of OWL Reasoning

Lecture 1: Conjunctive Queries

Ontologies, OWL, OWL profiles

Deep Integration of Scripting Languages and Semantic Web Technologies

Tractable Extensions of the Description Logic EL with Numerical Datatypes

1. Introduction to SWRL

Modularity in Ontologies: Introduction (Part A)

Towards Implementing Finite Model Reasoning in Description Logics

RaDON Repair and Diagnosis in Ontology Networks

Grounding OWL-S in SAWSDL

Ontological Modeling: Part 11

Database Optimization Techniques for Semantic Queries

D20.1 v0.2 OWL Flight

Semantic Web Rules. - Tools and Languages - Holger Knublauch. Tutorial at Rule ML 2006, Athens, GA

Transcription:

OWL 2 Rules (Part 2) Tutorial at ESWC2009 May 31, 2009 Pascal Hitzler AIFB, Universität Karlsruhe (TH) Markus Krötzsch Sebastian Rudolph http://www.pascal-hitzler.de http://korrekt.org http://www.sebastian-rudolph.de KIT The cooperation of Forschungszentrum Karlsruhe GmbH and Universität Karlsruhe (TH) www.kit.edu

References and Pointers See http://semantic-web-grundlagen.de/wiki/eswc09_tutorial for the complete set of slides, and for links to references. Main References: Markus Krötzsch, Sebastian Rudolph, Pascal Hitzler, Description Logic Rules. In Malik Ghallab, Constantine D. Spyropoulos, Nikos Fakotakis, Nikos Avouris, eds.: Proceedings of the 18th European Conference on Artificial Intelligence (ECAI-08), pp. 80 84. IOS Press 2008. Markus Krötzsch, Sebastian Rudolph, Pascal Hitzler, ELP: Tractable Rules for OWL 2. In Amit Sheth, Steffen Staab, Mike Dean, Massimo Paolucci, Diana Maynard, Timothy Finin, Krishnaprasad Thirunarayan, eds.: Proceedings of the 7th International Semantic Web Conference (ISWC-08), pp. 649 664. Springer 2008. 2 Institute Author Title other informations KIT The cooperation of Forschungszentrum Karlsruhe GmbH and Universität Karlsruhe (TH)

Contents Motivation: OWL and Rules Preliminaries: Datalog Intro More rules than you ever need: SWRL Retaining decidability I: DL-safety Retaining decidability II: DL Rules Extending OWL with Rules The rules hidden in OWL 2: SROIQ Rules Retaining tractability I: OWL 2 EL Rules Retaining tractability II: DLP 2 Rules inside OWL Retaining tractability III: ELP putting it all together 3

Contents Motivation: OWL and Rules Preliminaries: Datalog Intro More rules than you ever need: SWRL Retaining decidability I: DL-safety Retaining decidability II: DL Rules Extending OWL with Rules The rules hidden in OWL 2: SROIQ Rules Retaining tractability I: OWL 2 EL Rules Retaining tractability II: DLP 2 Rules inside OWL Retaining tractability III: ELP putting it all together 4

Motivation: OWL and Rules Rules (mainly, logic programming) as alternative ontology modelling paradigm. Similar tradition, and in use in practice (e.g. F-Logic) Ongoing: W3C RIF working group Rule Interchange Format based on Horn-logic language standard forthcoming 2009 Seek: Integration of rules paradigm with ontology paradigm Here: Tight Integration in the tradition of OWL Foundational obstacle: reasoning efficiency / decidability [naive combinations are undecidable] 5

Contents Motivation: OWL and Rules Preliminaries: Datalog Intro More rules than you ever need: SWRL Retaining decidability I: DL-safety Retaining decidability II: DL Rules Extending OWL with Rules The rules hidden in OWL 2: SROIQ Rules Retaining tractability I: OWL 2 EL Rules Retaining tractability II: DLP 2 Rules inside OWL Retaining tractability III: ELP putting it all together 6

Preliminaries: Datalog Essentially Horn-rules without function symbols general form of the rules: p 1 (x 1,...,x n )... p m (y 1,...,y k ) q(z 1,...,z j ) body head semantics either as in predicate logic or as Herbrand semantics (see next slide) decidable polynomial data complexity (in number of facts) combined (overall) complexity: ExpTime combined complexity is P if the number of variables per rule is globally bounded 7

Datalog semantics example Example: p(x) q(x) q(x) r(x) p(a) predicate logic semantics: ( x) (p(x) r(x)) and ( x) ( r(x) p(x)) are logical consequences q(a) and r(a) are logical consequences Herbrand semantics those on the left are not logical consequences q(a) and r(a) are logical consequences material implication: apply only to known constants 8

Contents Motivation: OWL and Rules Preliminaries: Datalog Intro More rules than you ever need: SWRL Retaining decidability I: DL-safety Retaining decidability II: DL Rules Extending OWL with Rules The rules hidden in OWL 2: SROIQ Rules Retaining tractability I: OWL 2 EL Rules Retaining tractability II: DLP 2 Rules inside OWL Retaining tractability III: ELP putting it all together 9

More rules than you ever need: SWRL Union of OWL DL with (binary) function-free Horn rules (with binary Datalog rules) undecidable no native tools available rather an overarching formalism see http://www.w3.org/submission/swrl/ 10

SWRL example (running example) NutAllergic(sebastian) NutProduct(peanutOil) ordereddish.thaicurry(sebastian) ThaiCurry v contains.{peanutoil} > v ordereddish.dish NutAllergic(x) NutProduct(y) dislikes(x,y) dislikes(x,z) Dish(y) contains(y,z) dislikes(x,y) ordereddish(x,y) dislikes(x,y) Unhappy(x) 11

SWRL example (running example) NutAllergic(sebastian) NutProduct(peanutOil) ordereddish.thaicurry(sebastian) ThaiCurry v contains.{peanutoil} > v ordereddish.dish NutAllergic(x) NutProduct(y) dislikes(x,y) dislikes(x,z) Dish(y) contains(y,z) dislikes(x,y) ordereddish(x,y) dislikes(x,y) Unhappy(x) Conclusions: dislikes(sebastian,peanutoil) 12

SWRL example (running example) NutAllergic(sebastian) NutProduct(peanutOil) ordereddish.thaicurry(sebastian) 13 ThaiCurry v > v ordereddish.dish ordereddish rdfs:range Dish. NutAllergic(x) NutProduct(y) dislikes(x,y) dislikes(x,z) Dish(y) contains(y,z) dislikes(x,y) ordereddish(x,y) dislikes(x,y) Unhappy(x) Conclusions: dislikes(sebastian,peanutoil) ordereddish(sebastian,y s ) ThaiCurry(y s ) Dish(y s ) contains.{peanutoil}

SWRL example (running example) NutAllergic(sebastian) NutProduct(peanutOil) ordereddish.thaicurry(sebastian) ThaiCurry v contains.{peanutoil} > v ordereddish.dish NutAllergic(x) NutProduct(y) dislikes(x,y) dislikes(x,z) Dish(y) contains(y,z) dislikes(x,y) ordereddish(x,y) dislikes(x,y) Unhappy(x) 14 Conclusions: dislikes(sebastian,peanutoil) ordereddish(sebastian,y s ) ThaiCurry(y s ) Dish(y s ) contains(y s,peanutoil)

SWRL example (running example) NutAllergic(sebastian) NutProduct(peanutOil) ordereddish.thaicurry(sebastian) ThaiCurry v contains.{peanutoil} > v ordereddish.dish NutAllergic(x) NutProduct(y) dislikes(x,y) dislikes(x,z) Dish(y) contains(y,z) dislikes(x,y) ordereddish(x,y) dislikes(x,y) Unhappy(x) 15 Conclusions: dislikes(sebastian,peanutoil) ordereddish(sebastian,y s ) ThaiCurry(y s ) Dish(y s ) contains(y s,peanutoil) dislikes(sebastian,y s )

SWRL example (running example) NutAllergic(sebastian) NutProduct(peanutOil) ordereddish.thaicurry(sebastian) ThaiCurry v contains.{peanutoil} > v ordereddish.dish NutAllergic(x) NutProduct(y) dislikes(x,y) dislikes(x,z) Dish(y) contains(y,z) dislikes(x,y) ordereddish(x,y) dislikes(x,y) Unhappy(x) 16 Conclusions: dislikes(sebastian,peanutoil) ordereddish(sebastian,y s ) ThaiCurry(y s ) Dish(y s ) contains(y s,peanutoil) dislikes(sebastian,y s ) Unhappy(sebastian)

SWRL example (running example) NutAllergic(sebastian) NutProduct(peanutOil) ordereddish.thaicurry(sebastian) ThaiCurry v contains.{peanutoil} > v ordereddish.dish NutAllergic(x) NutProduct(y) dislikes(x,y) dislikes(x,z) Dish(y) contains(y,z) dislikes(x,y) ordereddish(x,y) dislikes(x,y) Unhappy(x) Conclusion: Unhappy(sebastian) 17

Contents Motivation: OWL and Rules Preliminaries: Datalog Intro More rules than you ever need: SWRL Retaining decidability I: DL-safety Retaining decidability II: DL Rules Extending OWL with Rules The rules hidden in OWL 2: SROIQ Rules Retaining tractability I: OWL 2 EL Rules Retaining tractability II: DLP 2 Rules inside OWL Retaining tractability III: ELP putting it all together 18

Retaining decidability I: DL-safety Reinterpret SWRL rules: Rules apply only to individuals which are explicitly given in the knowledge base. Herbrand-style way of interpreting them OWL DL + DL-safe SWRL is decidable Native support e.g. by KAON2 and Pellet See e.g. Boris Motik, Ulrike Sattler, and Rudi Studer. Query Answering for OWL-DL with Rules. Journal of Web Semantics 3(1):41 60, 2005. 19

DL-safe SWRL example NutAllergic(sebastian) NutProduct(peanutOil) ordereddish.thaicurry(sebastian) ThaiCurry v contains.{peanutoil} > v ordereddish.dish NutAllergic(x) NutProduct(y) dislikes(x,y) dislikes(x,z) Dish(y) contains(y,z) dislikes(x,y) DL-safe{ ordereddish(x,y) dislikes(x,y) Unhappy(x) Unhappy(sebastian) cannot be concluded 20

DL-safe SWRL example NutAllergic(sebastian) NutProduct(peanutOil) ordereddish.thaicurry(sebastian) ThaiCurry v contains.{peanutoil} > v ordereddish.dish NutAllergic(x) NutProduct(y) dislikes(x,y) dislikes(x,z) Dish(y) contains(y,z) dislikes(x,y) DL-safe{ ordereddish(x,y) dislikes(x,y) Unhappy(x) 21 Conclusions: dislikes(sebastian,peanutoil) ordereddish(sebastian,y s ) ThaiCurry(y s ) Dish(y s ) contains(y s,peanutoil) dislikes(sebastian,y s )

Contents Motivation: OWL and Rules Preliminaries: Datalog Intro More rules than you ever need: SWRL Retaining decidability I: DL-safety Retaining decidability II: DL Rules Extending OWL with Rules The rules hidden in OWL 2: SROIQ Rules Retaining tractability I: OWL 2 EL Rules Retaining tractability II: DLP 2 Rules inside OWL Retaining tractability III: ELP putting it all together 22

Retaining decidability II: DL Rules General idea: Find out which rules can be encoded in OWL (2 DL) anyway Man(x) hasbrother(x,y) haschild(y,z) Uncle(x) Man u hasbrother. haschild.> v Uncle ThaiCurry(x) contains.fishproduct(x) ThaiCurry v contains.fishproduct kills(x,x) suicide(x) kills.self v suicide suicide(x) kills(x,x) suicide v kills.self Note: with these two axioms, suicide is basically the same as kills 23

DL Rules: more examples NutAllergic(x) NutProduct(y) dislikes(x,y) NutAllergic nutallergic.self NutProduct nutproduct.self nutallergic o U o nutproduct v dislikes dislikes(x,z) Dish(y) contains(y,z) dislikes(x,y) Dish dish.self dislikes o contains o dish v dislikes worksat(x,y) University(y) supervises(x,z) PhDStudent(z) professorof(x,z) worksat.university worksatuniversity.self PhDStudent phdstudent.self worksatuniversity o supervises o phdstudent v professorof 24

DL Rules: definition Tree-shaped bodies First argument of the conclusion is the root C(x) R(x,a) S(x,y) D(y) T(y,a) E(x) C u R.{a} u S.(D u T.{a}) v E E duplicating nominals is ok E 25

DL Rules: definition Tree-shaped bodies First argument of the conclusion is the root C(x) R(x,a) S(x,y) D(y) T(y,a) V(x,y) C u R.{a} v R1.Self D u T.{a} v R2.Self R1 o S o R2 v V 26

DL Rules: definition Tree-shaped bodies First argument of the conclusion is the root complex classes are allowed in the rules Mouse(x) hasnose.trunklike(y) smallerthan(x,y) ThaiCurry(x) contains.fishproduct(x) Note: This allows to reason with unknowns (unlike Datalog) allowed class constructors depend on the chosen underlying description logic! 27

DL Rules: definition Given a description logic D, the language D Rules consists of all axioms expressible in D, plus all rules with tree-shaped bodies, where the first argument of the conclusion is the root, and complex classes from D are allowed in the rules. <plus possibly some restrictions concerning e.g. the use of simple roles depending on D> 28

Contents Motivation: OWL and Rules Preliminaries: Datalog Intro More rules than you ever need: SWRL Retaining decidability I: DL-safety Retaining decidability II: DL Rules Extending OWL with Rules The rules hidden in OWL 2: SROIQ Rules Retaining tractability I: OWL 2 EL Rules Retaining tractability II: DLP 2 Rules inside OWL Retaining tractability III: ELP putting it all together 29

The rules hidden in OWL 2: SROIQ Rules N2ExpTime complete In fact, SROIQ Rules can be translated into SROIQ i.e. they don't add expressivity. Translation is polynomial. SROIQ Rules are essentially helpful syntactic sugar for OWL 2. 30

SROIQ Rules example NutAllergic(sebastian) NutProduct(peanutOil) ordereddish.thaicurry(sebastian) ThaiCurry v contains.{peanutoil} > v ordereddish.dish NutAllergic(x) NutProduct(y) dislikes(x,y) dislikes(x,z) Dish(y) contains(y,z) dislikes(x,y) ordereddish(x,y) dislikes(x,y) Unhappy(x)!not a SROIQ Rule! 31

SROIQ Rules normal form Each SROIQ Rule can be written ("linearised") such that the body-tree is linear, if the head is of the form R(x,y), then y is the leaf of the tree, and if the head is of the form C(x), then the tree is only the root. worksat(x,y) University(y) supervises(x,z) PhDStudent(z) professorof(x,z) worksat.university(x) supervises(x,z) PhDStudent(z) professorof(x,z) C(x) R(x,a) S(x,y) D(y) T(y,a) V(x,y) (C u R.{a})(x) S(x,y) (D u T.{a})(y) V(x,y) 32

Contents Motivation: OWL and Rules Preliminaries: Datalog Intro More rules than you ever need: SWRL Retaining decidability I: DL-safety Retaining decidability II: DL Rules Extending OWL with Rules The rules hidden in OWL 2: SROIQ Rules Retaining tractability I: OWL 2 EL Rules Retaining tractability II: DLP 2 Rules inside OWL Retaining tractability III: ELP putting it all together 33

Retaining tractability I: OWL 2 EL Rules EL++ Rules are PTime complete EL++ Rules offer expressivity which is not readily available in EL++. OWL 2 = SROIQ Rules OWL 2 EL Rules OWL 2 EL >ExpTime tractable 34

OWL 2 EL Rules: normal form Every EL++ Rule can be converted into a normal form,where occurring classes in the rule body are either atomic or nominals, all variables in a rule's head occur also in its body, and rule heads can only be of one of the forms A(x), R.A(x), R(x,y), where A is an atomic class or a nominal or > or. Translation is polynomial. worksat.university(x) supervises(x,z) PhDStudent(z) professorof(x,z) worksat(x,y) University(y) supervises(x,z) PhDStudent(z) professorof(x,z) ThaiCurry(x) contains.fishproduct(x) 35

OWL 2 EL Rules in a nutshell Essentially, OWL 2 EL Rules is Binary Datalog with tree-shaped rule bodies, extended by occurrence of nominals as atoms and existential class expressions in the head. The existentials really make the difference. Arguably the better alternative to OWL 2 EL (aka EL++)? (which is covered anyway) 36

Contents Motivation: OWL and Rules Preliminaries: Datalog Intro More rules than you ever need: SWRL Retaining decidability I: DL-safety Retaining decidability II: DL Rules Extending OWL with Rules The rules hidden in OWL 2: SROIQ Rules Retaining tractability I: OWL 2 EL Rules Retaining tractability II: DLP 2 Rules inside OWL Retaining tractability III: ELP putting it all together 37

Retaining tractability II: DLP 2 DLP 2 is DLP (aka OWL 2 RL) extended with DL rules, which use left-hand-side class expressions in the bodies and right-hand-side class expressions in the head. Polynomial transformation into 5-variable Horn rules. PTime. Quite a bit more expressive than DLP / OWL 2 RL... 38

Contents Motivation: OWL and Rules Preliminaries: Datalog Intro More rules than you ever need: SWRL Retaining decidability I: DL-safety Retaining decidability II: DL Rules Extending OWL with Rules The rules hidden in OWL 2: SROIQ Rules Retaining tractability I: OWL 2 EL Rules Retaining tractability II: DLP 2 Rules inside OWL Retaining tractability III: ELP putting it all together 39

Retaining tractability III: ELP (aka putting it all together) ELP is OWL 2 EL Rules + a generalisation of DL-safety + variable-restricted DL-safe Datalog + role conjunctions (for simple roles). PTime complete. Contains OWL 2 EL and OWL 2 RL. Covers variable-restricted Datalog. 40

DL-safe variables A generalisation of DL-safety. DL-safe variables are special variables which bind only to named individuals (like in DL-safe rules). DL-safe variables can replace individuals in EL++ rules. C(x) R(x,x s ) S(x,y) D(y) T(y,x s ) E(x) with x s a safe variable is allowed, because C(x) R(x,a) S(x,y) D(y) T(y,a) E(x) is an EL++ rule. E duplicating nominals is ok E 41

Variable-restricted DL-safe Datalog n-datalog is Datalog, where the number of variables occurring in rules is globally bounded by n. complexity of n-datalog is PTime (for fixed n) (but exponential in n) in a sense, this is cheating. in another sense, this means that using a few DL-safe Datalog rules together with an EL++ rules knowledge base shouldn't really be a problem in terms of reasoning performance. 42

Role conjunctions ordereddish(x,y) dislikes(x,y) Unhappy(x) In fact, role conjunctions can also be added to OWL 2 DL without increase in complexity. Sebastian Rudolph, Markus Krötzsch, Pascal Hitzler, Cheap Boolean Role Constructors for Description Logics. In: Steffen Hölldobler and Carsten Lutz and Heinrich Wansing (eds.), Proceedings of 11th European Conference on Logics in Artificial Intelligence (JELIA), volume 5293 of LNAI, pp. 362-374. Springer, September 2008. 43

Retaining tractability III: ELP (aka putting it all together) ELP n is OWL 2 EL Rules generalised by DL-safe variables + DL-safe Datalog rules with at most n variables + role conjunctions (for simple roles). PTime complete (for fixed n). exponential in n Contains OWL 2 EL and OWL 2 RL. Covers all Datalog rules with at most n variables. (!) 44

ELP example NutAllergic(sebastian) NutProduct(peanutOil) ordereddish.thaicurry(sebastian) ThaiCurry v contains.{peanutoil} > v ordereddish.dish [okay] NutAllergic(x) NutProduct(y) dislikes(x,y) dislikes(x,z) Dish(y) contains(y,z) dislikes(x,y) ordereddish(x,y) dislikes(x,y) Unhappy(x) [okay role conjunction] not an EL++ rule 45

ELP example dislikes(x,z) Dish(y) contains(y,z) dislikes(x,y) as SROIQ rule translates to Dish dish.self dislikes o contains o dish v dislikes but we don't have inverse roles in ELP! solution: make z a DL-safe variable: dislikes(x,!z) Dish(y) contains(y,!z) dislikes(x,y) this is fine 46

DL-safe SWRL example NutAllergic(sebastian) NutProduct(peanutOil) ordereddish.thaicurry(sebastian) ThaiCurry v contains.{peanutoil} > v ordereddish.dish NutAllergic(x) NutProduct(y) dislikes(x,y) dislikes(x,!z) Dish(y) contains(y,!z) dislikes(x,y) ordereddish(x,y) dislikes(x,y) Unhappy(x) 47 Conclusions: dislikes(sebastian,peanutoil) ordereddish(sebastian,y s ) ThaiCurry(y s ) Dish(y s ) contains(y s,peanutoil) dislikes(sebastian,y s )

ELP example NutAllergic(sebastian) NutProduct(peanutOil) ordereddish.thaicurry(sebastian) ThaiCurry v contains.{peanutoil} > v ordereddish.dish NutAllergic(x) NutProduct(y) dislikes(x,y) dislikes(x,!z) Dish(y) contains(y,!z) dislikes(x,y) ordereddish(x,y) dislikes(x,y) Unhappy(x) Conclusion: Unhappy(sebastian) 48

ELP Reasoner ELLY Implementation currently being finalised. Based on IRIS Datalog reasoner. In cooperation with STI Innsbruck (Barry Bishop, Daniel Winkler, Gulay Unel). 49

The Big Picture OWL 2 = SROIQ Rules ELP OWL 2 EL Rules OWL 2 EL >ExpTime tractable 50

Closed World and ELP There's an extension of ELP using (non-monotonic) closed-world reasoning based on a well-founded semantics for hybrid MKNF knowledge bases. Matthias Knorr, Jose Julio Alferes, Pascal Hitzler, A Coherent Wellfounded model for Hybrid MKNF knowledge bases. In: Malik Ghallab, Constantine D. Spyropoulos, Nikos Fakotakis, Nikos Avouris (eds.), Proceedings of the 18th European Conference on Artificial Intelligence, ECAI2008, Patras, Greece, July 2008. IOS Press, 2008, pp. 99-103. 51

The Big Picture II OWL 2 = SROIQ Rules ELP hybrid ELP (local closed world) OWL 2 EL Rules OWL 2 EL >ExpTime tractable data-tractable 52

References Markus Krötzsch, Sebastian Rudolph, Pascal Hitzler, Description Logic Rules. In Malik Ghallab, Constantine D. Spyropoulos, Nikos Fakotakis, Nikos Avouris, eds.: Proceedings of the 18th European Conference on Artificial Intelligence (ECAI-08), pp. 80 84. IOS Press 2008. Markus Krötzsch, Sebastian Rudolph, Pascal Hitzler, ELP: Tractable Rules for OWL 2. In Amit Sheth, Steffen Staab, Mike Dean, Massimo Paolucci, Diana Maynard, Timothy Finin, Krishnaprasad Thirunarayan, eds.: Proceedings of the 7th International Semantic Web Conference (ISWC-08), pp. 649 664. Springer 2008. http://www.w3.org/submission/swrl/ Boris Motik, Ulrike Sattler, and Rudi Studer. Query Answering for OWL-DL with Rules. Journal of Web Semantics 3(1):41 60, 2005. 53

References Sebastian Rudolph, Markus Krötzsch, Pascal Hitzler, Cheap Boolean Role Constructors for Description Logics. In: Steffen Hölldobler and Carsten Lutz and Heinrich Wansing (eds.), Proceedings of 11th European Conference on Logics in Artificial Intelligence (JELIA), volume 5293 of LNAI, pp. 362-374. Springer, September 2008. Matthias Knorr, Jose Julio Alferes, Pascal Hitzler, A Coherent Wellfounded model for Hybrid MKNF knowledge bases. In: Malik Ghallab, Constantine D. Spyropoulos, Nikos Fakotakis, Nikos Avouris (eds.), Proceedings of the 18th European Conference on Artificial Intelligence, ECAI2008, Patras, Greece, July 2008. IOS Press, 2008, pp. 99-103. 54

References Pascal Hitzler, Markus Krötzsch, Sebastian Rudolph, York Sure, Semantic Web Grundlagen. Springer, 2008. http://www.semantic-web-grundlagen.de/ Pascal Hitzler, Markus Krötzsch, Sebastian Rudolph, Foundations of Semantic Web Technologies. Chapman & Hall/CRC, 2009. http://www.semantic-web-book.org/wiki/fost (Grab a flyer from us.) 55

Thanks! http://semantic-web-grundlagen.de/wiki/eswc09_tutorial 56