<?xml version="1.0" encoding="UTF-8"?>
<TEI xml:space="preserve" xmlns="http://www.tei-c.org/ns/1.0" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://www.tei-c.org/ns/1.0 https://raw.githubusercontent.com/kermitt2/grobid/master/grobid-home/schemas/xsd/Grobid.xsd"
 xmlns:xlink="http://www.w3.org/1999/xlink">
	<teiHeader xml:lang="en">
		<fileDesc>
			<titleStmt>
				<title level="a" type="main">An Extension of Regularity Conditions for Complex Role Inclusion Axioms</title>
			</titleStmt>
			<publicationStmt>
				<publisher/>
				<availability status="unknown"><licence/></availability>
			</publicationStmt>
			<sourceDesc>
				<biblStruct>
					<analytic>
						<author>
							<persName><forename type="first">Yevgeny</forename><surname>Kazakov</surname></persName>
							<affiliation key="aff0">
								<orgName type="institution">Oxford University Computing Laboratory</orgName>
							</affiliation>
						</author>
						<title level="a" type="main">An Extension of Regularity Conditions for Complex Role Inclusion Axioms</title>
					</analytic>
					<monogr>
						<imprint>
							<date/>
						</imprint>
					</monogr>
					<idno type="MD5">96807549DA6BC036A99482076444BC6A</idno>
				</biblStruct>
			</sourceDesc>
		</fileDesc>
		<encodingDesc>
			<appInfo>
				<application version="0.7.2" ident="GROBID" when="2023-03-23T23:20+0000">
					<desc>GROBID - A machine learning software for extracting information from scholarly documents</desc>
					<ref target="https://github.com/kermitt2/grobid"/>
				</application>
			</appInfo>
		</encodingDesc>
		<profileDesc>
			<abstract/>
		</profileDesc>
	</teiHeader>
	<text xml:lang="en">
		<body>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1">Introduction</head><p>The description logic (DL) SROIQ <ref type="bibr" target="#b0">[1]</ref> provides a logical foundation for the new version of the web ontology language OWL 2. <ref type="foot" target="#foot_0">1</ref> In comparison to the DL SHOIN which underpins the first version of OWL,<ref type="foot" target="#foot_1">2</ref> SROIQ provides several new constructors for classes and axioms. One of the new powerful features of SROIQ are so-called complex role inclusion axioms (RIAs) which allow for expressing implications between role chains and roles R 1 • • • R n R. It is wellknown that unrestricted usage of such axioms can easily lead to undecidability for modal and description logics <ref type="bibr" target="#b1">[2]</ref><ref type="bibr" target="#b2">[3]</ref><ref type="bibr" target="#b3">[4]</ref><ref type="bibr" target="#b4">[5]</ref>, with a notable exception of the DL EL ++ <ref type="bibr" target="#b5">[6]</ref>. Therefore certain syntactic restrictions are imposed on RIAs in SROIQ to regain decidability. Specifically, the restrictions ensure that RIAs R 1 • • • R n R when viewed as production rules for context-free grammars R → R 1 . . . R n induce a regular language. In fact, the tableau-based reasoning procedure for SROIQ <ref type="bibr" target="#b0">[1]</ref> does not use the syntactic restrictions directly, but takes as an input the resulting non-deterministic finite automata for RIAs. This means that it is possible to use exactly the same procedure for any set of RIAs for which the corresponding regular automata can be constructed.</p><p>Unfortunately, the syntactic restrictions on RIAs in SROIQ are not satisfied in all cases when the language induced by the RIAs is regular. In fact, it is not possible to come up with such a most general syntactic restriction since, given a context-free grammar, it is in general not possible to determine whether it defines a regular language (see, e.g., <ref type="bibr" target="#b6">[7]</ref>). In this paper we analyse several common use cases of RIAs which correspond to regular languages but cannot be expressed within SROIQ. We then propose an extension of the syntactic restrictions for RIAs, which can capture such cases. Our restrictions have several nice properties, which could allow for their seamless integration into future revisions of OWL:</p><p>1. Our restrictions are conservative over the restrictions in SROIQ. That is, every set of RIAs that satisfies the restriction in SROIQ will automatically satisfy our restrictions. 2. Our restrictions can be verified in polynomial time in the size of RIAs. 3. Our restrictions are constructive, which means that there is a procedure that builds the corresponding regular automaton for every set of RIAs that satisfy our restrictions. <ref type="table">1</ref>. The syntax and semantics of SROIQ 4. Finally, for any set of RIAs that induce a regular language, there exists a set of RIAs (containing possibly new roles) that satisfies our syntactic restrictions and preserves the semantics of the old roles. This means that unlike the restrictions in SROIQ, our syntactic restrictions allow to express any regular complex role inclusion properties.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Name Syntax Semantics</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Concepts atomic concept</head><formula xml:id="formula_0">A A I (given) nominal {a} {a I } top concept ∆ I negation ¬C ∆ I \ C I conjunction C D C I ∩ D I existential restriction ∃R.C {x | R I (x, C I ) = ∅} min cardinality nS.C {x | ||S I (x, C I )|| ≥ n} exists self ∃S.Self {x | x, x ∈ S I } Axioms complex role inclusion ρ R ρ I ⊆ R I 2 disjoint roles Disj(S1, S2) S I 1 ∩ S I 2 = ∅ concept inclusion C D C I ⊆ D I concept assertion C(a) a I ∈ C I role assertion R(a, b) a, b ∈ R I Table</formula></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">Preliminaries</head><p>In this section we introduce syntax and semantics of the DL SROIQ <ref type="bibr" target="#b0">[1]</ref>. A SROIQ vocabulary consists of countably infinite sets N C of atomic concepts, N R of atomic roles, and</p><formula xml:id="formula_1">N I of individuals. A SROIQ role is either r ∈ N R , an inverse role r − with r ∈ N R , or the universal role U . A role chain is a sequence of roles ρ = R 1 • • • R n , n ≥ 0, where R i = U , 1 ≤ i ≤ n; when n = 0,</formula><p>ρ is called the empty role chain and is denoted by . With ρ 1 ρ 2 we denote the concatenation of role chains ρ 1 and ρ 2 , and with ρR (Rρ) we denote the role chain obtained by appending (prepending) R to ρ. We denote by Inv(R) the inverse of a role R defined by Inv(R)</p><formula xml:id="formula_2">:= r − when R = r, Inv(R) = r when R = r − ,<label>and</label></formula><formula xml:id="formula_3">Inv(R) = U when R = U . The inverse of a role chain ρ = R 1 • • • R n is a role chain Inv(ρ) := Inv(R n ) • • • Inv(R 1 ).</formula><p>The syntax and semantics of SROIQ is summarised in Table <ref type="table">1</ref>. The set of SROIQ concepts is recursively defined using the constructors in the upper part of the table, where A ∈ N C , C, D are concepts, R, S roles, a an individual, and n a positive integer. A SROIQ ontology is a set O of axioms listed in the lower part of Table <ref type="table">1</ref>, where ρ is a role chain, R (i) and S (i) are roles, C, D concepts, and a, b individuals.</p><p>A regular order on roles is an irreflexive transitive binary relation ≺ on roles such that</p><formula xml:id="formula_4">R 1 ≺ R 2 iff Inv(R 1 ) ≺ R 2 . A (complex) role inclusion axiom (RIA) R 1 • • • R n R is said to be ≺-regular, if either: (i) n = 2 and R 1 = R 2 = R, or (ii) n = 1 and R 1 = Inv(R), or (iii) R i ≺ R for 1 ≤ i ≤ n, or (iv) R 1 = R and R i ≺ R for 1 &lt; i ≤ n, or (v) R n = R and R i ≺ R for 1 ≤ i &lt; n.</formula><p>It is assumed that all RIAs in O are regular for some order ≺.</p><p>Given an ontology O, let Ō be the extension of O with RIAs Inv(ρ) Inv(R) for every ρ R ∈ O. Let ρ O R be the smallest relation between role chains and roles such that: (i) R O R for every role R, and (ii)</p><formula xml:id="formula_5">ρ O R and ρ 1 Rρ 2 R ∈ Ō implies ρ 1 ρρ 2 O R .</formula><p>Lemma 1. Given an ontology O, role chain ρ, and role R, it is possible to decide in polynomial time whether ρ O R.</p><p>Proof. We define a context-free grammar with terminal symbols s R and nonterminal symbols A R for every role R, and production rules A R → s R for every role R and</p><formula xml:id="formula_6">A R → A R1 . . . A Rn for every RIA R 1 • • • R n R ∈ Ō. It is easy to show that A R → s R1 . . . s Rn w.r.t. this grammar iff R 1 • • • R n O R.</formula><p>Since the word problem (membership in the language) for context-free grammars is decidable in polynomial time (see, e.g. <ref type="bibr" target="#b7">[8]</ref>), then so is the property ρ O R. <ref type="table">1</ref> are simple w.r.t. O. Other constructors and axioms of SROIQ such as disjunction, universal restriction, role (ir)reflexivity, and role (a)symetry can be expressed using the given ones.</p><formula xml:id="formula_7">A role S is simple (w.r.t. O) if ρ O S implies ρ = R for some role R. It is required that all roles S (i) in Table</formula><p>The semantics of SROIQ is defined using interpretations. An interpretation is a pair I = (∆ I , • I ) where ∆ I is a non-empty set called the domain of the interpretation and • I is the interpretation function, which assigns to every A ∈ N C a set A I ⊆ ∆ I , to every r ∈ N R a relation r I ∈ ∆ I × ∆ I , and to every a ∈ N I an element a I ∈ ∆ I . The interpretation is extended to roles by U I = ∆ I × ∆ I and (r − ) I = { x, y | y, x ∈ r I }, and to role chains by (R</p><formula xml:id="formula_8">1 • • • R n ) I = R I 1 • • • • • R I n</formula><p>where • is the composition of binary relations. The empty role chain is interpreted by</p><formula xml:id="formula_9">I = { x, x | x ∈ ∆ I }.</formula><p>The interpretation of concepts is defined according to the right column of the upper part of Table <ref type="table">1</ref>, where δ(x, V ) for δ ⊆ ∆ I × ∆ I , V ⊆ ∆ I , and x ∈ ∆ I denotes the set {y | x, y ∈ δ ∧ y ∈ V }, and ||V || denotes the cardinality of a set V ⊆ ∆ I . An interpretation I satisfies an axiom α (written I |= α) if the respective condition to the right of the axiom in Table <ref type="table">1</ref> </p><formula xml:id="formula_10">holds; I is a model of an ontology O (written I |= O) if I satisfies every axiom in O. We say that α is a (logical) consequence of O or is entailed by O (written O |= α) if every model of O satisfies α.</formula></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3">Regularity of Role Inclusion Axioms</head><p>Given an ontology O, for every role R, we define a language L O (R) consisting of role chains (viewed as finite words over roles) as follows:</p><formula xml:id="formula_11">L O (R) := {ρ | ρ O R}<label>(1)</label></formula><p>We say that the set of RIAs of O is regular if the language L O (R) is regular for every role R. It has been shown in <ref type="bibr" target="#b0">[1]</ref> that ≺-regularity for RIAs implies regularity. The converse of this property, however, does not always hold, as we demonstrate in the following example.</p><p>Example 1. Consider an ontology O consisting of the RIAs ( <ref type="formula">2</ref>)-( <ref type="formula" target="#formula_12">4</ref>) below:</p><formula xml:id="formula_12">isProperPartOf isPartOf (2) isPartOf • isPartOf isPartOf (3) isPartOf • isProperPartOf isProperPartOf<label>(4)</label></formula><p>RIAs ( <ref type="formula">2</ref>)-( <ref type="formula" target="#formula_12">4</ref>) express properties of parthood relations isPartOf and isProperPartOf: axiom (2) says that isProperPartOf is a sub-relation of isPartOf; axiom (3) says that isPartOf is transitive; finally, axiom (4) says that if x is a part of y which is a proper part of z, then x is a proper part of z. Since any role chain consisting of isPartOf and isProperPartOf can be rewritten to isPartOf by applying axioms ( <ref type="formula">2</ref>) and ( <ref type="formula">3</ref>), it is easy to see that:</p><formula xml:id="formula_13">L O (isPartOf) = (isPartOf | isProperPartOf) +<label>(5)</label></formula><p>Since isProperPartOf is implied only by axiom (4), it is easy to see that:</p><formula xml:id="formula_14">L O (isProperPartOf) = (isPartOf | isProperPartOf) * • isProperPartOf<label>(6)</label></formula><p>Thus, the languages L O (isPartOf) and L O (isProperPartOf) induced by RIAs (2)-( <ref type="formula" target="#formula_12">4</ref>) are regular. However, there is no ordering ≺ for which axioms (2)-( <ref type="formula" target="#formula_12">4</ref>) are ≺-regular. Indeed, by conditions (i)-(v) of ≺-regularity, it follows from (2) that isProperPartOf ≺ isPartOf, and from (4) that isPartOf ≺ isProperPartOf, which contradicts the fact that ≺ is a transitive irreflexive relation.</p><p>In fact, there is no SROIQ ontology O that could express properties (2)-(4) using ≺-regular RIAs. It is easy to show by induction over the definition of</p><formula xml:id="formula_15">O that if the RIAs of O are ≺-regular, then R 1 • • • R n O R implies that for every i with 1 ≤ i ≤ n, we have either R i = R, or R i = Inv(R), or R i ≺ R.</formula><p>This means that for every role R, the language L O (R) can contain only words over R, Inv(R), or R with R ≺ R. Clearly, this is not possible if L O (isPartOf) and L O (isProperPartOf) contain the languages defined in ( <ref type="formula" target="#formula_13">5</ref>) and <ref type="bibr" target="#b5">(6)</ref>.</p><p>Axioms such as ( <ref type="formula">2</ref>)-( <ref type="formula" target="#formula_12">4</ref>) in Example 1 naturally appear in ontologies describing parthood relations, such as those between anatomical parts of the human body. For example, release 7 of the GRAIL version of the Galen ontology<ref type="foot" target="#foot_2">3</ref> contains the following axioms that are analogous to (2)-( <ref type="formula" target="#formula_12">4</ref>):</p><formula xml:id="formula_16">isNonPartitivelyContainedIn isContainedIn (7) isContainedIn • isContainedIn isContainedIn (8) isNonPartitivelyContainedIn • isContainedIn isNonPartitivelyContainedIn (9)</formula><p>Complex RIAs such as ( <ref type="formula">7</ref>)-( <ref type="formula">9</ref>) are used in Galen to propagate properties over chains of various parthood relations. For example, the next axiom taken from Galen expresses that every instance of body structure contained in spinal canal is a structural component of nervous system:</p><formula xml:id="formula_17">BodyStructure ∃isContainedIn.SpinalCanal ∃isStructuralComponentOf.NervousSystem<label>(10)</label></formula><p>Recently, complex RIAs over parthood relations have been proposed as an alternative to SEP-triplet encoding <ref type="bibr" target="#b8">[9]</ref>. The SEP-triplet encoding was introduced <ref type="bibr" target="#b9">[10]</ref> as a technique to enable the propagation of some properties over parthood relations, while ensuring that other properties are not propagated. For example, if a finger is defined as part of a hand, then an injury to a finger should be classified as an injury to the hand, however, the amputation of a finger should not be classified as an amputation of the hand. The SEP-triplet encoding does not use the parthood relations explicitly, but simulates them via inclusion axioms between special triplets of classes. Every primary class U gives rise to a triplet of classes consisting of the structure class U S describing all parts of U including U itself, the entity class U E that is equivalent to U , and the part class U P describing the proper parts of U . Thus the axioms Finger E Finger S , Finger P Finger S , as well as Hand E Hand S , Hand P Hand S describe the relations between the classes within the triples, and one can use the axiom Finger S Hand P to express that finger is a proper part of hand. Several drawbacks of this encoding was mentioned and it had been argued that the explicit usage of the parthood relations can reduce the complexity of the ontology and at the same time eliminate the potential problems <ref type="bibr" target="#b8">[9]</ref>. Thus, the axiom stating that finger is a proper part of hand can be written in this setting directly as follows:</p><formula xml:id="formula_18">Finger ∃isProperPartOf.Hand<label>(11)</label></formula><p>The explicit usage of parthood relation requires, however, complex RIAs such as (2)-(3), which do not satisfy ≺-regularity conditions of SROIQ. This would not be a problem for ontologies expressible within the tractable DL EL ++ <ref type="bibr" target="#b5">[6]</ref> such as SNoMed CT,<ref type="foot" target="#foot_3">4</ref> since EL ++ does not require regularity for RIAs. But it could be a problem when an expressivity beyond EL ++ is required, such as for translating the Galen ontology into OWL 2. In this paper we propose an extension of regularity conditions, which, in particular, can handle axioms such as ( <ref type="formula">2</ref>)-(3).</p><p>Another situation where ≺-regularity is too restrictive, is when "sibling relations" between elements having common parents are to be expressed. Such relations appear, for example, when speaking about parts that belong to the same vehicle. The sibling relations can be expressed using the following RIAs:</p><formula xml:id="formula_19">isChildOf • isChildOf − isSiblingOf (12) isSiblingOf • isSiblingOf isSiblingOf (13) isSiblingOf • isChildOf isChildOf<label>(14)</label></formula><p>It can easily be shown that properties ( <ref type="formula">12</ref>)-( <ref type="formula" target="#formula_19">14</ref>) could not be expressed using ≺-regular RIAs since this would require that isChildOf ≺ isSiblingOf and isSiblingOf ≺ isChildOf. On the other hand, they induce regular languages:</p><formula xml:id="formula_20">L O (isSiblingOf) = ((isChildOf • isChildOf − ) | isSiblingOf) + (15) L O (isChildOf) = ((isChildOf • isChildOf − ) | isSiblingOf) * • isChildOf<label>(16)</label></formula><p>In the next section, we demonstrate how our extended regularity conditions can capture such kind of axioms as well.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4">Stratified Role Inclusion Axioms</head><p>Definition 1. A preorder (a transitive reflexive relation) on roles is said to be admissible for an ontology O if:</p><formula xml:id="formula_21">(i) ρ 1 Rρ 2 R ∈ O implies R R , and (ii) R R implies Inv(R) Inv(R ). We write R 1 R 2 if R 1 R 2 and R 2 R 1 , and R 1 ≺ R 2 if R 1 R 2 and not R 2 R 1 .</formula><p>Definition 2. Let O be an ontology and and admissible preorder for O. We say that RIA ρ R is stratified w.r.t. O and , if for every R R such that ρ = ρ 1 Rρ 2 , there exist R is an overlap of two RIAs Proof. The "only if" direction of the lemma follows immediately from the definition of a stratified ontology.</p><formula xml:id="formula_22">R 1 and R 2 such that ρ 1 R O R 1 , R 1 ρ 2 O R , Rρ 2 O R 2 , and ρ 1 R 2 O R . We say that O is stratified w.r.t if every RIA ρ R such that ρ O R is stratified w.r.t</formula><formula xml:id="formula_23">ρ 1 R 1 R 1 and R 2 ρ 2 R 2 (w.r.t. O) if either (i) R = R 1 , R 1 O R 2 , and R 2 = R , or (ii) R = R 2 , R 2 O R 1 ,</formula><p>For proving the "if" direction of the lemma, without loss of generality we may assume that whenever ρ 1 Rρ 2 R ∈ O with R R , then either ρ 1 or ρ 2 is empty. Indeed, by Condition 1 of the lemma, there exist R 1 such that ρ 1 R O R 1 and R 1 ρ 2 O R . Hence by removing ρ 1 Rρ 2 R from O we preserve the relation O and the conditions of the lemma.</p><p>We prove that ρ O R implies that ρ R is stratified w.r.t. O and . The proof is by two-fold induction: the outermost induction is over the length of ρ , the innermost induction is over the proof of ρ O R according to the definition of O . Pick an arbitrary R in ρ such that R R . The following cases match all possible ways of deriving ρ O R using the definition of O :</p><formula xml:id="formula_24">-ρ = R = R. In this case R R is trivially stratified. -ρ = ρ 1 ρ 1 ρ 2 Rρ 3 such that ρ 1 O R 1 and ρ 1 R 1 ρ 2 Rρ 3 R ∈ Ō.</formula><p>In this case, by Condition 1 of the lemma,</p><formula xml:id="formula_25">ρ 1 R 1 ρ 2 Rρ 3 R is stratified. Thus, there exist R 1 and R 2 such that ρ 1 R 1 ρ 2 R O R 1 , R 1 ρ 3 O R , Rρ 3 O R 2 , and ρ 1 R 1 ρ 2 R 2 O R . Since ρ 1 O R 1 , we have found R 1 and R 2 such that ρ 1 ρ 1 ρ 2 R O R 1 , R 1 ρ 3 O R , Rρ 3 O R 2 , and ρ 1 ρ 1 ρ 2 R 2 R . -ρ = ρ 1 Rρ 2 ρ 2 ρ 3 such that ρ 2 O R 2 and ρ 1 Rρ 2 R 2 ρ 3 O R . This case is analogous to the previous case. -ρ = ρ 1 ρ 1 Rρ 2 such that ρ 1 Rρ 2 O R , ρ 1 R R ∈ Ō, and ρ 1 is not empty. Since ρ 1 Rρ 2 O R is a subproof of ρ R , by the induction hypothesis, ρ 1 Rρ 2 R is stratified. Since R R R , there exist R 1 and R 2 such that ρ 1 R O R 1 , R 1 ρ 2 O R , Rρ 2 O R 2 , and ρ 1 R 2 O R . In particular, since R 1 ρ 2 O R and ρ 1 R R ∈ Ō, we have ρ 1 R 1 ρ 2 O R . Since ρ 1 is not empty, ρ 1 R 1 ρ 2 is shorter than ρ = ρ 1 ρ 1 Rρ 2 . Hence, by the induction hypothesis, ρ 1 R 1 ρ 2 R is stratified. Since R R 1 R , there exists R 1 such that ρ 1 R 1 O R 1 and R 1 ρ 2 O R . Thus, we have found R 1 and R 2 such that ρ 1 ρ 1 R O R 1 , Rρ 2 O R 2 , R 1 ρ 2 O R , and ρ 1 ρ 1 R 2 O R . -ρ = ρ 1 Rρ 2 ρ 2 such that ρ 1 Rρ 2 O R , R ρ 2 R ∈ Ō,</formula><p>and ρ 2 is not empty.</p><p>This case is analogous to the previous case.</p><formula xml:id="formula_26">-ρ = ρ 1 Rρ 2 ρ 2 such that Rρ 2 O R 2 , R 2 ρ 2 R 2 ∈ Ō, ρ 2 is not empty, R 2 O R , and ρ 1 R R ∈ Ō. In this case RIAs ρ 1 R 2 ρ 2 R is an overlap of two RIAs R 2 ρ 2 R 2 and ρ 1 R R in Ō. Hence, by Condition 2 of the lemma, ρ 1 R 2 ρ 2 R is stratified. Since R R 2 R , there exists R 1 such that ρ 1 R 2 O R 1 and R 1 ρ 2 O R . In particular, since Rρ 2 O R 2 and ρ 1 R 2 O R 1 , we have ρ 1 Rρ 2 O R 1 . Since ρ 2 is not empty, ρ 1 Rρ 2 is shorter than ρ = ρ 1 Rρ 2 ρ 2 .</formula><p>Hence, by the induction hypothesis,</p><formula xml:id="formula_27">ρ 1 Rρ 2 O R 1 is stratified. Since R R 1 R , there exists R 1 such that ρ 1 R O R 1 and R 1 ρ 2 O R 1 . Thus we have found R 1 and R such that ρ 1 R O R 1 , R 1 ρ 2 ρ 2 O R , Rρ 2 ρ 2 O R , and ρ 1 R O R . -ρ = ρ 1 ρ 1 Rρ 2 such that ρ 1 R O R 1 , ρ 1 R 1 R 1 ∈ Ō, ρ 1 is not empty, R 1 O R , and R ρ 2 R ∈ Ō.</formula><p>This case is analogous to the previous case.</p><p>ρ = ρ 1 R or ρ = Rρ 2 . This case is trivial. Lemma 3. Given an ontology O it is possible to decide in polynomial time in the size of O whether O is stratified.</p><p>Proof. By Lemma 2, it is sufficient to show that every RIA in O is stratified and every overlap of two RIAs is stratified. Hence there are only polynomially many RIAs to test. In order to test whether ρ 1 Rρ 2 R is stratified for R, we enumerate all possible roles R 1 and R 2 and check whether</p><formula xml:id="formula_28">ρ 1 R O R 1 , R 1 ρ 2 R , Rρ 2 O R 2 ,</formula><p>and ρ 1 R 2 O R . By Lemma 1, each of these conditions can be checked in polynomial time. Now, as we have an algorithm for deciding whether an ontology is stratified, it is easy to see that every ontology that satisfies the original ≺-regularity conditions for RIAs, is automatically stratified for the ordering defined by</p><formula xml:id="formula_29">R 1 R 2 if either R 1 = R 2 , or R 1 = Inv(R 2 ), or R 1 ≺ R 2 .</formula><p>Indeed, the only overlap between ≺-regular RIAs can occur between axioms</p><formula xml:id="formula_30">ρ 1 R 1 R 1 of type (v) and axioms R 2 ρ 2 R 2 of type (iv) when R 1 = R 2 or R 1 = Inv(R 2 )</formula><p>, which can easily be shown to be stratified since R 1 O R 2 and R 2 O R 1 in these cases.</p><p>Our next goal is to show that the set of RIAs in stratified ontologies is always regular. Fix an ontology O and an admissible preorder for O such that O is stratified w.r.t. O. Define the level of a role R w.r.t. as follows:</p><formula xml:id="formula_31">-If there is no R such that R ≺ R, then the level of R is 0; -Otherwise the level of R is the maximum over the levels of R ≺ R plus 1. The level of a RIA ρ R is the level of R. We write ρ ≺ O R if R ≺ O R for every R in ρ.</formula><p>As in the proof of Lemma 2, without loss of generality, we can assume that for every RIA ρ 1 Rρ 2 R ∈ O with R R , either ρ 1 or ρ 2 is empty. Hence there are four types of RIAs in Ō possible:</p><formula xml:id="formula_32">-Type 0: ρ R , where ρ ≺ R ; -Type 1: R 1 ρ R , where R 1 R and ρ ≺ R ; -Type 2: ρR 2 R , where R 2 R .</formula><p>Note that RIAs of the form R R with R R are of both Types 1 and 2. One nice property of stratified ontologies is that for proving ρ O R one can apply the RIAs in Ō in some particular order, namely: (i) apply RIAs in the non-decreasing order of their levels, (ii) for the same level, apply the RIAs in the non-decreasing order of their types. To formalize this strategy, we introduce a notion of stratified proof : Definition 4. Given an ontology O, we define the relations i n,O , 0 ≤ i ≤ 2, n ≥ 0 between role chains and roles by induction on n ≥ 0 as follows:</p><formula xml:id="formula_33">1. If ρ R ∈ Ō has Type 0 and level n, then ρ 0 n,O R ; 2. If role R has level n, then R i n,O R, i = 1, 2; 3. If ρ 1 1 n,O R 1 and R 1 ρ R ∈ Ō has Type 1 and level n, then ρ 1 ρ 1 n,O R ; 4. If ρ 2 2 n,O R 2 and ρR 2 R ∈ Ō has Type 2 and level n, then ρρ 2 2 n,O R ; 5. If ρ i n,O R and ρ 1 Rρ 2 j m,O R with (n, i) &lt; lex (m, j) then ρ 1 ρρ 2 j m,O R ;</formula><p>where (n, i) &lt; lex (m, j) if either n &lt; m, or n = m and i &lt; j. We say that a RIA ρ R has a stratified proof in O if ρ i n,O R , for some n and i (0</p><formula xml:id="formula_34">≤ i ≤ 2). Lemma 4. For every stratified ontology O, if ρ O R then ρ R has a stratified proof in O.</formula><p>Proof (Sketch). We repeatedly apply the following transformation to the proof of ρ O R , which tries to swap the RIAs in Ō applied in the wrong order:</p><p>For every overlap ρ 1 Rρ 2 R of RIAs ρ 1 R R 1 and R 2 ρ 2 R of Types 2 and 1 in the proof of ρ O R , where R 1 O R 2 , and ρ 1 and ρ 2 are non-empty, we take R 2 such that R 1 ρ 2 O R 2 and ρ 1 R 2 O R , which exists since O is stratified, and replace the sub-proof of</p><formula xml:id="formula_35">ρ 1 Rρ 2 R in ρ O R with the proof using R 1 ρ 2 O R 2 and ρ 1 R 2 O R ;</formula><p>This transformation always terminates. Indeed, after each transformation step, either the number of axioms R 1 • • • R n R with n ≥ 2 used in the proof increases (when the proof of the overlap is replaced with a longer proof), or, otherwise, the number of such axioms remains the same, but the number of pairs (ρ 1 R R 1 , R 2 ρ 2 R ) of RIAs respectively of Types 2 and 1 such that ρ 1 and ρ 2 are non-empty and ρ 1 R R 1 is used in the proof before R 2 ρ 2 R , decreases.</p><p>After the transformation terminates, it is easy to see that the proof becomes stratified.</p><p>Theorem 1. For every stratified ontology O and role R one can construct an automaton for L O (R) which is at most exponential in the level of R in O.</p><p>Proof (Sketch). By Lemma 4 for every ρ ∈ L O (R), the RIA ρ R has a stratified proof. It is easy to show that the language generated by RIAs of the same level n and the same type is regular. This is a consequence of the fact that the RIAs of Types 1 and 2 of the same level correspond to left-linear and right-linear grammars respectively, which generate regular languages. The RIAs ρ R of Type 0 correspond to finite languages since the level of the roles in ρ is smaller than the level of R , and therefore, only one step rewritings are possible. Now the fact that L O (R) generated by RIAs of all levels is regular, follows from the fact that regular languages are closed under substitution. The size of the automaton for every level is at most polynomial in the size of O; thus the size of the automaton for L O (R) is at most exponential in the level of R.</p><p>Returning to Example 1, we can show that the set of RIAs (2)-( <ref type="formula" target="#formula_12">4</ref>) is stratified. Indeed, it can be shown that RIAs (3)-( <ref type="formula" target="#formula_12">4</ref>) can result in the following overlaps:</p><formula xml:id="formula_36">isPartOf • isPartOf • isPartOf isPartOf (17) isPartOf • isProperPartOf • isPartOf isPartOf (18) isPartOf • isPartOf • isProperPartOf isPartOf (19) isPartOf • isPartOf • isProperPartOf isProperPartOf<label>(20)</label></formula><p>All of the above RIAs can be stratified using ( <ref type="formula">2</ref>)-( <ref type="formula" target="#formula_12">4</ref>). On the other hand, RIAs ( <ref type="formula">12</ref>)-( <ref type="formula" target="#formula_19">14</ref>) are not stratified. Indeed there are the following overlaps between RIAs ( <ref type="formula">12</ref>) and ( <ref type="formula">13</ref>) and between RIAs ( <ref type="formula">12</ref>) and ( <ref type="formula" target="#formula_19">14</ref>):</p><formula xml:id="formula_37">isChildOf • isChildOf − • isSiblingOf isSiblingOf (21) isChildOf • isChildOf − • isChildOf isChildOf<label>(22)</label></formula><p>The problem with (21) is that there is</p><formula xml:id="formula_38">no R such that isChildOf − •isSiblingOf O R.</formula><p>Intuitively, this property should hold for R = isChildOf − , but RIAs ( <ref type="formula">12</ref>)-( <ref type="formula" target="#formula_19">14</ref>) are not sufficient to derive this property. Fortunately the problem can be fixed by declaring the role isSiblingOf to be symmetric: <ref type="bibr" target="#b13">(14)</ref>. Now <ref type="bibr" target="#b11">(12)</ref> implies that (21) is stratified. The problem with ( <ref type="formula" target="#formula_37">22</ref>) is more involved, since isChildOf − •isChildOf O R does not seem to hold for any role R introduced so far. Intuitively, by going to a child and then going back to a parent, we should come to the "partner"-an individual who has the same children as the initial individual. Hence we can introduce a fresh role isPartnerOf, and add properties similar to those of isSiblingOf:</p><formula xml:id="formula_39">isSiblingOf − isSiblingOf,<label>(23)</label></formula><formula xml:id="formula_40">which implies: isChildOf − • isSiblingOf isChildOf − • isSiblingOf − (isSiblingOf • isChildOf) − isChildOf − using</formula><formula xml:id="formula_41">isChildOf − • isChildOf isPartnerOf (24) isPartnerOf • isPartnerOf isPartnerOf (25) isChildOf • isPartnerOf isChildOf (26) isPartnerOf − isPartnerOf<label>(27)</label></formula><p>It is now possible to show that RIAs ( <ref type="formula">12</ref>)-( <ref type="formula" target="#formula_19">14</ref>) and ( <ref type="formula" target="#formula_39">23</ref>)-( <ref type="formula" target="#formula_41">27</ref>) are stratified.</p><p>It is a natural question, whether any set of RIAs that induce regular languages, can be extended, as in the example above, to a set of RIAs that is stratified. The following theorem gives a positive answer to this question. Theorem 2. Let O be an ontology such that for every role R the language L O (R) is regular. Then there exists a conservative extension O of O which is stratified for every preorder that is admissible for O.</p><p>In this paper we have introduced a notion of stratified role inclusion axioms which provides a syntactically-checkable sufficient condition for regularity of RIAs-a condition that ensures decidability of SROIQ. We have demonstrated that for every stratified SROIQ ontology, one can construct a regular automaton representing the RIAs, which is worst case exponential in the size of the ontology. The result in <ref type="bibr" target="#b10">[11]</ref> then implies that the complexity of reasoning with stratified SROIQ ontologies remains the same as the complexity of original SROIQ, namely N2ExpTime-complete. Moreover, we have demonstrated that our conditions for regularity are in a sense maximal-every ontology O with regular RIAs can be conservatively extended to an ontology with stratified RIAs.</p><p>Complex RIAs are closely related to interaction axioms in grammar modal <ref type="bibr" target="#b11">12,</ref><ref type="bibr" target="#b2">3]</ref>. Such axioms often cause undecidability, however in <ref type="bibr" target="#b11">[12,</ref><ref type="bibr" target="#b2">3]</ref> a decidable class called the regular grammar modal logics has been described. In <ref type="bibr" target="#b3">[4]</ref> a decision procedure for this class is given by a translation into the two-variable guarded fragment. Because it is in general undecidable if the given interaction axioms are regular, the decision procedure assumes that a regular automaton for them is also provided. When applying these techniques to ontologies and complex RIAs, such a restriction poses a serious practical problem: the users are unlikely to provide such automata, and even if they do, it is in general not possible to verify if the automaton really corresponds to the given axioms. A solution to this problem, proposed in <ref type="bibr" target="#b12">[13,</ref><ref type="bibr" target="#b0">1]</ref>, is to use a sufficient syntactical condition for regularity called ≺-regularity. Another sufficient condition proposed in <ref type="bibr" target="#b13">[14]</ref> requires associativity of RIAs, which means that if R 1 R 2 R 1 and R 1 R 3 R then there exists R 2 such that R 2 R 3 R 2 and R 1 R 2 R . It is easy to see that associativity is a partial case of our sufficient conditions, when is a total relation on roles. Note that Theorem 2 holds for any preorder , and in particular, when is total.</p><formula xml:id="formula_42">logics i1 • • • in X → i1 • • • in X [2,</formula><p>In this paper we have mainly addressed theoretical properties of ontologies with stratified RIAs, and have argued that they can be used to model properties which otherwise are not possible to model within SROIQ. One problem that has not been addressed in this paper, is how to ensure that an ontology modeler produces stratified RIAs in practice. We made a small experiment to check how many of complex RIAs in release 7 of Galen are stratified. We found that the total of 385 complex role inclusions in Galen produce 3604 non-stratified overlaps, for which additional axioms are required to fix the problems. Clearly, the process of finding the missing axioms can be very time consuming. The conditions of stratified overlaps in such cases could provide valuable hits for finding the missing axioms. Methods for finding stratified axioms could be one of the topics for our future works.</p></div><figure xmlns="http://www.tei-c.org/ns/1.0" type="table" xml:id="tab_0"><head></head><label></label><figDesc>. O and . We often omit "w.r.t. O" and "w.r.t. " if O and are clear from the context. Definition 3. We say that a RIA ρ 1 Rρ 2</figDesc><table /></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" type="table" xml:id="tab_1"><head></head><label></label><figDesc>and R 1 = R . In cases (i) and (ii) we also say that the RIAsρ 1 R 1 R 1 and R 2 ρ 2 R 2 overlap (w.r.t O). Lemma 2. Let O be an ontology and an admissible preorder for O. Then O is stratified w.r.t. if and only if: 1. Every RIA in O (and hence in Ō) is stratified w.r.t. O and ; 2. Every overlap of two RIAs in Ō is stratified w.r.t O and .</figDesc><table><row><cell>In the next lemma recall that Ō is the extension of O with RIAs Inv(ρ) Inv(R)</cell></row><row><cell>such that ρ R ∈ O.</cell></row></table></figure>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="1" xml:id="foot_0">http://www.w3.org/TR/owl2-syntax/</note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="2" xml:id="foot_1">http://www.w3.org/TR/owl-ref/</note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="3" xml:id="foot_2">http://www.opengalen.org/</note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="4" xml:id="foot_3">http://www.ihtsdo.org/</note>
		</body>
		<back>
			<div type="annex">
<div xmlns="http://www.tei-c.org/ns/1.0"><p>Proof. For every role R and a role chain ρ we introduce a fresh role R ρ . We use R as a synonym for R. For every R 1 , R 2 , ρ 1 , ρ 2 , and ρ O R we add axioms:</p><p>Let O be the extension of O with the above axioms. It is easy to show that O is a conservative extension of O: for every model I of O one can interpret (R ρ ) I := {(ρ ) I | ρ ρ O R} so that the axioms (28) and (29) are satisfied. Moreover, it can be shown that the resulting ontology is stratified. First, the original RIAs follow from (28) and ( <ref type="formula">29</ref></p><p>Hence by removing the original RIAs, the relation O does not change. The remaining axioms of the form (28) and (29) are stratified, since every overlap of axioms ( <ref type="formula">28</ref></p><p>The only problem with O is that it requires infinitely many axioms (28) and (29), since the number of new roles R ρ is not bounded. To bound the number of roles, we use the regularity property for languages</p><p>. By Myhill-Nerode theorem (see, e.g., <ref type="bibr" target="#b6">[7]</ref>), since L O (R) is regular for each R, there are at most finitely many equivalence classes induced by ∼ O . Since ∼ O -equivalent roles have the same interpretations, we can identify those roles, and thus obtain only finitely many axioms of form (28) and (29).</p></div>			</div>
			<div type="references">

				<listBibl>

<biblStruct xml:id="b0">
	<analytic>
		<title level="a" type="main">The even more irresistible SROIQ</title>
		<author>
			<persName><forename type="first">I</forename><surname>Horrocks</surname></persName>
		</author>
		<author>
			<persName><forename type="first">O</forename><surname>Kutz</surname></persName>
		</author>
		<author>
			<persName><forename type="first">U</forename><surname>Sattler</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">KR</title>
		<imprint>
			<biblScope unit="page" from="57" to="67" />
			<date type="published" when="2006">2006</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b1">
	<analytic>
		<title level="a" type="main">Grammar logics</title>
		<author>
			<persName><forename type="first">L</forename><forename type="middle">F</forename><surname>Del Cerro</surname></persName>
		</author>
		<author>
			<persName><forename type="first">M</forename><surname>Panttonen</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">Logique et Analyse</title>
		<imprint>
			<biblScope unit="volume">121</biblScope>
			<biblScope unit="issue">122</biblScope>
			<biblScope unit="page" from="123" to="134" />
			<date type="published" when="1988">1988</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b2">
	<analytic>
		<title level="a" type="main">The complexity of regularity in grammar logics and related modal logics</title>
		<author>
			<persName><forename type="first">S</forename><surname>Demri</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">J. Log. Comput</title>
		<imprint>
			<biblScope unit="volume">11</biblScope>
			<biblScope unit="issue">6</biblScope>
			<biblScope unit="page" from="933" to="960" />
			<date type="published" when="2001">2001</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b3">
	<analytic>
		<title level="a" type="main">Deciding regular grammar logics with converse through first-order logic</title>
		<author>
			<persName><forename type="first">S</forename><surname>Demri</surname></persName>
		</author>
		<author>
			<persName><forename type="first">H</forename><surname>De Nivelle</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">Journal of Logic, Language and Information</title>
		<imprint>
			<biblScope unit="volume">14</biblScope>
			<biblScope unit="issue">3</biblScope>
			<biblScope unit="page" from="289" to="329" />
			<date type="published" when="2005">2005</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b4">
	<analytic>
		<title level="a" type="main">Decidability of SHIQ with complex role inclusion axioms</title>
		<author>
			<persName><forename type="first">I</forename><surname>Horrocks</surname></persName>
		</author>
		<author>
			<persName><forename type="first">U</forename><surname>Sattler</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">Artif. Intell</title>
		<imprint>
			<biblScope unit="volume">160</biblScope>
			<biblScope unit="issue">1-2</biblScope>
			<biblScope unit="page" from="79" to="104" />
			<date type="published" when="2004">2004</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b5">
	<analytic>
		<title level="a" type="main">Pushing the EL envelope</title>
		<author>
			<persName><forename type="first">F</forename><surname>Baader</surname></persName>
		</author>
		<author>
			<persName><forename type="first">S</forename><surname>Brandt</surname></persName>
		</author>
		<author>
			<persName><forename type="first">C</forename><surname>Lutz</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">Proc. IJCAI-05</title>
				<meeting>IJCAI-05</meeting>
		<imprint>
			<date type="published" when="2005">2005</date>
			<biblScope unit="page" from="364" to="369" />
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b6">
	<monogr>
		<title level="m" type="main">Introduction to the Theory of Computation</title>
		<author>
			<persName><forename type="first">M</forename><surname>Sipser</surname></persName>
		</author>
		<imprint>
			<date type="published" when="2005-02">February 2005</date>
			<publisher>Course Technology</publisher>
		</imprint>
	</monogr>
	<note>Second Edition</note>
</biblStruct>

<biblStruct xml:id="b7">
	<monogr>
		<title level="m" type="main">Introduction to Automata Theory, Languages and Computation</title>
		<author>
			<persName><forename type="first">J</forename><forename type="middle">E</forename><surname>Hopcroft</surname></persName>
		</author>
		<author>
			<persName><forename type="first">J</forename><forename type="middle">D</forename><surname>Ullman</surname></persName>
		</author>
		<imprint>
			<date type="published" when="1979">1979</date>
			<publisher>Addison-Wesley</publisher>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b8">
	<analytic>
		<title level="a" type="main">Replacing SEPtriplets in SNOMED CT using tractable description logic operators</title>
		<author>
			<persName><forename type="first">B</forename><surname>Suntisrivaraporn</surname></persName>
		</author>
		<author>
			<persName><forename type="first">F</forename><surname>Baader</surname></persName>
		</author>
		<author>
			<persName><forename type="first">S</forename><surname>Schulz</surname></persName>
		</author>
		<author>
			<persName><forename type="first">K</forename><forename type="middle">A</forename><surname>Spackman</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">AIME</title>
		<title level="s">Lecture Notes in Computer Science</title>
		<imprint>
			<publisher>Springer</publisher>
			<date type="published" when="2007">2007</date>
			<biblScope unit="volume">4594</biblScope>
			<biblScope unit="page" from="287" to="291" />
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b9">
	<analytic>
		<title level="a" type="main">Part-whole reasoning in medical ontologies revisited: Introducing SEP triplets into classification-based description logics</title>
		<author>
			<persName><forename type="first">S</forename><surname>Schulz</surname></persName>
		</author>
		<author>
			<persName><forename type="first">M</forename><surname>Romacker</surname></persName>
		</author>
		<author>
			<persName><forename type="first">U</forename><surname>Hahn</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">Proc. of the 1998 AMIA Annual Fall Symposium</title>
				<editor>
			<persName><forename type="first">C</forename><surname>Chute</surname></persName>
		</editor>
		<meeting>of the 1998 AMIA Annual Fall Symposium</meeting>
		<imprint>
			<publisher>Hanley &amp; Belfus</publisher>
			<date type="published" when="1998">1998</date>
			<biblScope unit="page" from="830" to="834" />
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b10">
	<monogr>
		<title level="m" type="main">RIQ and SROIQ are harder than SHOIQ</title>
		<author>
			<persName><forename type="first">Y</forename><surname>Kazakov</surname></persName>
		</author>
		<editor>KR</editor>
		<imprint>
			<date type="published" when="2008">2008</date>
			<publisher>AAAI Press</publisher>
			<biblScope unit="page" from="274" to="284" />
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b11">
	<monogr>
		<title level="m" type="main">Normal Multimodal Logics: Automatic Deduction and Logic Programming Extension</title>
		<author>
			<persName><forename type="first">M</forename><surname>Baldoni</surname></persName>
		</author>
		<imprint>
			<date type="published" when="1998">1998</date>
		</imprint>
		<respStmt>
			<orgName>Università degli Studi di Torino</orgName>
		</respStmt>
	</monogr>
	<note type="report_type">PhD thesis</note>
</biblStruct>

<biblStruct xml:id="b12">
	<analytic>
		<title level="a" type="main">Decidability of SHIQ with complex role inclusion axioms</title>
		<author>
			<persName><forename type="first">I</forename><surname>Horrocks</surname></persName>
		</author>
		<author>
			<persName><forename type="first">U</forename><surname>Sattler</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">IJCAI</title>
				<imprint>
			<date type="published" when="2003">2003</date>
			<biblScope unit="page" from="343" to="348" />
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b13">
	<analytic>
		<title level="a" type="main">Obstacles on the way to qualitative spatial reasoning with description logics: Some undecidability results</title>
		<author>
			<persName><forename type="first">M</forename><surname>Wessel</surname></persName>
		</author>
		<ptr target="CEUR-WS.org" />
	</analytic>
	<monogr>
		<title level="m">Description Logics</title>
		<title level="s">CEUR Workshop Proceedings</title>
		<imprint>
			<date type="published" when="2001">2001</date>
			<biblScope unit="volume">49</biblScope>
		</imprint>
	</monogr>
</biblStruct>

				</listBibl>
			</div>
		</back>
	</text>
</TEI>
