Algorithm Search⌘K

Conceptintro

Description logic

Also called terminological logic.

A family of decidable fragments of first-order logic that describe concepts, roles and individuals, used for ontologies.

A description logic (DL) is a logic for writing down the terms of a domain and the facts about them. It has concepts (sets of objects), roles (binary relations) and individuals (named objects), and a small set of constructors that build complex concepts from simple ones. Most description logics are decidable fragments of first-order logic, and the members of the family trade expressive power against the cost of reasoning. The Web Ontology Language OWL 2 is based on the description logic SROIQ.

In plain words

A description logic is a precise language for a vocabulary. You name kinds of things, such as person or woman, and links between things, such as has child. Then you combine them: "a woman who has at least one child that is a person" describes a mother. You write general rules, such as "every mother is a parent", and facts about named things, such as "Mary has the child Peter". A program called a reasoner then finds what follows. It can tell you that one kind is always inside another, that a description can never be true of anything, or that Mary must be a mother. The language is kept small on purpose, so that the reasoner always finishes with a correct answer.

The idea

Syntax

Fix a set of concept names A,B,…A, B, \ldots, a set of role names r,s,…r, s, \ldots and a set of individual names a,b,…a, b, \ldots. The basic logic ALC builds concepts from the names with ⊤\top, ⊥\bot, ¬C\neg C, C⊓DC \sqcap D, C⊔DC \sqcup D, ∃r.C\exists r.C and ∀r.C\forall r.C. Other members of the family add or remove constructors. The letters in the name of a logic list its features.

letter feature example
ALC the logic above ¬A⊓∀r.B\neg A \sqcap \forall r.B
S ALC with transitive roles rr is transitive
H role inclusions r⊑sr \sqsubseteq s
I inverse roles ∃r−.A\exists r^-.A
O nominals, concepts with one named element {a}\{a\}
N unqualified number restrictions ≥2 r\geq 2\, r
Q qualified number restrictions ≥2 r.A\geq 2\, r.A
F functional roles ≤1 r\leq 1\, r
R complex role inclusions and role axioms r∘s⊑rr \circ s \sqsubseteq r

So SHIQ is ALC with transitive roles, role inclusions, inverse roles and qualified number restrictions. Lighter logics drop constructors: EL keeps only ⊤\top, ⊓\sqcap and ∃r.C\exists r.C, and DL-Lite allows only simple inclusions with unqualified ∃r\exists r on the left.

Semantics

An interpretation I=(ΔI,⋅I)I = (\Delta^I, \cdot^I) has a nonempty domain ΔI\Delta^I and maps each concept name AA to a set AI⊆ΔIA^I \subseteq \Delta^I, each role name rr to a relation rI⊆ΔI×ΔIr^I \subseteq \Delta^I \times \Delta^I, and each individual name aa to an element aI∈ΔIa^I \in \Delta^I. Each constructor has a fixed meaning as a set. For example, (C⊓D)I=CI∩DI(C \sqcap D)^I = C^I \cap D^I, and (∃r.C)I(\exists r.C)^I is the set of elements with an rr-successor in CIC^I. The ALC page gives all the rules. An interpretation of a logic with role names only is a Kripke structure with one accessibility relation for each role.

Knowledge bases and reasoning

A knowledge base K=(T,A)K = (T, A) has a TBox and an ABox. The TBox TT is a finite set of general concept inclusions C⊑DC \sqsubseteq D. The ABox AA is a finite set of assertions C(a)C(a) and r(a,b)r(a, b). An interpretation is a model of KK when it satisfies each axiom: CI⊆DIC^I \subseteq D^I, aI∈CIa^I \in C^I and (aI,bI)∈rI(a^I, b^I) \in r^I. A statement follows from KK when it holds in every model of KK. So a DL makes the open-world assumption: what is not stated is unknown, not false. In OWL, and in most DL texts, the unique name assumption does not hold, and two names can denote the same element.

The main reasoning tasks are concept satisfiability, concept subsumption, knowledge base consistency, instance checking and ontology classification. Satisfiability, subsumption and instance checking reduce to knowledge base consistency, and in logics with full negation, such as ALC, subsumption and satisfiability reduce to each other.

Relation to first-order logic

Each concept CC translates to a formula πx(C)\pi_x(C) with one free variable xx: πx(A)=A(x)\pi_x(A) = A(x), πx(C⊓D)=πx(C)∧πx(D)\pi_x(C \sqcap D) = \pi_x(C) \land \pi_x(D), πx(∃r.C)=∃y (r(x,y)∧πy(C))\pi_x(\exists r.C) = \exists y\, (r(x, y) \land \pi_y(C)) and πx(∀r.C)=∀y (r(x,y)→πy(C))\pi_x(\forall r.C) = \forall y\, (r(x, y) \to \pi_y(C)), where πy\pi_y swaps the roles of xx and yy. An inclusion C⊑DC \sqsubseteq D becomes ∀x (πx(C)→πx(D))\forall x\, (\pi_x(C) \to \pi_x(D)). The translation uses only two variables, and each quantifier is guarded by a role atom. The two-variable fragment and the guarded fragment of first-order logic are both decidable, while full first-order logic is not.

Examples

Take the concept names Person, Female, Woman, Mother, Parent and the role hasChild.

  • The TBox {Woman≡Person⊓Female, Mother≡Woman⊓∃hasChild.Person, Parent≡Person⊓∃hasChild.Person}\{\mathit{Woman} \equiv \mathit{Person} \sqcap \mathit{Female},\ \mathit{Mother} \equiv \mathit{Woman} \sqcap \exists \mathit{hasChild}.\mathit{Person},\ \mathit{Parent} \equiv \mathit{Person} \sqcap \exists \mathit{hasChild}.\mathit{Person}\} defines three names. Each ≡\equiv stands for two inclusions.
  • From this TBox, Mother⊑Parent\mathit{Mother} \sqsubseteq \mathit{Parent} follows, so a classifier puts Mother below Parent.
  • The ABox {Woman(mary), hasChild(mary,peter), Person(peter)}\{\mathit{Woman}(\mathit{mary}),\ \mathit{hasChild}(\mathit{mary}, \mathit{peter}),\ \mathit{Person}(\mathit{peter})\} with this TBox entails Mother(mary)\mathit{Mother}(\mathit{mary}).
  • The concept ∃hasChild.Female⊓∀hasChild.¬Female\exists \mathit{hasChild}.\mathit{Female} \sqcap \forall \mathit{hasChild}.\neg \mathit{Female} is unsatisfiable: no element can have a female child while all its children are not female.
  • The ABox does not entail ¬Parent(peter)\neg \mathit{Parent}(\mathit{peter}), because some models give Peter a child. Under the open-world assumption the absence of a fact proves nothing.

Where it is used

  • Ontology languages. OWL 2 DL is based on SROIQ with datatypes (see SROIQ). The profiles OWL 2 EL and OWL 2 QL are based on EL and DL-Lite. See ontology.
  • Large biomedical terminologies. SNOMED CT and many ontologies of the life sciences are written in EL or close variants, and reasoners classify them in polynomial time with EL classification.
  • Access to data. In ontology-mediated query answering, a TBox in a logic such as DL-Lite adds background knowledge to a database, and queries are rewritten so that the database answers them.
  • Origins. Description logics grew out of semantic networks and frames, whose meaning was informal. The system KL-ONE (Brachman and Schmolze 1985) had concepts, roles and a classifier that placed each concept in a hierarchy, and the logics that followed gave these a model-theoretic semantics.

References

  1. Franz Baader, Ian Horrocks, Carsten Lutz and Ulrike Sattler, An Introduction to Description Logic, Cambridge University Press, 2017, Chapter 1 (introduction and history) and Chapter 2 (the basic description logic ALC, knowledge bases and reasoning tasks)
  2. Franz Baader, Diego Calvanese, Deborah L. McGuinness, Daniele Nardi and Peter F. Patel-Schneider (eds.), The Description Logic Handbook, second edition, Cambridge University Press, 2007, Chapter 1, An Introduction to Description Logics, by Daniele Nardi and Ronald J. Brachman, and Chapter 2, Basic Description Logics, by Franz Baader and Werner Nutt
  3. Ronald J. Brachman and James G. Schmolze, An overview of the KL-ONE knowledge representation system, Cognitive Science 9(2), 1985, the KL-ONE system, its concepts, roles and classifier (general locator)
  4. Manfred Schmidt-Schauß and Gert Smolka, Attributive concept descriptions with complements, Artificial Intelligence 48(1), 1991, pages 1 to 26, the definition of ALC and the decidability of its satisfiability and subsumption
  5. W3C OWL Working Group, OWL 2 Web Ontology Language Document Overview (Second Edition), W3C Recommendation, 2012, the overview of OWL 2 and its profiles (general locator)

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/XC4JTK/text.yaml