descriptionlogics: anicefamilyoflogics —introduction,part1—

26
Origins Basics Ontologies, OWL, Protégé Description Logics: a Nice Family of Logics — Introduction, Part 1 — Uli Sattler 1 Thomas Schneider 2 1 School of Computer Science, University of Manchester, UK 2 Department of Computer Science, University of Bremen, Germany ESSLLI, 15 August 2016 Uli Sattler, Thomas Schneider DL: Introduction 1 1

Upload: others

Post on 14-Jun-2022

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: DescriptionLogics: aNiceFamilyofLogics —Introduction,Part1—

Origins Basics Ontologies, OWL, Protégé

Description Logics: a Nice Family of Logics— Introduction, Part 1 —

Uli Sattler1 Thomas Schneider 2

1School of Computer Science, University of Manchester, UK

2Department of Computer Science, University of Bremen, Germany

ESSLLI, 15 August 2016

Uli Sattler, Thomas Schneider DL: Introduction 1 1

Page 2: DescriptionLogics: aNiceFamilyofLogics —Introduction,Part1—

Origins Basics Ontologies, OWL, Protégé

Welcome!

Let us know if you

. . . have questions. – Do ask them at any time.

. . . have difficulties understanding us/reading our writing/. . .

In this course, we’ll

. . . ask you to think a lot

. . . ask you to work through numerous examples

. . . talk about complex stuff with many fascinating facets!

Uli Sattler, Thomas Schneider DL: Introduction 1 2

Page 3: DescriptionLogics: aNiceFamilyofLogics —Introduction,Part1—

Origins Basics Ontologies, OWL, Protégé

What’s in this course?Mon Introduction

• Origins, the basic DL ALC, reasoning problems• Ontologies, examples and exercises

Tue • Relation with other logics

Tableau algorithms• for ALC

Wed • for extensions of ALC

Complexity of selected DLs• for ALC and extensions

Thu • with restrictions• (un)decidability border

Fri Further reasoning problems• modularity• justifications

Uli Sattler, Thomas Schneider DL: Introduction 1 3

Page 4: DescriptionLogics: aNiceFamilyofLogics —Introduction,Part1—

Origins Basics Ontologies, OWL, Protégé

Plan for today

1 Origins of DLs

2 DL basics

3 Ontologies, OWL, Protégé ; Uli

Uli Sattler, Thomas Schneider DL: Introduction 1 4

Page 5: DescriptionLogics: aNiceFamilyofLogics —Introduction,Part1—

Origins Basics Ontologies, OWL, Protégé

And now . . .

1 Origins of DLs

2 DL basics

3 Ontologies, OWL, Protégé ; Uli

Uli Sattler, Thomas Schneider DL: Introduction 1 5

Page 6: DescriptionLogics: aNiceFamilyofLogics —Introduction,Part1—

Origins Basics Ontologies, OWL, Protégé

DLs: where they come fromDLs as knowledge representation (KR) formalisms

Common perception: logic is difficult for human conceptione.g., how long does it take you to read

∀x∃y∀z((r(x , y) ∧ s(y , z))⇒ (¬s(a, y) ∨ r(x , z)))

or check that it is equivalent to

∀x∃y∀z(r(x , z) ∨ ¬r(x , y) ∨ ¬s(y , z) ∨ ¬s(a, y))

; It’s like a new language to learn!Only for the “mathematically gifted”

Are there better suited alternatives?Can we help users learn/speak/interact with logic?

They might not even have to see it.

Uli Sattler, Thomas Schneider DL: Introduction 1 6

Page 7: DescriptionLogics: aNiceFamilyofLogics —Introduction,Part1—

Origins Basics Ontologies, OWL, Protégé

Early KR formalisms

. . . were mostly graphical because graphics are

easier to grasp:“A picture says more than a thousand words.”

close to how knowledge is represented in human beings (?)

Most graphical KR formalisms represent knowledge as graphs with

vertices (possibly labelled)mostly representing concepts, classes, individuals etc.

edges (possibly labelled)mostly representing properties, relationships etc.

Uli Sattler, Thomas Schneider DL: Introduction 1 7

Page 8: DescriptionLogics: aNiceFamilyofLogics —Introduction,Part1—

Origins Basics Ontologies, OWL, Protégé

A Semantic Network

Person 

Teacher 

Student 

Professor 

TA 

Course 

University 

is a is a 

is a  is a is a 

a7ends 

teaches offers 

Mary 

is a 

Be7y 

is a CS6001 

teaches 

a7ends 

What does it represent/say? Is Betty a Student?

Problem: missing semanticsRemedy: base your picture on logic or use logic directly

Uli Sattler, Thomas Schneider DL: Introduction 1 8

Page 9: DescriptionLogics: aNiceFamilyofLogics —Introduction,Part1—

Origins Basics Ontologies, OWL, Protégé

Terminological Knowledge

DLs: designed to represent terminological or conceptual knowledge

Goal

Formalise basic terminology of an application domain;store it in a TBoxEnable reasoning about concepts – e.g.:

Can there be Mammals?Is every Mammal an Animal?Are Frogs Reptiles?

Store facts about individuals in an ABoxEnable reasoning about individuals and concepts – e.g.:

Are my facts consistent with my terminology?Is Kermit a Frog?

Uli Sattler, Thomas Schneider DL: Introduction 1 9

Page 10: DescriptionLogics: aNiceFamilyofLogics —Introduction,Part1—

Origins Basics Ontologies, OWL, Protégé

Applications

Medical

SNOMED CT(Systematized Nomenclature of Medicine – Clinical Terms)

clinical terminology, used internationally320,000 terms

NCI Thesaurus (NCI = National Cancer Institute of the USA)vocabulary for clinical care, translational and basic research,public information, administrative activities120,000 terms

ICD 11 (International Classification of Diseases)used worldwide for health statistics

Uli Sattler, Thomas Schneider DL: Introduction 1 10

Page 11: DescriptionLogics: aNiceFamilyofLogics —Introduction,Part1—

Origins Basics Ontologies, OWL, Protégé

Applications

Biology

GO (Gene Ontology)controlled vocabulary of terms for gene product characteristicsand gene product annotation data

Bioportalwebsite that provides access to 530 bio-health ontologies

Semantic Web

Use terms defined in a TBox to annotate (linked open) dataUse TBox when querying data

Uli Sattler, Thomas Schneider DL: Introduction 1 11

Page 12: DescriptionLogics: aNiceFamilyofLogics —Introduction,Part1—

Origins Basics Ontologies, OWL, Protégé

And now . . .

1 Origins of DLs

2 DL basics

3 Ontologies, OWL, Protégé ; Uli

Uli Sattler, Thomas Schneider DL: Introduction 1 12

Page 13: DescriptionLogics: aNiceFamilyofLogics —Introduction,Part1—

Origins Basics Ontologies, OWL, Protégé

DLs: the core

Core part of a DL: its concept language, e.g.:

Animal u ∃ hasPart.Feather

describes all animals that are related via “hasPart” to a feather.

Syntactic ingredients of a concept language:

Concept names stand for sets of elements, e.g., AnimalRole names stand for binary relations between elements,e.g., hasPartConstructors to build concept expressions, e.g., u, ∃

Uli Sattler, Thomas Schneider DL: Introduction 1 13

Page 14: DescriptionLogics: aNiceFamilyofLogics —Introduction,Part1—

Origins Basics Ontologies, OWL, Protégé

Syntax and semantics of ALCSemantics given by means of an interpretation I = (∆I , ·I), where

∆I is a nonempty set (the domain), and·I is a mapping (the interpretation function) as follows:

Constructor Syntax Example Semanticsconcept name A Human AI ⊆ ∆I

role name r likes rI ⊆ ∆I × ∆I

For C , D concepts and r a role name:conjunction CuD Human u Male CI ∩ DI

disjunction CtD Nice t Rich CI ∪ DI

negation ¬C ¬Meat ∆I \ CI

restrictions:existential ∃r .C ∃hasChild.Human {x | ∃y .(x , y)∈ rI ∧ y ∈CI}value ∀r .C ∀hasChild.Blond {x | ∀y .(x , y)∈ rI ⇒ y ∈CI}

Uli Sattler, Thomas Schneider DL: Introduction 1 14

Page 15: DescriptionLogics: aNiceFamilyofLogics —Introduction,Part1—

Origins Basics Ontologies, OWL, Protégé

Understanding syntax and semantics of ALC

We can “draw” interpretations . . .(similarly to Kripke models if you happen to know modal logic)

Exercise 1: Formulate ALC concepts that describe1 happy pet owners2 unhappy pet owners who own an old cat3 pet owners who own a cat, a dog, and only cats and dogs4 pet owners who own a cat, a dog, and no other animals

5 everything (abbreviated by > with >I = ∆I)6 nothing (abbreviated by ⊥ with ⊥I = ∅I)

For each of your concepts (1)–(4),“draw” an interpretation with an instance of that concept.

Uli Sattler, Thomas Schneider DL: Introduction 1 15

Page 16: DescriptionLogics: aNiceFamilyofLogics —Introduction,Part1—

Origins Basics Ontologies, OWL, Protégé

Basic reasoning problems in ALC

Definition: let C , D be ALC concepts. We say that

e ∈ CI is an instance of C in I.C is satisfiable if there is an interpretation I with CI 6= ∅.C is subsumed by D (written |= C v D) if:for every interpretation I, we have that CI ⊆ DI .

Exercise 2: Which of the following concepts is satisfiable?Which is subsumed by which?

(1) ∃r .(A u B) (2) ∃r .(A t B)(3) ∀r .(A u B) (4) ∃r .(A u ¬A)

(5) ∃r .A u ∀r .B (6) ∃r .A(7) ∃r .A u ∀r .¬A (8) ∃r .A u ∀s.¬A

Uli Sattler, Thomas Schneider DL: Introduction 1 16

Page 17: DescriptionLogics: aNiceFamilyofLogics —Introduction,Part1—

Origins Basics Ontologies, OWL, Protégé

The TBoxDefinition

A general concept inclusion (GCI) has the form C v D,for C , D (possibly complex) conceptsA general TBox is a finite set of GCIs: T={CivDi | 16 i 6n}

I satisfies C v D if CI ⊆ DI (written I |= C v D)

I is a model of TBox T if I satisfies every Ci v Di ∈ TWe use C ≡ D to abbreviate C v D, D v C

Example: { Father ≡ Man u ∃ hasChild.Human ,

Human ≡ Mammal u ∀ hasParent.Human ,

∃ favourite.Brewery v ∃ drinks.Beer }

Exercise 3: Draw a model of the above TBox.Draw an interpretation that is not a model of it.

Uli Sattler, Thomas Schneider DL: Introduction 1 17

Page 18: DescriptionLogics: aNiceFamilyofLogics —Introduction,Part1—

Origins Basics Ontologies, OWL, Protégé

Reasoning problems with respect to a TBox

Definition: let C , D be concepts, T a TBox. We say that

C is satisfiable w.r.t. Tif there is a model I of T with CI 6= ∅C is subsumed by D w.r.t. T (written T |= C v D)if, for every model I of T , we have CI ⊆ DI

Example: T = { A v B u ∃r .C ,

∃r .> v ¬A }

Exercise 4: Does T have a model?Are all concept names in T satisfiable?Any subsumptions that you can point out?

How many models does a TBox have?

Uli Sattler, Thomas Schneider DL: Introduction 1 18

Page 19: DescriptionLogics: aNiceFamilyofLogics —Introduction,Part1—

Origins Basics Ontologies, OWL, Protégé

The ABoxTBox captures knowledge on a general, conceptual level

contains concept def.s + general axioms about concepts

ABox captures knowledge on an the level of individualsis a finite set of

concept assertions a :C e.g., John :Man, androle assertions (a, b) : r e.g., (John, Mary) :hasChild

Semantics: an interpretation Imaps each individual name e to some eI ∈ ∆I

satisfies a concept assertion a :C if aI ∈ CI

satisfies a role assertion (a, b) : r if (aI , bI) ∈ rI

is a model of an ABox A if I satisfies every assertion in Aa :C is entailed by A if every model of A satisfies a :C

Uli Sattler, Thomas Schneider DL: Introduction 1 19

Page 20: DescriptionLogics: aNiceFamilyofLogics —Introduction,Part1—

Origins Basics Ontologies, OWL, Protégé

The ABox

repeated from previous slideSemantics: an interpretation Imaps each individual name e to some eI ∈ ∆I

satisfies a concept assertion a :C if aI ∈ CI

satisfies a role assertion (a, b) : r if (aI , bI) ∈ rI

is a model of an ABox A if I satisfies every assertion in Aa :C is entailed by A if every model of A satisfies a :C

Example: A = { a : (B u ∃r .C) ,

b : (A u ¬P u ∀s.∀r .F ) ,

(b, a) : s }

Exercise 5: Does A have a model? – Describe some of them.Can you see any entailments?

(Later) Can you translate this into FOL? ML?

Uli Sattler, Thomas Schneider DL: Introduction 1 20

Page 21: DescriptionLogics: aNiceFamilyofLogics —Introduction,Part1—

Origins Basics Ontologies, OWL, Protégé

Ontologies: TBox and ABoxDefinition: an ontology consists of

a TBox that captures knowledge on a general, conceptual levelan ABox that captures knowledge on the level of individualsand uses terms described in the TBox

Notation: (T ,A) or T ∪ A – no difference!

Semantics:Int. I is a model of O = (T ,A) (written I |= O)if I satisfies every assertion and axiom in Oalternatively: I |= T and I |= AO is consistent if it has a modelO is coherent if every conc. name A in O is satisfiable w.r.t. OC v D is entailed by O if every model of O satisfies CI ⊆ DI

a :C is entailed by O if every model of O satisfies aI ∈ CI

Uli Sattler, Thomas Schneider DL: Introduction 1 21

Page 22: DescriptionLogics: aNiceFamilyofLogics —Introduction,Part1—

Origins Basics Ontologies, OWL, Protégé

Ontologies: TBox and ABox

repeated from previous slideSemantics:

Int. I is a model of O = (T ,A) if I |= T and I |= AO is consistent if it has a modelO is coherent if every conc. name A in O is satisfiable w.r.t. OC v D is entailed by O if every model of O satisfies CI ⊆ DI

a :C is entailed by O if every model of O satisfies aI ∈ CI

Example: O = { A v B u ∃r .C , a :B ,

∃r .> v ¬A , (a, b) : r }

Exercise 6: Does O have a model? – Describe some of them.Can you see any entailments?What about O ∪ {b :C} or O ∪ {b :A}?

Uli Sattler, Thomas Schneider DL: Introduction 1 22

Page 23: DescriptionLogics: aNiceFamilyofLogics —Introduction,Part1—

Origins Basics Ontologies, OWL, Protégé

Ontologies: TBox and ABoxrepeated from previous slideSemantics:

Int. I is a model of O = (T ,A) if I |= T and I |= AO is consistent if it has a modelO is coherent if every conc. name A in O is satisfiable w.r.t. OC v D is entailed by O if every model of O satisfies CI ⊆ DI

a :C is entailed by O if every model of O satisfies aI ∈ CI

LemmaIf O = (T ,A) is consistent, then:C v D is entailed by O = (T ,A) iff C v D is entailed by T .

Proof: for “⇐” note that every model of O is one of T .For “⇒” use contraposition; combine a model witnessingT 6|= C v D and one of O to one witnessing O 6|= C v D).

Uli Sattler, Thomas Schneider DL: Introduction 1 23

Page 24: DescriptionLogics: aNiceFamilyofLogics —Introduction,Part1—

Origins Basics Ontologies, OWL, Protégé

And now . . .

1 Origins of DLs

2 DL basics

3 Ontologies, OWL, Protégé ; Uli

Uli Sattler, Thomas Schneider DL: Introduction 1 24

Page 25: DescriptionLogics: aNiceFamilyofLogics —Introduction,Part1—

Origins Basics Ontologies, OWL, Protégé

References for Day 1

Franz Baader, Diego Calvanese, Deborah L. McGuinness,Daniele Nardi, Peter F. Patel-Schneider (editors).The Description Logic Handbook:Theory, Implementation and Applications.2nd edition, Cambridge University Press, 2007.ISBN 978-0521876254.Chapters 1–2.

Ian Horrocks, Peter F. Patel-Schneider, Frank van Harmelen.From SHIQ and RDF to OWL:the making of a Web Ontology Language.Journal of Web Semantics 1(1): 7–26, 2003.

Uli Sattler, Thomas Schneider DL: Introduction 1 25

Page 26: DescriptionLogics: aNiceFamilyofLogics —Introduction,Part1—

Origins Basics Ontologies, OWL, Protégé

Links for Day 1

The National Center for Biomedical Ontology:BioPortalhttp://bioportal.bioontology.org

Stanford Center for Biomedical Informatics Research:Protégé Ontology Editorhttp://protege.stanford.edu

Uli Sattler, Thomas Schneider DL: Introduction 1 26