<!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>Is Query Inseparability for ALC Ontologies Decidable?</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>E. Botoeva</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>C. Lutz</string-name>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>V. Ryzhikov</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>F. Wolter</string-name>
          <xref ref-type="aff" rid="aff3">3</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>M. Zakharyaschev</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Birkbeck, Univ. of London</institution>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Univ. of Bozen-Bolzano</institution>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>Univ. of Bremen</institution>
        </aff>
        <aff id="aff3">
          <label>3</label>
          <institution>Univ. of Liverpool</institution>
        </aff>
      </contrib-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1 Introduction</title>
      <p>
        While query answering with Description Logics (DLs) is now well-developed, this is
much less the case for reasoning services that support ontology engineering and target
query answering as an application. In ontology versioning, for example, one would
like to know whether two versions of an ontology give the same answers to all queries
formulated over a given vocabulary of interest, which means that they can be safely
replaced in an application [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. Similarly, if one wants to know whether a given ontology
can be safely replaced by a smaller subset (a module), it is the answers to all queries that
should be preserved [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. In this context, the fundamental relationship between ontologies
is thus not whether they are logically equivalent (have the same models), but whether
they give the same answers to all relevant queries. The resulting entailment problem can
be formalized in two ways, with different applications. First, given a class Q of queries,
knowledge bases (KBs) K1 = (T1; A1) and K2 = (T2; A2), and a signature of
relevant concept and role names, we say that K1 -Q-entails K2 if the answers to any
query in Q over K2 are contained in the answers to the query over K1. K1 and K2 are
Q-inseparable if they -Q-entail each other. This notion of entailment is appropriate if
the data is known and does not change frequently. Applications include data-oriented KB
versioning and KB module extraction, KB forgetting [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ], and knowledge exchange [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ].
      </p>
      <p>
        If the data is not known or changes frequently, it is not KBs that should be compared,
but TBoxes. Given a pair = ( 1; 2) specifying a relevant signature 1 for ABoxes
and 2 for queries, we say that a TBox T1 -Q-entails a TBox T2 if, for every
1ABox A, the KB (T1; A) 2-Q-entails (T2; A). T1 and T2 are -Q-inseparable if
they -Q-entail each other. Applications include data-oriented TBox versioning, TBox
modularization and TBox forgetting [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ].
      </p>
      <p>
        Most important choices for Q are conjunctive queries (CQs) and unions thereof
(UCQs); we also consider the practically relevant classes of rooted CQs (rCQs) and
UCQs (rUCQs), in which every variable is connected to an answer variable. So far,
CQentailment has been studied for Horn DL KBs [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], E L TBoxes [
        <xref ref-type="bibr" rid="ref5 ref8">8, 5</xref>
        ], DL-Lite TBoxes [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ],
and also for OBDA specifications, that is, DL-Lite TBoxes with mappings [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. No results
are available for non-Horn DLs (neither in the KB nor in the TBox case) and for
expressive Horn DLs in the TBox case. In particular, query entailment in non-Horn DLs
had the reputation of being a technically challenging problem.
      </p>
      <p>
        This paper makes a first breakthrough into understanding query entailment and
inseparability in these cases, with the main results summarized in Figures 1 and 2 (those
marked with (?) are from [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]). Most unexpected is the undecidability of CQ- and
rCQentailments between ALC KBs, even when the first KB is formulated in Horn-ALC
(in fact, E L) and without any signature restriction. This should be contrasted with the
      </p>
      <sec id="sec-1-1">
        <title>Horn-ALC</title>
        <p>ALC to ALC
undecidable</p>
        <p>?
undecidable
2EXPTIME</p>
        <p>ALC to
Horn-ALC
?</p>
        <p>Queries</p>
        <p>CQ
UCQ
2EXPTIME =EXPTIME(?) rCQ
rUCQ</p>
      </sec>
      <sec id="sec-1-2">
        <title>Horn-ALC</title>
        <p>ALC to ALC
undecidable</p>
        <p>?
undecidable
?</p>
        <p>
          ALC to
Horn-ALC
?
=2EXPTIME
=EXPTIME =EXPTIME
decidability of subsumption-based entailment between ALC TBoxes [
          <xref ref-type="bibr" rid="ref4">4</xref>
          ] and of
CQentailment between Horn-ALC KBs [
          <xref ref-type="bibr" rid="ref3">3</xref>
          ]. The second surprising result is that entailment
between ALC KBs becomes decidable when CQs are replaced with rUCQs. For ALC
TBoxes, CQ- and rCQ-entailments are undecidable as well. We obtain decidability for
Horn-ALC TBoxes (where CQ- und UCQ-entailments coincide) using the fact that
non-entailment is always witnessed by tree-shaped ABoxes. As another surprise,
CQentailment of Horn-ALC TBoxes is 2EXPTIME-complete while rCQ-entailment is only
EXPTIME-complete. This should be contrasted with the E L case, where both problems
are EXPTIME-complete [
          <xref ref-type="bibr" rid="ref8">8</xref>
          ]. All upper bounds and most lower bounds hold also when
entailment is replaced with inseparability.
2
        </p>
        <p>Undecidability of CQ-Entailment for ALC KBs
Here we sketch the construction showing that the problem whether an E L KB -CQ
entails an ALC KB is undecidable. The proof is by reduction of the undecidable N M
tiling problem: given a finite set T of tile types T with four colours up(T ), down(T ),
left(T ) and right(T ), a tile type I 2 T, and two colours W (for wall) and C (for ceiling),
decide whether there exist N; M 2 N such that the N M grid can be tiled using T in
such a way that (1; 1) is covered by a tile of type I; every (N; i), for i M , is covered
by a tile of type T with right(T ) = W ; and every (i; M ), for i N , is covered by a tile
of type T with up(T ) = C. Given an instance of this problem, we first describe a KB
K2 = (T2; fA(a)g) that uses (among others) three concept names Tk, k = 0; 1; 2, for
each tile type T 2 T. If a point x in a model I of K2 is in Tk and right(T ) = left(T 0),
then x has an R-successor in Tk0 . Thus, branches of I define (possibly infinite) horizontal
rows of tilings with T. If a branch contains a point y 2 Tk with right(T ) = W , then
this y can be the last point in the row, which is indicated by an R-successor z 2 Row of
y. In turn, z has R-successors in all T(k+1) mod 3 that can be possible beginnings of the
next row of tiles. To coordinate the up and down colours between the rows—which will
be done by the CQs separating K1 and K2— we make every x 2 Tk, starting from the
second row, an instance of all T(0k 1) mod 3 with down(T ) = up(T 0). The row started by
z 2 Row can be the last one in the tiling, in which case we require that each of its tiles
T has up(T ) = C. After the point in Row indicating the end of the final row, we add an
R-successor in End for the end of tiling. The beginning of the first row is indicated by a
P -successor in Start of the ABox element a, after which we add an R-successor in I0
for the given initial tile type I; see the lowest branch in the figure below. To generate a
tree with all possible branches described above, we only require E L axioms of the form
E v D and E v 9S:D.
hl T0 SRtoawrt</p>
        <p>T0</p>
        <p>T0 T1</p>
        <p>Row
T0N1 Start IT01.1.2.</p>
        <p>T1</p>
        <p>Row ∨ T2End</p>
        <p>T1</p>
        <p>Row</p>
        <p>Row</p>
        <p>T1
TNM-1
T0N1M-2...
RowIl End Row EndT2
∨ T2
hr</p>
        <p>Row
Ir T21M</p>
        <p>T11M-1...</p>
        <p>T1NT2MN-M1... End</p>
        <p>The existence of a tiling of some N M grid for the given instance can be checked
by Boolean CQs qn that require an R-path from Start to End going through Tk- or
Row-points: 9x(Start(x0) ^ Vn</p>
        <p>i=0 R(xi; xi+1) ^ Vin=1 Bi(xi) ^ End(xn+1)), where
Bi 2 fRowg [ fTk j T 2 T; k = 0; 1; 2g. The key trick is—using an axiom of the
form D v E t E0—to ensure that the Row-point before the final row of the tiling
has two alternative continuations: one as described above, and the other one having
just a single R-successor in End where _ indicates an or-node. This or-node gives two
models of K2 denoted Il and Ir in the picture. If K2 j= qn, then qn holds in both of
tahnedmh,ra(nxdnso1)thaerree ianrsetahnocmesomofoBrpnhis1m,swhel h:aqvne !BnIl1 a=nd ThNr:Mqn ! Ir. As hl(xn 1)
1 1 in the picture, and
so up(T NM 1) = down(T NM ). By repeating this argument until x0, we see that the
colours between horizontal rows match and the rows are of the same length. (For this
trick to work, we have to make the first Row-point in every branch an instance of Start.)
In fact, an instance of the N M -tiling problem has a positive answer iff there exists qn
such that K2 j= qn. It is to be noted that to construct T2 with the properties described
above, one needs quite a few auxiliary concept names.</p>
        <p>Let K1 = (T1; fA(a)g) be an E L KB with the following canonical model:</p>
        <p>Start; 0 Start; 0 Start; 0
a A</p>
        <p>P</p>
        <p>End; 0 End; 0 End; 0 End; 0 End; 0 End; 0
where 0 = fRowg [ fTk j T 2 T; k = 0; 1; 2g. Note that the vertical R-successors of
the Start-points are not instances of any concept name, and so K1 does not satisfy any
query of the form qn. On the other hand, K2 j= q implies K1 j= q, for every -CQ q
without a subquery of the form qn and = sig(K1). Therefore, K1 -CQ entails K2
iff there exists no tiling as specified above.
3</p>
      </sec>
    </sec>
    <sec id="sec-2">
      <title>Future Work</title>
      <p>We have made first steps towards understanding query entailment and inseparability for
KBs and TBoxes in expressive DLs. From a theoretical viewpoint, it would be of interest
to solve the open problems in Figures 1 and 2, and also consider other expressive DLs
such as DL-LitebHool or ALCI. For example, our undecidability proof goes through for
DL-LitebHool , but the other cases remain open. From a practical viewpoint, our
modeltheoretic criteria for query entailment are a good starting point for developing algorithms
for approximations of query entailment based on simulations. Our undecidability and
complexity results also indicate that rUCQ-entailment is more amenable to practical
algorithms than, say, CQ-entailment and can be used as an approximation of the latter.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Arenas</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Botoeva</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Calvanese</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ryzhikov</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          :
          <article-title>Exchanging OWL 2 QL knowledge bases</article-title>
          .
          <source>In: Proc. of the 23rd Int. Joint Conf. on Artificial Intelligence (IJCAI</source>
          <year>2013</year>
          ). AAAI Press (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Bienvenu</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rosati</surname>
          </string-name>
          , R.:
          <article-title>Query-based comparison of OBDA specifications</article-title>
          .
          <source>In: Proc. of the 28th Int. Workshop on Description Logics (DL</source>
          <year>2015</year>
          ). vol.
          <volume>1350</volume>
          .
          <string-name>
            <surname>CEUR-WS</surname>
          </string-name>
          (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Botoeva</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kontchakov</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ryzhikov</surname>
            ,
            <given-names>V.</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>Query inseparability for description logic knowledge bases</article-title>
          .
          <source>In: Proc. of the 14th Int. Conf. on the Principles of Knowledge Representation and Reasoning (KR</source>
          <year>2014</year>
          )
          <article-title>(</article-title>
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Ghilardi</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lutz</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wolter</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          :
          <article-title>Did I damage my ontology? A case for conservative extensions in description logics</article-title>
          . In: Doherty,
          <string-name>
            <given-names>P.</given-names>
            ,
            <surname>Mylopoulos</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            ,
            <surname>Welty</surname>
          </string-name>
          , C. (eds.)
          <source>Proc. of the 10th Int. Conf. on the Principles of Knowledge Representation and Reasoning (KR</source>
          <year>2006</year>
          ). pp.
          <fpage>187</fpage>
          -
          <lpage>197</lpage>
          (
          <year>2006</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Konev</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ludwig</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Walther</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wolter</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          :
          <article-title>The logical difference for the lightweight description logic EL</article-title>
          .
          <source>Journal of Artificial Intelligence Research (JAIR) 44</source>
          ,
          <fpage>633</fpage>
          -
          <lpage>708</lpage>
          (
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Kontchakov</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pulina</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sattler</surname>
            ,
            <given-names>U.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Schneider</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Seimer</surname>
            ,
            <given-names>P.</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>Minimal module extraction from DL-Lite ontologies using QBF solvers</article-title>
          .
          <source>In: Proc. of the 21st Int. Joint Conf. on Artificial Intelligence (IJCAI</source>
          <year>2009</year>
          ). pp.
          <fpage>836</fpage>
          -
          <lpage>840</lpage>
          (
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Kontchakov</surname>
            ,
            <given-names>R.</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>Logic-based ontology comparison and module extraction, with an application to DL-Lite</article-title>
          .
          <source>Artificial Intelligence</source>
          <volume>174</volume>
          ,
          <fpage>1093</fpage>
          -
          <lpage>1141</lpage>
          (
          <year>2010</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Lutz</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wolter</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          :
          <article-title>Deciding inseparability and conservative extensions in the description logic EL</article-title>
          .
          <source>J. of Symbolic Computation</source>
          <volume>45</volume>
          (
          <issue>2</issue>
          ),
          <fpage>194</fpage>
          -
          <lpage>228</lpage>
          (
          <year>2010</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Wang</surname>
            ,
            <given-names>K.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wang</surname>
            ,
            <given-names>Z.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Topor</surname>
            ,
            <given-names>R.W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pan</surname>
            ,
            <given-names>J.Z.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Antoniou</surname>
          </string-name>
          , G.:
          <article-title>Eliminating concepts and roles from ontologies in expressive descriptive logics</article-title>
          .
          <source>Computational Intelligence</source>
          <volume>30</volume>
          (
          <issue>2</issue>
          ),
          <fpage>205</fpage>
          -
          <lpage>232</lpage>
          (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>