<!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>Chasing Sets: How to Use Existential Rules for Expressive Reasoning (Extended Abstract) ?</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Knowledge-Based Systems Group</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>TU Dresden</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Dresden</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Germany</string-name>
        </contrib>
      </contrib-group>
      <abstract>
        <p>Rules of inference play a major role in knowledge representation and reasoning, e.g., for consequence-based deduction calculi in DLs. Highly scalable rule engines are available for the popular rule language Datalog [2,3,4,8,12,15], and the ExpTime (combined) reasoning complexity of this logic suggests that these engines could be exploited for reasoning in DLs. However, solving ExpTime-complete problems by translation to Datalog requires polynomially large predicate arities [13] or exponentially many rules [6], neither of which is feasible. To overcome this issue, we propose Datalog(S) { an extension of Datalog with terms that represent sets { and we show that it can be used to express common DL reasoning calculi by a simple translation of inference rules. Inspired by the approach in [9], we encode ontologies as facts, while the deductive calculus is a xed Datalog(S) rule set. This extends and generalises an approach of Ortiz et al. [13] by making sets data-dependent, leading to ExpTime data complexity. The main novelty of our work is the insight that Datalog(S)-reasoning can be encoded in theories of existential rules outside any known class, but for which the standard chase procedure is guaranteed to terminate, producing a nite model in exponential (i.e., worst-case optimal) time. This is surprising, as all previously known concrete rule languages for which the chase terminates feature PTime data complexity [5,11], which is strictly too weak for implementing DL reasoning in this way. Our insight enables us to use existing rule reasoners for Datalog(S), and therefore for DLs, and we show by empirical evaluation that this can lead to feasible practical implementations even without extensive optimisation. Datalog(S) is de ned as a logic with two sorts: an object sort for regular domain elements, and a set sort for sets over the elements of this domain. We impose certain syntactic restrictions that ensure nite object domains, and therefore nite (though exponentially larger) set domains. We provide built-in functions fg and U for constructing set terms, and built-in predicates 2 and that can be used in rule premises for accessing the contents of sets. For example, the Datalog(S) rules below de ne a unary predicate for all non-empty sets of books: book (x) ! bookSet (fxg)</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>bookSet (X) ^ bookSet (Y ) ! bookSet (X U Y )
The number of sets in a canonical model of these rules is exponential in the
number of elements classi ed as books in the input data, and this is the source
of the additional expressive power of Datalog(S).</p>
      <p>
        We illustrate our approach by encoding the ExpTime-complete reasoning
task of classi cation for a Horn-ALC TBox into a Datalog(S) program. We
? The full version of this paper has been accepted for publication at IJCAI'19 [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ].
: H is active and A 2 H
      </p>
      <p>n = 0, H active,&gt; v C 2 T , or
(Ru) fH v Aigin=1 : n = 1, A1 v C 2 T , or</p>
      <p>H v C n = 2, A1 u A2 v C 2 T
(R9+) HHvv9RA:B : A v 9R:B 2 T
(R9 ) H v 9RH:Kv BK v A : 9R:A v B 2 T
(R9?) H v 9RH:Kv ?K v ?
(R8) H v 9R:K H v A</p>
      <p>H v 9R:(K u B) : A v 8R:B 2 T</p>
      <p>Act(H) ^ a 2 H ! Sc(H; a)</p>
      <p>Act(H) ^ ax v(c&gt;; c) ! Sc(H; c)
Sc(H; a1) ^ ax v(a1; c) ! Sc(H; c)
Sc(H; a1) ^ Sc(H; a2)</p>
      <p>^ ax uv(a1; a2; c) ! Sc(H; c)
Sc(H; a) ^ ax v9(a; r; b) ! Ex (H; r; fbg)
Ex (H; r; K) ^ Sc(K; a)</p>
      <p>^ ax 9v(a; r; b) ! Sc(H; b)
Ex (H; r; K) ^ Sc(K; c?) ! Sc(H; c?)</p>
      <p>
        Ex (H; r; K) ^ Sc(H; a) Ex (H; r; fbg U K)
^ ax v8(a; r; b) ! ^ Act(fbg U K)
de ne a Horn-ALC TBox T as a set of axioms in the following normal form:
&gt; v C, A v C, A u B v C, A v 9R:C, 9R:A v C, A v ?, A v 8R:C,
where A; B; C are concept names, R is a role name, and &gt;; ? are the top and
bottom concepts. Classi cation is the task of computing all axioms of the form
A v C that are entailed by T . We consider the consequence-driven classi cation
method for Horn-ALC proposed in [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ], which is shown in Figure 1 (left) as a
set of inference rules. For an input TBox T , the rules produce inferences of the
form H v B and H v 9R:K, with H; K representing conjunctions of concepts.
Rules (RA) and (Ru) are restricted to the set of active conjunctions, which
is initialised with all singleton conjunctions (i.e. concept names), and is further
extended with the new conjunctions derived by rule (R8).
      </p>
      <p>
        This classi cation calculus can be encoded as a Datalog(S) program
consisting of the rule set R shown Figure 1 (right), and a set of facts F (T ) encoding
the axioms in the input TBox: for example, an axiom A1 u A2 v C 2 T will
be encoded as a fact ax uv(A1; A2; C). Each of the Datalog(S) rules in the right
of Figure 1 corresponds to the inference rule on its left, where conjunctions are
represented as sets, predicates Sc and Ex encode inferences, and predicate Act
signals active conjunctions. These can be initialised by adding cn(a) to F (T ) for
each concept name a in T , and adding the rule cn(a) ! Act (fag) to R. Rule
(R ) shows how adding a concept name B to a conjunction of concept names K
8
can be encoded as the set union fBg U K, which results in a new active set. The
semantics of Datalog(S) rule set R can be captured by a set of existential rules for
which a standard chase variant that prioritises non-generating rules [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] is
guaranteed to terminate for all inputs. This approach leads to an ExpTime-complete
(hence worst-case optimal) chase-based classi cation algorithm for Horn-ALC.
      </p>
      <p>In summary, our proposed language Datalog(S) can be used to translate
algorithms of ExpTime-complete data complexity into programs with a xed set of
existential rules. Besides providing an elegant, fully-declarative implementation
for DL reasoning, our approach can take advantage of rule engines capabilities.
Acknolwedgements. This work is supported by Deutsche Forschungsgemeinschaft
in project number 389792660 (TRR 248, Center for Perspicuous Systems) and
Emmy Noether grant KR 4381/1-1 (DIAMOND).</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <source>Proc. 22nd Int. Joint Conf. on Artif. Intell. (IJCAI'11)</source>
          . AAAI Press/IJCAI (
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Aref</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>ten Cate</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Green</surname>
            ,
            <given-names>T.J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kimelfeld</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Olteanu</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Pasalic</surname>
            ,
            <given-names>E.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Veldhuizen</surname>
            ,
            <given-names>T.L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Washburn</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          :
          <article-title>Design and implementation of the LogicBlox system</article-title>
          .
          <source>In: Proc. 2015 ACM SIGMOD Int. Conf. on Management of Data</source>
          . pp.
          <volume>1371</volume>
          {
          <fpage>1382</fpage>
          .
          <string-name>
            <surname>ACM</surname>
          </string-name>
          (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Baget</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Leclere</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mugnier</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rocher</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sipieter</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          :
          <article-title>Graal: A toolkit for query answering with existential rules</article-title>
          . In: Bassiliades,
          <string-name>
            <given-names>N.</given-names>
            ,
            <surname>Gottlob</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            ,
            <surname>Sadri</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            ,
            <surname>Paschke</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            ,
            <surname>Roman</surname>
          </string-name>
          ,
          <string-name>
            <surname>D</surname>
          </string-name>
          . (eds.)
          <source>Proc. 9th Int. Web Rule Symposium (RuleML'15)</source>
          . LNCS, vol.
          <volume>9202</volume>
          , pp.
          <volume>328</volume>
          {
          <fpage>344</fpage>
          . Springer (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Benedikt</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Leblay</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Tsamoura</surname>
          </string-name>
          , E.:
          <article-title>PDQ: proof-driven query answering over web-based data</article-title>
          .
          <source>PVLDB</source>
          <volume>7</volume>
          (
          <issue>13</issue>
          ),
          <volume>1553</volume>
          {
          <fpage>1556</fpage>
          (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Carral</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dragoste</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          , Krotzsch, M.:
          <article-title>Restricted chase (non)termination for existential rules with disjunctions</article-title>
          . In: Sierra,
          <string-name>
            <surname>C</surname>
          </string-name>
          . (ed.)
          <source>Proc. 26th Int. Joint Conf. on Arti cial Intelligence (IJCAI'17)</source>
          . pp.
          <volume>922</volume>
          {
          <fpage>928</fpage>
          . ijcai.
          <source>org</source>
          (
          <year>2017</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Carral</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Dragoste</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          , Krotzsch,
          <string-name>
            <surname>M.:</surname>
          </string-name>
          <article-title>The combined approach to query answering in Horn-ALCHOIQ</article-title>
          .
          <source>In: Proc. 16th Int. Conf. on Principles of Knowledge Representation and Reasoning (KR'16)</source>
          . pp.
          <volume>339</volume>
          {
          <fpage>348</fpage>
          . AAAI Press (
          <year>2018</year>
          )
        </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>
          , Krotzsch,
          <string-name>
            <given-names>M.</given-names>
            ,
            <surname>Lewe</surname>
          </string-name>
          ,
          <string-name>
            <surname>C.</surname>
          </string-name>
          :
          <article-title>Chasing sets: How to use existential rules for expressive reasoning</article-title>
          . In: Sierra,
          <string-name>
            <surname>C</surname>
          </string-name>
          . (ed.)
          <source>Proc. 28th Int. Joint Conf. on Arti cial Intelligence (IJCAI'19)</source>
          . ijcai.
          <source>org</source>
          (
          <year>2019</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Geerts</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mecca</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Papotti</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Santoro</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          :
          <article-title>That's all folks! LLUNATIC goes open source</article-title>
          .
          <source>PVLDB</source>
          <volume>7</volume>
          (
          <issue>13</issue>
          ),
          <volume>1565</volume>
          {
          <fpage>1568</fpage>
          (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9. Krotzsch, M.:
          <article-title>E cient rule-based inferencing for OWL EL</article-title>
          .
          <source>In: Proc. 22nd Int. Joint Conf. on Artif. Intell. (IJCAI'11) [1]</source>
          , pp.
          <volume>2668</volume>
          {
          <fpage>2673</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10. Krotzsch,
          <string-name>
            <given-names>M.</given-names>
            ,
            <surname>Marx</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            ,
            <surname>Rudolph</surname>
          </string-name>
          ,
          <string-name>
            <surname>S.:</surname>
          </string-name>
          <article-title>The power of the terminating chase</article-title>
          .
          <source>In: Proc. 22st Int. Conf. on Database Theory (ICDT'19)</source>
          .
          <source>LIPIcs</source>
          , vol.
          <volume>127</volume>
          , pp.
          <volume>3</volume>
          :
          <issue>1</issue>
          { 3:
          <fpage>17</fpage>
          .
          <string-name>
            <surname>Schloss</surname>
          </string-name>
          Dagstuhl - Leibniz-Zentrum fur Informatik (
          <year>2019</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Marnette</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          :
          <article-title>Generalized schema-mappings: from termination to tractability</article-title>
          .
          <source>In: Proc. 28th Symposium on Principles of Database Systems (PODS'09)</source>
          . pp.
          <volume>13</volume>
          {
          <fpage>22</fpage>
          .
          <string-name>
            <surname>ACM</surname>
          </string-name>
          (
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <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>Motik</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>Banerjee</surname>
            ,
            <given-names>J.:</given-names>
          </string-name>
          <article-title>RDFox: A highlyscalable RDF store</article-title>
          . In: et al.,
          <string-name>
            <surname>M.A</surname>
          </string-name>
          . (ed.)
          <source>Proc. 14th Int. Semantic Web Conf. (ISWC'15)</source>
          ,
          <source>Part II. LNCS</source>
          , vol.
          <volume>9367</volume>
          , pp.
          <volume>3</volume>
          {
          <fpage>20</fpage>
          . Springer (
          <year>2015</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <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: Proc. 12th Int. Conf. on Principles of Knowledge Representation and Reasoning (KR'10)</source>
          . pp.
          <volume>269</volume>
          {
          <fpage>279</fpage>
          . AAAI Press (
          <year>2010</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <surname>Simanc k</surname>
          </string-name>
          , F.,
          <string-name>
            <surname>Kazakov</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Horrocks</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          :
          <article-title>Consequence-based reasoning beyond Horn ontologies</article-title>
          .
          <source>In: Proc. 22nd Int. Joint Conf. on Artif. Intell. (IJCAI'11) [1]</source>
          , pp.
          <volume>1093</volume>
          {
          <fpage>1098</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15.
          <string-name>
            <surname>Urbani</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Jacobs</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          , Krotzsch, M.:
          <article-title>Column-oriented Datalog materialization for large knowledge graphs</article-title>
          .
          <source>In: Proc. 30th AAAI Conf. on Arti cial Intelligence (AAAI'16)</source>
          . pp.
          <volume>258</volume>
          {
          <fpage>264</fpage>
          . AAAI Press (
          <year>2016</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>