<!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>Data accuracy as knowledge in ontology based data access (preliminary report)</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Marco Console</string-name>
          <email>console@dis.uniroma1.it</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Dipartimento di Ing. Informatica, Automatica e Gestionale “Antonio Ruberti” S</institution>
        </aff>
      </contrib-group>
      <abstract>
        <p>In the context of Ontology Based Data Access (OBDA), consistency of data ensures that the data sources are coherent with the rules of the domain of interest represented by the ontology. However, even when consistency holds, the data underlying an OBDA system can still be in a state that users perceive of poor quality, according to some intuitive requirements. In many of these cases, the mechanism currently used to specify an OBDA system seems to lack of the ability to express such requirements. In this work, we argue that those requirements are often not about the world that the ontology represents, but about the knowledge that the system possesses on the world. Thus, with the aim of formalizing data quality specifications in the OBDA context, we propose the usage of a language of modal constraints, and show how they can be used in practice to capture cases of poor data quality. For this novel class of assertions, and for OBDA systems where the ontology is expressed in DL-Lite, we present algorithms and complexity results for the problem of checking the accuracy of the knowledge that the system posses, i.e., whether the system respects the modal constraints in the specification.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>
        The problem of assessing the quality of data is a well-known topic, that has always
received a lot of attention from different branches of the scientific community, in
particular in statistics and data management (see [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]). Despite many studies and approaches,
the problem is still a hot topic today, also because of the advent of the big data wave
([
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]).
      </p>
      <p>Assessing the quality of data is a manifold process, that consists of many
different tasks. To ease its overall complexity, a largely accepted practice is the adoption
of dimensions. A data quality dimension is a single aspect onto which the analysis is
focused. Unfortunately, such dimensions often lack of a formal definition</p>
      <p>
        A notable attempt to tackle this problem has been proposed by Y. Wand, and R. Y.
Wang in [28]. In that work, the authors propose to build data quality dimensions starting
from a formal framework, inspired to the notion of ontology, i.e. a formal description
of a portion of the real world, made in terms of its states and laws. Despite being a very
promising intuition, one of the first attempts to use it in practice has been proposed only
recently in [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ].
      </p>
      <p>In this work, we go along the same line, and use the ontology-based data access
paradigm (OBDA for short) to assess the accuracy dimension, i.e. the extent to which
the information stored inside a database is accurate.</p>
      <p>
        OBDA is a novel paradigm, aiming at accessing and managing the data contained
in a database by means of a formal specification, made of an ontology and a mapping
([
        <xref ref-type="bibr" rid="ref15 ref4 ref5 ref6">6, 26, 15, 5, 4</xref>
        ]). The ontology provides a formalization for the domain of interest, in
terms of formal axioms, while the mapping describes its relation with the data. Pairing
an OBDA specification with a database gives rise to an OBDA system. In what follows,
we shall consider OBDA systems built using Description Logic ontologies.
      </p>
      <p>The advantages of using an OBDA system to assess the quality of a database are
manifold. The high level of abstraction achieved by the OBDA paradigm, in fact, is
very useful when considering the overall quality of the data scattered through the tables
of real data sources. Furthermore, OBDA systems can be used to get rid of all the
superfluous information, such as index attributes and reference tables, and focus on the
real data quality issues.</p>
      <p>
        However, differently from the dimension of consistency studied in [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ], assessing
the accuracy of data is an elusive task, that is closely related to the data stored in the
database. In this sense, ontological languages currently used in OBDA specifications are
not well suited to specify data accuracy requirements. The following example clarifies
this intuition.
      </p>
      <p>Example 1 (Consistent but inaccurate data). The following is the database schema S
of the system used by a company to store data about orders and customers.</p>
    </sec>
    <sec id="sec-2">
      <title>S t P ERSON Spcode; SSN; isGoldCustomerq;</title>
      <p>CEN SU SpSSN; Address; N ame; Surname; DateOf Birthq;
P RODU CT SpP roductCode; T ypeq;</p>
      <p>ORDERSpOrderCode; P ersonCode; P roductCode; hasBeenP aidqu</p>
      <p>Consider the following instance D of the schema.</p>
      <p>D t P ERSON SpP 1; SSN 1; trueq; P ERSON SpP 2; SSN 2; trueq</p>
      <p>CEN SU SpSSN 1; A1; N ame1; Surname1; DOB1q;</p>
      <p>ORDERSpO01; P 1; P r1; trueq; ORDERSpO03; P 3; P r3; f alsequ</p>
      <p>The company recognizes the status of golden customer only to those individuals
who have already paid an order. No constraints in the database schema, however,
enforce this requirement. The OBDA specification B, defined as follows, formally
describes this scenario.</p>
    </sec>
    <sec id="sec-3">
      <title>T t GoldenCustomer DhasP aid; GoldenCustomer</title>
      <p>Order DhasOrdered ; DhasOrdered Order;
Customer DhasOrdered; DhasOrdered Customer;
Customer DhasAddress; hasP aid hasOrderedu
M t P ERSON Spx; z1; ‘true’q GoldenCustomerpxq;
P ERSON Spx; z1; z2q ^ CEN SU Spz1; y; z3; z4; z5q
ORDERSpx; y; z1; z2q hasOrderedpy; xq;
ORDERSpx; y; z1; ‘true’q hasP aidpy; xq;
ORDERSpz1; x; z2; z3q Customerpxqu
Customer;
hasAddresspx; yq;</p>
      <sec id="sec-3-1">
        <title>Intuitively, the logical theory formed by B and D (i.e. the OBDA system xB; Dy)</title>
        <p>is consistent, in the sense that no rule of the ontology is violated. However, the data
stored in D are inaccurately considering the customer associated with P 2 as a golden
customer, in spite of the fact that no paid order is connected to that customer code.</p>
        <p>In order to represent such constraint, and in fact many others, we can resort to what
the OBDA system xB; Dy is sure about, or, in other terms, what the OBDA system
knows.</p>
        <p>Example 2. (Enforcing knowledge) Consider again the scenario described in
Example 1, and suppose to impose to the system an additional constraint k, whose intuitive
meaning is the following: each known golden customer has a known paid order
associated to her.</p>
        <p>Now consider the following. The golden customers known by the system are,
intuitively, P 1 and P 2. However, no known paid order is associated to P 2. Thus, we can
conclude that the constraint k is not satisfied by the OBDA system xB; Dy.</p>
        <p>
          In the rest of this paper, we expand on the topic of using constraints of the kind
presented in Example 2, with the aim of expressing requirements about the accuracy
of data. To this aim, we shall present the class of epistemic dependencies, i.e. a modal
derivative of the well known class of embedded dependencies (see e.g. [
          <xref ref-type="bibr" rid="ref1">1</xref>
          ]), and study
their interaction with OBDA systems based on DL-LiteA ontologies.
        </p>
        <p>
          In fact, the languages currently used to specify OBDA systems are, in general,
unable to express requirements about knowledge, as shown in the previous example.
Furthermore, the language presented in [
          <xref ref-type="bibr" rid="ref12">12</xref>
          ] is not well suited to specify ontologies for the
OBDA scenario, while constraints presented in [22] cannot directly express knowledge
requirements.
        </p>
        <p>In order to give to our framework formal semantic, we shall study the problem of
constraint satisfaction using the well known modal logic of knowledge and belief OL,
due to Levesque ([19]).</p>
        <p>
          Notice that we don’t claim any novelty on the notion of epistemic state of an
ontology, see e.g. [
          <xref ref-type="bibr" rid="ref12">12</xref>
          ], nor on the idea of using modal formulas to express constraints over
knowledge-bases, which has been proposed for the first time by Reiter in [24].
However, to the best of our knowledge, the idea of using OBDA systems in conjunction with
epistemic constraints to assess the accuracy of the information stored in a set of data
sources has not been investigated yet.
        </p>
        <p>The paper is organized as follows. In Section 2 we present preliminary notions that
we use throughout this work. In Section 3 we detail the notion of what is known to
an OBDA system, which we use in Section 4 to present our class of constraints. The
complexity of handling such constraints is presented in Section 6. The notion of data
accuracy in the OBDA scenario is investigated in Section 5. In Section 7 we conclude.
2</p>
        <sec id="sec-3-1-1">
          <title>Preliminary definitions</title>
          <p>In this section we present technical notions that we use in the remainder of this work.</p>
          <p>
            Formulas and interpretations. For our logical formulas, we consider predicate
logic, and sometimes allow the presence of modal operators. For the syntax of formulas,
we assume the standard inductive definition (see e.g. [
            <xref ref-type="bibr" rid="ref1">1</xref>
            ] and [20]), and sometimes allow
the symbol K, meaning the empty set. Formulas in which appears no modal operator
are called objective. A logical theory is a set of formulas.
          </p>
          <p>A query is an open formula, i.e. a formula in which some variables don’t appear in
the scope of any quantifier. Two notable classes of queries are the class of conjunctive
queries, and union thereof. A conjunctive query (CQs) is a conjunction of existentially
quantified atoms, possible containing free variables. For union of conjunctive queries
(UCQs), we further require that the free variables in each disjunct are the same. To
better point out the set of free variables of a query q, we sometimes use the set theoretic
notation, i.e. tx | qpxqu, where x is a vector of variables.</p>
          <p>
            Objective formulas shall be interpreted over first order interpretations, with their
usual semantics (see e.g. [
            <xref ref-type="bibr" rid="ref1">1</xref>
            ]), and K will always have empty extension. Semantics for
the modalities are given later.
          </p>
          <p>For queries, we are interested in computing their certain answers, i.e. the set of
substitutions for their free variables that make the formula true in every model of a
given logical theory. We denote the set of certain answers for a given query q, under the
logical theory L, as anspq; Lq. We assume anspK; Lq H , whenever L has at least
one model.</p>
          <p>
            Databases. In this work, we consider relational databases, and refer the reader to
[
            <xref ref-type="bibr" rid="ref1">1</xref>
            ] for a more detailed account.
          </p>
        </sec>
      </sec>
      <sec id="sec-3-2">
        <title>A database schema S x S ; CS y is a pair where S is an alphabet of predicate</title>
        <p>symbols, while CS is a set of formulas in the alphabet S . A set of ground facts, built
using the alphabet S of a schema S , is called S -database. Whenever an S -database</p>
      </sec>
      <sec id="sec-3-3">
        <title>D also respects the constraints in CS , we say that it is legal w.r.t. S (written D ( S ),</title>
        <p>or simply legal. In this work, we don’t impose any particular restriction on the class of
constraints that can appear in a database schema.</p>
        <p>Description Logic ontologies. An ontology is the conceptualization of a domain
of interest, expressed in terms of a formal language. In this work, we consider
ontologies expressed using Description Logic, and focus our attention on the language</p>
      </sec>
      <sec id="sec-3-4">
        <title>DL-LiteA [7, 23], a member of the DL-Lite family1 of tractable Description Logics. For</title>
        <p>the sake of brevity, we provide only a short account of DL-LiteA here.</p>
        <p>
          The syntax of concept, role and attribute expressions in DL-LiteA over an
alphabet T is specified by means of the following grammar (where A; P; U are atomic
concepts, roles, and attributes, respectively, and T1; : : : ; Tn are unbounded pairwise
disjoint predefined value-domains):
Tn
1 Not to be confused with the set of DLs studied in [
          <xref ref-type="bibr" rid="ref2">2</xref>
          ], which form the DL-Litebool family.
        </p>
        <p>In DL-LiteA TBoxes we further impose that roles and attributes occurring in
functionality assertions cannot be specialized, i.e., they cannot occur in the right-hand side
of positive inclusions (see [23] for a detailed account on DL-LiteA).</p>
        <p>Note that checking DL-LiteA-KB for satisfiability, i.e., checking whether</p>
      </sec>
      <sec id="sec-3-5">
        <title>M odpxT ; Ayq t I | I is an interpretation for T such that I |ø xT ; Ay u is non</title>
        <p>empty, can be done in AC0 with respect to A and in PTIME with respect to T .</p>
        <p>Ontology Based Data Access. An OBDA system is constituted by an intentional
component, that we call OBDA specification, and an extensional component,
represented by a database.</p>
        <p>An OBDA specification is in turn constituted by three main components , i.e. the
ontology, the mapping, and the database schema.</p>
        <p>Definition 1 (OBDA specification). An OBDA specification B is a triple xT ; M; Sy,
where
– T is a DL-LiteA TBox, called the ontology of B, with alphabet T ;
– S x S ; CS y is a database schema, called the source schema of B;
– M is a finite set of mapping assertions between S and T , called the mapping of
B, where each mapping assertion is of the form @x pxq D y px; yq, where pxq
is a conjunctive query over S with free variables x, and px; yq is a conjunctive
query over the alphabet T with free variables x Y y.</p>
        <p>
          In what follows, we will refer to a specific form of mappings, called GAV,
extensively studied in the database literature [
          <xref ref-type="bibr" rid="ref14 ref18">14, 18</xref>
          ]. A GAV (Global-as-view) mapping
assertion is a mapping assertion in which no existential variable appears in , and can
therefore be written as @x pxq pzq, where all the variables in z appear also in x.
        </p>
      </sec>
      <sec id="sec-3-6">
        <title>As we said before, when we pair an OBDA specification B x T ; M; Sy with a</title>
        <p>S -database D, we obtain an OBDA system. We define the semantics of an OBDA
system by specifying which are the models of B relative to D, denoted by M odDpBq.</p>
      </sec>
      <sec id="sec-3-7">
        <title>Intuitively, if D is not legal with respect to S, such models form the empty set. Other</title>
        <p>wise, they are all those interpretations I for T that satisfy T , and such that the pair
xD; Iy satisfy all mapping assertions in M, written xD; Iy |ø M.</p>
        <p>Definition 2 (OBDA system semantics). Let B x T ; M; Sy be an OBDA
specification, and let D be a S -database. Then M odDpBq t I | I |ø T ; pD; Iq |ø
M; and D |ø S u:</p>
      </sec>
      <sec id="sec-3-8">
        <title>Checking whether an OBDA system constituted by B and D is satisfiable amounts</title>
        <p>to checking whether M odDpBq H . If the system is managed by suitable software
components, including a database management system ensuring that D |ø CS , then the
satisfiability checking reduces to verifying whether there exists an interpretation I for</p>
      </sec>
      <sec id="sec-3-9">
        <title>T that satisfies T , and such that the pair xD; Iy satisfies all mapping assertions in M.</title>
        <p>Query answering and rewriting. OBDA systems defined above enjoy several
desirable properties, that we cannot discuss here for lack of space. We only briefly discuss
how we can compute certain answers for queries in a satisfiable OBDA system. Let
B x T ; M; Sy be a OBDA system, and D a S -database. The results presented in
[23] show that, in order to answer a union of conjunctive query q (expressed in the
alphabet T ) posed to B x T ; M; Sy and D, we can compute the perfect rewriting of
q with respect to T and M, written RT ;Mpqq, which is a union of conjunctive query
over the alphabet S , and then evaluate RT ;M over D. We will make use of this result
in the following. Answering queries under an OBDA system is in P T ime w.r.t. the size
of the ontology, and in AC0 w.r.t. the size of the database.
3</p>
        <sec id="sec-3-9-1">
          <title>What an OBDA system knows</title>
          <p>In our study of data accuracy, a central part is played by the knowledge that an OBDA
system possesses on the real world. In this section, we discuss how we can formally
represent this knowledge.</p>
          <p>
            To this aim, we resort to the predicate version of the well known modal logic OL
of knowledge and belief, due to Levesque ([19]). Through the years, OL has been
extensively used in many different flavors ([
            <xref ref-type="bibr" rid="ref16 ref17">19, 16, 17</xref>
            ]), of which we use the version
presented in [
            <xref ref-type="bibr" rid="ref17">17</xref>
            ]. This logic comes equipped with two modal operators: the standard
modality K, meaning that something is known to be true, and the modality O, whose
intuitive meaning is only-know. We consider OL formulas to be standard first-order
formulas, in which we further allow the appearance of K and O.
          </p>
        </sec>
      </sec>
      <sec id="sec-3-10">
        <title>We give the semantics for the OL logic using the notion of epistemic state. An</title>
        <p>
          epistemic state E is simply a set of first order interpretations, called worlds. For worlds
inside the same epistemic state E , we require that they share a single (countably infinite)
domain of discourse, E , called the set of standard names for E . Notice how this
assumption implies the Barcan axiom ([
          <xref ref-type="bibr" rid="ref16">16</xref>
          ]). The next definition formalize the semantics
of OL, over epistemic states.
        </p>
        <p>Definition 3. Let be a generic OL formula, E an epistemic state, and w a world in
E . Then is true in E ; w, or E ; w ( , if the following conditions hold.
–
–
–
–
–
–
is an atomic formula, and w |ø .</p>
        <p>1, and E ; w * 1
1 ^ 2, and both E ; w ( 1 and E ; w ( 2 hold.</p>
        <p>D x: 1pxq, and for some tuple c of parameters, we have that E ; w (</p>
        <p>Kp 1q, and w1 P W øae E ; w1 ( 1.</p>
        <p>Op 1q, and w1 P W ae E ; w1 ( 1.
1pcq.</p>
        <p>Abbreviations _, , and @ shall be considered with the usual meaning.</p>
        <p>Intuitively, if an OBDA system knows that some formula is true, then it is true in all
the possible worlds represented by the ontological specification. On the other hand, if
a formula is what an OBDA system only-knows about the real world, all and only the
wolds in which that formula is true are models of the system.</p>
        <p>In light of this, the knowledge possessed by an OBDA system is closely related
to the data stored inside its database. In fact, from the notion of semantics given in
Definition 2, something can be true in all the models of an OBDA system only if it is
grounded into its extensional part.</p>
        <p>Notice however, that the standard definition of semantics for OBDA systems cannot
be directly used in the OL context. In order to gather all the knowledge that a
system possesses on the real world, we make use of the O operator, and interact with the
gathered knowledge by means of K.</p>
      </sec>
      <sec id="sec-3-11">
        <title>In fact, as pointed out in ([19]), the presence of the O operator allows OL to formal</title>
        <p>ize the notion of what an agent knows about its own knowledge, i.e. its auto-epistemic
state. Whenever O is not present, this notion needs to be formalized by means of some
meta-logical operator, such as the stable expansion (see e.g. [21]), or the | operator
([25]).</p>
        <p>We use the notion of knowledge state, presented below, to formalize this concept in
the OBDA scenario.</p>
        <p>Definition 4. Let O be an ontology based data access system, then the epistemic state
E is said to be a knowledge state of O if and only if E ( OpOq.</p>
        <p>
          Our notion of knowledge state of an OBDA system is similar to the notion of
epistemic model of an ontology given in [
          <xref ref-type="bibr" rid="ref12">12</xref>
          ]. However, the use of the modal operator O
allows us to omit any further condition of maximality.
        </p>
        <p>From Definition 4 comes the following.</p>
        <p>Proposition 1. Let E , E 1 be two knowledge states for the OBDA system O. Then E and
E 1 are equivalent, up to isomoprhisms on the set of standard names.</p>
      </sec>
      <sec id="sec-3-12">
        <title>The property presented in Proposition 1 comes from the fact that O is a first order</title>
        <p>theory. In fact, once fixed the set of standard names, the knowledge state of an OBDA
system must contain all and only the first order interpretations that are models of the
system.</p>
        <p>In the OBDA systems defined in Section 2, knowledge state is the product of the
general truth about the real world, expressed in the ontology, and the data stored in the
database. In light of this, OBDA specifications currently lack of the ability to directly
express requirements on knowledge. The language of constraints presented in Section 4
can be used to express requirements over epistemic states, and hence enforce, or assess,
the knowledge possessed by an OBDA system.
4</p>
        <sec id="sec-3-12-1">
          <title>A language to enforce knowledge</title>
          <p>To describe our language of constraints for knowledge states, we start from the
considerations about integrity constraints presented by Reiter in [24].</p>
          <p>In that work, the author defines the class of pure KFOPCE sentences being,
essentially, the class of all K-modal sentences in which predicates appear only in the scope
of the modal operator K. This class of formulas is then used to express a more
meaningful form of integrity constraints for databases, through the notion of the entailment
operator | .</p>
          <p>Later, in [25], the author establishes an equivalence between such operator and the
validity of formulas of the form: OpT q Kp q, where T is a first order non modal
theory, and is a pure KFOPCE formula.</p>
          <p>
            A similar notion is used in [
            <xref ref-type="bibr" rid="ref8">8</xref>
            ] as the basic building block of the query language
          </p>
        </sec>
      </sec>
      <sec id="sec-3-13">
        <title>E QL. Such language has been devised with the aim of expressing ontological queries,</title>
        <p>using a syntactically restricted form of the epistemic operator K.</p>
        <p>To refer to this concept, and avoid any discrepancy in the notation, we shall call
these formulas simply subjective.</p>
        <p>–
–</p>
        <p>is either:
1. a formula</p>
        <p>
          For our language of constraints, we make use of this same intuition but, unlike our
predecessors, we restrict ourselves to the well known class of embedded dependencies
([
          <xref ref-type="bibr" rid="ref1">1</xref>
          ]), defining their subjective version as follows.
        </p>
        <p>Definition 5. A formula is a subjective disjunctive dependency if and only if it has the
form
such that the following conditions hold.</p>
        <p>px; yq is a formula of the form Cipxi; yi; biq, where each Cipxi; yi; biq is a
i
relational atom in the variables xi Y yi Y bi, x
i
xi, y
i
yi, and b
i
bi
s spx; zq, where each spx; zq has the form:</p>
        <p>Dz:KpDb1
'
j</p>
        <p>Cj pxj ; zj ; bj qq
and each Cj pxj ; zj ; bj q is a relational atom in the variable xj Y zj Y bj , and
x xj , z zj , b1 bj , or</p>
        <p>j j j
2. a conjunction of equality atoms in the form</p>
        <p>are variables from x, or
3. the symbol K.
e
te
t1e, where each te and t1e</p>
        <p>For the sake of brevity, from now on we shall refer to the class of purely subjective
embedded dependencies simply as epistemic dependencies (EDs for short), and
consider this as our class of constraints. Notice how the explicit usage of the operator K
makes EDs different from the constraints presented in [27].</p>
        <p>As already pointed out in Section 3, the notion of semantics given in Definition 2 is
not well suited for the interaction with EDs. The next definition presents a novel notion
of satisfaction, suitable for EDs in the OBDA scenario.</p>
        <p>Definition 6. Let O be an OBDA system, and k an epistemic dependency. Then we say
that O satisfies k if and only if OpOq Kpkq.</p>
        <p>EDs can be used to enhance OBDA specifications, adding further constraints about
knowledge. We now present a new definition for OBDA specifications, augmented by a
set of EDs.</p>
        <p>Definition 7. Let K be a set of epistemic dependencies, and B an OBDA specification.
Then the constrained OBDA specification BK is the pair xB; Ky.</p>
        <p>A constrained OBDA specification can be paired with a database to form a
constrained OBDA system, in the usual way. The following is the definition of semantics
for constrained OBDA systems.</p>
        <p>Definition 8. Let BK x B; Ky be a constrained OBDA specification, and let D be
a database. Then a first order interpretation I is a model for the constrained OBDA
system OK x BK; Dy if and only if:
1. I is a model for the OBDA system O x B; Dy
2. O satisfies k, for each k P K</p>
        <p>Intuitively, condition 2 requires that a given set of constraints is satisfied by the
current epistemic state of the system. In this sense, the condition is on the whole system,
and the single model doesn’t play any part in it.</p>
        <p>As usual, a constrained OBDA system with no model, is said to be unsatisfiable,
satisfiable otherwise. In the same way, we call a database D consistent with respect
to a constrained OBDA specification BK, whenever the system xBK; Dy is satisfiable;
inconsistent otherwise.</p>
        <p>The complexity of checking whether an OBDA system satisfies a given ED
(Definition 6), and hence the complexity of checking whether a constrained OBDA system
is satisfiable (Definition 8), is analyzed in Section 6.
5</p>
        <sec id="sec-3-13-1">
          <title>Modelling accuracy</title>
          <p>
            With the aim of drawing a parallel between data accuracy and OBDA, we start this
section by reminding the reader of the standard definition of accuracy. A database D is
said to be accurate whenever it accurately describes the reality of interest, with respect
to the tasks at hand (see e.g. [
            <xref ref-type="bibr" rid="ref13 ref3">3, 13</xref>
            ]).
          </p>
          <p>When the database is paired to an OBDA specification, we can use the language of
the ontology to express accuracy requirements, by means of a set of EDs. In fact, as
already mentioned, something is known to an OBDA system only if it is grounded into
the data stored into its database. Next definition formalizes this intuition.
Definition 9. Let BK x B; Ky be a constrained OBDA specification, and let D be a
database. Then D is said to be of poor quality with respect to accuracy, according to
BK, if and only if D is consistent with B but it is not consistent with BK.</p>
          <p>One may ask whether EDs posses the expressiveness required to specify meaningful
constraints. In the remainder of this section, we argue that this is the case, by showing
some practical example of what EDs may express, using the scenario presented in
Example 1.</p>
          <p>Example 3 (Information accuracy). Consider again the constraint described in
Example 2. It’s very straightforward to see how the following ED fully captures the intended
meaning.
y:KphasP aidpx; yqq
As expected, the constraint k1 is violeted for x{P 2.</p>
          <p>Example 4 (Completeness of the known information). The problem of assessing data
completeness is a complex topic, behind the scope of this work, and probably outside
the expressiveness of our constraints.</p>
          <p>In spite of this, EDs can still be used to impose completeness on the known
information. The following constraint checks whether the address of each customer that has
paid an order is known to the system.</p>
          <p>k2 : @x:KpDy:Customerpxq ^ hasP aidpx; yqq D z:KphasAddresspx; zqq
Notice how k2 doesn’t require any known order. The constraint is violated for x{P 2.
Example 5 (Disjunctions). We believe that one of the most interesting features of EDs
is the possibility of using disjunctions. For example, we can impose that only golden
customers can delay the payment of known orders, i.e. each known order has been either
paid, or placed by a golden customer.</p>
          <p>KpDy:hasP aidpy; xqq_</p>
          <p>KpDz:hasOrderedpz; xq ^ GoldenCustomerpzqq
Constraint k3 is violated for x{O03.
6</p>
        </sec>
        <sec id="sec-3-13-2">
          <title>An algorithm to check constraints</title>
          <p>In this section we present an algorithm to check whether an OBDA system satisfies a
given ED, and show its complexity. In what follows, we shall often transform subjective
formulas into first order queries of a specific form. The following definition details this
transformation.</p>
          <p>Definition 10. Let : KpDy</p>
          <p>Cipxi; yiqq be a formula where x is either free or
quani
tified outside the scope of K. Then q pxq is the following conjunctive query:
'
tx | Dy</p>
          <p>Cipxi; yiqu
i</p>
          <p>We now present the complexity results for the problem of checking satisfaction of
EDs. To this aim, we start by formalizing the decision problem associated to the notion
of satisfaction.</p>
          <p>Definition 11. Let O be an OBDA system, and let k be an epistemic dependency. Then
K-Satisfaction is the following decision problem: check whether O satisfies k.</p>
        </sec>
      </sec>
      <sec id="sec-3-14">
        <title>For OBDA systems defined in Section 2, K-Satisfaction can be reduced to query</title>
        <p>answering. To this aim, we start by stating the following lemma.</p>
        <p>Lemma 1. Let KpDy:Cpx; yqq, where C is a conjunction of propositional atoms,
and let O x B; Dy be a satisfiable OBDA system. Then OpOq KpDy: pc; yqq,
being c a tuple of standard names, if and only if c P anspq pxq; Oq.</p>
      </sec>
      <sec id="sec-3-15">
        <title>Lemma 1 gives us a direct method for computing K-Satisfaction under a given</title>
        <p>OBDA system. Intuitively, we can compute the answer of the conjunctive query
representing each part of an ED, and then compare the results.</p>
        <p>Theorem 1. Let B be an OBDA specification, D a database, and O x B; Dy a
satisfiable OBDA system. Furthermore, let k : s be an epistemic dependency in
the form of Definition 5.</p>
        <p>Then O satisfies k if and only if, for each vector of standard names c, such that
anspq pc; yq; Oq is non-empty, we have that also anspq s pc; zq; Oq is non-empty for
some s.</p>
        <p>Theorem 1 directly suggests the algorithm presented in Figure 1. Intuitively, the
algorithm goes as follows: it computes the perfect rewriting of the queries representing
each part of an ED, and issues a suitable first order query to the underlying database
system to check whether a violating tuple exists.
s
Algorithm check-dependency.</p>
        <p>Let k : be an ED in the form of Definition 5, and O x T ; M; Sy.
check-dependency(k, O, D) do:
qbpx; yq : RT ;Mpq px; yqq;
if ( ipx; zq) then qhpx; zq :
i</p>
        <p>RT ;Mp ipx; zqq;
i
else qh : ;</p>
        <p>k : D x; y; z:qbpx; yq ^
return ansp k; Dq;</p>
        <p>qhpx; zq;</p>
        <p>Theorem 2. Let B x T ; M; Sy be an OBDA specification, k an epistemic
dependency, and D a database. Then, K-Satisfaction problem for k under B is in AC0 in the
size of D, in P T ime in the size of T and M.</p>
        <p>
          Complexities shown in Theorem 2 are a direct consequence of the complexity of
query answering under an OBDA systems (see e.g. [
          <xref ref-type="bibr" rid="ref9">23, 9</xref>
          ]).
7
        </p>
        <sec id="sec-3-15-1">
          <title>Conclusions and future works</title>
          <p>In this work we tackled the problem of assessing the accuracy of the data stored inside
a database system, using the OBDA paradigm. Our techniques exploit the great level
of abstraction of OBDA systems to thoroughly examine the information stored in the
database, and makes use of modal formulas to interact with the real data.</p>
          <p>We plan to extend this work by studying techniques to assess the accuracy at the
schema level, i.e. to check whether a given database schema enforces sufficient accuracy
requirements.</p>
          <p>Acknowledgments I would like to thank Maurizio Lenzerini for the many invaluable
discussions on the topics of this paper. Work partially supported by the EU under FP7,
project Optique (Scalable End-user Access to Big Data), grant n. FP7-318338.
19. Levesque, H.J.: All I know: A study in autoepistemic logic. Artif. Intell. 42(2-3), 263–309
(1990)
20. Levesque, H.J., Lakemeyer, G.: The logic of knowledge bases. MIT Press (2000)
21. Moore, R.C.: Semantical considerations on nonmonotonic logic. Artif. Intell. 25(1), 75–94
(1985)
22. Motik, B., Horrocks, I., Sattler, U.: Bridging the gap between OWL and relational databases.</p>
          <p>J. Web Sem. 7(2), 74–89 (2009), http://dx.doi.org/10.1016/j.websem.2009.02.001
23. Poggi, A., Lembo, D., Calvanese, D., De Giacomo, G., Lenzerini, M., Rosati, R.: Linking
data to ontologies. J. Data Semantics 10, 133–173 (2008)
24. Reiter, R.: On integrity constraints. In: Proceedings of the 2nd Conference on Theoretical</p>
          <p>Aspects of Reasoning about Knowledge, Pacific Grove, CA, March 1988. pp. 97–111 (1988)
25. Reiter, R.: What should a database know? J. Log. Program. 14(1&amp;2), 127–153 (1992)
26. Rodriguez-Muro, M., Calvanese, D.: High performance query answering over dl-lite
ontologies. In: Principles of Knowledge Representation and Reasoning: Proceedings of the
Thirteenth International Conference, KR 2012, Rome, Italy, June 10-14, 2012 (2012)
27. Tao, J., Sirin, E., Bao, J., McGuinness, D.L.: Integrity constraints in OWL.</p>
          <p>In: Proceedings of the Twenty-Fourth AAAI Conference on Artificial
Intelligence, AAAI 2010, Atlanta, Georgia, USA, July 11-15, 2010 (2010),
http://www.aaai.org/ocs/index.php/AAAI/AAAI10/paper/view/1931
28. Wand, Y., Wang, R.Y.: Anchoring data quality dimensions in ontological foundations.
Commun. ACM 39(11), 86–95 (1996)</p>
        </sec>
      </sec>
    </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-Wesley (
          <year>1995</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Artale</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Calvanese</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kontchakov</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zakharyaschev</surname>
            ,
            <given-names>M.:</given-names>
          </string-name>
          <article-title>The dl-lite family and relations</article-title>
          .
          <source>J. Artif. Intell. Res. (JAIR) 36</source>
          ,
          <fpage>1</fpage>
          -
          <lpage>69</lpage>
          (
          <year>2009</year>
          ), http://dx.doi.org/10.1613/jair.2820
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Batini</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Scannapieco</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Data Quality: Concepts, Methodologies and Techniques</article-title>
          .
          <source>DataCentric Systems and Applications</source>
          , Springer (
          <year>2006</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Bienvenu</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>ten Cate</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lutz</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Wolter</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          :
          <article-title>Ontology-based data access: A study through disjunctive datalog, csp, and MMSNP</article-title>
          .
          <source>ACM Trans. Database Syst</source>
          .
          <volume>39</volume>
          (
          <issue>4</issue>
          ),
          <volume>33</volume>
          :
          <fpage>1</fpage>
          -
          <lpage>33</lpage>
          :
          <fpage>44</fpage>
          (
          <year>2014</year>
          ), http://doi.acm.
          <source>org/10.1145/2661643</source>
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5. Cal`ı,
          <string-name>
            <given-names>A.</given-names>
            ,
            <surname>Gottlob</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            ,
            <surname>Pieris</surname>
          </string-name>
          ,
          <string-name>
            <surname>A.</surname>
          </string-name>
          :
          <article-title>New expressive languages for ontological query answering</article-title>
          .
          <source>In: Proceedings of the Twenty-Fifth AAAI Conference on Artificial Intelligence</source>
          ,
          <source>AAAI</source>
          <year>2011</year>
          , San Francisco, California, USA,
          <year>August</year>
          7-
          <issue>11</issue>
          ,
          <year>2011</year>
          (
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Calvanese</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>De Giacomo</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lembo</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lenzerini</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Poggi</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rodriguez-Muro</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rosati</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ruzzi</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Savo</surname>
            ,
            <given-names>D.F.</given-names>
          </string-name>
          :
          <article-title>The MASTRO system for ontology-based data access</article-title>
          .
          <source>Semantic Web</source>
          <volume>2</volume>
          (
          <issue>1</issue>
          ),
          <fpage>43</fpage>
          -
          <lpage>53</lpage>
          (
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Calvanese</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>De Giacomo</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lembo</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lenzerini</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rosati</surname>
          </string-name>
          , R.:
          <article-title>Dl-lite: Tractable description logics for ontologies</article-title>
          .
          <source>In: Proceedings, The Twentieth National Conference on Artificial Intelligence and the Seventeenth Innovative Applications of Artificial Intelligence Conference, July 9-13</source>
          ,
          <year>2005</year>
          , Pittsburgh, Pennsylvania, USA (
          <year>2005</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Calvanese</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>De Giacomo</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lembo</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lenzerini</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rosati</surname>
          </string-name>
          , R.:
          <article-title>Eql-lite: Effective first-order query processing in description logics</article-title>
          .
          <source>In: IJCAI 2007, Proceedings of the 20th International Joint Conference on Artificial Intelligence</source>
          , Hyderabad, India, January 6-
          <issue>12</issue>
          ,
          <year>2007</year>
          (
          <year>2007</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Calvanese</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>De Giacomo</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lembo</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lenzerini</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Rosati</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          :
          <article-title>Tractable reasoning and efficient query answering in description logics: The DL-Lite family</article-title>
          .
          <source>J. Autom. Reasoning</source>
          <volume>39</volume>
          (
          <issue>3</issue>
          ),
          <fpage>385</fpage>
          -
          <lpage>429</lpage>
          (
          <year>2007</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Console</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lenzerini</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Data quality in ontology-based data access: The case of consistency</article-title>
          .
          <source>In: Proceedings of the Twenty-Eighth AAAI Conference on Artificial Intelligence, July 27 -31</source>
          ,
          <year>2014</year>
          , Que´bec City, Que´bec, Canada. pp.
          <fpage>1020</fpage>
          -
          <lpage>1026</lpage>
          (
          <year>2014</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Dong</surname>
            ,
            <given-names>X.L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Srivastava</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          :
          <article-title>Big data integration</article-title>
          .
          <source>PVLDB</source>
          <volume>6</volume>
          (
          <issue>11</issue>
          ),
          <fpage>1188</fpage>
          -
          <lpage>1189</lpage>
          (
          <year>2013</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Donini</surname>
            ,
            <given-names>F.M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Lenzerini</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nardi</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nutt</surname>
            ,
            <given-names>W.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Schaerf</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>An epistemic operator for description logics</article-title>
          .
          <source>Artif. Intell</source>
          .
          <volume>100</volume>
          (
          <issue>1-2</issue>
          ),
          <fpage>225</fpage>
          -
          <lpage>274</lpage>
          (
          <year>1998</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Fan</surname>
            ,
            <given-names>W.</given-names>
          </string-name>
          :
          <article-title>Data quality: From theory to practice</article-title>
          .
          <source>SIGMOD Record</source>
          <volume>44</volume>
          (
          <issue>3</issue>
          ),
          <fpage>7</fpage>
          -
          <lpage>18</lpage>
          (
          <year>2015</year>
          ), http://doi.acm.
          <source>org/10</source>
          .1145/2854006.2854008
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <surname>Halevy</surname>
          </string-name>
          , A.Y.:
          <article-title>Answering queries using views: A survey</article-title>
          .
          <source>VLDB J</source>
          .
          <volume>10</volume>
          (
          <issue>4</issue>
          ),
          <fpage>270</fpage>
          -
          <lpage>294</lpage>
          (
          <year>2001</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15.
          <string-name>
            <surname>Kontchakov</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <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>
          ,
          <string-name>
            <surname>Zakharyaschev</surname>
            ,
            <given-names>M.:</given-names>
          </string-name>
          <article-title>The combined approach to ontology-based data access</article-title>
          .
          <source>In: IJCAI 2011, Proceedings of the 22nd International Joint Conference on Artificial Intelligence</source>
          , Barcelona, Catalonia, Spain,
          <source>July 16-22</source>
          ,
          <year>2011</year>
          . pp.
          <fpage>2656</fpage>
          -
          <lpage>2661</lpage>
          (
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          16.
          <string-name>
            <surname>Lakemeyer</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Levesque</surname>
            ,
            <given-names>H.J.</given-names>
          </string-name>
          :
          <article-title>Only-knowing: Taking it beyond autoepistemic reasoning</article-title>
          .
          <source>In: Proceedings, The Twentieth National Conference on Artificial Intelligence and the Seventeenth Innovative Applications of Artificial Intelligence Conference, July 9-13</source>
          ,
          <year>2005</year>
          , Pittsburgh, Pennsylvania, USA (
          <year>2005</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          17.
          <string-name>
            <surname>Lakemeyer</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Levesque</surname>
            ,
            <given-names>H.J.</given-names>
          </string-name>
          :
          <article-title>Only-knowing meets nonmonotonic modal logic</article-title>
          .
          <source>In: Principles of Knowledge Representation and Reasoning: Proceedings of the Thirteenth International Conference, KR 2012</source>
          , Rome, Italy, June 10-14,
          <year>2012</year>
          (
          <year>2012</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          18.
          <string-name>
            <surname>Lenzerini</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Data integration: A theoretical perspective</article-title>
          .
          <source>In: Proceedings of the Twenty-first ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems</source>
          , June 3- 5, Madison, Wisconsin, USA. pp.
          <fpage>233</fpage>
          -
          <lpage>246</lpage>
          (
          <year>2002</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>