<!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>A Single Approach to Decide Chase Termination on Linear Existential Rules</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Michel Leclère</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Marie-Laure Mugnier</string-name>
          <email>mugnier@lirmm.fr</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Michaël Thomazo</string-name>
          <email>michael.thomazo@inria.fr</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Federico Ulliana</string-name>
          <email>ulliana@lirmm.fr</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Inria, DI ENS, ENS, CNRS, PSL University</institution>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Univ. Montpellier</institution>
          ,
          <addr-line>LIRMM, Inria, CNRS</addr-line>
        </aff>
      </contrib-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        The chase procedure is a fundamental tool for solving many issues involving
tuplegenerating dependencies, such as data integration, data-exchange, query answering
using views or query answering on probabilistic databases. In the last decade,
tuplegenerating dependencies raised a renewed interest under the name of existential rules
for the ontology-mediated query answering (OMQA) problem. In this context, the aim
is to query a knowledge base (I; R), where I is an instance (or factbase) and R is a set
of existential rules (see e.g. the survey chapters [
        <xref ref-type="bibr" rid="ref5">5,16</xref>
        ]). A fundamental property of the
chase is that it allows one to compute a (possibly infinite) universal model of (I; R),
i.e., a model that can be homomorphically mapped to any other model of (I; R). Hence,
the answers to a conjunctive query (and more generally to any kind of query closed by
homomorphism) over (I; R) can be defined by considering solely this universal model.
      </p>
      <p>
        The chase starts from an instance and exhaustively performs a sequence of rule
applications with respect to a redundancy criterion, which differs according to the
considered chase variant. We focus in this paper on the main variants, namely: semi-oblivious
[15] (aka skolem [15]), restricted [
        <xref ref-type="bibr" rid="ref10 ref3">3,10</xref>
        ] (aka standard [17]) and core [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]. All these
produce homomorphically equivalent results but terminate for increasingly larger
subclasses of existential rules. The question of whether a chase variant terminates on all
instances for a given set of existential rules is known to be undecidable when there is
no restriction on the kind of rules [
        <xref ref-type="bibr" rid="ref1 ref11">1,11</xref>
        ]. A number of sufficient syntactic conditions
for termination have been proposed in the literature for the semi-oblivious chase (see
e.g. [
        <xref ref-type="bibr" rid="ref12">17,12,18</xref>
        ] for syntheses), as well as for the restricted chase [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ] (note that the
latter paper also defines a sufficient condition for non-termination). However, only few
positive results exist regarding the termination of the chase on specific classes of rules.
Decidability was shown for the semi-oblivious chase on guarded-based rules (linear
rules, and their extension to (weakly-)guarded rules) [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. Decidability of the core chase
termination on guarded rules for a fixed instance was shown in [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ].
      </p>
      <p>
        In this work, we provide new insights on the chase termination problem for
linear existential rules, which are precisely of the form 8x8y:[ 1(x; y) ! 9z: 2(x; z)],
where i is an atom and x; y and z are pairwise disjoint tuples of variables. Linear
rules form a simple yet important subclass of guarded existential rules, which
generalizes inclusion dependencies [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] and positive inclusions in DL-LiteR [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ] (which can
be seen as inclusion dependencies restricted to unary and binary predicates).
Concerning the ontology-mediated query answering problem, we note that linear rules are
firstorder rewritable, hence OMQA on conjunctive queries can be solved by query rewriting.
However, it is well known that the size and the unusual form of the rewritten query may
give rise to practical efficiency issues. The materialization of ontological inferences in
the data is often a good alternative to query rewriting, provided that some chase
algorithm terminates. Finally, having the choice of how to process a set of linear rules may
extend the applicability of query answering techniques that combine query rewriting
and materialization [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ].
      </p>
      <p>The question of whether a chase variant terminates on all instances for a set of
linear existential rules can be asked under two forms: Does every (fair) chase sequence
terminate? Does some (fair) chase sequence terminate? It is well-known that these two
questions have the same answer for the semi-oblivious and the core chase variants, but
not for the restricted chase. Indeed, this last one may admit both terminating and
nonterminating sequences over the same knowledge base. We show that the termination
problem is decidable for linear existential rules, whether we consider any version of the
problem and any chase variant.</p>
      <p>
        We study chase termination by exploiting in a novel way a graph structure, namely
the derivation tree, which was originally introduced to solve the ontology-mediated
(conjunctive) query answering problem for the family of greedy-bounded treewidth sets
of existential rules [
        <xref ref-type="bibr" rid="ref2">2,19</xref>
        ], a class of rules that generalizes guarded-based rules and in
particular linear rules. We first use derivation trees to show the decidability of the
termination problem for the semi-oblivious and restricted chase variants, and then generalize
them to entailment trees to show the decidability of termination for the core chase. For
any chase variant we consider, we adopt the same high-level procedure: starting from
a finite set of canonical instances (representative of all possible instances), we build a
(set of) tree structures for each canonical instance, while forbidding the occurrence of a
specific pattern, we call unbounded-path witness. The built structures are finite thanks
to this forbidden pattern, and this allows us to decide if the chase terminates on the
associated canonical instance. By doing so, we obtain a uniform approach to study the
termination of several chase variants, which we believe to be of theoretical interest per
se. The derivation tree is moreover a simple structure and the algorithms built on this
notion are likely to lead to an effective implementation.
      </p>
      <p>
        Besides providing new theoretical tools to study chase termination, we obtain the
following results for linear existential rules:
– a new proof of the decidability of the semi-oblivious chase termination, building on
different objects than the previous proof provided in [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]; we show that our algorithm
provides the same complexity upper-bound;
– the decidability of the restricted chase termination, for both versions of the problem,
i.e., termination of all (fair) chase sequences and termination of some (fair) chase
sequence; to the best of our knowledge, these are the first positive results on the
decidability of the restricted chase termination;
– a new proof of the decidability of the core chase termination, with different objects
than previous work on the core chase termination reported in [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ].
      </p>
      <p>
        The full paper is available as a technical report [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ].
15. Marnette, B.: Generalized schema-mappings: from termination to tractability. In: Paredaens,
J., Su, J. (eds.) Proceedings of the Twenty-Eigth ACM SIGMOD-SIGACT-SIGART
Symposium on Principles of Database Systems, PODS 2009, June 19 - July 1, 2009, Providence,
Rhode Island, USA. pp. 13–22. ACM (2009). https://doi.org/10.1145/1559795.1559799
16. Mugnier, M., Thomazo, M.: An introduction to ontology-based query answering with
existential rules. In: Reasoning Web. Reasoning on the Web in the Big Data Era - 10th
International Summer School 2014, Athens, Greece, September 8-13, 2014. Proceedings. pp.
245–278 (2014). https://doi.org/10.1007/978-3-319-10587-1_6
17. Onet, A.: The chase procedure and its applications.
      </p>
      <p>Ph.D. thesis, Concordia University, Canada (2012),
https://pdfs.semanticscholar.org/6b1b/327a989d3d8e2488f645488063f391391b89.pdf
18. Rocher, S.: Querying Existential Rule Knowledge Bases: Decidability and Complexity.
(Interrogation de Bases de Connaissances avec Règles Existentielles : Décidabilité et
Complexité). Ph.D. thesis, University of Montpellier, France (2016),
https://tel.archivesouvertes.fr/tel-01483770
19. Thomazo, M.: Conjunctive Query Answering Under Existential Rules - Decidability,
Complexity, and Algorithms. Ph.D. thesis, Montpellier 2 University, France (2013),
https://tel.archives-ouvertes.fr/tel-00925722</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Baget</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Leclère</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mugnier</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Salvat</surname>
          </string-name>
          , E.:
          <article-title>On rules with existential variables: Walking the decidability line</article-title>
          .
          <source>Artif. Intell</source>
          .
          <volume>175</volume>
          (
          <issue>9-10</issue>
          ),
          <fpage>1620</fpage>
          -
          <lpage>1654</lpage>
          (
          <year>2011</year>
          ). https://doi.org/10.1016/j.artint.
          <year>2011</year>
          .
          <volume>03</volume>
          .002
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Baget</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mugnier</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rudolph</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Thomazo</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Walking the complexity lines for generalized guarded existential rules</article-title>
          . In: Walsh,
          <string-name>
            <surname>T</surname>
          </string-name>
          . (ed.)
          <source>IJCAI</source>
          <year>2011</year>
          ,
          <source>Proceedings of the 22nd International Joint Conference on Artificial Intelligence</source>
          , Barcelona, Catalonia, Spain,
          <source>July 16-22</source>
          ,
          <year>2011</year>
          . pp.
          <fpage>712</fpage>
          -
          <lpage>717</lpage>
          . IJCAI/AAAI (
          <year>2011</year>
          ). https://doi.org/10.5591/978-1-
          <fpage>57735</fpage>
          -516- 8/
          <fpage>IJCAI11</fpage>
          -126
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Beeri</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Vardi</surname>
          </string-name>
          , M.Y.:
          <article-title>The implication problem for data dependencies</article-title>
          . In: Even,
          <string-name>
            <given-names>S.</given-names>
            ,
            <surname>Kariv</surname>
          </string-name>
          ,
          <string-name>
            <surname>O</surname>
          </string-name>
          . (eds.) Automata,
          <article-title>Languages and Programming, 8th Colloquium, Acre (Akko)</article-title>
          ,
          <source>Israel, July 13-17</source>
          ,
          <year>1981</year>
          ,
          <source>Proceedings. Lecture Notes in Computer Science</source>
          , vol.
          <volume>115</volume>
          , pp.
          <fpage>73</fpage>
          -
          <lpage>85</lpage>
          . Springer (
          <year>1981</year>
          ). https://doi.org/10.1007/3-540-10843-
          <issue>2</issue>
          _
          <fpage>7</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Calautti</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gottlob</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pieris</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Chase termination for guarded existential rules</article-title>
          . In: Milo,
          <string-name>
            <given-names>T.</given-names>
            ,
            <surname>Calvanese</surname>
          </string-name>
          ,
          <string-name>
            <surname>D</surname>
          </string-name>
          . (eds.)
          <source>Proceedings of the 34th ACM Symposium on Principles of Database Systems, PODS</source>
          <year>2015</year>
          , Melbourne, Victoria, Australia, May 31 - June 4,
          <year>2015</year>
          . pp.
          <fpage>91</fpage>
          -
          <lpage>103</lpage>
          . ACM (
          <year>2015</year>
          ). https://doi.org/10.1145/2745754.2745773
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Calì</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Gottlob</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lukasiewicz</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          :
          <article-title>Datalog extensions for tractable query answering over ontologies</article-title>
          . In: Virgilio,
          <string-name>
            <given-names>R.D.</given-names>
            ,
            <surname>Giunchiglia</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            ,
            <surname>Tanca</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L</given-names>
            . (eds.)
            <surname>Semantic Web Information Management - A Model-Based</surname>
          </string-name>
          <string-name>
            <surname>Perspective</surname>
          </string-name>
          , pp.
          <fpage>249</fpage>
          -
          <lpage>279</lpage>
          . Springer (
          <year>2009</year>
          ). https://doi.org/10.1007/978-3-
          <fpage>642</fpage>
          -04329-1_
          <fpage>12</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Calvanese</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>De Giacomo</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lembo</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lenzerini</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rosati</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          :
          <article-title>Tractable reasoning and efficient query answering in description logics: The DL-Lite family</article-title>
          .
          <source>J. Autom. Reasoning</source>
          <volume>39</volume>
          (
          <issue>3</issue>
          ),
          <fpage>385</fpage>
          -
          <lpage>429</lpage>
          (
          <year>2007</year>
          ). https://doi.org/10.1007/s10817-007-9078-x
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Carral</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dragoste</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Krötzsch</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Detecting chase (non)termination for existential rules with disjunctions</article-title>
          . In: Sierra,
          <string-name>
            <surname>C</surname>
          </string-name>
          . (ed.)
          <source>Proceedings of the Twenty-Sixth International Joint Conference on Artificial Intelligence, IJCAI</source>
          <year>2017</year>
          , Melbourne, Australia,
          <source>August 19-25</source>
          ,
          <year>2017</year>
          . pp.
          <fpage>922</fpage>
          -
          <lpage>928</lpage>
          . ijcai.
          <source>org</source>
          (
          <year>2017</year>
          ). https://doi.org/10.24963/ijcai.
          <year>2017</year>
          /128
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Deutsch</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nash</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Remmel</surname>
            ,
            <given-names>J.B.</given-names>
          </string-name>
          :
          <article-title>The chase revisited</article-title>
          . In: Lenzerini,
          <string-name>
            <given-names>M.</given-names>
            ,
            <surname>Lembo</surname>
          </string-name>
          ,
          <string-name>
            <surname>D</surname>
          </string-name>
          . (eds.)
          <source>Proceedings of the Twenty-Seventh ACM SIGMOD-SIGACT-SIGART Symposium on Principles of Database Systems, PODS</source>
          <year>2008</year>
          , June 9-11,
          <year>2008</year>
          , Vancouver, BC, Canada. pp.
          <fpage>149</fpage>
          -
          <lpage>158</lpage>
          . ACM (
          <year>2008</year>
          ). https://doi.org/10.1145/1376916.1376938
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Fagin</surname>
            ,
            <given-names>R.:</given-names>
          </string-name>
          <article-title>A normal form for relational databases that is based on domians and keys</article-title>
          .
          <source>ACM Trans. Database Syst</source>
          .
          <volume>6</volume>
          (
          <issue>3</issue>
          ),
          <fpage>387</fpage>
          -
          <lpage>415</lpage>
          (
          <year>1981</year>
          ). https://doi.org/10.1145/319587.319592
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Fagin</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kolaitis</surname>
            ,
            <given-names>P.G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Miller</surname>
            ,
            <given-names>R.J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Popa</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          :
          <article-title>Data exchange: semantics and query answering</article-title>
          .
          <source>Theor. Comput. Sci</source>
          .
          <volume>336</volume>
          (
          <issue>1</issue>
          ),
          <fpage>89</fpage>
          -
          <lpage>124</lpage>
          (
          <year>2005</year>
          ). https://doi.org/10.1016/j.tcs.
          <year>2004</year>
          .
          <volume>10</volume>
          .033
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Gogacz</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Marcinkowski</surname>
          </string-name>
          , J.:
          <article-title>All-instances termination of chase is undecidable</article-title>
          . In: Esparza,
          <string-name>
            <given-names>J.</given-names>
            ,
            <surname>Fraigniaud</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            ,
            <surname>Husfeldt</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            ,
            <surname>Koutsoupias</surname>
          </string-name>
          , E. (eds.) Automata, Languages, and Programming - 41st
          <source>International Colloquium, ICALP</source>
          <year>2014</year>
          , Copenhagen, Denmark, July 8-
          <issue>11</issue>
          ,
          <year>2014</year>
          , Proceedings,
          <source>Part II. Lecture Notes in Computer Science</source>
          , vol.
          <volume>8573</volume>
          , pp.
          <fpage>293</fpage>
          -
          <lpage>304</lpage>
          . Springer (
          <year>2014</year>
          ). https://doi.org/10.1007/978-3-
          <fpage>662</fpage>
          -43951-7_
          <fpage>25</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Grau</surname>
            ,
            <given-names>B.C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Horrocks</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Krötzsch</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kupke</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Magka</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Motik</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wang</surname>
            ,
            <given-names>Z.</given-names>
          </string-name>
          :
          <article-title>Acyclicity notions for existential rules and their application to query answering in ontologies</article-title>
          .
          <source>J. Artif. Intell. Res</source>
          .
          <volume>47</volume>
          ,
          <fpage>741</fpage>
          -
          <lpage>808</lpage>
          (
          <year>2013</year>
          ). https://doi.org/10.1613/jair.3949
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Hernich</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Computing universal models under guarded tgds</article-title>
          . In: Deutsch,
          <string-name>
            <surname>A</surname>
          </string-name>
          . (ed.)
          <source>15th International Conference on Database Theory, ICDT '12</source>
          , Berlin, Germany, March 26-29,
          <year>2012</year>
          . pp.
          <fpage>222</fpage>
          -
          <lpage>235</lpage>
          . ACM (
          <year>2012</year>
          ). https://doi.org/10.1145/2274576.2274600
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <surname>Leclère</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mugnier</surname>
            ,
            <given-names>M.L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Thomazo</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ulliana</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          :
          <article-title>A single approach to decide chase termination on linear existential rules</article-title>
          .
          <source>CoRR abs/1602</source>
          .05828 (
          <year>2018</year>
          ), https://arxiv.org/abs/
          <year>1810</year>
          .02132
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>