<!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>Object-Relational Queries over CF DI 8nc Knowledge Bases: OBDA for the SQL-Literate (extended abstract)1</article-title>
      </title-group>
      <contrib-group>
        <aff id="aff0">
          <label>0</label>
          <institution>Jason St. Jacques, David Toman and Grant Weddell Cheriton School of Computer Science University of Waterloo</institution>
          ,
          <country country="CA">Canada</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>- We first exhibit an ABox completion procedure for a given CF DInc knowledge 8 base K = (T ; A) with PTIME data complexity; the completion also serves as a basis for KB consistency checking.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>Overview and Main Results. Ontology based data access (OBDA) is concerned with
computing query answers over (possibly incomplete) data sources for which
background knowledge about the data, commonly captured in an ontology, is available. The
background knowledge enhances the understanding of the data source, provides
additional query answers that may not be explicit in the data itself, and can also simplify
query formulation.</p>
      <p>To address scalability issues relating to the volume of data, many current approaches
to OBDA focus on conjunctive queries (CQs) and ontologies based on DL dialects for
which CQ answering is in AC0/PTIME with respect to data complexity. Moreover, to
leverage advances in query processing in relational systems, approaches in which query
answering can be reduced to SQL query evaluation over a relational encoding of the
data are commonly sought.</p>
      <p>
        There are two lines of investigation in this area that have received considerable
attention: (i) the perfect rewriting-based approaches in which the given CQ is rewritten
with the help of the ontological knowledge (typically formulated in one of the
DLLite family of logics) in such a way that the resulting query can be executed over the
plain data yielding the desired answers [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], and (ii) the combined approaches in which
the data is completed using the ontological knowledge (formulated in DL-Lite or E L
logics) in such a way that the original query (modulo ontology-independent filtering)
can be executed over the data completion [
        <xref ref-type="bibr" rid="ref5 ref6 ref8 ref9">5, 6, 8, 9</xref>
        ].
      </p>
      <p>
        In this paper, we outline how a combination of query rewriting and data completion
can be used to enable OBDA directly over a relational data source in which background
knowledge is expressed in terms of CF DInc [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ], a dialect of the CF D family of
8
DLs [
        <xref ref-type="bibr" rid="ref10 ref12 ref4">4, 10, 12</xref>
        ] that has PTIME complexity for many of the fundamental reasoning
tasks, and that properly contains DL-LitecFore. Indeed, it is worth noting that, for CQs
over CF DInc KBs, OBDA cannot be accomplished by either using (perfect) query
8
rewriting alone, due to PTIME-completeness of CQ answering, nor by exclusive use
of the combined approach, due to the need to realize exponentially many prototypical
anonymous witnesses to represent types induced by value restrictions in a CF DInc
8
TBox.
      </p>
      <p>
        We solve this problem by introducing a novel technique based on combining query
rewriting with data completion. This is achieved in a three-step process by proceeding
(in a purely virtual sense) through the lens of a CF DInc ABox as follows:
8
1 This is an extended abstract for a paper to be presented at IJCAI 2016.
– We then define a query rewriting that produces a union of conjunctive queries Q0
from a given conjunctive query Q and T , and show that evaluating Q0 as a SQL
query over the above ABox completion, viewed as a relational database, computes
the certain answers of Q over K. A novel feature of this rewriting relates to the
generation of CQs to account for standard functional dependencies over relational
data sources, and is crucial in developing an OBDA framework that can entirely
avoid any need for object/individual invention or for “named nulls.”
– And finally, we show how a standard relational database schema can be naturally
captured as a (fragment of a) CF DInc TBox in a way that essentially obviates
8
the need for additional mappings between data sources and virtual ABoxes that are
typically utilized at this point, e.g., by [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. We then show how rewritten queries
can be executed over an underlying relational representation without the
abovementioned need for object invention.
      </p>
      <p>Experimental results relating to the LUBM benchmark are also given that confirm the
practicality of ABox completion by a direct manipulation of a relational data source. In
particular, the results suggest that execution time for ABox completion in this way is
comparable to the time required for raw data loading.</p>
      <p>On the Utility of CF DInc in OBDA over Relational Data Sources. We illustrate this
8
with the use of a hypothetical (object) relational schema, given in Figure 1, in which
single arrows denote named features, double arrows inheritance between tables, and
where primary keys are underlined. We assume the schema derives from “create table”
commands with primary and foreign key declarations, such as the following in the case
of tables CLASS and CHAIR:
create table CLASS (
dname STRING, num INT, iname STRING, room INT, time INT,
primary key (dname, num),
foreign key (dname) to DEPT, foreign key (iname) to PROF )
create table CHAIR (
name STRING, dname STRING, rname STRING,
primary key (name),
foreign key (name) to PROF ).</p>
      <p>In a CF DInc TBox, tables such as CLASS correspond to primitive concepts, while
8
attributes such as dname and dept correspond to concrete and abstract features.2 Here
are some examples of inclusion dependencies in the TBox for this schema:
1. To capture that table CLASS has attribute num and a foreign key to table DEPT:</p>
    </sec>
    <sec id="sec-2">
      <title>CLASS v (8num:INT) u (8dept :DEPT):</title>
      <p>Note that an (abstract) feature dept is introduced to capture the foreign key, and
that it is realized, in the relational schema, by a (concrete) feature dname (implicit
in the diagram in Figure 1).
2. To capture, respectively, the foreign and primary key declarations for table CHAIR
together with a requirement that there is at least one tuple in the DEPT table that
2 CF DI8nc is a dialect of the CF D family of DLs, and, as such, replaces roles that are
interpreted as binary relations with features that are interpreted as unary functions.</p>
      <sec id="sec-2-1">
        <title>STUDENT</title>
        <p>O
student
gpa
name
=5</p>
      </sec>
      <sec id="sec-2-2">
        <title>PERSON</title>
        <p>ia
inst
/</p>
      </sec>
      <sec id="sec-2-3">
        <title>TAKES</title>
        <p>mark
INT
o
o
/
dept
SK</p>
      </sec>
      <sec id="sec-2-4">
        <title>PROF</title>
        <p>reports
CHAIR o
class
room
time
num
/
name</p>
      </sec>
      <sec id="sec-2-5">
        <title>DEPT</title>
        <p>O
head</p>
        <p>dept
/ CLASS
DEPT:
values.
so on.
modeling.</p>
        <p>Fig. 1. A RELATIONAL SCHEMA.
refers to each tuple in CHAIR:</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>CHAIR v PROF u (CHAIR : name ! id );</title>
      <p>CHAIR v 9head 1 and 8head :CHAIR v DEPT:
Note that we employ the PFD concept constructor available in all CF D dialects to
capture a primary key. Its use in this case asserts that no distinct pair of CHAIR
objects can agree on name-values.
3. To capture that name values in table PERSON are disjoint from name values in table</p>
    </sec>
    <sec id="sec-4">
      <title>PERSON v :DEPT u (DEPT : name ! id ):</title>
      <p>
        Note again the use of the PFD concept constructor which, in this case asserts that
no combination of a PERSON object and DEPT object can have the same
nameFuture work. We briefly discuss how our adoption of CF DInc enables further
opti8
mizations on generated SQL queries that are outlined in [
        <xref ref-type="bibr" rid="ref11 ref4 ref7">4, 7, 11</xref>
        ], in particular, that
can be applied to reason about avoiding expensive duplicate elimination: removing
distinct keywords, replacing union operations by union all operations, and
      </p>
      <p>
        We also outline an avenue for further work in which techniques based on so-called
referring expressions recently proposed in [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] can be used to relax a primary key
compatibility condition for any relational data source. The condition requires any pair of
      </p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <given-names>Alexander</given-names>
            <surname>Borgida</surname>
          </string-name>
          , David Toman,
          <string-name>
            <given-names>and Grant</given-names>
            <surname>Weddell</surname>
          </string-name>
          .
          <article-title>On referring expressions in query answering over first order knowledge bases</article-title>
          .
          <source>In Principles of Knowledge Representation and Reasoning</source>
          ,
          <year>2016</year>
          . (in press).
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2. Diego Calvanese, Benjamin Cogrel, Sarah Komla-Ebri, Davide Lanti, Mart´ın Rezk, and
          <string-name>
            <given-names>Guohui</given-names>
            <surname>Xiao</surname>
          </string-name>
          .
          <article-title>How to stay ontop of your data: Databases, ontologies and more</article-title>
          . In The Semantic Web: ESWC 2015
          <string-name>
            <surname>Satellite Events - ESWC 2015 Satellite Events</surname>
            <given-names>Portorozˇ</given-names>
          </string-name>
          , Slovenia, May 31 - June 4,
          <year>2015</year>
          , Revised Selected Papers, pages
          <fpage>20</fpage>
          -
          <lpage>25</lpage>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3. 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. Autom. Reasoning</source>
          ,
          <volume>39</volume>
          (
          <issue>3</issue>
          ):
          <fpage>385</fpage>
          -
          <lpage>429</lpage>
          ,
          <year>2007</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Vitaliy L. Khizder</surname>
            , David Toman,
            <given-names>and Grant</given-names>
          </string-name>
          <string-name>
            <surname>Weddell</surname>
          </string-name>
          .
          <article-title>Reasoning about Duplicate Elimination with Description Logic</article-title>
          .
          <source>In Rules and Objects in Databases (DOOD, part of CL'00)</source>
          , pages
          <fpage>1017</fpage>
          -
          <lpage>1032</lpage>
          ,
          <year>2000</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <given-names>Roman</given-names>
            <surname>Kontchakov</surname>
          </string-name>
          , Carsten Lutz, David Toman,
          <string-name>
            <given-names>Frank</given-names>
            <surname>Wolter</surname>
          </string-name>
          , and
          <string-name>
            <given-names>Michael</given-names>
            <surname>Zakharyaschev</surname>
          </string-name>
          .
          <article-title>The combined approach to query answering in DL-Lite</article-title>
          .
          <source>In Principles of Knowledge Representation and Reasoning</source>
          , pages
          <fpage>247</fpage>
          -
          <lpage>257</lpage>
          ,
          <year>2010</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <given-names>Roman</given-names>
            <surname>Kontchakov</surname>
          </string-name>
          , Carsten Lutz, David Toman,
          <string-name>
            <given-names>Frank</given-names>
            <surname>Wolter</surname>
          </string-name>
          , and
          <string-name>
            <given-names>Michael</given-names>
            <surname>Zakharyaschev</surname>
          </string-name>
          .
          <article-title>The combined approach to ontology-based data access</article-title>
          .
          <source>In Proc. Int. Joint Conf. on Artificial Intelligence (IJCAI)</source>
          , pages
          <fpage>2656</fpage>
          -
          <lpage>2661</lpage>
          ,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <given-names>Huizhu</given-names>
            <surname>Liu</surname>
          </string-name>
          , David Toman,
          <string-name>
            <given-names>and Grant</given-names>
            <surname>Weddell</surname>
          </string-name>
          .
          <article-title>Fine Grained Information Integration with Description Logic</article-title>
          .
          <source>In Description Logics</source>
          <year>2002</year>
          , pages
          <fpage>1</fpage>
          -
          <lpage>12</lpage>
          . CEUR-WS vol.
          <volume>53</volume>
          ,
          <year>2002</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <given-names>Carsten</given-names>
            <surname>Lutz</surname>
          </string-name>
          , Inanc¸ Seylan, David Toman,
          <string-name>
            <given-names>and Frank</given-names>
            <surname>Wolter</surname>
          </string-name>
          .
          <article-title>The combined approach to OBDA: Taming role hierarchies using filters</article-title>
          .
          <source>In International Semantic Web Conference (1)</source>
          , pages
          <fpage>314</fpage>
          -
          <lpage>330</lpage>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <given-names>Carsten</given-names>
            <surname>Lutz</surname>
          </string-name>
          , David Toman,
          <string-name>
            <given-names>and Frank</given-names>
            <surname>Wolter</surname>
          </string-name>
          .
          <article-title>Conjunctive query answering in the description logic E L using a relational database system</article-title>
          .
          <source>In Proc. Int. Joint Conf. on Artificial Intelligence (IJCAI)</source>
          , pages
          <fpage>2070</fpage>
          -
          <lpage>2075</lpage>
          ,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10. David Toman and
          <string-name>
            <given-names>Grant E.</given-names>
            <surname>Weddell</surname>
          </string-name>
          .
          <article-title>Applications and extensions of PTIME description logics with functional constraints</article-title>
          .
          <source>In Proc. Int. Joint Conf. on Artificial Intelligence (IJCAI)</source>
          , pages
          <fpage>948</fpage>
          -
          <lpage>954</lpage>
          ,
          <year>2009</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11. David Toman and
          <string-name>
            <surname>Grant E. Weddell.</surname>
          </string-name>
          <article-title>Fundamentals of Physical Design and Query Compilation</article-title>
          .
          <source>Synthesis Lectures on Data Management</source>
          . Morgan &amp; Claypool Publishers,
          <year>2011</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12. David Toman and
          <string-name>
            <given-names>Grant E.</given-names>
            <surname>Weddell</surname>
          </string-name>
          .
          <article-title>Conjunctive Query Answering in CF Dnc: A PTIME Description Logic with Functional Constraints and Disjointness</article-title>
          .
          <source>In Australasian Conference on Artificial Intelligence</source>
          , pages
          <fpage>350</fpage>
          -
          <lpage>361</lpage>
          ,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13. David Toman and
          <string-name>
            <given-names>Grant E.</given-names>
            <surname>Weddell</surname>
          </string-name>
          .
          <article-title>On adding inverse features to the description logic CF D8nc</article-title>
          .
          <source>In PRICAI 2014: Trends in Artificial Intelligence - 13th Pacific Rim International Conference on Artificial Intelligence</source>
          , Gold Coast,
          <string-name>
            <surname>QLD</surname>
          </string-name>
          , Australia, pages
          <fpage>587</fpage>
          -
          <lpage>599</lpage>
          ,
          <year>2014</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>