<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Ontology Materialization by Abstraction Refinement in Horn S HOI F</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Birte Glimm</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Yevgeny Kazakov</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Trung-Kien Tran</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>University of Ulm</institution>
          ,
          <addr-line>Germany, &lt;first name&gt;.&lt;last</addr-line>
        </aff>
      </contrib-group>
      <abstract>
        <p>Abstraction refinement is a recently introduced technique which allows for reducing materialization of an ontology with a large ABox to materialization of a smaller (compressed) 'abstraction' of this ontology. Although this approach is sound for the very expressive language SROIQ, so far it was proved to be complete only for Horn ALCHOI ontologies. In this paper we propose an extension of this method that is now complete for Horn SHOIF ontologies. Supporting functional roles, in particular, is nontrivial due to the sophisticated interaction with nominals and inverse roles. Additionally, we show how to compute not only the concept-materialization but also the role- and equalitymaterialization. To show completeness we use a tailored set of materialization rules that loosely decouple the ABox from the TBox, which is intrinsically interesting as reasoning with nominals in general requires both ABox and TBox.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        Description Logics (DLs) are popular languages for knowledge representation and
reasoning. They are the underlying formalism for the standardized Web Ontology
Language (OWL) and its profiles, which are widely used in many application areas.
Recent years have also seen an increasing interest in ontology-based data access (OBDA),
where a TBox with background knowledge, often expressed in a DL language, is used
to enrich datasets (ABoxes), which are then accessible via queries. Ontology
materialization is a reasoning task that computes logical consequences of the dataset w.r.t.
the TBox and it is the most important task in some languages, e.g., OWL 2 RL [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ].
In other languages, e.g., those that allow existential quantification, materialization is a
stepping stone for query answering via rewriting [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ].
      </p>
      <p>
        To make ontology materialization useful in practice, especially for large datasets,
scalable materialization is of great importance. Several approaches have been proposed
to achieve this goal. The RDFox [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] and WebPIE [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ] systems operate on the
entire dataset and utilize parallel computing to perform a rule-based materialization for
OWL 2 RL. Other approaches try to reduce the size of the dataset. Modules or
socalled ‘individual islands’ [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ] are used for reducing the set of ABox assertions to
those that are sufficient for computing the entailed assertions for a given individual.
The SHER system [
        <xref ref-type="bibr" rid="ref2 ref4">4, 2</xref>
        ] improves consistency checking of a large ABox by computing
a so-called ‘summary ABox’ in which several original individuals are merged into one.
If the resulting ABox is found consistent, then so is the original ABox. If not, then
explanations [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] are used to pinpoint the contradictory axioms or relax the summary to
avoid inconsistency. Similar to SHER, in the abstraction refinement method [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] several
individuals of the original ABox can be represented by one individual in a
corresponding ‘abstract ABox’. In contrast to the summary ABox, the abstract ABox provides an
under-approximation rather than the over-approximation of entailments (e.g., if the
abstraction is inconsistent then so is the original ABox but not necessarily vice versa).
To ensure completeness of the method, the so-called refinement step is used that
recomputes the abstraction based on new (sound) entailments obtained from a previous
abstraction. This has the added benefit that not only consistency but also the full
materialization of the ABox can be computed at once without (rather expensive) explanation
computations or repeated consistency checks. This paper builds upon the abstraction
refinement method and presents the following improvements:
1. We extend the approach to guarantee completeness in the presence of transitive and
functional roles, thus fully supporting Horn SHOIF ontologies. Reasoning with
nominals, inverse roles, and functionality is known to be difficult due to the loss of
the tree-model property.
2. We materialize not only concept assertions, but also role and equality assertions. In
ALCHOI, role and equality assertions can be computed simply by expanding the
role hierarchy and analyzing assertions of nominals. In SHOIF , this is no longer
the case. Apart from transitivity, role assertions could result from the consequence
that some roles are functional; and interactions of nominals, inverse roles, and
functionality could lead to a new kind of nominals. In Section 4, we discuss this issue
in more detail and provide a solution in Section 5.
3. We present a new set of materialization rules (Section 6), which loosely decouple
the ABox from the TBox. Although we use them only for proving completeness
of the method (Section 7), these rules can be of interest on its own, e.g., as a basis
of an efficient implementation for ABox reasoning. This provides a fresh view of
the approach as the completeness proofs are principally different from the previous
proofs [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ], and the method can potentially be extended to other languages having
similar rules.
2
      </p>
    </sec>
    <sec id="sec-2">
      <title>Preliminaries</title>
      <p>
        The syntax and semantics of the Description Logic (DL) SHOIF is briefly presented
in Table 1. A SHOIF ontology O is Horn [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ], if, for every D(a) 2 O and C v D 2
O, the concepts C and D satisfy the following grammar definitions:
      </p>
      <p>C(i) ::=&gt; j ? j A j o j C1 u C2 j C1 t C2 j 9R:C
D(i) ::=&gt; j ? j A j o j D1 u D2 j 9R:D j 8R:D j :C
(1)
(2)
Given an ontology O, a role R is functional (in O) if func(R) 2 O and transitive (in
O) if tran(R) 2 O. (Horn) ALCHOI is the fragment of (Horn) SHOIF in which
functionality and transitivity are disallowed. For an ontology O, let vH be the reflexive
transitive closure of the role hierarchy H = fR v S 2 Og. If R vH S, then we say
that R is a sub-role of S and S is a super-role of R; A role R is simple (in O) if it has
no transitive sub-roles; if func(R) 2 O then R must be simple.</p>
      <p>To simplify the presentation, we do not distinguish between axioms R(a; b) and
R (b; a), a b and b a, R v S and R v S , and tran(R) and tran(R ).
For example, if R(a; b) 2 A, we assume that R (b; a) 2 A. We use con(O), rol(O),
ind(O), nom(O) for the sets of atomic concepts, atomic roles, individuals, and nominals
occurring in O, respectively.</p>
      <p>For an ontology O, we say that O is concept-materialized if O j= A(a) implies
A(a) 2 O for each A 2 con(O) and a 2 ind(O); O is role-materialized if O j= r(a; b)
implies r(a; b) 2 O for each r 2 rol(O) and a; b 2 ind(O); O is equality-materialized
if O j= a b implies a b 2 O for each a; b 2 ind(O); O is (fully) materialized
if it is concept-, role-, and equality-materialized. Given an ontology O, the concept-,
role-, equality-, and/or (full) materialization of O is the smallest super-set of O that is
concept-, role-, equality-, and/or fully materialized respectively.
3</p>
    </sec>
    <sec id="sec-3">
      <title>Computing Materialization by Abstraction</title>
      <p>
        The main idea of the abstraction refinement method [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] is to materialize an ontology
O = A [ T with a potentially large ABox A by constructing a smaller ABox B such
that the materialization of B [ T can be computed by a general-purpose reasoner, and
transfer the new entailments back to O. The ABox B is usually called the abstraction of
the original ABox A (or just the abstract ABox if A is clear from the context), and the
individuals in B are called representatives of the original individuals in A. All results in
this section apply to any DL with (classical) set-theoretic semantics, e.g., SROIQ [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ].
      </p>
      <sec id="sec-3-1">
        <title>Definition 1. Let A and B be ABoxes. A mapping h : ind(B) ! ind(A) is called a homomorphism (from B to A) if, for every assertion 2 B, we have h( ) 2 A, where</title>
        <p>h(C(a)) := C(h(a)), h(R(a; b)) := R(h(a); h(b)), and h(a b) := h(a) h(b). We
say an individual b 2 ind(B) is a representative of an individual a 2 ind(A) if there
exists a homomorphism h : ind(B) ! ind(A) such that h(b) = a.</p>
        <p>Example 1. Consider the ABoxes A = fA(a); A(b)g and B = fA(u)g. Then the
individual u of B is a representative for both individuals a and b since the mappings
h1 = fu 7! ag and h2 = fu 7! bg are homomorphisms from B to A.</p>
        <p>The following property of homomorphisms allows transferring entailments from the
abstraction to the original ABox.</p>
      </sec>
      <sec id="sec-3-2">
        <title>Lemma 1. Let h : ind(B) ! ind(A) be a homomorphism between the ABoxes B and A. Then, for every TBox T and every axiom , B [ T j= implies A [ T j= h( ).</title>
      </sec>
      <sec id="sec-3-3">
        <title>Corollary 1. If an individual u 2 ind(B) is a representative for an individual a 2 ind(A), then, for every TBox T and concept C, if B [ T j= C(u), then A [ T j= C(a).</title>
        <p>According to Corollary 1, in Example 1 one can transfer any newly entailed concept
assertion for u to the corresponding assertions for a and b. In fact, in this particular case,
all entailed concept assertions for A can be computed this way because there is also a
homomorphism from A to B.</p>
      </sec>
      <sec id="sec-3-4">
        <title>Example 2 (Example 1 continued). Consider the homomorphism h : ind(A) ! ind(B)</title>
        <p>defined by h = fa 7! u; b 7! ug. Then by Lemma 1, for every TBox T and concept C
if A [ T j= C(a) or A [ T j= C(b) then B [ T j= C(u).</p>
        <p>
          In practice, computing a sufficiently small abstraction B of A such that there are
homomorphisms in both directions is rarely possible, so the set of concept assertions
transferred using Corollary 1 is usually incomplete. To ensure completeness, one can employ
further refinement steps that recompute the abstraction based on the new information
derived. This method was shown to be complete for concept materialization of Horn
ALCHOI ontologies [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ]. The aim of this paper is to extend this approach to Horn
SHOIF . Before we go into further details explaining our extension, we first describe
challenges that the new functionality and transitivity axioms pose for ontology
materialization.
4
        </p>
        <sec id="sec-3-4-1">
          <title>Full Materialization for Horn S HOI F</title>
          <p>It is easy to show using model-theoretic arguments that an ALCHOI ontology O
without equality assertions entails an equality between individuals a b iff either a = b or
both a and b are instances of some nominal concept o occurring in O. To compute such
entailed equality assertions, it is sufficient to compute instances of nominals, which can
be accomplished by introducing an axiom o v Ao with a fresh concept Ao for each
nominal o and computing instances of Ao by concept materialization. If O contains
equality assertions, one needs to additionally perform the transitive symmetric closure
of the resulting equality assertions. For role materialization, similarly, one can show
that if O j= R(a; b) then either (i) there exists an assertion R0(a0; b0) 2 O such that
O j= a a0, O j= b b0, and R0 vH R, or (ii) a is an instance of 9R:o and b is an
instance of o for some nominal o, or (iii) a is an instance of o and b is an instance of
9R :o for some nominal o. All these conditions can again be checked by introducing
fresh concepts and computing the concept materialization.</p>
          <p>That is, (full) materialization of Horn ALCHOI ontologies can be reduced to
concept materialization by simple syntactic transformations. The following examples
illustrate that for Horn SHOIF ontologies such reductions do not work.</p>
          <p>Example 3. Consider the ontology O = A [ T with A = fA(a); A(b)g and T =
fA v 9F :o; func(F )g. Then O j= a b but neither a nor b are instances of the
nominal o.</p>
          <p>As Example 3 illustrates, equality testing in (Horn) SHOIF becomes less trivial;
the main reason is that using a combination of functional roles, inverse roles, and
nominals one can express entailed nominal concepts such as A in Example 3, which can be
interpreted by at most one element.</p>
          <p>In the following example, we demonstrate how functional roles can also result in
some non-trivial entailments of role assertions, even if no equality or nominals are used.
Example 4. Consider the ontology O = A [ T with A = fA(a); R(a; b)g and T =
fA v 9S:&gt;; R v F; S v F; func(F )g. Then O j= S(a; b) but O 6j= R v S.</p>
          <p>As can be seen from Examples 3 and 4, the computation of equality- and
rolematerialization becomes a non-trivial problem for Horn SHOIF ontologies.
Fortunately, using the following corollary of Lemma 1, one can extend the main idea
behind concept materialization described in the previous section to equality- and
rolematerialization.</p>
        </sec>
      </sec>
      <sec id="sec-3-5">
        <title>Corollary 2. Let h : ind(B) ! ind(A) be a homomorphism between the ABoxes B</title>
        <p>and A, u; v 2 ind(B), a = h(u); b = h(v) 2 ind(A), and T a SROIQ TBox. Then
B [T j= u v implies A[T j= a b, and B [T j= R(u; v) implies A[T j= R(a; b)
for every role R.</p>
        <p>Unfortunately, the abstract ABoxes that are sufficient to guarantee completeness of
concept-materialization are not sufficient to guarantee completeness of equality- and
role-materialization as demonstrated in the following example.</p>
        <p>Example 5. Consider the ABox A and its abstraction B in Example 1. As stated in
Example 2, for any TBox T all entailed concept assertions of T [ A can be obtained
using Corollary 1 for the abstraction B. However, the abstraction B may be insufficient
for computing all entailed role or equality assertions using Corollary 2. Indeed, consider
T = fA v og. Then A [ T j= a b, but, clearly, there is no homomorphism
h : ind(B) ! ind(A) such that h(u) = a and h(u) = b required to derive this assertion
using Corollary 2. Similarly, it is possible that A [ T j= R(a; b) for some role R, but
we are not able to derive this assertion using Corollary 2, for example, for T = fA v
9T:o; A v 9T :o; tran(T ); T v Rg.</p>
        <sec id="sec-3-5-1">
          <title>Abstraction Refinement for Horn S HOI F</title>
          <p>The general algorithm for ontology reasoning using the abstraction refinement method
can be summarized as follows:
1. Build a suitable abstraction of the original ontology;
2. Compute the entailments from the abstraction using a reasoner and transfer them
to the original ontology using homomorphisms (Lemma 1);
3. Compute the deductive closure of the original ontology using some (light-weight)
rules;
4. Repeat from Step 1 until no new entailments can be added to the original ontology.
The efficiency and theoretical properties of this method depend on the choices of how
the abstraction is computed in Step 1, which entailments are transferred in Step 2, and
which rules are used to compute the deductive closure in Step 3. In the following we
detail these choices for Horn SHOIF .</p>
          <p>To compute the abstraction of the original ABox (Step 1), we define types of
individuals based on their assertions.</p>
        </sec>
      </sec>
      <sec id="sec-3-6">
        <title>Definition 2. Let A be an ABox and a an individual. The concept type of a is a set</title>
        <p>of concepts C (a) = fC j C(a) 2 Ag. The role type of a is a set of roles R(a) =
fR j 9b : R(a; b) 2 Ag. The (combined) type of a is a pair (a) = h C (a); R(a)i
where C (a) is the concept type of a and R(a) is the role type of a.</p>
        <p>Note that we assume w.l.o.g. that, for every individual a, &gt;(a) is included in the
ontology and, therefore, &gt; occurs in every (concept) type. To simplify the presentation,
however, we usually omit &gt; in the remainder.</p>
        <p>Example 6. Let A = fA(a); A(b); R(a; b)g. Then C (a) = C (b) =
R(a) = fRg, R(b) = fR g, (a) = 2 = hfAg; fRgi, and (b) =
fR gi.
1 = fAg,
3 = hfAg;</p>
        <p>The abstract ABox is then constructed by introducing one representative for each
type with the respective assertions.</p>
        <p>Definition 3. The abstraction of an ABox A is an ABox B = Sa2ind(A)(B C(a)[B (a)),
where:
– for each concept type C , B C = fC(u C ) j C 2 C g,
– for each combined type = h C ; Ri, B = fC(v ) j C 2 C g [ fR(v ; wR) j</p>
        <p>R 2 Rg,
where u C , v , and wR are distinguished abstract individuals for each concept type C
and each combined type .</p>
        <p>Example 7. The abstraction for A in Example 6 is the ABox B = B C(a) [ B C(b) [
B (a) [ B (b), where B C(a) = B C(b) = B 1 = fA(u 1 )g, B (a) = B 2 = fA(v 2 );
R(v 2 ; wR2 )g, B (b) = B 3 = fA(v 3 ); R (v 3 ; wR3 )g.</p>
        <p>h(u C ) 2 fa 2 ind(A) j C (a) = C g;
h(v ) 2 fa 2 ind(A) j (a) = g;
h(wR) 2 fb 2 ind(A) j R(h(v ); b) 2 Ag;
is a homomorphism from B to A. This allows us to transfer entailments from the
abstraction back to the original ABox using Corollaries 1 and 2. Note that each original
individual a in A has at least two representatives in B: u C(a) that has exactly the same
concept assertions as a and v (a) which additionally has assertions with the same roles.
Two representatives are necessary to solve the problem mentioned in Example 5 for
transferring role and equality assertions.</p>
        <p>Example 8. Consider the ABox A = fA(a); A(b)g and TBox T = fA v og
mentioned in Example 5. We have C (a) = C (b) = 1 = fAg, and (a) = (b) = 2 =
hfAg; ;i. The abstraction of A is defined as B = B 1 [ B 2 with B 1 = fA(u 1 )g,
B 2 = fA(v 2 )g. Since B [ T j= u 1 v 2 , and h = fu 1 7! a; v 2 7! bg is a
homomorphism from B to A, using Corollary 2 we obtain A [ T j= a b.
Next, we detail how entailed assertions are transferred from B to A in Step 2 of the
algorithm. To achieve completeness it is not necessary to transfer all of them and we
detail which assertions are to be transferred after the definition.</p>
      </sec>
      <sec id="sec-3-7">
        <title>Definition 4. Let B be the abstraction of an ABox A (according to Definition 3), and</title>
      </sec>
      <sec id="sec-3-8">
        <title>B a set of assertions. The update of A (using B) is the smallest set of assertions</title>
      </sec>
      <sec id="sec-3-9">
        <title>A such that:</title>
        <p>Intuitively, the abstraction is a disjoint union of ABoxes simulating concept and
combined types. Note that each mapping h : ind(B) ! ind(A) such that:
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)</p>
        <p>C(v (a)) 2</p>
        <p>R(a; b) 2 A; C(wR(a)) 2
R(a; b) 2 A; S(v (a); wR(a)) 2</p>
        <p>S(v (a); v (a)) 2
u C(a)</p>
        <p>v (b) 2
R(u C(a); v (b)) 2</p>
        <p>B
B;
B
B
B
B
)
)
)
)
)
)</p>
        <p>C(a) 2</p>
        <p>C(b) 2
S(a; b) 2
S(a; a) 2
a</p>
        <p>b 2
R(a; b) 2</p>
        <p>A;
A;
A;
A
A;
A:</p>
      </sec>
      <sec id="sec-3-10">
        <title>Lemma 2. Let B be the abstraction of A,</title>
        <p>B [ T j= B implies A [ T j= A.</p>
      </sec>
      <sec id="sec-3-11">
        <title>A an update for</title>
      </sec>
      <sec id="sec-3-12">
        <title>B, and T a TBox. Then</title>
        <p>Proof. It is easy to see that for each 2 A and 2 B in cases (6)–(11), there
is a homomorphism h from B to A satisfying conditions (3)–(5) such that h( ) = .
Hence, by Lemma 1, B [ T j= implies A [ T j= h( ) = . tu
Let B0 be the materialization of B [ T , then we transfer assertions from B = B0 n B
according to Definition 4 in Step 2. Next, we compute the (deductive) closure of the
ABox A under equality, transitivity, and functionality in Step 3.
(12)
(13)
(14)
(15)
(16)
(17)
Definition 5. We say that an ABox A is equality-closed if:
fa
fa
fa
b; b cg
b; A(a)g
b; R(a; c)g
a 2 ind(A) implies a</p>
        <p>a 2 A</p>
      </sec>
      <sec id="sec-3-13">
        <title>A implies a c 2 A;</title>
      </sec>
      <sec id="sec-3-14">
        <title>A implies A(b) 2 A;</title>
      </sec>
      <sec id="sec-3-15">
        <title>A implies R(b; c) 2 A;</title>
        <p>A is closed under the axiom tran(T ) if:
A is closed under the axiom func(F ) if:
fT (a; b); T (b; c)g</p>
      </sec>
      <sec id="sec-3-16">
        <title>A implies T (a; c) 2 A:</title>
        <p>fF (a; b); F (a; c)g</p>
      </sec>
      <sec id="sec-3-17">
        <title>A implies b</title>
        <p>c 2 A:
The closure of A (w.r.t. a TBox T ) under equality, transitivity, and/or functionality is
the smallest super-set of A that is closed under equality, for each tran(T ) 2 T and/or
each func(F ) 2 T , respectively.</p>
        <p>
          Computing the closure of an ABox under equality, functionality, and transitivity is a
relatively lightweight operation that does not require using a reasoner. Note that all
these assertions must be derived in order to compute the full materialization. In the
previous method [
          <xref ref-type="bibr" rid="ref5">5</xref>
          ], the abstraction of an ABox A is defined as B = Sa2ind(A) B (a),
and there is no computation of the closure as in Step 3. One can easily check that the
previous method is incomplete not only for role and equality materializations but also
for concept materialization of Horn SHOIF ontologies, even with the computation of
the closure in Step 3.
        </p>
        <p>Since Steps 2 and 3 can only extend the original ABox with entailed atomic
assertions, the procedure is sound, and since the number of such assertions is bounded,
the procedure eventually terminates. We next show that the procedure is complete for
Horn SHOIF ontologies, that is, the resulting ontology is (fully) materialized when
the procedure terminates.
6</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>A Criterion for Ontology Materialization</title>
      <p>
        To prove completeness of the abstraction refinement procedure in the case of Horn
SHOIF , we characterize when such ontologies are fully materialized by means of
closure of the ABox assertions under certain rules. The rules are similar to the rules
for reasoning in Horn SHIQ and Horn SHOIQ [
        <xref ref-type="bibr" rid="ref12 ref3">12, 3</xref>
        ] in the sense that they derive
logical consequences of axioms. Since we are only interested in ABox consequences
and not going to use these rules for computing the materialization (but merely for
proving completeness of our abstraction refinement algorithm), however, we will not derive
TBox axioms explicitly but use their entailments in side conditions of the rules.
      </p>
      <p>Recall from the discussion after Example 3, that in SHOIF one can express some
non-trivial nominal concepts. To be able to reason about such concepts, we need to
extend the language with new axiom types.</p>
      <p>Definition 6. A concept cardinality restriction is an axiom of the form jCj n or
jCj = n with C a concept and n 2 N. An interpretation I satisfies jCj n (jCj = n),
written I j= jCj n (I j= jCj = n), iff jCI j n (jCI j = n).</p>
      <p>We also use role conjunctions R u S, interpreted by (R u S)I = RI \ SI . The new
constructors and axioms are used only in the conditions of rules and not in the ontology.</p>
      <p>In the following, we denote by N and M conjunctions of atomic concepts and/or
nominals and by H conjunctions of roles (possibly with indexes and superscripts). If
we write C 2 N , N N 0, N ( N 0, we treat N and N 0 as the corresponding sets of
conjuncts, where N = &gt; denotes the empty conjunction. Similarly for conjunctions of
roles. For a role conjunction H we denote by H the conjunction of inverses of roles
in H. We write N (a) 2 A if C(a) 2 A for every C 2 N . Note that if N (a) 2 A then
A j= jN j 1.</p>
      <p>Definition 7. Let A be an ABox. Then N(A) = fjN j
cardinality axioms induced by A.
1 j N (a) 2 Ag is the set of
R1
a</p>
      <p>a : a 2 ind(A)
1 T (a; b) T (b; c)
Rt T (a; c)</p>
      <p>R9
Rt
Rjj
3 N (a) M (b)</p>
      <p>T (a; b)
N (a) N (b)</p>
      <p>a b
N (a) M (b)</p>
      <p>R(a; b)</p>
      <p>R2 a
b b
a c
c</p>
      <p>R3 a
b R(a; c)
R(b; c)</p>
      <p>R4 a
b A(a)
A(b)
: tran(T ) 2 T</p>
      <p>2 N (a)</p>
      <p>Rt T (a; a) : T 0 j= N v 9(T u T ):&gt;; tran(T ) 2 T
R
1 F (a; b) F (a; c)
b c</p>
      <p>: func(F ) 2 T
: T 0 j= fN v 9T:N 0; M v 9T :N 0; jN 0j = 1g; tran(T ) 2 T
: T 0 j= jN j = 1</p>
      <p>R8</p>
      <p>N (a) R(a; b)</p>
      <p>B(b)</p>
      <p>: T 0 j= N v 8R:B
: T 0 j= fN v 9R:M; jM j = 1g</p>
      <p>R1v RS((aa;; bb)) : R v S 2 T</p>
      <p>R2v NB((aa)) : T 0 j= N v B
R
2 M (a) F (a; b)</p>
      <p>H(a; b) N (b) : T 0 j= M v 9(F u H):N; func(F ) 2 T</p>
      <sec id="sec-4-1">
        <title>Definition 8. A Horn SHOIF ontology O is in normal form if (1) for every D(a) 2</title>
      </sec>
      <sec id="sec-4-2">
        <title>O, D is an atomic concept; (2) for every C v D 2 O, the concepts C and D satisfy</title>
        <p>the following grammar:</p>
        <p>C(i) ::=&gt; j ? j A j o j C1 u C2 j C1 t C2
D(i) ::=&gt; j ? j A j o j 9R:A j 8R:A j :C
and (3) for every C v 8R:A 2 O and every transitive sub-role T of R, there exists an
atomic concept B that occurs only in fC v 8T :B; B v 8T :B; B v Ag O and not
in C or A.</p>
        <p>Theorem 1. Let O = A [ T be a normalized Horn SHOIF ontology and T 0 = T [</p>
      </sec>
      <sec id="sec-4-3">
        <title>N(A). Then A is closed under the rules in Figure 1 w.r.t. T iff O is fully materialized.</title>
        <p>Proof (sketch). The if direction is trivial since all rules derive logical consequences of
the axioms in premises and side conditions. For the only if direction, if T 0 is
inconsistent then we can derive all assertions using rules R2v, R9, and Rjj. If ind(O) = ;,
then Theorem 1 trivially holds. We assume ind(O) 6= ; and T 0 is consistent. We then
construct a model J of O such that J j= implies 2 A, for every atomic
assertion . Then, O j= implies J j= , which implies 2 A, i.e., O is materialized.
Such model J is obtained in two steps: 1) construct an interpretation I satisfying all
but transitivity axioms in O such that I j= implies 2 A for every atomic assertion
; 2) obtain J from I by extending the interpretation of non-simple roles to satisfy
transitivity axioms.</p>
        <p>
          Intuitively, I has a forest-like structure consisting of a graph part and tree parts. The
graph part contains domain elements for individuals and concepts that have exactly one
instance. The tree parts grow from the graph part to satisfy entailed existential axioms.
To construct I, we use a chase-like technique [
          <xref ref-type="bibr" rid="ref1">1</xref>
          ] in which new domain elements are
introduced to satisfy axioms of the form M v 9H:N entailed by O such that H and
N are maximal (w.r.t M ), i.e., there is no M v 9H 0:N 0 entailed by O and H [ N (
H 0[N 0. This guarantees that new domain elements (and their respective assertions) also
satisfy universal restrictions and role inclusions. Additionally, a new domain element
is introduced only when an axiom cannot be satisfied by the existing domain elements.
This ensures all the existential axioms are satisfied while the functionality axioms are
not violated.
        </p>
        <p>To obtain the model J from I that also satisfies the transitivity axioms in O, we
extend the interpretation of non-simple roles to include the transitive closure, i.e., for
every transitive role T , (d0; dn) is added to T J and to the interpretations of its
superroles if (di 1;di) 2 T I ; 1 i n. This extension makes J satisfy transitivity axioms
and the rules Rt1–Rt3 ensure that J j= R(a; b) implies R(a; b) 2 A for every role R and
individuals a; b. Moreover, since only the interpretation of non-simple roles has been
extended, it is also possible to show J entails the other axioms in O, i.e. J j= O, and
J j= implies 2 A for every atomic assertion , i.e., we obtain J as required. tu
7</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>Completeness</title>
      <p>Once the abstraction refinement procedure terminates, we claim that the input ontology
is fully materialized by showing that it is closed under the rules in Figure 1.</p>
      <sec id="sec-5-1">
        <title>Lemma 3. Let A [ T be an ontology s.t. A is equality-, transitivity-, and functionalityclosed, B the abstraction of A, B0 an ABox s.t. B B0, N(B0) = N(A) and A A with A the update of A using B0 n B. Then, B0 is closed under the rules in Figure 1 w.r.t. T implies that A is also closed under the rules w.r.t. T .</title>
        <p>Proof. Since N(B0) = N(A), the side condition of each rule holds for B0 [ T iff it
holds for A [ T . We examine each rule in Figure 1 and show that A is closed under
that rule. Clearly, A is closed under R1 –R4 , R1 ; Rt1. For the other rules, the intuition
is: if the premises of a rule R hold for some assertions in A, then the premises of
R also hold for the corresponding abstract assertions 0 in B, and in B0 consequently.
Since B0 is closed under R, the conclusion 0 of 0 w.r.t. R is already in B0. Then, the
condition A A guarantees that the conclusion of w.r.t. R is already in A, which
implies that A is closed under R. We present one interesting case: Rt3; the remaining
cases are analogous. Let fN (a); M (b)g A, and the corresponding side condition
holds. We have fN (v (a)); M (v (b))g B B0. Since B0 is closed under Rt3, we have
T (v (a); v (b)) 2 B0. If v (a) = v (b) = v , i.e. a and b have the same type , we are
not able to obtain T (a; b) to add to A. That explains why concept types are required.
In this case, since fN (u C ); M (v )g B B0 and B0 is closed under Rt3, we have
T (u C ; v ) 2 B0, and consequently T (u C ; v ) 2 B0 n B. By Definition 4, we have
T (a; b) 2 A A. Therefore, A is closed under Rt3. tu
Using Lemma 3, we show that the procedure is complete.</p>
        <p>Theorem 2. Let O = A [ T be the ontology obtained from the abstraction refinement
procedure in Section 5. Then, O is fully materialized.</p>
        <p>Proof. Let B be the abstraction of A, B0 [ T the materialization of B [ T , B =
B0 n B, and A the update of A using B. For every A(a) 2 A, we have A(v (a))
2 B B0, which implies N(A) N(B0)(?). There always exists a homomorphism
h from B to B s.t. h(u C(a)) = v (a). Therefore, for every A(u C(a)) 2 B0, we have
A(v (a)) 2 B0. Since the procedure has terminated, i.e. A A, for every A(v (a)) 2
B0 or A(wR(a)) 2 B0 we have A(a) 2 A for some a 2 ind(A). Hence, we obtain
N(B0) N(A)(y). From (?) and (y) we have N(A) = N(B0), which allows us to
apply Lemma 3.</p>
        <p>By Theorem 1, B0 is closed under the rules in Figure 1. Therefore, by Lemma 3, A
is closed under those rules. Consequently, by Theorem 1, O is materialized. tu
8</p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>Discussion and Future Work</title>
      <p>
        Our next step is to evaluate the procedure in practice. We believe that it is particularly
efficient for ontologies with large ABoxes. We have demonstrated in our previous work
[
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] that for such ontologies, the abstractions are often significantly smaller than the
original ones. Given the (intentionally) close similarity with the previous procedure,
it is reasonable to assume that the proposed extension would yield similar reductions.
We also plan to extend the approach to allow more constructors in the Horn fragments.
A possibility to handle qualified number restrictions is to extend the combined type
of individuals by considering also concept assertions of their predecessors/successors.
Materialization of concept assertions in the presence of role chains could be done
using well-known encoding techniques but computing role assertions, especially for
nonsimple roles, might be more involved. Handing non-Horn ontologies requires major
changes in the current approach as the abstraction can communicate only deterministic
entailments; this will be the subject of future work.
      </p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Abiteboul</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hull</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Vianu</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          : Foundations of Databases. Addison-Wesley (
          <year>1995</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Dolby</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Fokoue</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kalyanpur</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Schonberg</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Srinivas</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          :
          <article-title>Scalable highly expressive reasoner (SHER)</article-title>
          .
          <source>J. of Web Semantics</source>
          <volume>7</volume>
          (
          <issue>4</issue>
          ),
          <fpage>357</fpage>
          -
          <lpage>361</lpage>
          (
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Eiter</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ortiz</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Simkus</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Tran</surname>
            ,
            <given-names>T.K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Xiao</surname>
          </string-name>
          , G.:
          <article-title>Query rewriting for Horn-SHIQ plus rules</article-title>
          .
          <source>In: Proc. of the 26th National Conf. on Artificial Intelligence (AAAI</source>
          <year>2012</year>
          ). AAAI Press (
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Fokoue</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kershenbaum</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ma</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Schonberg</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Srinivas</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          :
          <article-title>The summary ABox: Cutting ontologies down to size</article-title>
          .
          <source>In: Proc. of the 5th Int. Semantic Web Conference (ISWC</source>
          <year>2006</year>
          ). LNCS, vol.
          <volume>4273</volume>
          , pp.
          <fpage>343</fpage>
          -
          <lpage>356</lpage>
          . Springer (
          <year>2006</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Glimm</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kazakov</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Liebig</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Tran</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Vialard</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          :
          <article-title>Abstraction refinement for ontology materialization</article-title>
          .
          <source>In: Proc. of the 13th Int. Semantic Web Conference (ISWC</source>
          <year>2014</year>
          ). pp.
          <fpage>180</fpage>
          -
          <lpage>195</lpage>
          . Springer (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Horrocks</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kutz</surname>
            ,
            <given-names>O.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sattler</surname>
            ,
            <given-names>U.</given-names>
          </string-name>
          :
          <article-title>The even more irresistible SROIQ</article-title>
          .
          <source>In: Proc. of 10th International Conference on Principles of Knowledge Representation and Reasoning (KR</source>
          <year>2006</year>
          ). pp.
          <fpage>57</fpage>
          -
          <lpage>67</lpage>
          (
          <year>2006</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Kalyanpur</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Parsia</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Horridge</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sirin</surname>
          </string-name>
          , E.:
          <article-title>Finding all justifications of OWL DL entailments</article-title>
          .
          <source>In: Proc. of the 6th Int. Semantic Web Conf. (ISWC</source>
          <year>2007</year>
          ). LNCS, vol.
          <volume>4825</volume>
          , pp.
          <fpage>267</fpage>
          -
          <lpage>280</lpage>
          . Springer (
          <year>2007</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Kontchakov</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lutz</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Toman</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wolter</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zakharyaschev</surname>
            ,
            <given-names>M.:</given-names>
          </string-name>
          <article-title>The combined approach to ontology-based data access</article-title>
          .
          <source>In: IJCAI 2011, Proceedings of the 22nd International Joint Conference on Artificial Intelligence</source>
          , Barcelona, Catalonia, Spain,
          <source>July 16-22</source>
          ,
          <year>2011</year>
          . pp.
          <fpage>2656</fpage>
          -
          <lpage>2661</lpage>
          (
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9. Kro¨tzsch,
          <string-name>
            <given-names>M.</given-names>
            ,
            <surname>Rudolph</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            ,
            <surname>Hitzler</surname>
          </string-name>
          ,
          <string-name>
            <surname>P.</surname>
          </string-name>
          :
          <article-title>Complexities of horn description logics</article-title>
          .
          <source>ACM Trans. Comput. Log</source>
          .
          <volume>14</volume>
          (
          <issue>1</issue>
          ),
          <volume>2</volume>
          (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Motik</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Cuenca Grau</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Horrocks</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wu</surname>
            ,
            <given-names>Z.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Fokoue</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lutz</surname>
          </string-name>
          , C. (eds.):
          <article-title>OWL 2 Web Ontology Language: Profiles (Second Edition)</article-title>
          .
          <source>W3C Recommendation</source>
          (
          <year>2012</year>
          ), available at http://www.w3.org/TR/owl2-profiles/
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Motik</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nenov</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Piro</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Horrocks</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Olteanu</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          :
          <article-title>Parallel materialisation of datalog programs in centralised, main-memory RDF systems</article-title>
          .
          <source>In: Proc. of the Twenty-Eighth AAAI Conference on Artificial Intelligence</source>
          . pp.
          <fpage>129</fpage>
          -
          <lpage>137</lpage>
          (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Ortiz</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rudolph</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Simkus</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Worst-case optimal reasoning for the horn-dl fragments of OWL 1 and 2</article-title>
          .
          <source>In: Principles of Knowledge Representation and Reasoning: Proceedings of the Twelfth International Conference, KR</source>
          <year>2010</year>
          (
          <year>2010</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Urbani</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kotoulas</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Maassen</surname>
          </string-name>
          , J., van
          <string-name>
            <surname>Harmelen</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bal</surname>
          </string-name>
          , H.E.:
          <article-title>WebPIE: A web-scale parallel inference engine using MapReduce</article-title>
          .
          <source>J. Web Semantics</source>
          <volume>10</volume>
          ,
          <fpage>59</fpage>
          -
          <lpage>75</lpage>
          (
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <surname>Wandelt</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          , Mo¨ller, R.:
          <article-title>Towards ABox modularization of semi-expressive description logics</article-title>
          .
          <source>J. of Applied Ontology</source>
          <volume>7</volume>
          (
          <issue>2</issue>
          ),
          <fpage>133</fpage>
          -
          <lpage>167</lpage>
          (
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>