Unit 5: OWL2 (in a nutshell) & OWL Reasoning for Linked Data. Axel Polleres All rights reserved.

Similar documents
Stream Reasoning For Linked Data

Unit 6: OWL, OWL 2, SPARQL+OWL. Axel Polleres. Siemens AG Österreich All rights reserved.

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

Scalable OWL 2 Reasoning for Linked Data (Part II)

Reasoning with the Web Ontology Language (OWL)

Schema-Agnostic Query Rewriting in SPARQL 1.1

FOUNDATIONS OF SEMANTIC WEB TECHNOLOGIES

Scalable Ontology-Based Information Systems

Knowledge Representation for the Semantic Web Lecture 4: Description Logics III

OWL 2 Syntax and Semantics Sebastian Rudolph

The Role of Logics and Logic Programming in Semantic Web Standards (OWL2, RIF, SPARQL1.1)

Semantic Web in Depth: Web Ontology Language (OWL) Dr Nicholas Gibbins 32/3019

OWL 2. Web Ontology Language. Some material adapted from presenta0ons by Ian Horrocks and by Feroz Farazi

CC LA WEB DE DATOS PRIMAVERA Lecture 4: Web Ontology Language (I) Aidan Hogan

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

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

OWL 2 Update. Christine Golbreich

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

OWL 2. Introduc.on. Features and Ra.onale. Syntac.c Sugar. Web Ontology Language 4/17/13

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

Semantic Web Technologies Web Ontology Language (OWL) Part II. Heiko Paulheim

Description Logic. Eva Mráková,

Knowledge Representation for the Semantic Web

Description Logic: A Formal Foundation for Ontology Languages and Tools

Semantic Technologies & Triplestores for BI

Scalable OWL Reasoning for Linked Data

Description Logics and OWL

Semantic Web KM: A Knowledge Machine for Semantic Webs

COMP718: Ontologies and Knowledge Bases

Evaluation of Query Rewriting Approaches for OWL 2

Forward Chaining Reasoning Tool for Rya

Parallel and Distributed Reasoning for RDF and OWL 2

Ontological Modeling: Part 7

Modularity in Ontologies: Introduction (Part A)

Knowledge Representation for the Semantic Web

Searching for the Holy Grail. Ian Horrocks Information Systems Group Oxford University Computing Laboratory

Practical Aspects of Query Rewriting for OWL 2

Ontologies and OWL. Riccardo Rosati. Knowledge Representation and Semantic Technologies

Formalising the Semantic Web. (These slides have been written by Axel Polleres, WU Vienna)

TrOWL: Tractable OWL 2 Reasoning Infrastructure

Semantics. KR4SW Winter 2011 Pascal Hitzler 1

Why Ontologies? RRDIU - Semantic Web 2

LINKING BACKGROUND INFORMATION

Semantic Technologies

Lecture 3: Ontologies

Local Closed World Reasoning with OWL 2

Semantic Web Test

Maurizio Lenzerini. Dipartimento di Ingegneria Informatica Automatica e Gestionale Antonio Ruberti

OWL 2 Web Ontology Language:Mapping to RDF Graphs W3C Working Draft 02 December 2008

Querying Data through Ontologies

Bryan Smith May 2010

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

Stream Reasoning For Linked Data

Web Ontology Language: OWL2

Standardization of Ontologies

Semantic Web. Ontology and OWL. Morteza Amini. Sharif University of Technology Fall 95-96

OWL 2 Web Ontology Language Primer W3C Recommendation 27 October 2009

Week 4. COMP62342 Sean Bechhofer, Uli Sattler

Ontological Modeling: Part 8

FHIR RDF Sample side by side comparisons

OWL 2 Web Ontology Language Primer

Deep integration of Python with Semantic Web technologies

Mastro Studio: a system for Ontology-Based Data Management

COMP718: Ontologies and Knowledge Bases

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

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

Efficiently Managing Data Intensive Ontologies

Table of Contents. iii

The Role of Reasoning for RDF Validation

The ISO D approach

OWL Web Ontology Language

jcel: A Modular Rule-based Reasoner

SEMANTIC WEB AND COMPARATIVE ANALYSIS OF INFERENCE ENGINES

Rewrite and Conquer: Dealing with Integrity Constraints in Data Integration

OWL-DBC The Arrival of Scalable and Tractable OWL Reasoning for Enterprise Knowledge Bases

Presented By Aditya R Joshi Neha Purohit

Ontologies, OWL, OWL profiles

Knowledge-Driven Video Information Retrieval with LOD

Linked data schemata: fixing unsound foundations

Advancing the Enterprise-class OWL Inference Engine in Oracle Database

Reasoning and Query Answering in Description Logics

Towards SPARQL instance-level Update in the Presence of OWL-DL TBoxes

Research Article A Method of Extracting Ontology Module Using Concept Relations for Sharing Knowledge in Mobile Cloud Computing Environment

FOUNDATIONS OF SEMANTIC WEB TECHNOLOGIES

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

Introduction to Protégé. Federico Chesani, 18 Febbraio 2010

OWL an Ontology Language for the Semantic Web

Tractable Extensions of the Description Logic EL with Numerical Datatypes

Unit 2 RDF Formal Semantics in Detail

Main topics: Presenter: Introduction to OWL Protégé, an ontology editor OWL 2 Semantic reasoner Summary TDT OWL

Description Logics as Ontology Languages for Semantic Webs

Suitability of a KR for OBDM

Linked data schemata: fixing unsound foundations

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

Integrating OWL and Rules: A Syntax Proposal for Nominal Schemas

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

Description Logic: Axioms and Rules

FOUNDATIONS OF SEMANTIC WEB TECHNOLOGIES

Semantic Web. MPRI : Web Data Management. Antoine Amarilli Friday, January 11th 1/29

An Introduction to the Semantic Web. Jeff Heflin Lehigh University

Transcription:

Unit 5: OWL2 (in a nutshell) & OWL Reasoning for Linked Data Axel Polleres. 2013. All rights reserved.

Overview What s new in OWL2 (2009, edited REC 2012)? OWL for Linked Data (summary of own works on over the past view years, with various co-authors, e.g. Aidan Hogan, Jürgen Umbrich, Stefan Bischof, Andreas Harth, Birte Glimm, Markus Krötzsch, etc.) Page 2 Axel Polleres

Why OWL1 is Not Enough Too expensive to reason with High complexity: NEXPTIME-complete Some ontologies only use some limited expressive power; e.g. The SNOMED (Systematised Nomenclature of Medicine) ontology Not expressive enough; e.g. No user defined datatypes No metamodeling support Limited support for describing properties 3

From OWL1 to OWL2 OWL2: A new version of OWL in 2009 Main goals: 1. To define profiles of OWL that are: smaller, easier to implement and deploy cover important application areas and are easily understandable to nonexpert users 2. To add a few extensions to current OWL that are useful, and is known to be implementable many things happened in research since 2004 4

New Expressiveness in OWL 2 New expressive power user defined datatypes, e.g.: :personage owl:equivalentclass _:x. _:x rdf:type rdfs:datatype. _:x owl:ondatatype xsd:integer. _:x owl:withrestrictions (_:y1 _:y2). _:y1 xsd:mininclusive "0"^^xsd:integer. _:y2 xsd:maxinclusive "150"^^xsd:integer. punning (metamodeling), e.g.: :John rdf:type :Father. :Father rdf:type :SocialRole. 5

New Expressiveness in OWL 2 6 qualified cardinality restrictions, e.g.: _:x rdf:type owl:restriction. _:x owl:onproperty foaf:knows. _:x owl:minqualifiedcardinality 2"^^xsd:nonNegativeInteger. _:x owl:onclass Scottish. property chain inclusion axioms, e.g.: foaf:nick owl:propertychainaxiom (foaf:holdsaccount sioc:name). local reflexivity restrictions, e.g.: _:x rdf:type owl:restriction. _:x owl:onproperty :like. _:x owl:hasself "true"^^xsd:boolean [for narcissists] reflexive, irreflexive, symmetric, and antisymmetric properties, e.g.: foaf:knows rdf:type owl:reflexiveproperty. rel:childof rdf:type owl:irreflexiveproperty. disjoint properties, e.g.: rel:childof owl:propertydisjointwith rel:parentof. keys, e.g.: foaf:onlineaccount owl:haskey (foaf:accountname foaf:accountservicehomepage).

New Expressiveness in OWL 2 Syntactic sugar (make things easier to say) Disjoint unions, e.g.: child owl:disjointunionof (boy girl). Disjoint classes, e.g.: _:x rdf:type owl:alldisjointclasses. _:x owl:members (boy girl). Negative assertions, e.g.: _:x rdf:type owl:negativepropertyassertion. _:x owl:sourceindividual :John. _:x owl:assertionproperty foaf:knows. _:x owl:targetindividual :Mary. 7

OWL 2 and Description Logics (DL) R often used for ALC extended with property chain inclusion axioms following the notion introduced in RIQ [Horrocks and Sattler, 2003] including transitive property axioms Additional letters indicate other extensions, e.g.: S for property characteristics (e.g., reflexive and symmetric) O for nominals/singleton classes I for inverse roles Q for qualified number restrictions property characteristics (S) + R + nominals (O) + inverse (I) + qualified number restrictions(q) = SROIQ SROIQ [Horrocks et al., 2006] is the basis for OWL 2 DL 8

OWL 2 Profiles and Reasoning Services Rationale: Tractable Tailored to specific reasoning services Popular reasoning services TBox reasoning: OWL 2 EL ABox reasoning: OWL 2 RL Query answering: OWL 2 QL Specification: http://www.w3.org/tr/owl2-profiles/ 9

The family tree OWL 2 Full OWL 2 DL SROIQ Undecidable 2NExpTime- Complete SHOIN OWL 1 DL NExpTime- Complete OWL 2 RL OWL 2 EL EL++ PTime- Complete OWL 2 QL DL-Lite In AC 0 10

OWL 2 QL A (near maximal) fragment of OWL 2 such that Data complexity of conjunctive query answering in AC 0 Based on DL-Lite family of description logics [Calvanese et al. 2005; 2006; 2008] Can exploit query rewriting based reasoning technique Computationally optimal Data storage and query evaluation can be delegated to standard RDBMS Novel technique to prevent exponential blowup produced by rewritings [Kontchakov et al. 2010, Rosati and Almatelli 2010] Can be extended to more expressive languages (beyond AC 0 ) by delegating query answering to a Datalog engine [Perez-Urbina et al. 2009] 11

Query Rewriting Technique (basics) Given ontology O (TBox) and a conjunctive query q use O to rewrite q to q Q 0 s.t., for any set of ground facts A: ans(q, O, A) = ans(q, ;, A) Resolution based query rewriting Clausify ontology axioms Saturate (clausified) ontology and query using resolution Prune redundant query clauses 12

Query Rewriting Technique (basics) Example: :Doctor rdfs:subclassof [ a owl:restriction; owl:onproperty :treats ; owl:somevaluesfrom :Patient ]. :Consultant rdfs:subclassof :Doctor. SELECT?x WHERE {?x :treats?y.?y a :Patient. } 13

Query Rewriting Technique (basics) Example: 14

Query Rewriting Technique (basics) Example (clausify): 15

Query Rewriting Technique (basics) Example (saturate): 16

Query Rewriting Technique (basics) Example (saturate): 17

Query Rewriting Technique (basics) Example (saturate): 18

Query Rewriting Technique (basics) Example (saturate): 19

Query Rewriting Technique (basics) Example (prune): For DL-Lite, result is a union of conjunctive queries 20

Query Rewriting Technique (basics) SELECT?x WHERE {?x :treats?y.?y a :Patient. } SELECT?x WHERE { {?x :treats?y.?y a :Patient. } UNION {?x a :Doctor } UNION {?x a :Consultant} } 21

OWL 2 EL A (near maximal) fragment of OWL 2 such that Satisfiability checking is in PTime (PTime-Complete) Data complexity of query answering also PTime-Complete Based on EL family of description logics [Baader et al. 2005] Can exploit saturation based reasoning techniques Computes complete classification in one pass Computationally optimal (PTime for EL) 22

Saturation-based Technique (basics) Normalise ontology axioms to standard form: Saturate using inference rules: Extensions to Horn fragment of OWL DL [Kazakov 2009] requires (many) more rules 23

Saturation-based Technique (basics) Example: 24

Saturation-based Technique (basics) Example: 25

Saturation-based Technique (basics) Example: 26

OWL 2 RL A (near maximal) fragment of OWL 2 such that ABox reasoning can be implemented using forward-chaining rules Expands on the idea of inference rules for RDFS (recall Unit 3): 27 Axel Polleres

OWL 2 RL A (near maximal) fragment of OWL 2 such that ABox reasoning can be implemented using forward-chaining rules Expands on the idea of inference rules for RDFS (recall Unit 3). Some additional rules for OWL 2: {?O?Q?S. } :- {?S?P?O.?Q owl:inverseof?p. } {?O?P?S. } :- {?S?P?O.?P a owl:symmetricproperty. } 28 Axel Polleres

OWL 2 RL Further examples: e.g. inversefunctionalproperty can also (partially) be expressed by Rules: {?S1 owl:sameas?s2 } :- {?S1?P?O.?S2?P?O.?P rdf:type owl:inversefunctionalproperty } also owl:sameas {?X owl:sameas?z. } :- {?X owl:sameas?y.?y owl:sameas?z. } {?Y?P?O } :- {?X owl:sameas?y.?x?p?o } {?S?Y?O } :- {?X owl:sameas?y.?s?x?o } {?S?P?Y } :- {?X owl:sameas?y.?s?p?x } Details: http://www.w3.org/tr/owl2-profiles/#reasoning_in_owl_2_rl_and_rdf_graphs_using_rules 29 29

Now can OWL(2) Reasoning be done on Linked Data? Slides: OWLED 2013 keynote, http://www.polleres.net/presentations//20130527owled2013_invited_talk.pdf 30 Axel Polleres

Next time: Discuss assignment 3 & Q/A Anything in particular you want repeated/answered? Note: 1) OPTIONAL in Virtuoso sometimes causes troubles (please submit still what you have, we ll check that next time in detail) 2) Queries with FROM/FROM NAMED probably don t run on a remote endpoint, use ARQ for those. Page 31 2012-04-17 Axel Polleres

Student presentations: Who has sent me a topic suggestion already? SPARQL GUIs (F. J. Ekaputra) Good Relations Ontology and use (B.Ege) Web of Needs (A.Tus) SPARQL1.1 Property Paths (K. Bui, J. Petttersson) RDB2RDF or OWL/DL Modeling? (B.Doenz) SPARQL1.1 Entailment Regimes & Update (L. Agatic, V. Viljanic) SPARQL Benchmarking (E. Rut) OWL 2 and metamodeling (F. Leberl) Schema.org and RDFa (M.Suchi) A SW application based on Dbpedia (S. Belk) Using Semantics for resource allocation (D. Drenjanac) W3C LDP (O. Zhukova) XBRL & Linked Data (L. Madlberger) RDF/OWL wrapper for TISS (N. Frohner, S.Lindner) SKOS (B. Fazekas) Anybody Page 32 who 2012-04-17 has NOT suggested Axel Polleres a topic yet?

Student presentations schedule Stefan Belk SW application using DBPEdia 24.6.2013 09:00 Olga Zhukova W3C Linked Data Platform 24.6.2013 09:30 Simon Lindner, Nikolaus Frohner OWL/RDF for TISS 24.6.2013 10:00 Botond Fazekas SKOS 24.6.2013 10:30 Elias Rut Berlin SPARQL Benchmark 24.6.2013 11:00 Leon Agatic, Vanda Viljanac SPARQL1.1 Entailment Regimes and Update 24.6.2013 11:30 Boertecin Ege Good Relations 24.6.2013 15:00 Franz Leberl OWL2 Metamodeling 24.6.2013 15:30 Domagoj Drenjanac Semantics for resource allocation 24.6.2013 16:00 Benjamin Doenz RDB2RDF 24.6.2013 16:30 Ekaputra Fajar Juang SPARQL GUIs 24.6.2013 17:00 Lisa Madlberger XBRL & Linked Data 24.6.2013 17:30 Markus Suchi Schema.org and RDFa 25.6.2013 09:00 Alan Tus Web of Needs project 25.6.2013 09:30 Jonas Petterson, Kien Bui SPARQL1.1 Property Paths 25.6.2013 10:00 Florian Wieser?? 25.6.2013 10:30? Soroosh Mortezapoor?? 25.6.2013 11:00? Page 33 Axel Polleres

Some suggested topics (which we can assign now already first come, first serve: W3C RDF1.1 WG status semantics, changes, semantics for named graphs, etc. More own topics suggestions welcome! 34 Axel Polleres

Presentations First slot: 24/06/2013 Second slot: 25/06/2013 Send me the slides at least 1 week in advance per email! You should start to work on the topic soon! 35 Axel Polleres