<!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>Mapping Analysis in Ontology-based Data Access: Algorithms and Complexity (Extended Abstract)</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Domenico Lembo</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Jose´ Mora</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Riccardo Rosati</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Domenico Fabio Savo</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Evgenij Thorstensen</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Sapienza Universita` di Roma lastname@dis.uniroma</string-name>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Dept. of Informatics, University of Oslo</institution>
        </aff>
      </contrib-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>
        Ontology-based data access (OBDA) is a recent paradigm for accessing data sources
through an ontology that acts as a conceptual, integrated view of the data, and
declarative mappings that connect the ontology to the data sources [
        <xref ref-type="bibr" rid="ref13 ref14 ref2 ref5 ref6">13, 6, 14, 5, 2</xref>
        ] .
      </p>
      <p>
        One important aspect in OBDA concerns the construction of a system specification,
i.e., defining the ontology and the mappings over an existing set of data sources.
Mappings are indeed the most complex part of an OBDA specification, since they have to
capture the semantics of the data sources and express such semantics in terms of the
ontology. The first experiences in the application of the OBDA framework in real-world
scenarios (e.g., [
        <xref ref-type="bibr" rid="ref2 ref9">2, 9</xref>
        ]) have shown that the semantic distance between the conceptual
and the data layer is often very large, because data sources are mostly
applicationoriented: this often makes the definition, debugging, and maintenance of mappings a
hard and complex task. Such experiences have clearly shown the need of tools for
supporting the management of mappings.
      </p>
      <p>
        The recent work [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] has started providing a theoretical basis for mapping
management support in OBDA, focusing on the formal analysis of mappings in ontology-based
data access. In particular, the two most important semantic anomalies of mappings have
been analyzed: inconsistency and redundancy. Roughly speaking, an inconsistent
mapping for an ontology and a source schema is a specification that gives rise to logical
contradictions with the ontology and/or the source schema. Then, a mapping M is
redundant with respect to an OBDA specification if adding the mapping M to the
specification does not change its semantics. The work presented in [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] has defined both a
local notion of mapping inconsistency and redundancy, which focuses on single
mapping assertions, and a global notion, where inconsistency and redundancy is considered
with respect to a whole mapping specification (set of mapping assertions).
      </p>
      <p>
        In this paper, we study the computational properties of verifying both local and
global mapping inconsistency and redundancy in an OBDA specification. We consider
a wide range of ontology languages that comprises the description logics underlying
OWL 2 and all its profiles (OWL 2 EL, OWL 2 QL, and OWL 2 RL),1 and examine
mapping languages of different expressiveness (the so-called GAV and GLAV
mappings [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]) over sources corresponding to relational databases. We provide algorithms
and establish tight complexity bounds for the decision problems associated with both
local and global mapping inconsistency and mapping redundancy, and for both
combined complexity and TBox complexity (which only considers the size of the TBox).
1 http://www.w3.org/TR/owl2-profiles/
      </p>
      <p>The outcome of our analysis is twofold:
– in our framework, it is possible to define modular techniques that are able to reduce
the analysis of mappings to the composition of standard reasoning tasks over the
ontology (inconsistency, instance checking, query answering) and over the data
sources (query answering and containment). This is a non-trivial result, because
mappings are formulas combining both ontology and data source elements;
– the above forms of mapping analysis enjoy nice computational properties, in the
sense that they are not harder than the above mentioned standard reasoning tasks
over the ontology and the data sources (see Figure 1 and Figure 2) .</p>
      <p>According to the above results, in our OBDA framework, the analysis of mappings is
feasible for languages with nice computational properties, like the three OWL profiles.
2</p>
    </sec>
    <sec id="sec-2">
      <title>Theoretical background</title>
      <p>
        An OBDA specification is a triple J = hT ; S; Mi, where T is a DL TBox, S is
a source schema, and M is a mapping between the two. In this paper, we consider
TBoxes specified through DLs that are the logical basis of the W3C standard OWL and
of its profiles, i.e., SROIQ [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ], which underpins OWL 2, DL-LiteR [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ], which is the
basis of OWL 2 QL, RL [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ], a simplified version of OWL 2 RL, and E L?, a slight
extension of the DL E L [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], which is the basis of OWL 2 EL. The source schema is
assumed to be relational, and we consider both simple schemas, i.e., without integrity
constraints, and FD schemas, i.e., simple schemas with functional dependencies [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ].
The mapping is a set of assertions m of the form (x) ; (x), where (x), called the
body of m, and (x), called the head of m, are conjunctive queries (CQs) over S and
T , respectively. We use head (m) and body (m) to denote the head and the body of m.
      </p>
      <p>
        Mappings of the form above are called GLAV, and are the most expressive
commonly studied mappings [
        <xref ref-type="bibr" rid="ref12 ref7">12, 7</xref>
        ]. Besides them, we refer also to GLAVBE mappings,
which are GLAV mappings where (x) is a CQ with a bounded number of
occurrences of existential variables, and to GAV mappings, which are GLAV mappings where
head (m) does not admit existential variables.
      </p>
      <p>The semantics of an OBDA specification J = hT ; S; Mi is given in terms of
firstorder interpretations that satisfy both T and M, given a source instance D legal for S,
i.e., an instance for S that satisfies the constraints of S. We denote with Mod (J ; D) the
set of models of J w.r.t. D We also say that a mapping assertion m is active on a source
instance D if the evaluation of the query body (m) over D is non-empty. A mapping M
is active on D if all its mapping assertions m 2 M are active on D.</p>
      <p>
        Below we recall the definitions given in [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] that formalize the mapping analysis
services that we study in this paper. Given a TBox T , a source schema S, a mapping
assertion m, a mapping M, and an OBDA specification J = hT ; S; Mi, we have that
– m is (locally) inconsistent for hT ; Si if m is head-inconsistent for T , i.e., T j=
8x:(: (x)), or m is body-inconsistent for S, i.e., S j= 8x:(: (x)).
– M is globally inconsistent for hT ; Si if there does not exist a source instance D
legal for S such that M is active on D and Mod (J ; D) 6= ;.
– A mapping M0 is globally redundant for J if, for every source instance D that is
legal for S, Mod (hT ; S; Mi; D) = Mod (hT ; S; M [ M0i; D).
      </p>
      <p>Local mapping redundancy is a special case of global mapping redundancy in which
the mappings M and M0 are both composed of a single assertion.</p>
      <p>GAV GLAV
task DL-LiteR RL EL? SROIQ DL-LiteR RL EL?
local inc. =NLOGSPACE =P =P =N2EXPTIME =NLOGSPACE =P =P
global inc. =NLOGSPACE =P =P =N2EXPTIME =NLOGSPACE =P =P
local red. =NLOGSPACE =P =P =N2EXPTIME =NP =NP =NP
global red. =NLOGSPACE =P =P =N2EXPTIME =NP =NP =NP</p>
      <p>SROIQ
=N2EXPTIME
=N2EXPTIME
open
open
We summarize below our complexity results. We consider both TBox complexity, i.e.,
the complexity computed w.r.t. the size of the TBox only, and combined complexity.</p>
      <p>For both simple and FD schemas, and for both GAV and GLAV mappings, the
TBox complexity of local mapping inconsistency turns out to be the same as the TBox
complexity of ontology inconsistency. As for the combined complexity, simple and FD
schemas behave differently. For simple schemas, it is not necessary to check
bodyinconsistency (since there are no constraints in S), and thus the combined complexity
is the same as for mapping head-inconsistency, which in turn is the same as the
combined complexity of ontology inconsistency. For FD schemas we further need to check
whether the mapping assertion is body-consistent, which can be done in PTIME.
Combining together this result with the above bounds for simple schemas, we obtain the
exact bounds for combined complexity shown in Fig. 2.</p>
      <p>Global inconsistency can be reduced to checking the consistency of an OBDA
specification w.r.t. a (minimal) source database that activates M. In particular we have that
for both simple and FD schemas, for both GAV and GLAV mappings, the TBox
complexity of global mapping inconsistency is the same as the TBox complexity of
ontology inconsistency. As for combined complexity, we devise a non-deterministic
algorithm exploiting the above mentioned correspondence of global mapping inconsistency
and OBDA inconsistency. This algorithm allows us to prove that for both simple and
FD schemas, and for both GAV and GLAVBE mappings, it holds that: (i) if the
ontology language is DL-LiteR, RL, or E L?, then the combined complexity of global
mapping inconsistency is in NP; (ii) if the ontology language is SROIQ, then it is in
N2EXPTIME. We also prove that these bounds are in fact exact.</p>
      <p>As for redundancy, our investigation shows that both local and global redundancy
have the same computational behaviour. The complexity results are obtained with
techniques that resemble those used for establishing complexity of global inconsistency. All
our complexity results are reported in the tables in Fig. 1 and Fig. 2.</p>
      <p>Acknowledgments. This research has been partially supported by the EU under FP7
Large-scale integrating project Optique (grant n. FP7-318338).</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Serge</surname>
            <given-names>Abiteboul</given-names>
          </string-name>
          , Richard Hull, and
          <string-name>
            <given-names>Victor</given-names>
            <surname>Vianu</surname>
          </string-name>
          .
          <source>Foundations of Databases. Addison Wesley Publ. Co.</source>
          ,
          <year>1995</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <given-names>Natalia</given-names>
            <surname>Antonioli</surname>
          </string-name>
          , Francesco Castano`,
          <string-name>
            <surname>Spartaco</surname>
            <given-names>Coletta</given-names>
          </string-name>
          , Stefano Grossi, Domenico Lembo, Maurizio Lenzerini, Antonella Poggi, Emanuela Virardi, and
          <string-name>
            <given-names>Patrizia</given-names>
            <surname>Castracane</surname>
          </string-name>
          .
          <article-title>Ontologybased data management for the Italian public debt</article-title>
          .
          <source>In Proc. of FOIS</source>
          <year>2014</year>
          , pages
          <fpage>372</fpage>
          -
          <lpage>385</lpage>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <given-names>Franz</given-names>
            <surname>Baader</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Sebastian</given-names>
            <surname>Brandt</surname>
          </string-name>
          , and
          <string-name>
            <given-names>Carsten</given-names>
            <surname>Lutz</surname>
          </string-name>
          .
          <article-title>Pushing the E L envelope</article-title>
          .
          <source>In Proc. of IJCAI</source>
          <year>2005</year>
          , pages
          <fpage>364</fpage>
          -
          <lpage>369</lpage>
          ,
          <year>2005</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4. Diego Calvanese, Giuseppe De Giacomo, Domenico Lembo, Maurizio Lenzerini, and
          <string-name>
            <given-names>Riccardo</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="ref5">
        <mixed-citation>
          5. Diego Calvanese, Martin Giese,
          <string-name>
            <given-names>Peter</given-names>
            <surname>Haase</surname>
          </string-name>
          , Ian Horrocks, Thomas Hubauer, Yannis E. Ioannidis, Ernesto Jime´
          <fpage>nez</fpage>
          -Ruiz, Evgeny Kharlamov, Herald Kllapi, Johan W. Klu¨wer, Manolis Koubarakis, Steffen Lamparter,
          <string-name>
            <surname>Ralf</surname>
          </string-name>
          <article-title>M o¨ller</article-title>
          , Christian Neuenstadt,
          <string-name>
            <given-names>T.</given-names>
            <surname>Nordtveit</surname>
          </string-name>
          , O¨ zgu¨ r L. O¨ zc¸ep, Mariano Rodriguez-Muro, Mikhail Roshchin, Domenico Fabio Savo, Michael Schmidt, Ahmet Soylu, Arild Waaler, and
          <string-name>
            <given-names>Dmitriy</given-names>
            <surname>Zheleznyakov</surname>
          </string-name>
          .
          <article-title>Optique: OBDA solution for big data</article-title>
          .
          <source>In Proc. of ESWC 2013 Satellite Events</source>
          , volume
          <volume>7955</volume>
          <source>of LNCS</source>
          , pages
          <fpage>293</fpage>
          -
          <lpage>295</lpage>
          . Springer,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <given-names>Cristina</given-names>
            <surname>Civili</surname>
          </string-name>
          , Marco Console, Giuseppe De Giacomo, Domenico Lembo, Maurizio Lenzerini, Lorenzo Lepore, Riccardo Mancini, Antonella Poggi, Riccardo Rosati, Marco Ruzzi, Valerio Santarelli, and
          <article-title>Domenico Fabio Savo</article-title>
          . MASTRO STUDIO:
          <article-title>Managing ontologybased data access applications</article-title>
          .
          <source>PVLDB</source>
          ,
          <volume>6</volume>
          :
          <fpage>1314</fpage>
          -
          <lpage>1317</lpage>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <given-names>AnHai</given-names>
            <surname>Doan</surname>
          </string-name>
          , Alon Y. Halevy, and Zachary G. Ives.
          <article-title>Principles of Data Integration</article-title>
          . Morgan Kaufmann,
          <year>2012</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <given-names>Ian</given-names>
            <surname>Horrocks</surname>
          </string-name>
          , Oliver Kutz, and
          <string-name>
            <given-names>Ulrike</given-names>
            <surname>Sattler</surname>
          </string-name>
          .
          <article-title>The even more irresistible SROIQ</article-title>
          .
          <source>In Proc. of KR</source>
          <year>2006</year>
          , pages
          <fpage>57</fpage>
          -
          <lpage>67</lpage>
          ,
          <year>2006</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <given-names>Evgeny</given-names>
            <surname>Kharlamov</surname>
          </string-name>
          , Martin Giese, Ernesto Jimnez-Ruiz, Martin G. Skjveland, Ahmet Soylu, Dmitriy Zheleznyakov, Timea Bagosi, Marco Console,
          <string-name>
            <given-names>Peter</given-names>
            <surname>Haase</surname>
          </string-name>
          , Ian Horrocks, Sarunas Marciuska, Christoph Pinkel, Mariano Rodriguez-Muro, Marco Ruzzi, Valerio Santarelli, Domenico Fabio Savo, Kunal Sengupta, Michael Schmidt, Evgenij Thorstensen,
          <source>Johannes Trame, and Arild Waaler. Optique 1</source>
          .
          <article-title>0: Semantic access to big data: The case of Norwegian petroleum directorate's factpages</article-title>
          .
          <source>In Proc. of ISWC 2013 Posters &amp; Demos Track</source>
          , pages
          <fpage>65</fpage>
          -
          <lpage>68</lpage>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <given-names>Roman</given-names>
            <surname>Kontchakov</surname>
          </string-name>
          and
          <string-name>
            <given-names>Michael</given-names>
            <surname>Zakharyaschev</surname>
          </string-name>
          .
          <article-title>An introduction to Description Logics and query rewriting</article-title>
          . In Manolis Koubarakis, Giorgos B.
          <string-name>
            <surname>Stamou</surname>
          </string-name>
          , Giorgos Stoilos, Ian Horrocks, Phokion G. Kolaitis, Georg Lausen, and Gerhard Weikum, editors,
          <source>RW 2014 Tutorial Lectures</source>
          , volume
          <volume>8714</volume>
          <source>of LNCS</source>
          , pages
          <fpage>195</fpage>
          -
          <lpage>244</lpage>
          . Springer,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Domenico</surname>
            <given-names>Lembo</given-names>
          </string-name>
          , Jose´ Mora, Riccardo Rosati, Domenico Fabio Savo, and
          <string-name>
            <given-names>Evgenij</given-names>
            <surname>Thorstensen</surname>
          </string-name>
          .
          <article-title>Towards mapping analysis in ontology-based data access</article-title>
          .
          <source>In Proc. of RR</source>
          <year>2014</year>
          , volume
          <volume>8741</volume>
          <source>of LNCS</source>
          , pages
          <fpage>108</fpage>
          -
          <lpage>123</lpage>
          . Springer,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <given-names>Maurizio</given-names>
            <surname>Lenzerini</surname>
          </string-name>
          .
          <article-title>Data integration: A theoretical perspective</article-title>
          .
          <source>In Proc. of PODS</source>
          <year>2002</year>
          , pages
          <fpage>233</fpage>
          -
          <lpage>246</lpage>
          ,
          <year>2002</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Antonella</surname>
            <given-names>Poggi</given-names>
          </string-name>
          , Domenico Lembo, Diego Calvanese, Giuseppe De Giacomo, Maurizio Lenzerini, and
          <string-name>
            <given-names>Riccardo</given-names>
            <surname>Rosati</surname>
          </string-name>
          .
          <article-title>Linking data to ontologies</article-title>
          .
          <source>J. on Data Semantics</source>
          , X:
          <fpage>133</fpage>
          -
          <lpage>173</lpage>
          ,
          <year>2008</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <surname>Mariano</surname>
            Rodriguez-Muro,
            <given-names>Roman</given-names>
          </string-name>
          <string-name>
            <surname>Kontchakov</surname>
            , and
            <given-names>Michael</given-names>
          </string-name>
          <string-name>
            <surname>Zakharyaschev</surname>
          </string-name>
          .
          <article-title>Ontologybased data access: Ontop of databases</article-title>
          .
          <source>In Proc. of ISWC</source>
          <year>2013</year>
          , volume
          <volume>8218</volume>
          <source>of LNCS</source>
          , pages
          <fpage>558</fpage>
          -
          <lpage>573</lpage>
          . Springer,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>