<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta />
    <article-meta>
      <title-group>
        <article-title>Querying Attributed DL-Lite Ontologies Using Provenance Semirings (Extended Abstract)</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Camille Bourgaux</string-name>
          <email>A@S</email>
          <email>R@S</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Ana Ozaki</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>DI ENS, CNRS, ENS, PSL University &amp; Inria, France KRDB Research Centre, Free University of Bozen-Bolzano</institution>
          ,
          <country country="IT">Italy</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Knowledge graphs often enrich data with contextual information (such as temporal validity or provenance of an assertion) in the format of annotations, which can be seen as attribute-value pairs. Recently, attributed description logics have been proposed to bridge the gap between the data format present in knowledge graphs and classical description logics [4, 3, 5]. The mentioned works analyse the complexity of the satisfiability problem for various attributed description logics. This extended abstract gives an overview of our work [1], published at AAAI 2019, on query answering in attributed description logics using provenance semirings. After investigating satisfiability and query answering in attributed DL-LiteR, we turn our attention to provenance information, one of the most common types of annotation in knowledge graphs. Indeed, since knowledge graphs often integrate data from multiple sources, one may not be only interested in obtaining query results but also in establishing levels of trust, or determining authorship, among others [7]. To deal with provenance information, we propose a new semantics based on provenance semirings, as first introduced in database theory [2] (and also recently studied in an ontology-based data access setting [6]). Attributed DL-LiteR Attributed DLs are defined over the usual DL signature with countable sets of concept names NC, role names NR, and individual names NI. We consider an additional set NU of set variables and a set NV of object variables. Annotation sets are defined as finite binary relations, understood as sets of attribute-value pairs. Attributes and values refer to domain elements and are syntactically denoted by individual names. To describe annotation sets, we use a set S of specifiers, which can be either set variables; closed specifiers bda1 : v1; : : : ; an : vnce; or open specifiers ba1 : v1; : : : ; an : vnc, where ai 2 NI and vi is either an individual name in NI, an object variable in NV, or an expression of the form X:a, with X a set variable in NU and a an individual name in NI. We use X:a to refer to the (finite, possibly empty) set of all values of attribute a in an annotation set X. Intuitively, closed specifiers define specific annotation sets whereas open specifiers merely provide lower bounds [3]. A ground specifier is a closed or open specifier that only contains individual names. A DL-Lite@R role (resp. concept) assertion is an expression R(a; b)@S (resp. A(a)@S), with R 2 NR (resp. A 2 NC), a; b 2 NI, and S 2 S a ground closed specifier. DL-Lite@R role and concept inclusions are of the form X : S (P v Q) and X : S (B v C) respectively, where X 2 NU, S 2 S is a closed or open specifier, and P; Q and B; C are respectively role and concept expressions defined by the following syntax, where A 2 NC, R 2 NR and S 2 S:</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>Q ::= P j :P;</p>
      <p>
        C ::= B j :B:
We require that all variables are safe, which intuitively means that if they appear on the
right side of an inclusion then they should also be associated to the concept on the left.
Example 1. In DL-Lite@R, we can express that those who are married (role spouse) to
someone are married (concept Married), and that this fact is associated with the same
sources from which the information has been extracted (attribute src): 9spouse@X v
Married@bsrc : X:srcc: The assertion spouse(gabor; ryan)@[src : s1; src : s2] states that
Gabor is married to Ryan and it is annotated with the sources of this information.
We similarly define attributed conjunctive queries by associating concept and role names
with specifiers. The formal definition of the semantics is given in [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ].
We establish complexity results for the satisfiability and query entailment problems.
Theorem 3. In DL-Lite@R, satisfiability and query entailment are PSPACE-complete.
When the ontology does not contain variables, query entailment is NP-complete.
We now define a new semantics for dealing with provenance, which is based on semirings.
Provenance semirings-based semantics We study query entailment in attributed
DLLite using a provenance semiring-based semantics. We represent provenance with the
positive algebra provenance semiring for NI, defined as the commutative semiring of
polynomials with variables in NI and coefficients from N, with operations defined as
usual: K = (N[NI]; +; ; 0; 1) [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]. We denote by NP the set of polynomials of K and
by NS the subset of NP containing the sums of the commutative monoid (N[NI]; +; 0).
We allow to use provenance polynomials from NP as values in a specifier associated
to the whole query and provenance sums from NS as values in specifiers occurring in
the ontology or associated with query atoms. Intuitively, + indicates alternative use of
the data while indicates join use of the data. For instance, if the result of a query
over an ontology can be obtained from source s3 together with any of s1; s2 then the
provenance polynomial is: (s1 + s2) s3: The main idea is that now we allow the whole
query to be annotated with a provenance polynomial and such query is entailed if the
polynomial represents the alternative and join uses of the data. More specifically, we
introduce semiring attributed queries, which are attributed queries where we associate a
specifier to the whole query [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ].
      </p>
      <p>Example 4. The query (Married(a)^Married(b))@bsrc: s1 (s2 +s3); cls: pub cnfc is
entailed by the assertions Married(a)@bdsrc: s1; cls: pubce, Married(b)@bdsrc: s2; cls: cnfce,
and Married(b)@bdsrc: s3; cls: cnfce. The fact that a and b are both married is obtained by
combining s1 with s2 or s3, and by having access to public and confidential information.
Sums may also appear in concept inclusions, e.g., X : bsrc : s1 + s2c(9spouse@X v
Married@X); which requires that the fact that someone has a spouse has to be associated
both with s1 and with s2 to conclude that this person is married.</p>
      <p>We establish complexity results for this variant of attributed DL-Lite, which we call
DL-Lite@R;K. The salient results of our investigation are the EXPTIME-hardness for the
satisfiability problem, and the NP-completeness of query entailment for a restricted class
of ontologies, called simple, that allows for inclusions among atomic concepts or roles
of the form E1@S v E2@T where S and T are ground specifiers.</p>
      <p>Theorem 5. In DL-Lite@R;K, satisfiability is EXPTIME-hard and in 2EXPTIME. When
the ontology is simple, query entailment is NP-complete.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <given-names>Camille</given-names>
            <surname>Bourgaux</surname>
          </string-name>
          and
          <string-name>
            <given-names>Ana</given-names>
            <surname>Ozaki</surname>
          </string-name>
          .
          <article-title>Querying attributed DL-Lite ontologies using provenance semirings</article-title>
          .
          <source>In Proceedings of AAAI</source>
          ,
          <year>2019</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Todd</surname>
            <given-names>J.</given-names>
          </string-name>
          <string-name>
            <surname>Green</surname>
            ,
            <given-names>Gregory</given-names>
          </string-name>
          <string-name>
            <surname>Karvounarakis</surname>
            , and
            <given-names>Val</given-names>
          </string-name>
          <string-name>
            <surname>Tannen</surname>
          </string-name>
          .
          <article-title>Provenance semirings</article-title>
          .
          <source>In Proceedings of PODS</source>
          ,
          <year>2007</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3. Markus Kro¨tzsch, Maximilian Marx, Ana Ozaki, and
          <string-name>
            <given-names>Veronika</given-names>
            <surname>Thost</surname>
          </string-name>
          .
          <article-title>Attributed description logics: Ontologies for knowledge graphs</article-title>
          .
          <source>In Proceedings of ISWC</source>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4. Markus Kro¨tzsch, Maximilian Marx, Ana Ozaki, and
          <string-name>
            <given-names>Veronika</given-names>
            <surname>Thost</surname>
          </string-name>
          .
          <article-title>Attributed description logics: Reasoning on knowledge graphs</article-title>
          .
          <source>In Proceedings of IJCAI</source>
          ,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <given-names>Ana</given-names>
            <surname>Ozaki</surname>
          </string-name>
          , Markus Kro¨tzsch, and
          <string-name>
            <given-names>Sebastian</given-names>
            <surname>Rudolph</surname>
          </string-name>
          .
          <article-title>Happy ever after: Temporally attributed description logics</article-title>
          .
          <source>In Proceedings of DL</source>
          ,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <given-names>Ana</given-names>
            <surname>Ozaki</surname>
          </string-name>
          and
          <article-title>Rafael Pen˜aloza. Provenance in ontology-based data access</article-title>
          .
          <source>In Proceedings of DL</source>
          ,
          <year>2018</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <given-names>Pierre</given-names>
            <surname>Senellart</surname>
          </string-name>
          .
          <article-title>Provenance and probabilities in relational databases</article-title>
          .
          <source>SIGMOD Record</source>
          ,
          <volume>46</volume>
          (
          <issue>4</issue>
          ):
          <fpage>5</fpage>
          -
          <lpage>15</lpage>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>