• Aucun résultat trouvé

The great table of Description Logics and formal ontology notations Background on DL semantics

N/A
N/A
Protected

Academic year: 2021

Partager "The great table of Description Logics and formal ontology notations Background on DL semantics"

Copied!
3
0
0

Texte intégral

(1)

HAL Id: hal-01849822

https://hal.archives-ouvertes.fr/hal-01849822

Submitted on 26 Jul 2018

HAL is a multi-disciplinary open access archive for the deposit and dissemination of sci- entific research documents, whether they are pub- lished or not. The documents may come from teaching and research institutions in France or abroad, or from public or private research centers.

L’archive ouverte pluridisciplinaire HAL, est destinée au dépôt et à la diffusion de documents scientifiques de niveau recherche, publiés ou non, émanant des établissements d’enseignement et de recherche français ou étrangers, des laboratoires publics ou privés.

The great table of Description Logics and formal ontology notations Background on DL semantics

Jean-Baptiste Lamy

To cite this version:

Jean-Baptiste Lamy. The great table of Description Logics and formal ontology notations Background

on DL semantics. [Technical Report] LIMICS. 2018. �hal-01849822�

(2)

The great table of Description Logics and formal ontology notations

Jean-Baptiste Lamy /

June 22, 2018

Description Logics (DL) are the logics used to formalize ontology [1]. Many notations are used to express DL, e.g. in equations in scientific papers, in editor software like Protégé, or in programming languages. Moreover, the semantics of DL is usually expressed in first-order logics or as set formula. These notations are difficult to understand and to translate from one to another.

This is why I propose here a big table (next page) that compares 5 notations related to DL and formal ontologies:

1. DL syntax (as commonly used in equations and scientific papers) 2. Protégé editor (expression editor syntax)

3. Owlready2 (a package for ontology-oriented programming in Python [2, 3]) 4. Semantics in first-order logic

5. Semantics in set formula

This table is an augmented and improved version of the one I presented in [2] and in my habilitation thesis [4].

Background on DL semantics

DL have a model-theoretic semantics, which is defined in terms of interpretations. For a given ontology O , an interpretation I = (∆, f ) is a tuple where the domain ∆ = {...} is a non-empty set of objects and the interpretation function f is a function that associates each individual i , class A , role R , composed expression (defined with semantic connectors) and axiom with its interpretation over ∆ , as follows:

f (i ∈ I ) ∈ ∆ f (A ∈ C ) ⊆ ∆ f (R ∈ R ) ⊆ (∆ × ∆)

Note: f and ∆ are sometimes written ·

I

and ∆

I

; in this case x

I

= f (x) .

References

[1] F Baader, D Calvanese, D L McGuinness, D Nardi, and P L Patel-Schneider. The description logic handbook: theory, implementation and applications . Cambridge University Press, 2007.

[2] Lamy JB. Owlready: Ontology-oriented programming in Python with automatic classification and high level constructs for biomedical ontologies. Artif Intell Med , 80:11–28, 2017.

[3] Lamy JB. Ontology-Oriented Programming for Biomedical Informatics. Stud Health Technol Inform , 221:64–68, 2016.

[4] Lamy JB. Représentation, iconisation et visualisation des connaissances : Principes et applications à l’aide à la décision médicale . PhD thesis, Université de Rouen-Normandie, 2017.

Available at:

• http://www.lesfleursdunormal.fr/_downloads/article_owlready_aim_2017.pdf

• http://www.lesfleursdunormal.fr/static/_downloads/hdr.pdf

1

(3)

DL syn tax Protégé Python + Owlready2 First-order logic Seman tics in set form ula

Const.

T op > Thing Thing > , suc h as ∀ x, > ( x ) = tr ue ∆ Bottom ⊥ Nothing Nothing ⊥ , suc h as ∀ x, ⊥ ( x ) = f al se ∅

Axioms

Subsumption A v B A sub class of B c la ss A(B): ... (assertion) A.is_a.app end(B) (assertion) issub class(A, B) (test)

∀ x, A ( x ) → B ( x ) f ( A ) ⊆ f ( B ) R v S R subprop ert y of S (same as ab o v e) ∀ x ∀ y , R ( x, y ) → S ( x, y ) f ( R ) ⊆ f ( S ) Equiv alence A ≡ B A e qu iv alen t to B A.equiv alen t_to.app end(B) (as.) B in A.equiv alen t_to (test) ∀ x, A ( x ) ↔ B ( x ) f ( A ) = f ( B ) Instanciation A ( i ) i typ e A i = A() (assertion) i.is_instance_of.app end(A) isinstance(i, A) (test)

A ( i ) f ( i ) ∈ f ( A ) Relations R ( i, j ) i ob ject prop ert y assertio n j i data prop ert y asse rti o n j

i.R = j (R is functional) i.R.app end(j) (otherwise)

R ( i, j ) ( f ( i ) , f ( j )) ∈ f ( R )

Semantic connectors

Complemen t ¬ A not A Not(A) ¬ A ( x ) ∆ \ f ( A ) In tersection A u B A and B A & B (or) And([A, B,...]) A ( x ) ∧ B ( x ) f ( A ) ∩ f ( B ) Union A t B A or B A | B (or) Or([A, B,...]) A ( x ) ∨ B ( x ) f ( A ) ∪ f ( B ) Extension i, j, ... {i, j,...} OneOf([i, j, ...]) x ∈ { i, j, ... } { f ( i ) , f ( j ) , ... } In v erse R

in v erse of R In v erse(R) (construct) S.in v erse = R (assertion) ∀ i ∀ j, S ( i, j ) = R ( j, i ) { ( a, b ) | ( b, a ) ∈ f ( R ) } T ransitiv e closure R

+

- - ∪

i≥1

( f ( R ))

i

Comp osition R ◦ S R o S Prop ert yChain([R, S]) { ( a, c ) ∈ ∆ × ∆ | ∃ b, ( a, b ) ∈ f ( R ) ∧ ( b, c ) ∈ f ( S ) } Existen tial quan tifi e r ∃ R .B R som e B R.some(B) ∃ y , R ( x, y ) ∧ B ( y ) { a ∈ ∆ | ∃ b, ( a, b ) ∈ f ( R ) ∧ b ∈ f ( B ) } Univ ersal quan tifi e r ∀ R .B R only B R.only(B) ∀ y , R ( x, y ) → B ( y ) { a ∈ ∆ | ∀ b, ( a, b ) ∈ f ( R ) → b ∈ f ( B ) } Num b er restrictions = 2 R .B R exa ctly 2 B R.exactly(2, B) |{ y | R ( x, y ) ∧ B ( y ) }| = 2 { a ∈ ∆ | |{ b | ( a, b ) ∈ f ( R ) ∧ b ∈ f ( B ) }| = 2 } ≤ 2 R .B R max 2 B R.max(2, B) |{ y | R ( x, y ) ∧ B ( y ) }| ≤ 2 { a ∈ ∆ | |{ b | ( a, b ) ∈ f ( R ) ∧ b ∈ f ( B ) }| ≤ 2 } ≥ 2 R .B R min 2 B R.min(2, B) |{ y | R ( x, y ) ∧ B ( y ) }| ≥ 2 { a ∈ ∆ | |{ b | ( a, b ) ∈ f ( R ) ∧ b ∈ f ( B ) }| ≥ 2 } Role fil le r ∃ R . { j } R v alue j R.v alue(j) R ( x, j ) { a ∈ ∆ | ( a, f ( j )) ∈ f ( R ) }

Decomposa ble

Disjoin t A u B v ⊥ A disjoin t with B AllDisjoin t([A, B]) ∀ x, ¬ ( A ( x ) ∧ B ( x )) f ( A ) ∩ f ( B ) = ∅ Prop e rt y domain ∃ R . > v A R doma in A R.domain = [A] ∀ x, ( ∃ y , R ( x, y )) → A ( x ) f ( R ) ⊆ { ( a, b ) | a ∈ f ( A ) } Prop ert y range > v ∀ R .B R range B R.ra n ge = [B] ∀ x ∀ y , R ( x, y ) → B ( y ) f ( R ) ⊆ { ( a, b ) | b ∈ f ( B ) } Role filler as class prop ert y

A v ∃ R . { j } ∧ ( ∃ R

.A )( j ) - A .R = j (R is functional) A.R.app end(j) (otherwise)

- - Lo cal closed w orld - - close_w orld (A ) - -

ThegreattableofDescriptionLogicsandformalontologynotations(logics,programmingandsemantics)—©Jean-BaptisteLamy2018

Références

Documents relatifs

In order to make the DOL meta-language and its seman- tics more easily accessible to the wider ontology community, we have developed a notion of institute which are like

This paper proposes a semantic model for attack mutation based on dynamic description logics (DDL(X)), extensions of description logics (DLs) with a dynamic dimension, and

The data in the local sources are associated with a local ontology that can be mapped to one or more reference ontologies corresponding to different

Our work differs significantly from all of [2, 5, 6, 19, 20], as the class of con- sidered DLs is much larger than the ones considered in those works (we allow PDL-like

We have defined a rational closure construction for the Description Logic ALC extended with a typicality operator and provided a minimal model semantics for it based on the idea

Remember that in the crisp setting the exact same semantics are used to compute the derivation of a set of attributes or the interpretation of a conjunction of concept names.. This

classical negation can be satisfied, which is not the case for QC ALC; (2) we properly introduce the weak and strong satisfactions in QC SHIQ, which avoids redundant definition of

Since our formalization allows for reusing existing lin- guistic resources, we assume that texts have been preprocessed beforehand by linguistic annotation tools, such as named