introduction, description logics · 2015. 10. 5. · proof theory { to enforce the semantics logics...

135
Introduction, Description Logics Petr Kˇ remen [email protected] October 5, 2015 Petr Kˇ remen [email protected] Introduction, Description Logics October 5, 2015 1 / 118

Upload: others

Post on 30-Mar-2021

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Introduction, Description Logics

Petr [email protected]

October 5, 2015

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 1 / 118

Page 2: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Our plan

1 Course Information

2 Towards Description Logics

3 Logics

4 Semantic Networks and Frames

5 Towards Description Logics

6 ALC Language

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 2 / 118

Page 3: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Course Information

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 3 / 118

Page 4: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Course Information

web page:http://cw.felk.cvut.cz/doku.php/courses/ae4m33rzn/start

three basic topics: description logics, fuzzy (description) logic,probabilistic models

Please go through the course web page carefully !!!

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 4 / 118

Page 5: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Course Information

web page:http://cw.felk.cvut.cz/doku.php/courses/ae4m33rzn/start

three basic topics: description logics, fuzzy (description) logic,probabilistic models

Please go through the course web page carefully !!!

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 4 / 118

Page 6: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Course Information

web page:http://cw.felk.cvut.cz/doku.php/courses/ae4m33rzn/start

three basic topics: description logics, fuzzy (description) logic,probabilistic models

Please go through the course web page carefully !!!

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 4 / 118

Page 7: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Technical Roadmap

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 5 / 118

Page 8: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Technical Roadmap (2)

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 6 / 118

Page 9: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Technical Roadmap (3)

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 7 / 118

Page 10: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Towards Description Logics

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 8 / 118

Page 11: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Semiotic Triangle

refers to ∼ modeled by ontologies; you can learn in AE0M33OSWcourse

represents ∼ studied by formal knowledge representation languages –this course

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 9 / 118

Page 12: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Semiotic Triangle

refers to ∼ modeled by ontologies; you can learn in AE0M33OSWcourse

represents ∼ studied by formal knowledge representation languages –this course

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 9 / 118

Page 13: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Ontologies

Ontologies

in IT are formal informational artifacts explicitely representing sharedconceptualization.

basic idea = we need to model (and reason) on concepts (i.e.“meanings”) not terms (i.e. “symbols”, “words”, “phrases”). Weneed to know, what our mean.compare words Man vs. Person.but we need to use words to model the concepts ...

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 10 / 118

Page 14: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Ontologies (2)

Principle of application. A concept satisfies the principle of application ifwe are able to decide, whether an “object” belongs to theconcept or not. E.g. nice vs. red vs. woman.

Principle of identity. Each concept is equipped with a principle of identitysaying, what must be fulfilled for an object to belong to theconcept. E.g. an artificial key, birth number vs. particularhuman brain

Many concept types – universals vs. individuals, endurants vs. perdurants,etc.

... and much more

Ontologies can be represented formally, in order to exploitautomated reasoning on concepts/meanings.

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 11 / 118

Page 15: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Logics

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 12 / 118

Page 16: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Formal Ontologies

deal with proper representation of conceptual knowledge in a domain

background for many AI techniques, e.g.:

I knowledge management – search engines, data integrationI multiagent systems – communication between agentsI machine learning – language bias

involves many graphical/textual languages ranging from informal toformal ones, e.g. relational algebra, Prolog, RDFS, OWL, topic maps,thesauri, conceptual graphs

Most of them are based on some logical calculus.

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 13 / 118

Page 17: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Formal Ontologies

deal with proper representation of conceptual knowledge in a domain

background for many AI techniques, e.g.:

I knowledge management – search engines, data integrationI multiagent systems – communication between agentsI machine learning – language bias

involves many graphical/textual languages ranging from informal toformal ones, e.g. relational algebra, Prolog, RDFS, OWL, topic maps,thesauri, conceptual graphs

Most of them are based on some logical calculus.

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 13 / 118

Page 18: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Formal Ontologies

deal with proper representation of conceptual knowledge in a domain

background for many AI techniques, e.g.:I knowledge management – search engines, data integration

I multiagent systems – communication between agentsI machine learning – language bias

involves many graphical/textual languages ranging from informal toformal ones, e.g. relational algebra, Prolog, RDFS, OWL, topic maps,thesauri, conceptual graphs

Most of them are based on some logical calculus.

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 13 / 118

Page 19: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Formal Ontologies

deal with proper representation of conceptual knowledge in a domain

background for many AI techniques, e.g.:I knowledge management – search engines, data integrationI multiagent systems – communication between agents

I machine learning – language bias

involves many graphical/textual languages ranging from informal toformal ones, e.g. relational algebra, Prolog, RDFS, OWL, topic maps,thesauri, conceptual graphs

Most of them are based on some logical calculus.

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 13 / 118

Page 20: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Formal Ontologies

deal with proper representation of conceptual knowledge in a domain

background for many AI techniques, e.g.:I knowledge management – search engines, data integrationI multiagent systems – communication between agentsI machine learning – language bias

involves many graphical/textual languages ranging from informal toformal ones, e.g. relational algebra, Prolog, RDFS, OWL, topic maps,thesauri, conceptual graphs

Most of them are based on some logical calculus.

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 13 / 118

Page 21: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Formal Ontologies

deal with proper representation of conceptual knowledge in a domain

background for many AI techniques, e.g.:I knowledge management – search engines, data integrationI multiagent systems – communication between agentsI machine learning – language bias

involves many graphical/textual languages ranging from informal toformal ones, e.g. relational algebra, Prolog, RDFS, OWL, topic maps,thesauri, conceptual graphs

Most of them are based on some logical calculus.

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 13 / 118

Page 22: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Formal Ontologies

deal with proper representation of conceptual knowledge in a domain

background for many AI techniques, e.g.:I knowledge management – search engines, data integrationI multiagent systems – communication between agentsI machine learning – language bias

involves many graphical/textual languages ranging from informal toformal ones, e.g. relational algebra, Prolog, RDFS, OWL, topic maps,thesauri, conceptual graphs

Most of them are based on some logical calculus.

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 13 / 118

Page 23: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Logics for Ontologies

propositional logic

Example

“John is clever.′′ ⇒ ¬“John fails at exam.′′

first order predicate logic

Example

(∀x)(Clever(x)⇒ ¬((∃y)(Exam(y) ∧ Fails(x , y)))).

(propositional) modal logic

Example

�((∀x)(Clever(x)⇒ 3¬((∃y)(Exam(y) ∧ Fails(x , y))))).

... what is the meaning of these formulas ?

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 14 / 118

Page 24: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Logics for Ontologies

propositional logic

Example

“John is clever.′′ ⇒ ¬“John fails at exam.′′

first order predicate logic

Example

(∀x)(Clever(x)⇒ ¬((∃y)(Exam(y) ∧ Fails(x , y)))).

(propositional) modal logic

Example

�((∀x)(Clever(x)⇒ 3¬((∃y)(Exam(y) ∧ Fails(x , y))))).

... what is the meaning of these formulas ?

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 14 / 118

Page 25: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Logics for Ontologies

propositional logic

Example

“John is clever.′′ ⇒ ¬“John fails at exam.′′

first order predicate logic

Example

(∀x)(Clever(x)⇒ ¬((∃y)(Exam(y) ∧ Fails(x , y)))).

(propositional) modal logic

Example

�((∀x)(Clever(x)⇒ 3¬((∃y)(Exam(y) ∧ Fails(x , y))))).

... what is the meaning of these formulas ?

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 14 / 118

Page 26: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Logics for Ontologies

propositional logic

Example

“John is clever.′′ ⇒ ¬“John fails at exam.′′

first order predicate logic

Example

(∀x)(Clever(x)⇒ ¬((∃y)(Exam(y) ∧ Fails(x , y)))).

(propositional) modal logic

Example

�((∀x)(Clever(x)⇒ 3¬((∃y)(Exam(y) ∧ Fails(x , y))))).

... what is the meaning of these formulas ?

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 14 / 118

Page 27: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Logics for Ontologies

propositional logic

Example

“John is clever.′′ ⇒ ¬“John fails at exam.′′

first order predicate logic

Example

(∀x)(Clever(x)⇒ ¬((∃y)(Exam(y) ∧ Fails(x , y)))).

(propositional) modal logic

Example

�((∀x)(Clever(x)⇒ 3¬((∃y)(Exam(y) ∧ Fails(x , y))))).

... what is the meaning of these formulas ?

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 14 / 118

Page 28: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Logics for Ontologies

propositional logic

Example

“John is clever.′′ ⇒ ¬“John fails at exam.′′

first order predicate logic

Example

(∀x)(Clever(x)⇒ ¬((∃y)(Exam(y) ∧ Fails(x , y)))).

(propositional) modal logic

Example

�((∀x)(Clever(x)⇒ 3¬((∃y)(Exam(y) ∧ Fails(x , y))))).

... what is the meaning of these formulas ?

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 14 / 118

Page 29: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Logics for Ontologies

propositional logic

Example

“John is clever.′′ ⇒ ¬“John fails at exam.′′

first order predicate logic

Example

(∀x)(Clever(x)⇒ ¬((∃y)(Exam(y) ∧ Fails(x , y)))).

(propositional) modal logic

Example

�((∀x)(Clever(x)⇒ 3¬((∃y)(Exam(y) ∧ Fails(x , y))))).

... what is the meaning of these formulas ?

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 14 / 118

Page 30: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Logics for Ontologies (2)

Logics are defined by their

Syntax – to represent concepts (defining symbols)

Semantics – to capture meaning of the syntactic constructs (definingconcepts)

Proof Theory – to enforce the semantics

Logics trade-off

A logical calculus is always a trade-off between expressiveness andtractability of reasoning.

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 15 / 118

Page 31: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Logics for Ontologies (2)

Logics are defined by their

Syntax – to represent concepts (defining symbols)

Semantics – to capture meaning of the syntactic constructs (definingconcepts)

Proof Theory – to enforce the semantics

Logics trade-off

A logical calculus is always a trade-off between expressiveness andtractability of reasoning.

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 15 / 118

Page 32: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Logics for Ontologies (2)

Logics are defined by their

Syntax – to represent concepts (defining symbols)

Semantics – to capture meaning of the syntactic constructs (definingconcepts)

Proof Theory – to enforce the semantics

Logics trade-off

A logical calculus is always a trade-off between expressiveness andtractability of reasoning.

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 15 / 118

Page 33: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Propositional Logic

Example

How to check satisfiability of the formula A ∨ (¬(B ∧ A) ∨ B ∧ C ) ?

syntax – atomic formulas and ¬, ∧, ∨, ⇒

semantics (|=) – an interpretation assigns true/false to each formula.

proof theory (`) – resolution, tableau

complexity – NP-Complete (Cook theorem)

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 16 / 118

Page 34: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Propositional Logic

Example

How to check satisfiability of the formula A ∨ (¬(B ∧ A) ∨ B ∧ C ) ?

syntax – atomic formulas and ¬, ∧, ∨, ⇒semantics (|=) – an interpretation assigns true/false to each formula.

proof theory (`) – resolution, tableau

complexity – NP-Complete (Cook theorem)

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 16 / 118

Page 35: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Propositional Logic

Example

How to check satisfiability of the formula A ∨ (¬(B ∧ A) ∨ B ∧ C ) ?

syntax – atomic formulas and ¬, ∧, ∨, ⇒semantics (|=) – an interpretation assigns true/false to each formula.

proof theory (`) – resolution, tableau

complexity – NP-Complete (Cook theorem)

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 16 / 118

Page 36: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Propositional Logic

Example

How to check satisfiability of the formula A ∨ (¬(B ∧ A) ∨ B ∧ C ) ?

syntax – atomic formulas and ¬, ∧, ∨, ⇒semantics (|=) – an interpretation assigns true/false to each formula.

proof theory (`) – resolution, tableau

complexity – NP-Complete (Cook theorem)

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 16 / 118

Page 37: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

First Order Predicate Logic

Example

What is the meaning of this sentence ?

(∀x1)((Student(x1) ∧ (∃x2)(GraduateCourse(x2) ∧ isEnrolledTo(x1, x2)))

⇒ (∀x3)(isEnrolledTo(x1, x3)⇒ GraduateCourse(x3)))

Student u ∃isEnrolledTo.GraduateCourse v ∀isEnrolledTo.GraduateCourse

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 17 / 118

Page 38: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

First Order Predicate Logic – quick informal review

syntax – constructs involve

term (variable x , constant symbol JOHN, functionsymbol applied to terms fatherOf (JOHN))

axiom/formula (predicate symbols applied to termshasFather(x , JOHN), possibly glued togetherwith ¬, ∧, ∨, ⇒, ∀,∃)

universally closed formula formula without free variable((∀x)(∃y)hasFather(x , y) ∧ Person(y))

semantics – an interpretation (with valuation) assigns:

domain element to each termtrue/false to each closed formula

proof theory – resolution; Deduction Theorem, Soundness Theorem,Completeness Theorem

complexity – undecidable (Goedel)

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 18 / 118

Page 39: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

First Order Predicate Logic – quick informal review

syntax – constructs involve

term (variable x , constant symbol JOHN, functionsymbol applied to terms fatherOf (JOHN))

axiom/formula (predicate symbols applied to termshasFather(x , JOHN), possibly glued togetherwith ¬, ∧, ∨, ⇒, ∀,∃)

universally closed formula formula without free variable((∀x)(∃y)hasFather(x , y) ∧ Person(y))

semantics – an interpretation (with valuation) assigns:

domain element to each termtrue/false to each closed formula

proof theory – resolution; Deduction Theorem, Soundness Theorem,Completeness Theorem

complexity – undecidable (Goedel)

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 18 / 118

Page 40: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

First Order Predicate Logic – quick informal review

syntax – constructs involve

term (variable x , constant symbol JOHN, functionsymbol applied to terms fatherOf (JOHN))

axiom/formula (predicate symbols applied to termshasFather(x , JOHN), possibly glued togetherwith ¬, ∧, ∨, ⇒, ∀,∃)

universally closed formula formula without free variable((∀x)(∃y)hasFather(x , y) ∧ Person(y))

semantics – an interpretation (with valuation) assigns:

domain element to each termtrue/false to each closed formula

proof theory – resolution; Deduction Theorem, Soundness Theorem,Completeness Theorem

complexity – undecidable (Goedel)

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 18 / 118

Page 41: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

First Order Predicate Logic – quick informal review

syntax – constructs involve

term (variable x , constant symbol JOHN, functionsymbol applied to terms fatherOf (JOHN))

axiom/formula (predicate symbols applied to termshasFather(x , JOHN), possibly glued togetherwith ¬, ∧, ∨, ⇒, ∀,∃)

universally closed formula formula without free variable((∀x)(∃y)hasFather(x , y) ∧ Person(y))

semantics – an interpretation (with valuation) assigns:

domain element to each termtrue/false to each closed formula

proof theory – resolution; Deduction Theorem, Soundness Theorem,Completeness Theorem

complexity – undecidable (Goedel)

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 18 / 118

Page 42: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

First Order Predicate Logic – quick informal review

syntax – constructs involve

term (variable x , constant symbol JOHN, functionsymbol applied to terms fatherOf (JOHN))

axiom/formula (predicate symbols applied to termshasFather(x , JOHN), possibly glued togetherwith ¬, ∧, ∨, ⇒, ∀,∃)

universally closed formula formula without free variable((∀x)(∃y)hasFather(x , y) ∧ Person(y))

semantics – an interpretation (with valuation) assigns:

domain element to each termtrue/false to each closed formula

proof theory – resolution; Deduction Theorem, Soundness Theorem,Completeness Theorem

complexity – undecidable (Goedel)

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 18 / 118

Page 43: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

First Order Predicate Logic – quick informal review

syntax – constructs involve

term (variable x , constant symbol JOHN, functionsymbol applied to terms fatherOf (JOHN))

axiom/formula (predicate symbols applied to termshasFather(x , JOHN), possibly glued togetherwith ¬, ∧, ∨, ⇒, ∀,∃)

universally closed formula formula without free variable((∀x)(∃y)hasFather(x , y) ∧ Person(y))

semantics – an interpretation (with valuation) assigns:

domain element to each term

true/false to each closed formula

proof theory – resolution; Deduction Theorem, Soundness Theorem,Completeness Theorem

complexity – undecidable (Goedel)

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 18 / 118

Page 44: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

First Order Predicate Logic – quick informal review

syntax – constructs involve

term (variable x , constant symbol JOHN, functionsymbol applied to terms fatherOf (JOHN))

axiom/formula (predicate symbols applied to termshasFather(x , JOHN), possibly glued togetherwith ¬, ∧, ∨, ⇒, ∀,∃)

universally closed formula formula without free variable((∀x)(∃y)hasFather(x , y) ∧ Person(y))

semantics – an interpretation (with valuation) assigns:

domain element to each termtrue/false to each closed formula

proof theory – resolution; Deduction Theorem, Soundness Theorem,Completeness Theorem

complexity – undecidable (Goedel)

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 18 / 118

Page 45: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

First Order Predicate Logic – quick informal review

syntax – constructs involve

term (variable x , constant symbol JOHN, functionsymbol applied to terms fatherOf (JOHN))

axiom/formula (predicate symbols applied to termshasFather(x , JOHN), possibly glued togetherwith ¬, ∧, ∨, ⇒, ∀,∃)

universally closed formula formula without free variable((∀x)(∃y)hasFather(x , y) ∧ Person(y))

semantics – an interpretation (with valuation) assigns:

domain element to each termtrue/false to each closed formula

proof theory – resolution; Deduction Theorem, Soundness Theorem,Completeness Theorem

complexity – undecidable (Goedel)

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 18 / 118

Page 46: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

First Order Predicate Logic – quick informal review

syntax – constructs involve

term (variable x , constant symbol JOHN, functionsymbol applied to terms fatherOf (JOHN))

axiom/formula (predicate symbols applied to termshasFather(x , JOHN), possibly glued togetherwith ¬, ∧, ∨, ⇒, ∀,∃)

universally closed formula formula without free variable((∀x)(∃y)hasFather(x , y) ∧ Person(y))

semantics – an interpretation (with valuation) assigns:

domain element to each termtrue/false to each closed formula

proof theory – resolution; Deduction Theorem, Soundness Theorem,Completeness Theorem

complexity – undecidable (Goedel)

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 18 / 118

Page 47: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Open World Assumption

OWA

FOPL accepts Open World Assumption, i.e. whatever is not known is notnecessarily false.

As a result, FOPL is monotonic, i.e.

monotonicity

No conclusion can be invalidated by adding extra knowledge.

This is in contrary to relational databases, or Prolog that accept ClosedWorld Assumption.

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 19 / 118

Page 48: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Semantic Networks and Frames

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 20 / 118

Page 49: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Semantic Networks

( c©wikipedia.org)

Nodes = entities (individuals, classes),

Edges = binary relations

The only possible inference isinheritance by means of is arelationship.

Example

Each Cat hasa Vertebrate, sinceeach Cat isa Mammal .

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 21 / 118

Page 50: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Semantic Networks

( c©wikipedia.org)

Nodes = entities (individuals, classes),

Edges = binary relations

The only possible inference isinheritance by means of is arelationship.

Example

Each Cat hasa Vertebrate, sinceeach Cat isa Mammal .

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 21 / 118

Page 51: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Semantic Networks

( c©wikipedia.org)

Nodes = entities (individuals, classes),

Edges = binary relations

The only possible inference isinheritance by means of is arelationship.

Example

Each Cat hasa Vertebrate, sinceeach Cat isa Mammal .

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 21 / 118

Page 52: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Semantic Networks

( c©wikipedia.org)

Nodes = entities (individuals, classes),

Edges = binary relations

The only possible inference isinheritance by means of is arelationship.

Example

Each Cat hasa Vertebrate, sinceeach Cat isa Mammal .

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 21 / 118

Page 53: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Semantic Networks (2)

However, this does not allowdistinguishing individuals (instances)and groups (classes).

To solve this, a new relationship type“is a kind of” ako can be introducedand used for inheritance, while is arelationships would be restricted toexpressing individual-grouprelationships.

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 22 / 118

Page 54: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Semantic Networks (3)

, are simple – from the point of logics they are not much more than abinary structure + ako and is a relationships with the followingsemantics:

relation(X ,Y ) ∧ ako(Z ,X )⇒ relation(Z ,Y ).

isa(X ,Y ) ∧ ako(Y ,Z )⇒ isa(X ,Z ).

ako(X ,Y ) ∧ ako(Y ,Z )⇒ ako(X ,Z ).

/ no way to express non-monotonous knowledge (like FOL).

/ no easy way to express n-ary relationships (reification needed).

/ no way to express binary relationships characteristics – transitivity,functionality, reflexivity, etc., or their hierarchies “to be a fathermeans to be a parent”, etc.,

/ no way to express more complex constructs, like cardinalityrestrictions: “Each person has at most two legs.”

Wordnet, Semantic Wiki, etc.

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 23 / 118

Page 55: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Semantic Networks (3)

, are simple – from the point of logics they are not much more than abinary structure + ako and is a relationships with the followingsemantics:

relation(X ,Y ) ∧ ako(Z ,X )⇒ relation(Z ,Y ).

isa(X ,Y ) ∧ ako(Y ,Z )⇒ isa(X ,Z ).

ako(X ,Y ) ∧ ako(Y ,Z )⇒ ako(X ,Z ).

/ no way to express non-monotonous knowledge (like FOL).

/ no easy way to express n-ary relationships (reification needed).

/ no way to express binary relationships characteristics – transitivity,functionality, reflexivity, etc., or their hierarchies “to be a fathermeans to be a parent”, etc.,

/ no way to express more complex constructs, like cardinalityrestrictions: “Each person has at most two legs.”

Wordnet, Semantic Wiki, etc.

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 23 / 118

Page 56: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Semantic Networks (3)

, are simple – from the point of logics they are not much more than abinary structure + ako and is a relationships with the followingsemantics:

relation(X ,Y ) ∧ ako(Z ,X )⇒ relation(Z ,Y ).

isa(X ,Y ) ∧ ako(Y ,Z )⇒ isa(X ,Z ).

ako(X ,Y ) ∧ ako(Y ,Z )⇒ ako(X ,Z ).

/ no way to express non-monotonous knowledge (like FOL).

/ no easy way to express n-ary relationships (reification needed).

/ no way to express binary relationships characteristics – transitivity,functionality, reflexivity, etc., or their hierarchies “to be a fathermeans to be a parent”, etc.,

/ no way to express more complex constructs, like cardinalityrestrictions: “Each person has at most two legs.”

Wordnet, Semantic Wiki, etc.

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 23 / 118

Page 57: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Semantic Networks (3)

, are simple – from the point of logics they are not much more than abinary structure + ako and is a relationships with the followingsemantics:

relation(X ,Y ) ∧ ako(Z ,X )⇒ relation(Z ,Y ).

isa(X ,Y ) ∧ ako(Y ,Z )⇒ isa(X ,Z ).

ako(X ,Y ) ∧ ako(Y ,Z )⇒ ako(X ,Z ).

/ no way to express non-monotonous knowledge (like FOL).

/ no easy way to express n-ary relationships (reification needed).

/ no way to express binary relationships characteristics – transitivity,functionality, reflexivity, etc., or their hierarchies “to be a fathermeans to be a parent”, etc.,

/ no way to express more complex constructs, like cardinalityrestrictions: “Each person has at most two legs.”

Wordnet, Semantic Wiki, etc.

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 23 / 118

Page 58: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Semantic Networks (3)

, are simple – from the point of logics they are not much more than abinary structure + ako and is a relationships with the followingsemantics:

relation(X ,Y ) ∧ ako(Z ,X )⇒ relation(Z ,Y ).

isa(X ,Y ) ∧ ako(Y ,Z )⇒ isa(X ,Z ).

ako(X ,Y ) ∧ ako(Y ,Z )⇒ ako(X ,Z ).

/ no way to express non-monotonous knowledge (like FOL).

/ no easy way to express n-ary relationships (reification needed).

/ no way to express binary relationships characteristics – transitivity,functionality, reflexivity, etc., or their hierarchies “to be a fathermeans to be a parent”, etc.,

/ no way to express more complex constructs, like cardinalityrestrictions: “Each person has at most two legs.”

Wordnet, Semantic Wiki, etc.

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 23 / 118

Page 59: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Semantic Networks (3)

, are simple – from the point of logics they are not much more than abinary structure + ako and is a relationships with the followingsemantics:

relation(X ,Y ) ∧ ako(Z ,X )⇒ relation(Z ,Y ).

isa(X ,Y ) ∧ ako(Y ,Z )⇒ isa(X ,Z ).

ako(X ,Y ) ∧ ako(Y ,Z )⇒ ako(X ,Z ).

/ no way to express non-monotonous knowledge (like FOL).

/ no easy way to express n-ary relationships (reification needed).

/ no way to express binary relationships characteristics – transitivity,functionality, reflexivity, etc., or their hierarchies “to be a fathermeans to be a parent”, etc.,

/ no way to express more complex constructs, like cardinalityrestrictions: “Each person has at most two legs.”

Wordnet, Semantic Wiki, etc.

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 23 / 118

Page 60: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Semantic Networks (3)

, are simple – from the point of logics they are not much more than abinary structure + ako and is a relationships with the followingsemantics:

relation(X ,Y ) ∧ ako(Z ,X )⇒ relation(Z ,Y ).

isa(X ,Y ) ∧ ako(Y ,Z )⇒ isa(X ,Z ).

ako(X ,Y ) ∧ ako(Y ,Z )⇒ ako(X ,Z ).

/ no way to express non-monotonous knowledge (like FOL).

/ no easy way to express n-ary relationships (reification needed).

/ no way to express binary relationships characteristics – transitivity,functionality, reflexivity, etc., or their hierarchies “to be a fathermeans to be a parent”, etc.,

/ no way to express more complex constructs, like cardinalityrestrictions: “Each person has at most two legs.”

Wordnet, Semantic Wiki, etc.

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 23 / 118

Page 61: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Frames

frame: Skoda Favoritslots:

is a: carhas engine: four-stroke enginehas transmission system: manualhas carb: value: Jikov

default: Pierburg

more structured than semanticnetworks

forms that contain slots (binaryrelationships).

([MvL93])

Every slot has several facets(slot use restrictions), e.g.cardinality, defaults, etc.

, Facets allow non-monotonicreasoning.

, Daemons are triggers for actionsperfomed on facets (read, write,delete). Can be used e.g forconsistency checking.

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 24 / 118

Page 62: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Frames

frame: Skoda Favoritslots:

is a: carhas engine: four-stroke enginehas transmission system: manualhas carb: value: Jikov

default: Pierburg

more structured than semanticnetworks

forms that contain slots (binaryrelationships).

([MvL93])

Every slot has several facets(slot use restrictions), e.g.cardinality, defaults, etc.

, Facets allow non-monotonicreasoning.

, Daemons are triggers for actionsperfomed on facets (read, write,delete). Can be used e.g forconsistency checking.

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 24 / 118

Page 63: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Frames

frame: Skoda Favoritslots:

is a: carhas engine: four-stroke enginehas transmission system: manualhas carb: value: Jikov

default: Pierburg

more structured than semanticnetworks

forms that contain slots (binaryrelationships).

([MvL93])

Every slot has several facets(slot use restrictions), e.g.cardinality, defaults, etc.

, Facets allow non-monotonicreasoning.

, Daemons are triggers for actionsperfomed on facets (read, write,delete). Can be used e.g forconsistency checking.

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 24 / 118

Page 64: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Frames

frame: Skoda Favoritslots:

is a: carhas engine: four-stroke enginehas transmission system: manualhas carb: value: Jikov

default: Pierburg

more structured than semanticnetworks

forms that contain slots (binaryrelationships).

([MvL93])

Every slot has several facets(slot use restrictions), e.g.cardinality, defaults, etc.

, Facets allow non-monotonicreasoning.

, Daemons are triggers for actionsperfomed on facets (read, write,delete). Can be used e.g forconsistency checking.

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 24 / 118

Page 65: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Frames

frame: Skoda Favoritslots:

is a: carhas engine: four-stroke enginehas transmission system: manualhas carb: value: Jikov

default: Pierburg

more structured than semanticnetworks

forms that contain slots (binaryrelationships).

([MvL93])

Every slot has several facets(slot use restrictions), e.g.cardinality, defaults, etc.

, Facets allow non-monotonicreasoning.

, Daemons are triggers for actionsperfomed on facets (read, write,delete). Can be used e.g forconsistency checking.

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 24 / 118

Page 66: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Frames (2)

Example

Typically, Skoda Favorit has carb of type Pierburg, but this particularSkoda Favorit has carb of type Jikov.

frames can be grouped into scenarios that represent typical situations,e.g. going into a restaurant. [MvL93]

OKBC - http://www.ai.sri.com/ okbc

Protege - http://protege.stanford.edu/overview/protege-frames.html

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 25 / 118

Page 67: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Frames (2)

Example

Typically, Skoda Favorit has carb of type Pierburg, but this particularSkoda Favorit has carb of type Jikov.

frames can be grouped into scenarios that represent typical situations,e.g. going into a restaurant. [MvL93]

OKBC - http://www.ai.sri.com/ okbc

Protege - http://protege.stanford.edu/overview/protege-frames.html

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 25 / 118

Page 68: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Frames (2)

Example

Typically, Skoda Favorit has carb of type Pierburg, but this particularSkoda Favorit has carb of type Jikov.

frames can be grouped into scenarios that represent typical situations,e.g. going into a restaurant. [MvL93]

OKBC - http://www.ai.sri.com/ okbc

Protege - http://protege.stanford.edu/overview/protege-frames.html

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 25 / 118

Page 69: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Protege

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 26 / 118

Page 70: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Frames and Semantics Networks – Summary

, very simple structures for knowledge representation,

, nonmonotonic reasoning,

/ ad-hoc reasoning procedures, that complicates (and broadensambiguity during) translation to First Order Predicate Logic (FOPL),

/ problems – querying, debugging.

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 27 / 118

Page 71: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Frames and Semantics Networks – Summary

, very simple structures for knowledge representation,

, nonmonotonic reasoning,

/ ad-hoc reasoning procedures, that complicates (and broadensambiguity during) translation to First Order Predicate Logic (FOPL),

/ problems – querying, debugging.

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 27 / 118

Page 72: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Frames and Semantics Networks – Summary

, very simple structures for knowledge representation,

, nonmonotonic reasoning,

/ ad-hoc reasoning procedures, that complicates (and broadensambiguity during) translation to First Order Predicate Logic (FOPL),

/ problems – querying, debugging.

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 27 / 118

Page 73: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Frames and Semantics Networks – Summary

, very simple structures for knowledge representation,

, nonmonotonic reasoning,

/ ad-hoc reasoning procedures, that complicates (and broadensambiguity during) translation to First Order Predicate Logic (FOPL),

/ problems – querying, debugging.

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 27 / 118

Page 74: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Towards Description Logics

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 28 / 118

Page 75: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Languages sketched so far aren’t enough ?

Why not First Order Predicate Logic ?

/ FOPL is undecidable – many logical consequences cannot be verified infinite time.

I We often do not need full expressiveness of FOL.

Well, we have Prolog – wide-spread and optimized implementation ofFOPL, right ?

/ Prolog is not an implementation of FOPL – OWA vs. CWA, negationas failure, problems in expressing disjunctive knowledge, etc.

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 29 / 118

Page 76: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Languages sketched so far aren’t enough ?

Why not First Order Predicate Logic ?

/ FOPL is undecidable – many logical consequences cannot be verified infinite time.

I We often do not need full expressiveness of FOL.

Well, we have Prolog – wide-spread and optimized implementation ofFOPL, right ?

/ Prolog is not an implementation of FOPL – OWA vs. CWA, negationas failure, problems in expressing disjunctive knowledge, etc.

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 29 / 118

Page 77: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Languages sketched so far aren’t enough ?

Why not First Order Predicate Logic ?

/ FOPL is undecidable – many logical consequences cannot be verified infinite time.

I We often do not need full expressiveness of FOL.

Well, we have Prolog – wide-spread and optimized implementation ofFOPL, right ?

/ Prolog is not an implementation of FOPL – OWA vs. CWA, negationas failure, problems in expressing disjunctive knowledge, etc.

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 29 / 118

Page 78: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Languages sketched so far aren’t enough ?

Why not First Order Predicate Logic ?

/ FOPL is undecidable – many logical consequences cannot be verified infinite time.

I We often do not need full expressiveness of FOL.

Well, we have Prolog – wide-spread and optimized implementation ofFOPL, right ?

/ Prolog is not an implementation of FOPL – OWA vs. CWA, negationas failure, problems in expressing disjunctive knowledge, etc.

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 29 / 118

Page 79: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Languages sketched so far aren’t enough ?

Why not First Order Predicate Logic ?

/ FOPL is undecidable – many logical consequences cannot be verified infinite time.

I We often do not need full expressiveness of FOL.

Well, we have Prolog – wide-spread and optimized implementation ofFOPL, right ?

/ Prolog is not an implementation of FOPL – OWA vs. CWA, negationas failure, problems in expressing disjunctive knowledge, etc.

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 29 / 118

Page 80: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Languages sketched so far aren’t enough ?

Relational algebra

I accepts CWA and supports just finite domains.

Semantic networks and Frames

I Lack well defined (declarative) semanticsI What is the semantics of a “slot” in a frame (relation in semantic

networks) ? The slot must/might be filled once/multiple times ?

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 30 / 118

Page 81: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Languages sketched so far aren’t enough ?

Relational algebraI accepts CWA and supports just finite domains.

Semantic networks and Frames

I Lack well defined (declarative) semanticsI What is the semantics of a “slot” in a frame (relation in semantic

networks) ? The slot must/might be filled once/multiple times ?

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 30 / 118

Page 82: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Languages sketched so far aren’t enough ?

Relational algebraI accepts CWA and supports just finite domains.

Semantic networks and Frames

I Lack well defined (declarative) semanticsI What is the semantics of a “slot” in a frame (relation in semantic

networks) ? The slot must/might be filled once/multiple times ?

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 30 / 118

Page 83: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Languages sketched so far aren’t enough ?

Relational algebraI accepts CWA and supports just finite domains.

Semantic networks and FramesI Lack well defined (declarative) semantics

I What is the semantics of a “slot” in a frame (relation in semanticnetworks) ? The slot must/might be filled once/multiple times ?

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 30 / 118

Page 84: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Languages sketched so far aren’t enough ?

Relational algebraI accepts CWA and supports just finite domains.

Semantic networks and FramesI Lack well defined (declarative) semanticsI What is the semantics of a “slot” in a frame (relation in semantic

networks) ? The slot must/might be filled once/multiple times ?

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 30 / 118

Page 85: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

What are Description Logics ?

Description logics (DLs) are (almostexclusively) decidable subsets ofFOPL aimed at modelingterminological incomplete knowledge.

first languages emerged as anexperiment of giving formalsemantics to semantic networksand frames. Firstimplementations in 80’s –KL-ONE, KAON, Classic.

90’s ALC2004 SHOIN (D) – OWL

2009 SROIQ(D) – OWL 2

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 31 / 118

Page 86: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

What are Description Logics ?

Description logics (DLs) are (almostexclusively) decidable subsets ofFOPL aimed at modelingterminological incomplete knowledge.

first languages emerged as anexperiment of giving formalsemantics to semantic networksand frames. Firstimplementations in 80’s –KL-ONE, KAON, Classic.

90’s ALC2004 SHOIN (D) – OWL

2009 SROIQ(D) – OWL 2

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 31 / 118

Page 87: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

What are Description Logics ?

Description logics (DLs) are (almostexclusively) decidable subsets ofFOPL aimed at modelingterminological incomplete knowledge.

first languages emerged as anexperiment of giving formalsemantics to semantic networksand frames. Firstimplementations in 80’s –KL-ONE, KAON, Classic.

90’s ALC2004 SHOIN (D) – OWL

2009 SROIQ(D) – OWL 2

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 31 / 118

Page 88: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

What are Description Logics ?

Description logics (DLs) are (almostexclusively) decidable subsets ofFOPL aimed at modelingterminological incomplete knowledge.

first languages emerged as anexperiment of giving formalsemantics to semantic networksand frames. Firstimplementations in 80’s –KL-ONE, KAON, Classic.

90’s ALC

2004 SHOIN (D) – OWL

2009 SROIQ(D) – OWL 2

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 31 / 118

Page 89: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

What are Description Logics ?

Description logics (DLs) are (almostexclusively) decidable subsets ofFOPL aimed at modelingterminological incomplete knowledge.

first languages emerged as anexperiment of giving formalsemantics to semantic networksand frames. Firstimplementations in 80’s –KL-ONE, KAON, Classic.

90’s ALC2004 SHOIN (D) – OWL

2009 SROIQ(D) – OWL 2

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 31 / 118

Page 90: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

What are Description Logics ?

Description logics (DLs) are (almostexclusively) decidable subsets ofFOPL aimed at modelingterminological incomplete knowledge.

first languages emerged as anexperiment of giving formalsemantics to semantic networksand frames. Firstimplementations in 80’s –KL-ONE, KAON, Classic.

90’s ALC2004 SHOIN (D) – OWL

2009 SROIQ(D) – OWL 2

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 31 / 118

Page 91: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

ALC Language

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 32 / 118

Page 92: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Concepts and Roles

Basic building blocks of DLs are :

(atomic) concepts - representing (named) unary predicates / classes,e.g. Parent, or Person u ∃hasChild · Person.

(atomic) roles - represent (named) binary predicates / relations, e.g.hasChild

individuals - represent ground terms / individuals, e.g. JOHN

Theory K = (T ,A) (in OWL refered as Ontology) consists of a

TBOX T - representing axioms generally valid in the domain, e.g.T = {Man v Person}

ABOX A - representing a particular relational structure (data),e.g. A = {Man(JOHN), loves(JOHN,MARY )}

DLs differ in their expressive power (concept/role constructors, axiomtypes).

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 33 / 118

Page 93: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Concepts and Roles

Basic building blocks of DLs are :

(atomic) concepts - representing (named) unary predicates / classes,e.g. Parent, or Person u ∃hasChild · Person.

(atomic) roles - represent (named) binary predicates / relations, e.g.hasChild

individuals - represent ground terms / individuals, e.g. JOHN

Theory K = (T ,A) (in OWL refered as Ontology) consists of a

TBOX T - representing axioms generally valid in the domain, e.g.T = {Man v Person}

ABOX A - representing a particular relational structure (data),e.g. A = {Man(JOHN), loves(JOHN,MARY )}

DLs differ in their expressive power (concept/role constructors, axiomtypes).

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 33 / 118

Page 94: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Concepts and Roles

Basic building blocks of DLs are :

(atomic) concepts - representing (named) unary predicates / classes,e.g. Parent, or Person u ∃hasChild · Person.

(atomic) roles - represent (named) binary predicates / relations, e.g.hasChild

individuals - represent ground terms / individuals, e.g. JOHN

Theory K = (T ,A) (in OWL refered as Ontology) consists of a

TBOX T - representing axioms generally valid in the domain, e.g.T = {Man v Person}

ABOX A - representing a particular relational structure (data),e.g. A = {Man(JOHN), loves(JOHN,MARY )}

DLs differ in their expressive power (concept/role constructors, axiomtypes).

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 33 / 118

Page 95: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Concepts and Roles

Basic building blocks of DLs are :

(atomic) concepts - representing (named) unary predicates / classes,e.g. Parent, or Person u ∃hasChild · Person.

(atomic) roles - represent (named) binary predicates / relations, e.g.hasChild

individuals - represent ground terms / individuals, e.g. JOHN

Theory K = (T ,A) (in OWL refered as Ontology) consists of a

TBOX T - representing axioms generally valid in the domain, e.g.T = {Man v Person}

ABOX A - representing a particular relational structure (data),e.g. A = {Man(JOHN), loves(JOHN,MARY )}

DLs differ in their expressive power (concept/role constructors, axiomtypes).

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 33 / 118

Page 96: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Concepts and Roles

Basic building blocks of DLs are :

(atomic) concepts - representing (named) unary predicates / classes,e.g. Parent, or Person u ∃hasChild · Person.

(atomic) roles - represent (named) binary predicates / relations, e.g.hasChild

individuals - represent ground terms / individuals, e.g. JOHN

Theory K = (T ,A) (in OWL refered as Ontology) consists of a

TBOX T - representing axioms generally valid in the domain, e.g.T = {Man v Person}

ABOX A - representing a particular relational structure (data),e.g. A = {Man(JOHN), loves(JOHN,MARY )}

DLs differ in their expressive power (concept/role constructors, axiomtypes).

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 33 / 118

Page 97: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Concepts and Roles

Basic building blocks of DLs are :

(atomic) concepts - representing (named) unary predicates / classes,e.g. Parent, or Person u ∃hasChild · Person.

(atomic) roles - represent (named) binary predicates / relations, e.g.hasChild

individuals - represent ground terms / individuals, e.g. JOHN

Theory K = (T ,A) (in OWL refered as Ontology) consists of a

TBOX T - representing axioms generally valid in the domain, e.g.T = {Man v Person}

ABOX A - representing a particular relational structure (data),e.g. A = {Man(JOHN), loves(JOHN,MARY )}

DLs differ in their expressive power (concept/role constructors, axiomtypes).

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 33 / 118

Page 98: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Concepts and Roles

Basic building blocks of DLs are :

(atomic) concepts - representing (named) unary predicates / classes,e.g. Parent, or Person u ∃hasChild · Person.

(atomic) roles - represent (named) binary predicates / relations, e.g.hasChild

individuals - represent ground terms / individuals, e.g. JOHN

Theory K = (T ,A) (in OWL refered as Ontology) consists of a

TBOX T - representing axioms generally valid in the domain, e.g.T = {Man v Person}

ABOX A - representing a particular relational structure (data),e.g. A = {Man(JOHN), loves(JOHN,MARY )}

DLs differ in their expressive power (concept/role constructors, axiomtypes).

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 33 / 118

Page 99: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Concepts and Roles

Basic building blocks of DLs are :

(atomic) concepts - representing (named) unary predicates / classes,e.g. Parent, or Person u ∃hasChild · Person.

(atomic) roles - represent (named) binary predicates / relations, e.g.hasChild

individuals - represent ground terms / individuals, e.g. JOHN

Theory K = (T ,A) (in OWL refered as Ontology) consists of a

TBOX T - representing axioms generally valid in the domain, e.g.T = {Man v Person}

ABOX A - representing a particular relational structure (data),e.g. A = {Man(JOHN), loves(JOHN,MARY )}

DLs differ in their expressive power (concept/role constructors, axiomtypes).

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 33 / 118

Page 100: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Semantics, Interpretation

as ALC is a subset of FOPL, let’s define semantics analogously (andrestrict interpretation function where applicable):

Interpretation is a pair I = (∆I , ·I), where ∆I is an interpretationdomain and ·I is an interpretation function.

Having atomic concept A, atomic role R and individual a, then

AI ⊆ ∆I

RI ⊆ ∆I ×∆I

aI ∈ ∆I

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 34 / 118

Page 101: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Semantics, Interpretation

as ALC is a subset of FOPL, let’s define semantics analogously (andrestrict interpretation function where applicable):

Interpretation is a pair I = (∆I , ·I), where ∆I is an interpretationdomain and ·I is an interpretation function.

Having atomic concept A, atomic role R and individual a, then

AI ⊆ ∆I

RI ⊆ ∆I ×∆I

aI ∈ ∆I

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 34 / 118

Page 102: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Semantics, Interpretation

as ALC is a subset of FOPL, let’s define semantics analogously (andrestrict interpretation function where applicable):

Interpretation is a pair I = (∆I , ·I), where ∆I is an interpretationdomain and ·I is an interpretation function.

Having atomic concept A, atomic role R and individual a, then

AI ⊆ ∆I

RI ⊆ ∆I ×∆I

aI ∈ ∆I

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 34 / 118

Page 103: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

ALC (= attributive language with complements)

Having concepts C , D, atomic concept A and atomic role R, then forinterpretation I :

concept conceptI description

> ∆I (universal concept)

⊥ ∅ (unsatisfiable concept)

¬C ∆I \ CI (negation)

C1 u C2 C1I ∩ C2

I (intersection)

C1 t C2 C1I ∪ C2

I (union)

∀R · C {a | ∀b ((a, b) ∈ RI ⇒ b ∈ CI)} (universal restriction)

∃R · C {a | ∃b ((a, b) ∈ RI ∧ b ∈ CI)} (existential restriction)

TBOX

axiom I |= axiom iff description

C1 v C2 C1I ⊆ C2

I (inclusion)C1 ≡ C2 C1

I = C2I (equivalence)

ABOX (UNA = unique name assumption1)

axiom I |= axiom iff description

C(a) aI ∈ CI (concept assertion)

R(a1 , a2 ) (a1I , a2I) ∈ RI (role assertion)

1two different individuals denote two different domain elementsPetr Kremen [email protected] Introduction, Description Logics October 5, 2015 35 / 118

Page 104: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

ALC (= attributive language with complements)

Having concepts C , D, atomic concept A and atomic role R, then forinterpretation I :

concept conceptI description

> ∆I (universal concept)

⊥ ∅ (unsatisfiable concept)

¬C ∆I \ CI (negation)

C1 u C2 C1I ∩ C2

I (intersection)

C1 t C2 C1I ∪ C2

I (union)

∀R · C {a | ∀b ((a, b) ∈ RI ⇒ b ∈ CI)} (universal restriction)

∃R · C {a | ∃b ((a, b) ∈ RI ∧ b ∈ CI)} (existential restriction)

TBOX

axiom I |= axiom iff description

C1 v C2 C1I ⊆ C2

I (inclusion)C1 ≡ C2 C1

I = C2I (equivalence)

ABOX (UNA = unique name assumption1)

axiom I |= axiom iff description

C(a) aI ∈ CI (concept assertion)

R(a1 , a2 ) (a1I , a2I) ∈ RI (role assertion)

1two different individuals denote two different domain elementsPetr Kremen [email protected] Introduction, Description Logics October 5, 2015 35 / 118

Page 105: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

ALC (= attributive language with complements)

Having concepts C , D, atomic concept A and atomic role R, then forinterpretation I :

concept conceptI description

> ∆I (universal concept)

⊥ ∅ (unsatisfiable concept)

¬C ∆I \ CI (negation)

C1 u C2 C1I ∩ C2

I (intersection)

C1 t C2 C1I ∪ C2

I (union)

∀R · C {a | ∀b ((a, b) ∈ RI ⇒ b ∈ CI)} (universal restriction)

∃R · C {a | ∃b ((a, b) ∈ RI ∧ b ∈ CI)} (existential restriction)

TBOX

axiom I |= axiom iff description

C1 v C2 C1I ⊆ C2

I (inclusion)C1 ≡ C2 C1

I = C2I (equivalence)

ABOX (UNA = unique name assumption1)

axiom I |= axiom iff description

C(a) aI ∈ CI (concept assertion)

R(a1 , a2 ) (a1I , a2I) ∈ RI (role assertion)

1two different individuals denote two different domain elementsPetr Kremen [email protected] Introduction, Description Logics October 5, 2015 35 / 118

Page 106: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Logical Consequence

For an arbitrary set S of axioms (resp. theory K = (T ,A), whereS = T ∪ A), then

Model

I |= S if I |= α for all α ∈ S (I is a model of S , resp. K)

Logical Consequence

S |= β if I |= β whenever I |= S (β is a logical consequence of S , resp. K)

S is consistent, if S has at least one model

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 36 / 118

Page 107: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Logical Consequence

For an arbitrary set S of axioms (resp. theory K = (T ,A), whereS = T ∪ A), then

Model

I |= S if I |= α for all α ∈ S (I is a model of S , resp. K)

Logical Consequence

S |= β if I |= β whenever I |= S (β is a logical consequence of S , resp. K)

S is consistent, if S has at least one model

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 36 / 118

Page 108: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Logical Consequence

For an arbitrary set S of axioms (resp. theory K = (T ,A), whereS = T ∪ A), then

Model

I |= S if I |= α for all α ∈ S (I is a model of S , resp. K)

Logical Consequence

S |= β if I |= β whenever I |= S (β is a logical consequence of S , resp. K)

S is consistent, if S has at least one model

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 36 / 118

Page 109: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Logical Consequence

For an arbitrary set S of axioms (resp. theory K = (T ,A), whereS = T ∪ A), then

Model

I |= S if I |= α for all α ∈ S (I is a model of S , resp. K)

Logical Consequence

S |= β if I |= β whenever I |= S (β is a logical consequence of S , resp. K)

S is consistent, if S has at least one model

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 36 / 118

Page 110: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Logical Consequence

For an arbitrary set S of axioms (resp. theory K = (T ,A), whereS = T ∪ A), then

Model

I |= S if I |= α for all α ∈ S (I is a model of S , resp. K)

Logical Consequence

S |= β if I |= β whenever I |= S (β is a logical consequence of S , resp. K)

S is consistent, if S has at least one model

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 36 / 118

Page 111: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

ALC – Example

Example

Consider an information system for genealogical data. Informationintegration from various sources is crucial – databases, informationsystems with different data models. As an integration layer, let’s use adescription logic theory. Let’s have atomic conceptsPerson,Man,GrandParent and atomic role hasChild .

Set of persons that have just men as their descendants, if any ?(specify a concept)

I Person u ∀hasChild ·Man

How to define concept GrandParent ? (specify an axiom)

I GrandParent ≡ Person u ∃hasChild · ∃hasChild · >

How does the previous axiom look like in FOPL ?

∀x (GrandParent(x) ≡ (Person(x) ∧ ∃y (hasChild(x , y)

∧∃z (hasChild(y , z)))))

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 37 / 118

Page 112: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

ALC – Example

Example

Consider an information system for genealogical data. Informationintegration from various sources is crucial – databases, informationsystems with different data models. As an integration layer, let’s use adescription logic theory. Let’s have atomic conceptsPerson,Man,GrandParent and atomic role hasChild .

Set of persons that have just men as their descendants, if any ?(specify a concept)

I Person u ∀hasChild ·Man

How to define concept GrandParent ? (specify an axiom)

I GrandParent ≡ Person u ∃hasChild · ∃hasChild · >

How does the previous axiom look like in FOPL ?

∀x (GrandParent(x) ≡ (Person(x) ∧ ∃y (hasChild(x , y)

∧∃z (hasChild(y , z)))))

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 37 / 118

Page 113: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

ALC – Example

Example

Consider an information system for genealogical data. Informationintegration from various sources is crucial – databases, informationsystems with different data models. As an integration layer, let’s use adescription logic theory. Let’s have atomic conceptsPerson,Man,GrandParent and atomic role hasChild .

Set of persons that have just men as their descendants, if any ?(specify a concept)

I Person u ∀hasChild ·Man

How to define concept GrandParent ? (specify an axiom)

I GrandParent ≡ Person u ∃hasChild · ∃hasChild · >How does the previous axiom look like in FOPL ?

∀x (GrandParent(x) ≡ (Person(x) ∧ ∃y (hasChild(x , y)

∧∃z (hasChild(y , z)))))

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 37 / 118

Page 114: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

ALC – Example

Example

Consider an information system for genealogical data. Informationintegration from various sources is crucial – databases, informationsystems with different data models. As an integration layer, let’s use adescription logic theory. Let’s have atomic conceptsPerson,Man,GrandParent and atomic role hasChild .

Set of persons that have just men as their descendants, if any ?(specify a concept)

I Person u ∀hasChild ·Man

How to define concept GrandParent ? (specify an axiom)I GrandParent ≡ Person u ∃hasChild · ∃hasChild · >

How does the previous axiom look like in FOPL ?

∀x (GrandParent(x) ≡ (Person(x) ∧ ∃y (hasChild(x , y)

∧∃z (hasChild(y , z)))))

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 37 / 118

Page 115: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

ALC – Example

Example

Consider an information system for genealogical data. Informationintegration from various sources is crucial – databases, informationsystems with different data models. As an integration layer, let’s use adescription logic theory. Let’s have atomic conceptsPerson,Man,GrandParent and atomic role hasChild .

Set of persons that have just men as their descendants, if any ?(specify a concept)

I Person u ∀hasChild ·Man

How to define concept GrandParent ? (specify an axiom)I GrandParent ≡ Person u ∃hasChild · ∃hasChild · >

How does the previous axiom look like in FOPL ?

∀x (GrandParent(x) ≡ (Person(x) ∧ ∃y (hasChild(x , y)

∧∃z (hasChild(y , z)))))

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 37 / 118

Page 116: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

ALC Example – T

Example

Woman ≡ Person u Female

Man ≡ Person u ¬Woman

Mother ≡ Woman u ∃hasChild · Person

Father ≡ Man u ∃hasChild · Person

Parent ≡ Father tMother

Grandmother ≡ Mother u ∃hasChild · ParentMotherWithoutDaughter ≡ Mother u ∀hasChild · ¬Woman

Wife ≡ Woman u ∃hasHusband ·Man

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 38 / 118

Page 117: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Interpretation – Example

Example

Consider a theory K1 = ({GrandParent ≡Person u ∃hasChild · ∃hasChild · >}, {GrandParent(JOHN)}). Findsome model.

a model of K1 can be interpretation I1 :

I ∆I1 = ManI1 = PersonI1 = {John,Phillipe,Martin}I hasChildI1 = {(John,Phillipe), (Phillipe,Martin)}I GrandParentI1 = {John}I JOHNI1 = {John}

this model is finite and has the form of a tree with the root in thenode John :

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 39 / 118

Page 118: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Interpretation – Example

Example

Consider a theory K1 = ({GrandParent ≡Person u ∃hasChild · ∃hasChild · >}, {GrandParent(JOHN)}). Findsome model.

a model of K1 can be interpretation I1 :

I ∆I1 = ManI1 = PersonI1 = {John,Phillipe,Martin}I hasChildI1 = {(John,Phillipe), (Phillipe,Martin)}I GrandParentI1 = {John}I JOHNI1 = {John}

this model is finite and has the form of a tree with the root in thenode John :

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 39 / 118

Page 119: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Interpretation – Example

Example

Consider a theory K1 = ({GrandParent ≡Person u ∃hasChild · ∃hasChild · >}, {GrandParent(JOHN)}). Findsome model.

a model of K1 can be interpretation I1 :I ∆I1 = ManI1 = PersonI1 = {John,Phillipe,Martin}

I hasChildI1 = {(John,Phillipe), (Phillipe,Martin)}I GrandParentI1 = {John}I JOHNI1 = {John}

this model is finite and has the form of a tree with the root in thenode John :

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 39 / 118

Page 120: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Interpretation – Example

Example

Consider a theory K1 = ({GrandParent ≡Person u ∃hasChild · ∃hasChild · >}, {GrandParent(JOHN)}). Findsome model.

a model of K1 can be interpretation I1 :I ∆I1 = ManI1 = PersonI1 = {John,Phillipe,Martin}I hasChildI1 = {(John,Phillipe), (Phillipe,Martin)}

I GrandParentI1 = {John}I JOHNI1 = {John}

this model is finite and has the form of a tree with the root in thenode John :

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 39 / 118

Page 121: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Interpretation – Example

Example

Consider a theory K1 = ({GrandParent ≡Person u ∃hasChild · ∃hasChild · >}, {GrandParent(JOHN)}). Findsome model.

a model of K1 can be interpretation I1 :I ∆I1 = ManI1 = PersonI1 = {John,Phillipe,Martin}I hasChildI1 = {(John,Phillipe), (Phillipe,Martin)}I GrandParentI1 = {John}

I JOHNI1 = {John}this model is finite and has the form of a tree with the root in thenode John :

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 39 / 118

Page 122: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Interpretation – Example

Example

Consider a theory K1 = ({GrandParent ≡Person u ∃hasChild · ∃hasChild · >}, {GrandParent(JOHN)}). Findsome model.

a model of K1 can be interpretation I1 :I ∆I1 = ManI1 = PersonI1 = {John,Phillipe,Martin}I hasChildI1 = {(John,Phillipe), (Phillipe,Martin)}I GrandParentI1 = {John}I JOHNI1 = {John}

this model is finite and has the form of a tree with the root in thenode John :

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 39 / 118

Page 123: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Interpretation – Example

Example

Consider a theory K1 = ({GrandParent ≡Person u ∃hasChild · ∃hasChild · >}, {GrandParent(JOHN)}). Findsome model.

a model of K1 can be interpretation I1 :I ∆I1 = ManI1 = PersonI1 = {John,Phillipe,Martin}I hasChildI1 = {(John,Phillipe), (Phillipe,Martin)}I GrandParentI1 = {John}I JOHNI1 = {John}

this model is finite and has the form of a tree with the root in thenode John :

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 39 / 118

Page 124: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Shape of DL Models

The last example revealed several important properties of DL models:

Tree model property (TMP)

Every consistent K = ({}, {C (I )}) has a model in the shape of a rootedtree.

Finite model property (FMP)

Every consistent K = (T ,A) has a finite model.

Both properties represent important characteristics of ALC thatsignificantly speed-up reasoning.

In particular (generalized) TMP is a characteristics that is shared bymost DLs and significantly reduces their computational complexity.

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 40 / 118

Page 125: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Shape of DL Models

The last example revealed several important properties of DL models:

Tree model property (TMP)

Every consistent K = ({}, {C (I )}) has a model in the shape of a rootedtree.

Finite model property (FMP)

Every consistent K = (T ,A) has a finite model.

Both properties represent important characteristics of ALC thatsignificantly speed-up reasoning.

In particular (generalized) TMP is a characteristics that is shared bymost DLs and significantly reduces their computational complexity.

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 40 / 118

Page 126: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Shape of DL Models

The last example revealed several important properties of DL models:

Tree model property (TMP)

Every consistent K = ({}, {C (I )}) has a model in the shape of a rootedtree.

Finite model property (FMP)

Every consistent K = (T ,A) has a finite model.

Both properties represent important characteristics of ALC thatsignificantly speed-up reasoning.

In particular (generalized) TMP is a characteristics that is shared bymost DLs and significantly reduces their computational complexity.

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 40 / 118

Page 127: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Shape of DL Models

The last example revealed several important properties of DL models:

Tree model property (TMP)

Every consistent K = ({}, {C (I )}) has a model in the shape of a rootedtree.

Finite model property (FMP)

Every consistent K = (T ,A) has a finite model.

Both properties represent important characteristics of ALC thatsignificantly speed-up reasoning.

In particular (generalized) TMP is a characteristics that is shared bymost DLs and significantly reduces their computational complexity.

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 40 / 118

Page 128: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Shape of DL Models

The last example revealed several important properties of DL models:

Tree model property (TMP)

Every consistent K = ({}, {C (I )}) has a model in the shape of a rootedtree.

Finite model property (FMP)

Every consistent K = (T ,A) has a finite model.

Both properties represent important characteristics of ALC thatsignificantly speed-up reasoning.

In particular (generalized) TMP is a characteristics that is shared bymost DLs and significantly reduces their computational complexity.

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 40 / 118

Page 129: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Shape of DL Models

The last example revealed several important properties of DL models:

Tree model property (TMP)

Every consistent K = ({}, {C (I )}) has a model in the shape of a rootedtree.

Finite model property (FMP)

Every consistent K = (T ,A) has a finite model.

Both properties represent important characteristics of ALC thatsignificantly speed-up reasoning.

In particular (generalized) TMP is a characteristics that is shared bymost DLs and significantly reduces their computational complexity.

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 40 / 118

Page 130: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Shape of DL Models

The last example revealed several important properties of DL models:

Tree model property (TMP)

Every consistent K = ({}, {C (I )}) has a model in the shape of a rootedtree.

Finite model property (FMP)

Every consistent K = (T ,A) has a finite model.

Both properties represent important characteristics of ALC thatsignificantly speed-up reasoning.

In particular (generalized) TMP is a characteristics that is shared bymost DLs and significantly reduces their computational complexity.

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 40 / 118

Page 131: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Example – CWA × OWA

Example

ABOXhasChild(JOCASTA,OEDIPUS) hasChild(JOCASTA, POLYNEIKES)hasChild(OEDIPUS, POLYNEIKES) hasChild(POLYNEIKES,THERSANDROS)Patricide(OEDIPUS) ¬Patricide(THERSANDROS)

Edges represent role assertions of hasChild ; red/green colors distinguishconcepts instances – Patricide a ¬Patricide

JOCASTA //**

POLYNEIKES // THERSANDROS

OEDIPUS

44

Q1 (∃hasChild · (Patricide u ∃hasChild · ¬Patricide))(JOCASTA),

JOCASTA // • // •

Q2 Find individuals x such that K |= C(x), where C is

¬Patricide u ∃hasChild− · (Patricide u ∃hasChild−) · {JOCASTA}

What is the difference, when considering CWA ?

JOCASTA // • // x

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 41 / 118

Page 132: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Example – CWA × OWA

Example

ABOXhasChild(JOCASTA,OEDIPUS) hasChild(JOCASTA, POLYNEIKES)hasChild(OEDIPUS, POLYNEIKES) hasChild(POLYNEIKES,THERSANDROS)Patricide(OEDIPUS) ¬Patricide(THERSANDROS)

Edges represent role assertions of hasChild ; red/green colors distinguishconcepts instances – Patricide a ¬Patricide

JOCASTA //**

POLYNEIKES // THERSANDROS

OEDIPUS

44

Q1 (∃hasChild · (Patricide u ∃hasChild · ¬Patricide))(JOCASTA),

JOCASTA // • // •

Q2 Find individuals x such that K |= C(x), where C is

¬Patricide u ∃hasChild− · (Patricide u ∃hasChild−) · {JOCASTA}

What is the difference, when considering CWA ?

JOCASTA // • // x

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 41 / 118

Page 133: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Example – CWA × OWA

Example

ABOXhasChild(JOCASTA,OEDIPUS) hasChild(JOCASTA, POLYNEIKES)hasChild(OEDIPUS, POLYNEIKES) hasChild(POLYNEIKES,THERSANDROS)Patricide(OEDIPUS) ¬Patricide(THERSANDROS)

Edges represent role assertions of hasChild ; red/green colors distinguishconcepts instances – Patricide a ¬Patricide

JOCASTA //**

POLYNEIKES // THERSANDROS

OEDIPUS

44

Q1 (∃hasChild · (Patricide u ∃hasChild · ¬Patricide))(JOCASTA),

JOCASTA // • // •

Q2 Find individuals x such that K |= C(x), where C is

¬Patricide u ∃hasChild− · (Patricide u ∃hasChild−) · {JOCASTA}

What is the difference, when considering CWA ?

JOCASTA // • // x

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 41 / 118

Page 134: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

Example – CWA × OWA

Example

ABOXhasChild(JOCASTA,OEDIPUS) hasChild(JOCASTA, POLYNEIKES)hasChild(OEDIPUS, POLYNEIKES) hasChild(POLYNEIKES,THERSANDROS)Patricide(OEDIPUS) ¬Patricide(THERSANDROS)

Edges represent role assertions of hasChild ; red/green colors distinguishconcepts instances – Patricide a ¬Patricide

JOCASTA //**

POLYNEIKES // THERSANDROS

OEDIPUS

44

Q1 (∃hasChild · (Patricide u ∃hasChild · ¬Patricide))(JOCASTA),

JOCASTA // • // •

Q2 Find individuals x such that K |= C(x), where C is

¬Patricide u ∃hasChild− · (Patricide u ∃hasChild−) · {JOCASTA}

What is the difference, when considering CWA ?

JOCASTA // • // x

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 41 / 118

Page 135: Introduction, Description Logics · 2015. 10. 5. · Proof Theory { to enforce the semantics Logics trade-o A logical calculus is always a trade-o between expressiveness and tractability

* Vladimır Marık, Olga Stepankova, and Jirı Lazansky.Umela inteligence 6 [in czech], Chapter “Ontologie a deskripcnılogiky”.Academia, 2013.

Vladimır Marık, Olga Stepankova, and Jirı Lazansky.Umela inteligence 1.Academia, 1993.

* Franz Baader, Diego Calvanese, Deborah L. McGuinness, DanieleNardi, and Peter Patel-Schneider, editors.The Description Logic Handbook, Theory, Implementation andApplications, Chapters 2-4.Cambridge, 2003.

* Enrico Franconi.Course on Description Logics.http://www.inf.unibz.it/ franconi/dl/course/, cit. 22.9.2013.

Petr Kremen [email protected] Introduction, Description Logics October 5, 2015 42 / 118