<!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>Querying OWL 2 QL ontologies under the SPARQL Metamodeling Semantics Entailment Regime</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Gianluca Cima</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Giuseppe De Giacomo</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Maurizio Lenzerini</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Antonella Poggi</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Sapienza Universita` di Roma</institution>
        </aff>
      </contrib-group>
      <abstract>
        <p>OWL 2 QL is the profile of OWL 2 targeted to Ontology-Based Data Access (OBDA) scenarios, where large amount of data are to be accessed, and thus answering conjunctive queries over data is the main task. However, this task is quite restrained wrt the classical KR Ask-and-Tell framework based on querying the whole theory, not only facts (data). If we use SPARQL as query language, we get much closer to this ideal. Indeed, SPARQL queries over OWL 2 QL, under the so-called Direct Semantics Entailment Regime, may comprise any assertion expressible in the language, i.e., both ABox atoms and TBox atoms, including inequalities expressed by means of DifferentIndividuals. Nevertheless this regime is hampered by the assumption that variables in queries need to be typed, meaning that the same variable cannot occur in positions of different types, e.g., both in class and individual position (punning). In this paper we dismiss this limiting assumption by resorting to a recent meta modeling semantics and show that query answering in the resulting entailment regime is polynomially compilable into Datalog (and hence PTIME wrt both TBox and ABox).</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>Introduction
DL-Lite is a family of Description Logics specifically designed for achieving
tractability in answering conjunctive queries (CQs) expressed over ontologies. In particular,
when the ontology is expressed in one of the logics of the family, i.e., DL-LiteR, query
answering can be reduced to standard evaluation of first-order queries over a database,
and can therefore make use of SQL engines. By virtue of these characteristics, DL-LiteR
is at basis of OWL 2 QL, the OWL 2 profile especially designed for Ontology-Based Data
Access (OBDA) applications, where the aim is to use an ontology to access a typically
big amount of data residing in external data sources.</p>
      <p>
        SPARQL is the de-facto standard language for expressing queries over OWL 2
ontologies. The key form of SPARQL query is the so-called basic graph pattern, that is
a conjunction of atoms, where each atom has the form of an axiom expressible in the
ontology. So, any axiom that can appear in the ontology can also appear in the
conjunctive query pattern corresponding to the SPARQL query. This is coherent with the
classical knowledge representation Ask-and-Tell framework [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ], which is based on
“ask anything that can be told to a knowledge base”. Notice that when the Ask-and-Tell
framework is specialized to OBDA, it reflects the idea of querying whole OWL 2 QL
theories, specifying patterns spanning both through the TBox (the intensional
knowledge represented in the ontology), and the ABox (the facts at the extensional level of
the ontology), with no limitation on the use of variables, and therefore with a distinct
metamodeling and metaquerying flavor, see, e.g., [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ].
      </p>
      <p>
        Starting from the seminal work [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ], there has been a huge amount of work aiming at
designing optimized algorithms for query answering in OBDA, and developing systems
implementing such algorithms. So, it is natural to ask whether, after such body of work,
the problem of querying OWL 2 QL theories is solved. Surprisingly, the answer to this
question is negative, for the following reasons.
      </p>
      <p>First, the queries studied in the great majority of the works on OBDA contain only
ABox atoms. In other words, the CQs expressible in the current OBDA systems are
able essentially to specify patterns in the data, and retrieve individual objects satisfying
such patterns. Obviously, the intensional knowledge represented in the ontology (TBox
axioms) is taken into account when answering the query, but in most of the results, the
assumption is that TBox atoms do not appear in queries.</p>
      <p>
        Second, the syntax and the semantics of SPARQL conjunctive queries over
OWL 2 QL ontologies are defined by means of the so-called Direct Semantics Entailment
Regime (DSER) [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], which interprets the ontology under the Direct Semantics (DS), i.e.,
as a first-order theory, and defines the solutions to a query as the set of tuples of IRIs
occurring in the ontology that, once substituted to the variables within the query, make
the resulting set of axioms logically implied by the ontology. The fact that DS interprets
the ontology as a first order theory has an important implication: although the syntactic
rules for defining an ontology allow punning, that is the capability of using the same
name in positions of different type (i.e., in an object and in a predicate position, or in
a class and in a property position), the semantics imposes that occurrences of the same
name in different positions are treated as is they were occurrences of different names. A
direct consequence of this choice is that the use of variables in the queries is limited by
the so-called typing constraint, by which no variable can appear both in object position
(i.e., as an argument of a class or of a property), and in predicate position (i.e., as class
or property). The result is that we cannot join variables denoting classes with those
denoting individuals, thus preventing the specification of interesting queries related to
metamodeling, e.g., the one asking for all classes that are instances of another class [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ].
      </p>
      <p>Third, although OWL 2 QL allows specifying inequalities between IRIs, by means
of axioms of the form DifferentIndividuals(e1 e2), imposing that e1 and e2
denote distinct objects of the domain, the inequality predicate is completely dismissed
in the work on query answering over OWL 2 QL ontologies. Notably, it is a folk theorem
that extending the approach to cover the inequality predicate is completely trivial, but
we argue in this paper that this is not the case in general, and in particular when querying
whole theories. Indeed, inequalities between ontology entities can be logically implied
by an OWL 2 QL ontology, as shown in the following simple example. Consider the
ontology consisting of the axioms:</p>
      <p>ClassAssertion(:Male :p).</p>
      <p>ClassAssertion(:Male :peter).</p>
      <p>ClassAssertion(:Female :petra).</p>
      <p>SubClassOf(:Female :Person).</p>
      <p>SubClassOf(:Male :Person).</p>
      <p>DisjointClasses(:Female :Male)
and suppose we want to retrieve all classes that contain at least two distinct instances,
by means of the SPARQL query:
select $x where fClassAssertion($x $y).ClassAssertion($x $z).</p>
      <p>DifferentIndividuals($y $z)g
It is easy to see that, since :Male and :Female are disjoint, :petra and :peter
denote distinct domain objects in every model. Hence, the answer to the query is
f:Person,owl:Thingg. This clearly shows that the presence of inequalities within
queries requires forms of reasoning taking into account the whole ontology.</p>
      <p>
        The goal of this paper is to present the first approach to querying OWL 2 QL
theories, which unleashes the potentiality of the metamodeling characteristics inherent
in OWL 2 QL, and of the metaquerying capabilities of SPARQL. To this aim we
introduce a new entailment regime, called Metamodeling Semantics Entailment Regime
(MSER), which generalizes DSER by (i) adopting the Metamodeling Semantics (MS)
for OWL 2 QL, introduced in [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ], and (ii) relaxing the typing constraint of DSER, thus
allowing the same variable to occur in positions of different type, e.g., in object and
class position.
      </p>
      <p>The main contribution of this paper is to show that both checking the consistency
of an OWL 2 QL ontology and answering SPARQL queries over an OWL 2 QL ontology
under MSER are polynomially compilable into Datalog (and hence PTIME wrt both
TBox and ABox). It is easy to verify that querying OWL 2 QL ontologies with SPARQL
under DSER (but without inequality axioms) can be polynomially reduced to evaluating
a Datalog program. Our result shows that the same is true for the more general problem
of querying OWL 2 QL theories under MSER, with inequalities. Moreover, our Datalog
reduction provides the first algorithm for querying OWL 2 QL theories with SPARQL
basic graph patterns without any restriction.</p>
      <p>
        Related work. Related to our work are results on query answering in DL-LiteR [
        <xref ref-type="bibr" rid="ref1 ref2 ref6">2, 1,
6</xref>
        ], i.e., the logic underpinning OWL 2 QL, and, in particular, results of [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] showing that
answering conjunctive queries with inequalities in DL-LiteR is in general undecidable.
We point out, however, that such a negative result is due to the fact that existential
variables and union are assigned the standard logical meaning, which is not the case
in SPARQL. Few recent works [
        <xref ref-type="bibr" rid="ref4 ref7 ref8 ref9">7, 4, 9, 8</xref>
        ] have investigated the problem of
answering SPARQL queries over OWL 2 QL theories. However, none of such works considers
queries possibly containing inequalities. Moreover, all such works interpret ontologies
according to DS and thus do not consider queries that violate the typing constraint, with
the exception of [
        <xref ref-type="bibr" rid="ref8 ref9">9, 8</xref>
        ], which consider the problem of querying OWL 2 QL theories
comprising metaclasses and metaproperties, as allowed by the OWL 2 standard, and, hence,
to overcome the limitations of DS, introduce and use MS1. In particular, their study
show that the problem of answering untyped queries is in general intractable (in data
complexity), even in the absence of inequalities. However, they considered a variant of
MSER, that assigns to existential variables and union the classical logical meaning.
1 In fact, in [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ], the authors use the name Higher Order Semantics (HOS) to denote what we
call here Metamodeling Semantics. We prefer the latter because, even though the proposed
semantic structure has a second-order flavor, its expressive power does not exceed first-order.
OWL 2 QL. Ontology entities, such as individuals, classes, object properties, etc., are
denoted by expressions. Atomic expressions correspond to element in the ontology
vocabulary. The vocabulary VO of an ontology O is defined as the tuple (VN , VC ,
VOP , VDP , VDT , LQL), where (i) VN is the set of IRIs occurring in O extended
with the OWL 2 QL reserved vocabulary, (ii) VC (resp., VOP , VDP ), is the subset of
VN consisting of the IRIs that appear in class (resp., object property, data property)
positions in O, or are reserved IRIs (Internationalized Resource Identifiers) denoting
classes (resp., object properties, data properties) (iii) VDT is a subset of the datatypes
in OWL 2 QL, and (iv) LQL is the set of literals occurring in some logical axiom of
O. Complex expressions are built on the basis of VO. We denote by ExpO the finite
set of expressions that can be built on VO. Thus, for example, if e 2 VOP , then
ObjectInverseOf(e) and ObjectSomeValuesFrom(e1 e2) are complex
expressions in ExpO. For the sake of simplicity, in the following, we use the Description
Logic (DL) syntax for denoting OWL 2 QL expressions. For example, we respectively
denote by e and 9e1.e2 the two above mentioned expressions. Also, we denote by
&gt;C ; &gt;R; &gt;D; ?C ; ?R; ?D, respectively, the OWL 2 QL reserved IRIs: owl:Thing,
owl:topObjectProperty,owl:topDataProperty,owl:Nothing,owl:bottomObjectProperty,owl:bottomDataProperty.
      </p>
      <p>
        An OWL 2 QL theory, or OWL 2 QL ontology (or simply ontology in the following)
is a finite set of OWL 2 QL (logical) axioms. As we do for expressions, we write axioms
using the DL syntax, which we modify as described next. Inclusions axioms are written
as e1 v e2, where the subscript * is C, R, A, or D, depending on whether the inclusion
is an inclusion between classes, object properties, data properties, or datatypes,
respectively. Similarly, disjointness axioms are written as e1 v :e2. Also, axioms asserting
that an object property e is reflexive (irreflexive), are written ref(e), (resp., irr(e)).
We classify logical axioms into (i) positive TBox axioms, i.e., inclusion and reflexivity
axioms, (ii) negative TBox axioms, i.e., disjointness and irreflexivity axioms, and (iii)
ABox axioms, i.e., axioms of the forms C(a), R(a; b), A(a; b), a 6= b. Axioms not in
the above list can be expressed by appropriate combinations of the ones listed.
OWL 2 Metamodeling Semantics The OWL 2 Metamodeling Semantics (MS) was
introduced in [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] and is based on the notion of interpretation structure, which plays the
same role as the “interpretation domain” in classical first-order logic. Specifically, an
interpretation structure is a tuple = h o; v; I ; E ; R; A; T i where:
– o, the object domain, and v, the value domain are two disjoint nonempty sets,
forming the interpretation domain = o [ v;
– E : o ! P( o) is a partial function;
– R : o ! P( o o) is a partial function;
– A : o ! P( o v) is a partial function;
– T : o ! P( v) is a partial function;
– I : o ! fT; Fg is a total function s.t. for each d 2 o, if E ; R; A; T are
undefined for d, then dI = T.
      </p>
      <p>
        Thus, the interpretation structure is not simply a set, but a mathematical
representation of a world made up by elements which have complex inter-relationships, where
such inter-relationships are represented by the various functions constituting . Also,
an interpretation I for O is a pair, h ; Ioi, where is an interpretation structure and Io
is the interpretation function for I, i.e., a function that maps every expression in ExpO
into an object in o, and every literal in LQL into a value in v, according to an
appropriate set of conditions. For example, one condition imposes that ?C is interpreted as
an object associated through E to an empty set. As another example, if an entity e is
interpreted as an object regarded as a relation Re, then the expression e is interpreted
as the inverse of Re. For the full list of conditions, please refer to [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]. Finally, to define
the semantics of logical axioms, MS resorts to the usual notion of satisfaction of an
axiom with respect to an interpretation I. Thus, for example, I j= (e1 vC e2) if (e1Io )E
and (e2Io )E are defined, and (e1Io )E (e2Io )E where e1; e2 are expressions. As another
notable example, I j= e1 6= e2 if e1Io 6= e2Io .
      </p>
      <p>SPARQL. We concentrate on conjunctive queries (simply called queries in the
following), expressed using SPARQL. Let O be an ontology and V a set of variables. We start
by introducing the notion of query atom. A query atom over O (simply called atom in
the following) has the same form of an axiom with the difference that its arguments
belong to the set of terms over O and V. The set of terms, denoted ExpVO, is defined
similarly to ExpO, with the difference that its base set is VNO [ V, rather than simply
VNO. Note that, similarly to axioms, atoms can be classified into TBox atoms and ABox
atoms.</p>
      <p>A conjunctive query q over an ontology is an expression of the form
select x1 : : : xn where fBg
(1)
where n 1, x1; : : : ; xn are variables, called distinguished variables, n is the
arity of the query, and B, called body of the conjunctive query q and denoted by
body(q), is a non-empty conjunction of atoms. In the following we will use the
notation q(x; y) : x B, or simply q(x; y), to denote a query of the form above, where
x = (x1; : : : ; xn) and y is the tuple of variables that occur in B and do not belong to
x. Note that in SPARQL jargon, a conjunction of atoms is a basic graph pattern, i.e.,
a conjunction of RDF triples involving variables. However, for the sake of clarity and
without loss of generality, instead of using the RDF syntax, we use here the DL syntax.</p>
      <p>Queries are interpreted by relying on the notion of SPARQL entailment regime,
as defined in the SPARQL 1.1. W3C standard specification2. Specifically, a SPARQL
entailment regime defines (i) the syntax and the semantics of axioms constituting the
queried ontology, (ii) the syntax of conjunctive queries considered legal for the regime,
and (iii) the semantics of such queries, i.e., what are the answers to a query. The most
typical SPARQL Entailment Regime for OWL 2 QL ontologies is the Direct Semantics
Entalment Regime (DSER). However, based on its limitations discussed in the
introduction, we introduce here a new entailment regime, called Metamodeling Semantics
Entailment Regime (MSER), which generalizes DSER as described in the following.
As for (i), MSER assumes to deal with OWL 2 QL ontologies interpreted according to
MS, which generalizes the Direct Semantics adopted by DSER. As for (ii), it
considers as legal the whole set of queries defined above, while DSER restricts to queries
where variables can occur only in positions of the same type. Thus, for example, in
2 www.w3.org/TR/sparql11-entailment/
DSER, a variable occurring in object position cannot also occur in class position (e.g.
in vC axioms). As for (iii), MSER defines the answers to a query similarly to DSER,
except that it uses MS for logical entailment. Specifically, given a tuple of variables
z = (z1; : : : ; zn), a tuple of IRIs w = (w1; : : : ; wn), and a conjunction of atoms B,
we denote by [z ! w](B) the conjunction of atoms obtained from B by substituting
each zi in z with wi in w, for i 2 f1; : : : ; ng. Now, let O be an ontology and q(x; y) a
conjunctive query. An n-tuple of IRIs t is an answer to q(x; y) over O under MSER
if there exists an m-tuple of IRIs v such that</p>
      <p>O j= [(x; y) ! (t; v)](body(q)):
Also, Ans(q; O) denotes the set of answers to q over O under MSER. It is worth noting
that, in MSER as in DSER, the variables y, although projected out from the answer, are
required to be bound to the same m-tuple of constants v, in every model of O. Thus, y
are treated as distinguished variables, and not as existential ones in classical logic.
Reducing consistency checking and query answering to Datalog
evaluation
In this section, we show that consistency checking and query answering over OWL 2 QL
ontologies under MSER can be reduced to the evaluation of a Datalog program. Note
that, for the sake of simplicity, from now on we implicitly assume to deal with
ontologies that do not contain data properties. But our results can be immediately extended to
ontologies containing data properties as well.</p>
      <p>Intuitively, the key ideas of our approach are the following. First, we define a finite
number of inference rules which capture reasoning in OWL 2 QL, i.e. which are sound
and complete with respect to logical implication in OWL 2 QL. Second, we define a
translation function from the set of legal OWL 2 QL axioms to the set of instances of
a database schema Sql, where Sql comprises a distinct relation for each distinct form
of axiom, whose arity is the number of atomic expressions that occur in axioms of that
form. Then, for example, inclusion axioms of the form c1 vC 9r2 :c2, where c1; c2 are
atomic classes, and r2 is an atomic object property, are translated into tuples (c1; r2; c2)
of the relation isacCI. Third, we use to translate each inference rule to a Datalog
rule over the predicates of Sql and obtain a set of Datalog rules Pql.</p>
      <p>
        Because of the lack of space, we cannot report on the whole set of inference rules,
nor on the whole set of Datalog rules P ql, but we next provide an overview on the
main sets of rules it consists of. Thus, we define, in Table 1, the translation function
from the set of OWL 2 QL axioms and atoms to the set of atoms over the schema Sql,
where x; y; c; c1; c2; r1; r2 denote elements of VN or variables in V and Sql consists of
the predicates that occur in the columns of Table 1 labeled with ( ) and of the binary
predicates existR and existI. Then, Pql consists of the sets of rules PTql, PTql;A,
fPo6=qrld,earnidviPng9qll.oTgihcealfloyrmimeprlaiered oTbBtaoixneadxiboymuss,ignrgountdo
AtrBanosxlaatxeiOomWLs,2anQdLininefqeureanlictieesru,lreesspectively, while the latter is obtained by translating inference rules that allow deriving
first-order assertions that are not expressible in OWL 2 QL but can be logically implied
( ) ( ) ( )
c1 vC c2 isacCC(c1; c2) c1 vC :c2 disjcCC(c1; c2) r1 vR r2 isarRR(r1; r2)
c1 vC 9r2.c2 isacCR(c1; r2; c2) c1 vC :9r2 disjcCR(c1; r2) r1 vR r2 isarRI(r1; r2)
c1 vC 9r2 .c2 isacCI(c1; r2; c2) c1 vC :9r2 disjcCI(c1; r2) r1 vR :r2 disjrRR(r1; r2)
9r1 vC c2 isacRC(r1 c2) 9r1 vC :c2 disjcRC(r1; c2) r1 vR :r2 disjrRI(r1; r2)
9r1 vC 9r2.c2 isacRR(r1; r2; c2) 9r1 vC :9r2 disjcRR(r1; r2) refl(r) refl(r)
9r1 vC 9r2 .c2 isacRI(r1; r2; c2) 9r1 vC :9r2 disjcRI(r1; r2) irr(r) irref(r)
9r1 vC c2 isacIC(r1 c2) 9r1 vC :c2 disjcIC(r1; c2) c(x) instc(c; x)
9r1 vC 9r2.c2 isacIR(r1; r2; c2) 9r1 vC :9r2 disjcIR(r1; r2) r(x; y) instr(r; x; y)
9r1 vC 9r2 .c2 isacII(r1; r2; c2) 9r1 vC :9r2 disjcII(r1; r2) x 6= y diff(x; y)
by O, such as assertions of the form 9y j r(e; y), or 9y j r(y; e). In particular, we
use the predicates existR and existI to encode such assertions, and the key point
is that the use of such predicates allows us to avoid introducing existential variables
within the head of the rule. Thus, the above mentioned assertions are translated into the
tuples existR(r,e) and existI(r,e). Note that this, together with the fact that
we consider inequalities and we interpret O under a more general semantics,
significantly distinguishes our reduction to Datalog from the one proposed in [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ]. In Table 2,
we provide examples of Datalog rules belonging to each of the sets mentioned above,
together with the inference rule they are obtained from.
      </p>
      <p>PPTTqqqlll;A iiDnsatsaatclorCg(Irr(u1cle,1,xr,2y,)c:2-)i:n-sitsra(crC2C,(yc,1x,)c3,)i,siasraRcIC(Ir(2,c3r,1)r2,c2) IOOnfjje==recrn12c(evyr;ucxl3e);; OO j=j= cr32 vvCR 9rr12:c)2 )O j=Orj=1(xc1; yv) 9r2:c2
PP69=ql edxiifsft(xR,(yr,)x:)-:d-iisnjsrtRrR((rr,1,xr,2y)),instr(r1,x,z),instr(r2,y,z) OO jj== rr1(xv; y:)r)2; OOj=j=r92(zxr;(xz);;z)O j= r1(y; z) ) O j= x 6= y</p>
      <p>Now, let q be a query over O and let rq be the rule Ans(x):- (body(q)), where,
with a little abuse of notation, we denote by (B) the conjunction of the assertions
obtained by applying to each atom in B. It is easy to see that, by construction, (B)
is expressed over the alphabet of Sql and involve only elements of VN and V. Also, let
q = Pql [ Pq.</p>
      <p>Theorem 2. Let O be a consistent ontology and q a conjunctive query. Then,
Ans(q; O) =</p>
      <p>O;q(DO):
In a nutshell, the correctness of the two theorems relies on (i) the soundness and
completeness of the set of OWL 2 QL inference rules, (ii) the semantics of MSER which
treats existential variables as if they were distinguished, and, finally, (ii) the
property that for every tuple t of elements of VN , that is an instance of a predicate in
Sql n fexistR; existIg, t belongs to the minimum model of the Datalog program if
and only if either Pinc 6= ; and O is unsatisfiable, or t can be translated, via the inverse
funtion of , into an axiom that belongs to every model of the ontology.</p>
      <p>Clearly, the above theorems provide algorithms that are PTIME in the size of the
ontology, and can be readily used by exploiting any off-the-shelf Datalog engine.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <given-names>A.</given-names>
            <surname>Artale</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Calvanese</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Kontchakov</surname>
          </string-name>
          , and
          <string-name>
            <given-names>M.</given-names>
            <surname>Zakharyaschev</surname>
          </string-name>
          .
          <article-title>The dl-lite family and relations</article-title>
          .
          <source>CoRR, abs/1401.3487</source>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <given-names>D.</given-names>
            <surname>Calvanese</surname>
          </string-name>
          , G. De Giacomo,
          <string-name>
            <given-names>D.</given-names>
            <surname>Lembo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Lenzerini</surname>
          </string-name>
          , and
          <string-name>
            <given-names>R.</given-names>
            <surname>Rosati</surname>
          </string-name>
          .
          <article-title>Tractable reasoning and efficient query answering in description logics: The DL-Lite family</article-title>
          .
          <source>J. of Automated Reasoning</source>
          ,
          <volume>39</volume>
          (
          <issue>3</issue>
          ):
          <fpage>385</fpage>
          -
          <lpage>429</lpage>
          ,
          <year>2007</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <given-names>B.</given-names>
            <surname>Glimm</surname>
          </string-name>
          .
          <article-title>Using SPARQL with RDFS and OWL entailment</article-title>
          .
          <source>In RW-11</source>
          , pages
          <fpage>137</fpage>
          -
          <lpage>201</lpage>
          .
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <given-names>G.</given-names>
            <surname>Gottlob</surname>
          </string-name>
          and
          <string-name>
            <given-names>A.</given-names>
            <surname>Pieris</surname>
          </string-name>
          .
          <article-title>Beyond SPARQL under OWL 2 QL entailment regime: Rules to the rescue</article-title>
          .
          <source>In Proc. of IJCAI</source>
          <year>2015</year>
          , pages
          <fpage>2999</fpage>
          -
          <lpage>3007</lpage>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5. V.
          <article-title>Gutie´rrez-</article-title>
          <string-name>
            <surname>Basulto</surname>
            ,
            <given-names>Y. A.</given-names>
          </string-name>
          <string-name>
            <surname>Iba</surname>
          </string-name>
          <article-title>´n˜ez-Garc´ıa</article-title>
          , R. Kontchakov, and
          <string-name>
            <given-names>E. V.</given-names>
            <surname>Kostylev</surname>
          </string-name>
          .
          <article-title>Queries with negation and inequalities over lightweight ontologies</article-title>
          .
          <source>J. of Web Semantics</source>
          ,
          <volume>35</volume>
          :
          <fpage>184</fpage>
          -
          <lpage>202</lpage>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <given-names>S.</given-names>
            <surname>Kikot</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Kontchakov</surname>
          </string-name>
          , and
          <string-name>
            <given-names>M.</given-names>
            <surname>Zakharyaschev</surname>
          </string-name>
          .
          <article-title>Conjunctive query answering with OWL 2 QL</article-title>
          .
          <source>In Proc. of KR</source>
          <year>2012</year>
          ,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <given-names>R.</given-names>
            <surname>Kontchakov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Rezk</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Rodriguez-Muro</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Xiao</surname>
          </string-name>
          , and
          <string-name>
            <given-names>M.</given-names>
            <surname>Zakharyaschev</surname>
          </string-name>
          .
          <article-title>Answering SPARQL queries over databases under OWL 2 QL entailment regime</article-title>
          .
          <source>In Proc. of ISWC</source>
          <year>2014</year>
          , pages
          <fpage>552</fpage>
          -
          <lpage>567</lpage>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <given-names>M.</given-names>
            <surname>Lenzerini</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Lepore</surname>
          </string-name>
          ,
          <article-title>and</article-title>
          <string-name>
            <given-names>A.</given-names>
            <surname>Poggi</surname>
          </string-name>
          .
          <article-title>Answering metaqueries over hi(owl 2 ql) ontologies</article-title>
          .
          <source>In Proc. of IJCAI</source>
          <year>2016</year>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <given-names>M.</given-names>
            <surname>Lenzerini</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Lepore</surname>
          </string-name>
          ,
          <article-title>and</article-title>
          <string-name>
            <given-names>A.</given-names>
            <surname>Poggi</surname>
          </string-name>
          .
          <article-title>A higher-order semantics for metaquerying in owl 2 ql</article-title>
          .
          <source>In Proc. of KR</source>
          <year>2016</year>
          ,
          <year>2016</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <given-names>H. J.</given-names>
            <surname>Levesque</surname>
          </string-name>
          .
          <article-title>Foundations of a functional approach to knowledge representation</article-title>
          .
          <source>Artificial Intelligence</source>
          ,
          <volume>23</volume>
          :
          <fpage>155</fpage>
          -
          <lpage>212</lpage>
          ,
          <year>1984</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>