<!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>From EL to Tractable Existential Rules with Complex Role Inclusions</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Michae¨l Thomazo</string-name>
        </contrib>
      </contrib-group>
      <abstract>
        <p>Ontology-based data access consists in using ontologies while querying data. Due to the high complexity of this problem, considering lightweight description logics like EL is especially relevant. Another strand of research is based on existential rules. In this paper, we use this latter formalism in order to cover EL with the same complexity of reasoning while allowing any predicate arity and some cycles on variables. We then add complex role inclusions to enhance expressivity, while staying polynomial in data complexity and generalizing existing results. In particular, we consider transitivity and right/left identity rules, which do not behave well with respect to usual decidability paradigms.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        Ontology-based data access (OBDA) recently received a lot of attention both from
knowledge representation and database communities. This problem can be stated as
follows: given a set of facts and an ontology (the knowledge base), one wants to
evaluate a conjunctive query against this knowledge base. The ontology can be represented
in several ways. Traditional ontology languages are description logics (DLs,[
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]). The
original focus of DL research was the ontology in itself, with problems like
satisfiability or subsumption between concepts. The conjunctive query answering problem has
been considered more recently. Classical DLs appeared to be highly complex for that
reasoning problem, and lightweight description logics (such as EL and DL-Lite) are
thus very relevant.
      </p>
      <p>
        A parallel approach relies on existential rules [
        <xref ref-type="bibr" rid="ref5 ref6">5, 6</xref>
        ], also known as TGDs [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] that
form the basis of Datalog [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]. Existential rules are logical formulas of the form B ! H,
where B and H are conjunctions of atoms and where H might contain existentially
quantified variables. In contrast to DLs, they allow for any predicate arity (which in
particular eases the integration with database systems in which relations are naturally
translated into n-ary predicates) and can express some cyclic dependencies on variables.
On the other hand, neither disjunction nor negation is expressible with existential rules.
Interestingly, the two main families of DLs that have been designed for conjunctive
query answering can be translated into existential rules. The associated ontology-based
conjunctive query answering problem (CQA) is formalized as follows: given a set of
facts (in their logical form an existentially closed conjunction of atoms) F, a set of
rules R, and a conjunctive query Q, check whether F; R j= Q hold. This problem is
undecidable, and numerous restrictions on R have been proposed recently in order to
ensure decidability (see [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ] for a survey), which is usually proven by means of one
of the two following mechanisms, or a combination of both. The first one is forward
chaining: rules are iteratively applied to F, until either no new information is added,
or the query is entailed. If a set of rules is such that for any fact, this process halts in
finite time or generates a set of facts of bounded treewidth (which is defined on a graph
naturally associated with the facts, see e.g. [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]), then the CQA problem is decidable ([
        <xref ref-type="bibr" rid="ref5 ref7">7,
5</xref>
        ]). The second mechanism is backward chaining: a query Q is rewritten into a set of
conjunctive queries (which can be seen as a union of conjunctive queries), such that
Q is entailed by F and R if and only if one its rewritings is entailed by F. The CQA
problem is decidable if the set of rewritings is finite for any query.
      </p>
      <p>
        EL [
        <xref ref-type="bibr" rid="ref11 ref2">2, 11</xref>
        ] is one of the description logics that have a reasonable complexity for
CQA: NP-complete in combined complexity and Ptime-complete in data complexity.
As pointed out before, any EL TBox can be translated into existential rules. However,
the smallest known Datalog decidable class covering such rules is a class for which
CQA complexity is much higher than the original one (2-Exptime-complete in
combined complexity). Finally, it is known that one can add to EL inclusions a special kind
of complex role inclusions while keeping polynomial data complexity [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]. As far as
we know, such results have no counter-part in the rule framework. Moreover, one of
the most used complex role inclusion, namely transitivity, is out of the scope of known
decidability criteria when combined with decidable classes of existential rules.
      </p>
      <p>
        The contribution of this paper is two-fold:
– first, it presents a class of existential rules, namely orientable fr1, that covers EL
ontologies while keeping the same (data or combined) complexity for CQA
(Theorem 1). The proposed class allows for predicates of arbitrary arity and a form of
cyclic dependencies between variables;
– second, it generalizes this class by adding complex role inclusions while staying
polynomial in data complexity (Theorem 2); it allows for left and right identity
rules, which have been proven useful for modeling purposes [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. The syntactic
regularity condition enforced is close from the one imposed in Horn-SROIQ ([
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]).
      </p>
      <p>
        In Section 2, basic definitions about EL and existential rules are recalled. In Section
3, orientable fr1 rules are introduced. Section 4 adapts the algorithm presented in [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ]
and designed for a more general existential rule class, yielding an easier and worst-case
optimal algorithm for orientable fr1 rules. This algorithm is further modified in Section
5 in order to take some complex role inclusions into account. Section 6 concludes the
paper.
      </p>
      <p>In this paper, we will avoid technical definitions and rely on examples, to provide
an intuition about the main techniques.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Preliminaries</title>
      <p>
        We briefly recall the preliminary definitions presented in [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. An atom is of the form
p(t1; : : : ; tk) where p is a predicate with arity k, and the ti are terms, i.e., variable or
constants. A fact is the existential closure of a conjunction of atoms.1 An existential rule
1 Note that this notion generalizes the usual definition of fact by taking existential variables
generated by rules into account.
(or simply a rule when not ambiguous) is a formula R = 8x8y(B[x; y] ! (9zH[y; z]))2
where B = body(R) and H = head(R) are finite conjunctions of atoms, called the body
and the head of R, respectively. The frontier of R, denoted by fr(R), is the set of variables
vars(B) \ vars(H) = y. A rule R is applicable to a fact F if there is a homomorphism
from body(R) to F; the result of the application of R on F w.r.t. is a fact (F; R; ) =
F [ safe(head(R)) where safe is a substitution of head(R), that replaces each x 2 fr(R)
with (x), and each other variable with a “fresh” variable, i.e., not introduced before.
The direct saturation of F with R is defined as (F; R) = F [(R=(H;C); )2 (F;R) safe(C),
where (F; R) = f(R; ) j R = (B; H) 2 R and is a homomorphism from H to Fg. The
k saturation of F with R is denoted by k(F; R) and is such that: 0(F; R) = F, and
for i &gt; 0, i(F; R) = ( i 1(F; R); R). The universal model of F and R is the union of
k(F; R) for k 2 N. Q is entailed by F and R i it is entailed by k(F; R) for some k 2 N
(i.e., by the universal model of F and R).
      </p>
      <p>An EL TBox contains concept inclusions C1 v C2, where C1 and C2 are concepts
built as follows:</p>
      <p>C := &gt; j A j C1 u C2 j 9R:C</p>
      <p>Any EL ontology can be translated into a set of existential rules (which are called
EL-rules), where C1 v C2 is translated into (C1)(x) ! (C2)(x), with inductively
built as explained Table 1. The smallest known decidable class covering rules needed
for the translation of an arbitrary EL TBox is the set of frontier-1 (fr1) rules, i.e., the
set of rules whose body and head share exactly one variable.
However, the combined complexity of reasoning with fr1 rules and EL is quite di erent:
2-Exptime-complete in the former case, and NP-complete in the latter – though both are
in Ptime for data complexity. In this section, we present a class of rules that covers EL
while keeping the same combined and data complexities.</p>
      <p>EL-rules have the following idiosyncrasy: they add information “below” the
frontier of the rule, as pictured in Figure 1. Any EL-rule mapping its frontier to x1 will map
its body to dashed atoms, and will create atoms that are also below x1. This is due to the
fact that information about a term “above” x1 is not even expressible, since no inverse
role is possible. Orientable fr1 rules generalize this idea.</p>
      <p>We define for every predicate r of arity k a strict total order on its positions r1; : : : ; rk.
We denote by &lt; the union of all these relations. Given such a strict partial order, we can
associate a directed graph with each set of atoms.
2 We can now omit quantifiers since there is no ambiguity.</p>
      <p>x2
x1
x3</p>
      <p>y1</p>
      <sec id="sec-2-1">
        <title>Definition 1 (&lt;-graph associated with a set of atoms). Let A be a set of atoms. The</title>
        <p>&lt;-graph associated with A is the directed graph defined as follows:
– to each term x appearing in A, we assign a vertex vx,
– for any x; y such that x , y and x and y appear in the same atom with position
px &lt; py, there is an arc from vx to vy (note that no loop can occur).</p>
        <p>Intuitively, a rule is oriented for an order &lt; if the atoms needed to trigger it as well
as the atoms created by it are situated both in the same right direction according to &lt;.
Definition 2 (&lt;-oriented fr1 rule). Let R be a rule and &lt; a strict total order on the
position of its predicates. R is &lt;-oriented fr1 if it is fr1 and if the &lt;-graph associated
with body(R) [ head(R) is a directed acyclic graph such that there is a path from fr(R)
to any other node.</p>
        <p>Given this notion of rule orientation, we naturally define the notion of orientable fr1
set of rules.</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>Definition 3 (Orientable fr1 set of rules). A set of rules R is orientable fr1 (or simply</title>
      <p>orientable when not ambiguous) if there exists an order &lt; such that every rule of R is
&lt;-oriented fr1.</p>
      <p>Example 1 (Orientable fr1 set of rules). Let us take R = fr(x; y) ^ p(y) ! q(x; z; t) ^
s(z; t); q(x; y; z) ^ s(y; z) ! r(x; t) ^ r(t; t) ^ p(t)g. By taking r1 &lt; r2; s1 &lt; s2 and
q1 &lt; q2 &lt; q3, we can easily check that this set of rules is &lt;-oriented. Note that these
rules are not translatable in EL because of the predicate of arity 3 and of cycles.
Property 1 (Recognizability problem) The problem of deciding whether a set of rules
R is orientable is NP-complete.</p>
      <p>The hardness result comes from a reduction of 3-SAT. NP-hardness of the
recognizability problem might impede the practical applicability of following results. However,
this complexity remains quite small compared to the combined complexity of CQA
with a lot of known classes, and, more importantly, even strongly restricted sets of
orientable rules are still of interest. Indeed, the next property shows that rules translating
EL ontologies are very naturally oriented (with R1 &lt; R2 for any role R).</p>
    </sec>
    <sec id="sec-4">
      <title>Property 2 (Generalization of EL) Any set of EL-rules is orientable.</title>
      <p>In the next examples, we assume for all predicate p that pi &lt; p j if and only if i &lt; j.</p>
    </sec>
    <sec id="sec-5">
      <title>An Algorithm for CQA with Orientable Rules</title>
      <p>
        In this section, we present a forward chaining algorithm which is a simplified version of
the algorithm introduced in [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ] for a class of rules called greedy bounded treewidth set,
which includes fr1. While performing forward chaining, a greedy tree decomposition
(of bounded width) of the currently generated fact is maintained. We call bags the nodes
of this tree, which is built as follows: the root of this tree contains all atoms in F, and
each time a rule with frontier f is applied by means of a homomorphism , we create a
new bag that contains the newly generated atoms, and choose as its pBarent the root of
the tree if ( f ) is a constant or a variable of F, otherwise the bag in which the variable
( f ) has been generated.
      </p>
      <p>Example 2 (Greedy tree decomposition). Let F = fp(a); q(a)g and R = fR1 : p(x) !
r(x; y) ^ q(y); R2 : q(x) ! t(x; y) ^ p(y)g. We show the greedy tree decomposition of
4(F; R) in Figure 2.</p>
      <p>R1</p>
      <p>
        Maintaining this tree decomposition is not su cient by itself to ensure the
termination of the algorithm, since the universal model can be infinite. The main notion used in
[
        <xref ref-type="bibr" rid="ref13">13</xref>
        ] to ensure the finiteness of the built tree is the equivalence between bags: two bags
B and B0 are said equivalent when every fact that will eventually be mapped “under
B” (i.e., using at least one term generated below B) can be mapped similarly (i.e., up
to a bijection between terms of B and B0)“under B0”, and conversely. If two bags are
equivalent, it is only necessary to apply rules below one of them, and the other one will
be said “blocked”. When no more rule is applicable on a non-blocked bag, we obtain
the full blocked tree.
      </p>
      <p>This equivalence as well as rule applications are computed in the original algorithm
by means of patterns, that are attached to each bag. The complexity of the original
algorithm is due to the high number of relevant patterns. In the remaining of this section,
we explain how to compute the equivalence relation as well as new rule applications
without using patterns – and thus we do not present patterns here.</p>
      <p>First, we can simplify equivalence between bags: with orientable fr1 rules, two bags
are equivalent if they have been created by the same rule, as stated by the following
property.</p>
      <p>Property 3 Let R be a set of orientable fr1 rules, R 2 R; R0 2 R, and F be a fact. Let
B1 and B2 be two bags of T (the tree decomposition of the universal model of F and
R) created by the same rule R. Let z be an existential variable of R, z1 and z2 be the
corresponding fresh variables in B1 and B2. B1 has a child created by a rule application
of R0 mapping fr(R0) to z1 if and only if B2 has a child created by a rule application of
R0 mapping fr(R0) to z2.</p>
      <p>Example 2 (contd.). A full blocked tree of F and R is represented in Figure 3. L2 is
equivalent to D1, D2 to L1; L2 and D2 are blocked and no new rule application can be
done on B0, L1 or D1 – this is checked by existence of a -homomorphism, see below.</p>
      <p>
        Second, we check rule applicability by means of -homomorphism. This tool is
introduced in [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ] to evaluate a conjunctive query. Suppose that, at some step of the
algorithm, we have generated a blocked tree T . We want to check if there is a
homomorphism from Q to the possibly infinite fact encoded by T . This fact can be obtained
from T by a possibly infinite sequence of completions, that iteratively copies under
blocked bags the atoms found under their equivalent bag (up to variable renaming).
Such a homomorphism induces a partition of Q (two atoms are in the same set if they
are mapped to the same – initial or added – bag) and a tree structure for this partition
(mimicking the tree structure of the image bags). Finally, [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ] shows that if there
exists such a homomorphism, there exists one requiring only a completion sequence of
bounded length. To encode the homomorphism, we thus only need the tree
decomposition of Q, homomorphisms from each subset of Q to a bag of T , and the required
bounded number of completions: this is the structure called a -homomorphism.
      </p>
      <p>R1
Example 3 ( -homomorphism). Let Q = fr(z; z1); t(z1; z2); r(z2; z3); t(z3; z4); t(z; z01)g. Let
= f(z; a); (z1; x1); (z2; x2); (z3; x3)(z4; x4); (z01; y1)g from Q to the fact associated with the
tree drawn in Figure 2. The corresponding -homomorphism is pictured in Figure 4.</p>
      <p>;
r(z; z1)
t(z1; z2)
r(z2; z3)
t(z3; z4)
t(z; z01)</p>
      <p>Q6 ! D1</p>
      <p>Given a tree decomposition of Q and homomorphisms from bags of this
decomposition to corresponding bags of T (as in Figure 4), we check if it is actually a
homomorphism. We check for any pair of adjacent nodes that the associated mappings
are compatible, i.e., the image of any term is unique. In the given example, for Q1,
f(z; a); (z1; x1)g is a homomorphism from r(z; z1) to r(a; x1); q(x1), which is consistent
with Q0 since z is mapped to a in both cases. An interesting consistency check occurs
for Q2 and Q3: since Q2 has been mapped to a bag having no child, z2 has image x2
when considering Q2, and y1 when considering Q3. However, this is consistent since
when copying D2 under L2, we rename y1 by x2.</p>
      <p>
        Theorem 1. The conjunctive query answering problem with a set of orientable fr1 rules
is Ptime-complete for data complexity and NP-complete for combined complexity.
Proof. The Ptime membership comes from similar result for fr1 rules in [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ]. The
NPmembership is due to the fact that the structure we build is of polynomial size in F and
R. The hardness holds because it generalizes EL.
      </p>
      <p>
        It is interesting to note that our algorithm, when further restricted to EL ontologies,
becomes similar to the algorithm presented in [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]. The main di erence is that, while
our algorithm maintains equivalence classes, the algorithm in [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] merges equivalent
bags. These merges result in the finiteness of the process, but also in the loss of
homomorphism soundness with respect to first-order semantics. Soundness is regained by
modifying homomorphism check, in a way both based on the orientation of EL and on
its tree-model property.
5
      </p>
    </sec>
    <sec id="sec-6">
      <title>Adding Complex Role Inclusions</title>
      <p>Complex role inclusions are arguably useful in practice. However, this kind of rules
does not behave well with respect to both forward chaining and backward chaining, as
illustrated with Example 4.</p>
      <p>Example 4. Let R = fp(x) ! r(x; y) ^ p(y); r(x; y) ^ r(y; z) ! r(x; z)g. The query Q =
fq(x); r(x; y); q(y)g is not rewritable w.r.t. R into a finite union of conjunctive queries,
and R does not generate facts of bounded treewidth either: a clique of arbitrary size can
be built by performing forward chaining on the fact p(a).</p>
      <p>
        In order to stay as close as possible to the algorithm of previous section, we split any
fact generated during the chase into two parts: atoms generated by fr1 rules (the
backbone), and those generated by role inclusions. The first part is of bounded treewidth,
and can be managed in the same way as before. The second part will be dealt with in
a di erent fashion: we restrict the set of allowed role inclusions in order to deal with
them by means of automata, as it was already done in [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]. In the following, we
define an abstract condition of regularity for so-called oriented join rules, and an easily
checkable syntactic condition that generalizes existing results. We then illustrate the
algorithm with Example 5.
      </p>
      <p>Definition 4 (Join rule). A join rule is a rule of the following shape: r(x; y) ^ s(y; z) !
t(x; z). Transitivity rules are the case where r = s = t, left-identity rules where r = t.
Definition 5 (Backbone). Let F be a fact, R = Ro [ R j where Ro is a set of fr1 rules
and R j is a set of join rules. The backbone associated with F and R is the subset of
atoms of the universal model of F and R that have been created by a fr1 rule.</p>
      <p>The backbone is of bounded treewidth, and a tree decomposition can be built
greedily. In order to have a counter-part of Property 3 on bag equivalence, we consider only
orientable join rules.</p>
      <p>Definition 6 (&lt;-oriented join rules). Let R be the following join rule: r(x; y)^s(y; z) !
t(x; z). R is a &lt;-oriented join rule if:
– either r1 &lt; r2; s1 &lt; s2 and t1 &lt; t2,
– or r1 &gt; r2; s1 &gt; s2 and t1 &gt; t2.</p>
      <p>The following property allows us to keep a trivial equivalence relation on bags.
Indeed, it ensures that the criterion used in the previous section to check equivalence
between bags remains valid when adding &lt;-oriented join rules to our framework.
Property 4 Let Ro be a set of &lt;-oriented fr1 rules, R j be a set of &lt;-oriented join rules
(for the same order &lt;), R; R0 2 Ro, F be a fact. Let B1 and B2 two bags of T (the greedy
tree decomposition of the backbone associated with F and Ro [ R j) created by the same
rule R 2 Ro. Let z be an existential variable of R, z1 and z2 be the corresponding fresh
variables of B1 and B2. B1 has a child created by a rule application of R0 mapping fr(R0)
to z1 if and only if B2 has a child created by a rule application of R0 mapping fr(R0) to
z2.</p>
      <p>Having a finite representation of the backbone, we use regularity in order to manage
join rules. Given a fact F and x and y two terms of F, we denote by PF (x; y) the set of
words that describe a finite elementary path from x to y. For instance, in the query Q of
Figure 4, PF (z; z3) = frtrg.</p>
      <sec id="sec-6-1">
        <title>Definition 7 (Regularity of a set of join rules). Let P be a set of binary predicates,</title>
        <p>and Rc be a set of join rules over P. Rc is regular if for any predicate p 2 P, there exists
a regular language Lp such that, for any fact F , for any x; y 2 terms(F), the following
holds:</p>
        <p>F; Rc j= p(x; y) , PF (x; y) \ Lp , ;</p>
        <p>Similarly to a -homomorphism, a j-homomorphism is a labeled tree structure,
together with a mapping from its bags to the bags of the full blocked tree. In the
homomorphism case, the consistency check consists only in checking that each term
of the query has a well-defined image. In the j-homomorphism case, we also have to
check that atoms generated by complex role inclusions can be e ectively generated. Let
us consider Example 5 and Figure 5. In order to have w(a; x) entailed by the universal
model, not only should x be mapped to t1 in a bag B equivalent to B3, but there should
also be a path from a to the image of the frontier of the rule creating B, such that Aw
(Figure 5) ends in s3 when reading the word associated with that path. It is worth to
note that this is not the case for B3 and B5, but it holds for B7, even though B3; B5 and
B7 are equivalent. We thus add this information about states in the j-homomorphism.</p>
        <p>Compared to the orientable fr1 case, the size of a completion needed to map a query
can be bigger up to a factor which is exponential in the query and in the automaton used
to recognize regular predicates. This does not increase the data complexity of CQA
with the union of a &lt;-oriented fr1 set of rules and a &lt;-oriented and regular set of join
rules, which remains Ptime-complete. However further work is required to determine
the combined complexity of the problem.</p>
        <p>Example 5. Let R = Ro [ R j with Ro = fp(x) ! r(x; y) ^ r(y; z) ^ q(z) ^ p(z); q(x) !
w(x; y)g and R j = fr(x; y) ^ r(y; z) ! s(x; z); s(x; y) ^ r(y; z) ! t(x; z); t(x; y) ^ w(y; z) !
w(x; z)g. We take a fact F = fp(a)g and a query Q = fw(a; x)g. The regular expressions
associated with r; s; t and w are r, rr + s, rrr + sr + t, and (rrr + sr + t) w.</p>
        <p>There exists a homomorphism from Q to the completion represented in Figure 6,
mapping x to t3. We represent this homomorphism by the structure represented Figure 7.
s0</p>
        <p>s
r s1
t
r s2
r s3</p>
        <p>w s4</p>
        <p>
          Last, we present a syntactic condition that ensures that a set of join rules is regular.
In particular, this condition generalizes the condition proposed in [
          <xref ref-type="bibr" rid="ref10">10</xref>
          ].
        </p>
      </sec>
      <sec id="sec-6-2">
        <title>Definition 8 (Stratified set of join rules). A set of join rules is stratified if the directed</title>
        <p>graph G built as follows is acyclic. For every predicate p, there exists a vertex vp in V.
There is an arc from vp to vq where p , q if there exists a rule r(x; y) ^ s(y; z) ! t(x; z),
where p = r or p = s and q = t.</p>
        <p>B1
B2
B4</p>
        <p>p(a)
r(a; y1); r(y1; z1); q(z1); p(z1)
r(z1; y2); r(y2; z2); q(z2); p(z2)
r(z2; y2); r(y3; z3); q(z3); p(z3)
w(z1; t1)
w(z2; t2)
w(z3; t3)</p>
        <p>B3
B5
B7</p>
        <p>Proof (sketch). By induction on the structure of G. A predicate p whose vertex does not
have an incoming arc is associated with the regular expression p. For any q, if we have
a regular expression for any p such that (vp; vq) is an arc of G, we can build one for q.
Theorem 2. The CQA problem with rules being the union of of &lt;-oriented fr1 rules
and &lt;-oriented regular join rules (for the same order &lt;) is Ptime in data complexity.
6</p>
      </sec>
    </sec>
    <sec id="sec-7">
      <title>Conclusion</title>
      <p>
        In this preliminary work, we identified a class of existential rules, namely fr1 orientable
rules, covering EL ontologies while keeping the same complexity for CQA. Rules allow
to easily use predicates of any arity and some cycles between variables. We exploited
the simplicity of orientable fr1 rules to simplify the very recent algorithm from [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ].
We then investigated how to add some expressive power that could be useful in
practice, while staying polynomial in data complexity: we showed how to add transitivity
axioms and left- and right-identity rules. Although adding these rules does not fulfill the
usual decidability criteria, we adapted the algorithm for orientable rules by using finite
automata. Some follow-up naturally come to mind: can we generalize our approach to
cover Horn-SROIQ? What is the combined complexity of CQA with the considered
rules? What are interesting classes of rules with predicate of any arity that could be
added to this basis, while staying polynomial in data complexity? How does the
algorithm behave in practice? Moreover, compared to the algorithm presented in [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ], the
representation of the universal model uses more space, since equivalent nodes are not
merged. Can we adapt our algorithm in order to reduce the space requirements?
      </p>
    </sec>
    <sec id="sec-8">
      <title>Aknowledgment</title>
      <p>The author thanks the anonymous reviewers for their useful and constructive
comments.</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
          <string-name>
            <surname>Wesley</surname>
          </string-name>
          (
          <year>1994</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Baader</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          :
          <article-title>Terminological cycles in a description logic with existential restrictions</article-title>
          .
          <source>In: IJCAI</source>
          . pp.
          <fpage>325</fpage>
          -
          <lpage>330</lpage>
          (
          <year>2003</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Baader</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Brandt</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lutz</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          :
          <article-title>Pushing the EL envelope</article-title>
          . In: Kaelbling,
          <string-name>
            <given-names>L.</given-names>
            ,
            <surname>Sa</surname>
          </string-name>
          <string-name>
            <surname>otti</surname>
          </string-name>
          ,
          <source>A. (eds.) Proc. 19th Int. Joint Conf. on Artificial Intelligence (IJCAI'05)</source>
          . pp.
          <fpage>364</fpage>
          -
          <lpage>369</lpage>
          . Professional Book Center (
          <year>2005</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Baader</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Calvanese</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>McGuinness</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nardi</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Patel-Schneider</surname>
            ,
            <given-names>P</given-names>
          </string-name>
          . (eds.):
          <article-title>The Description Logic Handbook: Theory, Implementation, and Applications</article-title>
          . Cambridge University Press, second edn. (
          <year>2007</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Baget</surname>
            ,
            <given-names>J.F.</given-names>
          </string-name>
          , Lecle`re,
          <string-name>
            <given-names>M.</given-names>
            ,
            <surname>Mugnier</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.L.</given-names>
            ,
            <surname>Salvat</surname>
          </string-name>
          , E.:
          <article-title>Extending decidable cases for rules with existential variables</article-title>
          .
          <source>In: IJCAI</source>
          (
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Baget</surname>
            ,
            <given-names>J.F.</given-names>
          </string-name>
          , Lecle`re,
          <string-name>
            <given-names>M.</given-names>
            ,
            <surname>Mugnier</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.L.</given-names>
            ,
            <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>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7. Cal`ı,
          <string-name>
            <given-names>A.</given-names>
            ,
            <surname>Gottlob</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            ,
            <surname>Kifer</surname>
          </string-name>
          ,
          <string-name>
            <surname>M.</surname>
          </string-name>
          :
          <article-title>Taming the infinite chase: Query answering under expressive relational constraints</article-title>
          .
          <source>In: Proceedings of the Eleventh International Conference on the Principles of Knowledge Representation and Reasoning (KR</source>
          <year>2008</year>
          ), Sydney, Australia. pp.
          <fpage>70</fpage>
          -
          <lpage>80</lpage>
          (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8. Cal`ı,
          <string-name>
            <given-names>A.</given-names>
            ,
            <surname>Gottlob</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            ,
            <surname>Lukasiewicz</surname>
          </string-name>
          ,
          <string-name>
            <surname>T.</surname>
          </string-name>
          :
          <article-title>A general datalog-based framework for tractable query answering over ontologies</article-title>
          .
          <source>In: Proceedings of the 28th symposium on Principles of database systems (PODS'09)</source>
          . pp.
          <fpage>77</fpage>
          -
          <lpage>86</lpage>
          . ACM, New York, NY, USA (
          <year>2009</year>
          ), http://doi.acm.
          <source>org/10</source>
          .1145/1559795.1559809
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <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: KR</source>
          . pp.
          <fpage>57</fpage>
          -
          <lpage>67</lpage>
          (
          <year>2006</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10. Kro¨tzsch,
          <string-name>
            <given-names>M.</given-names>
            ,
            <surname>Rudolph</surname>
          </string-name>
          ,
          <string-name>
            <surname>S.</surname>
          </string-name>
          :
          <article-title>Conjunctive queries for EL with role composition</article-title>
          .
          <source>In: DL</source>
          . vol.
          <volume>250</volume>
          (
          <year>2007</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <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>
          :
          <article-title>Conjunctive query answering in the description logic EL using a relational database system</article-title>
          .
          <source>In: IJCAI</source>
          (
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Mugnier</surname>
            ,
            <given-names>M.L.</given-names>
          </string-name>
          :
          <article-title>Ontological query answering with existential rules</article-title>
          .
          <source>In: RR</source>
          . pp.
          <fpage>2</fpage>
          -
          <lpage>23</lpage>
          (
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Thomazo</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Baget</surname>
            ,
            <given-names>J.F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mugnier</surname>
            ,
            <given-names>M.L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rudolph</surname>
            ,
            <given-names>S.:</given-names>
          </string-name>
          <article-title>A generic querying algorithm for greedy sets of existential rules</article-title>
          .
          <source>In: KR</source>
          ((to appear)
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>