<!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>Controlled Query Evaluation in DL-Lite through Epistemic Protection Policies (Extended Abstract)</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Gianluca Cima</string-name>
          <email>cima@diag.uniroma1.it</email>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Domenico Lembo</string-name>
          <email>lembo@diag.uniroma1.it</email>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Lorenzo Marconi</string-name>
          <email>marconi@diag.uniroma1.it</email>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Riccardo Rosati</string-name>
          <email>rosati@diag.uniroma1.it</email>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Domenico Fabio Savo</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Sapienza Università di Roma</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Università degli Studi di Bergamo</string-name>
        </contrib>
      </contrib-group>
      <abstract>
        <p>This extended abstract summarizes our work recently accepted to the 33rd International Joint Conference on Artificial Intelligence, in which we present a new language for data protection policies in the Controlled Query Evaluation framework, based on the use of an epistemic operator. Controlled Query Evaluation (CQE) is an approach to safeguard sensitive information by filtering query responses to prevent users from inferring data declared confidential by a data protection policy [ 1, 2, 3, 4]. A critical aspect of CQE revolves around the expressiveness of the policy language, which allows to determine the information that must remain undisclosed. Previous literature has mainly considered only policies consisting of sentences, i.e. closed logical formulas, as in [5, 2, 3, 6]. Through this approach, it is only possible to impose that the truth value of a sentence in the policy cannot be inferred by asking queries to the system. For example, in [6] policy statements take the form ∀⃗((⃗) → ⊥), referred to as denial. Enforcing one such denial over the data means refraining from disclosing the inference of the Boolean conjunctive query (BCQ) ∃⃗ (⃗) by the system, even if the inference has occurred. For instance, the rule  1 = ∀, (Patient() ∧ admitted(, ) → ⊥) aims to keep undisclosed the fact that a patient is admitted to a hospital department. One may argue that the above dependency imposes an excessively stringent level of protection, since it denies the presence of any patient in the hospital to protect their identity, which is implausible in practice. A more efective approach could require the system not to answer the open query () : ∃(Patient() ∧ admitted(, )). Intuitively, a rule of this kind expresses that the set of patients that the system knows to be admitted to the hospital must not be disclosed. To properly capture this behaviour, we propose to use an epistemic operator  in policy formulas, in the spirit of [7, 8]. This allows us to formalize the epistemic state of the user, i.e., which information can be safely undisclosed for her. In our example, by expressing a rule like one could still allow the end user to infer that some patient has been admitted, while protecting the identities of all such patients. In fact, our proposal enables us to accomplish more than this. In a more advanced scenario, concealing the relationship between a patient and a hospital department should apply only if the patient has not signed a consensus form. This can be expressed by the following formula:</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Description Logics</kwd>
        <kwd>Data Protection</kwd>
        <kwd>First-Order Rewritability</kwd>
        <kwd>Epistemic Modal Logic</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>In essence, this formula stipulates that if a user knows a patient has been admitted, she must also know
the patient has signed a consent form. Consequently, if a patient has not signed a consent form, the
system cannot disclose her admission status.</p>
      <p>
        Hereafter, we employ standard notions of function-free first-order (FO) logics with unary and binary
predicates and, besides the alphabets of predicate names, constants and variables, we assume the
existence of an infinite set of symbols called labeled nulls. As customary when dealing with epistemic
operators, we adopt the standard name assumption [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]. Moreover, we write eval(, ℐ) to indicate the
evaluation of an FO sentence  over an FO interpretation ℐ. A Description Logic ontology is a FO
theory  ∪ , where  is a TBox and  is a quantified ABox [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] (i.e. a set of atomic FO formulas
predicating over constants and labeled nulls), and all the predicates occurring in  also occur in  . As
for user queries, we focus on BCQs and on Boolean Union of Conjunctive Queries (BUCQs).
      </p>
      <p>
        Formulas as  2 and  3 belong to the language of epistemic dependencies (EDs) which, in general, take
the following form:
∀⃗1, ⃗2((⃗1, ⃗2) → ℎ(⃗2))
(1)
where (⃗1, ⃗2) is a CQ with free variables ⃗1 ∪ ⃗2, ℎ(⃗2) is a CQ with free variables ⃗2, and 
is a modal operator. EDs have been originally introduced in [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] to express integrity constraints in
ontology-based data management and are indeed a special case of domain-independent EQL-Lite(CQ)
sentences [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ]. A policy consisting of EDs is called epistemic policy. In the present paper, we use EDs as
policy rules that must be satisfied to preserve data confidentiality over Descprition Logic ontologies,
similarly as integrity constraints must be satisfied to guarantee data consistency. However, our aim is
totally diferent from that of [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ], whose focus is on consistency checking.
      </p>
      <p>Intuitively, an ED of form (1) should be read as follows: if the sentence (⃗1, ⃗2) is known to hold,
then the sentence ℎ(⃗2) is known to hold, for any sequences of constants ⃗1 and ⃗2 of the same length of
⃗1 and ⃗2, respectively. More formally, we say that a FO theory Φ satisfies an ED  (denoted Φ |=EQL  )
if, for every sequences of constants ⃗1 and ⃗2 of the same length of ⃗1 and ⃗2, respectively, the fact that
eval((⃗1, ⃗2), ℐ) is true for every ℐ ∈ ℳ implies that eval(ℎ(⃗2), ℐ) is true for every ℐ ∈ ℳ, where
ℳ is the set of all FO models of Φ . We say that Φ satisfies a policy  (denoted Φ |=EQL ) if Φ satisfies
every  ∈ .</p>
      <p>
        Now, to completely characterize our CQE framework, we need to specify its semantics. This issue is
addressed in CQE through censors. Here, we employ CQ-censors, introduced in [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. To this aim, we first
define the notion of CQE instance as a triple ℰ = ⟨ , , ⟩, where  is a TBox,  is a quantified ABox
such that  ∪  has at least one model, and  is an epistemic policy such that  |=EQL . The notion
of (optimal) CQ-censors is then as follows.
      </p>
      <p>Definition 1 (CQ-censor). A CQ-censor of a CQE instance ℰ = ⟨ , , ⟩ is a set  of BCQs such that
()  ∪  |=EQL  and ()  ∪  |=  for every  ∈ . Moreover,  is an optimal CQ-censor of ℰ if
there does not exist any CQ-censor ′ of ℰ such that ′ ⊃  .</p>
      <p>
        As in [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], we define CQE as the problem of checking whether an FO sentence is entailed by all
optimal censors. We call this problem SC-entailment (Skeptical entailment under CQ-censors). This
form of CQE does not sufer from the problem of having to arbitrarily select an optimal censor among
several incomparable ones [
        <xref ref-type="bibr" rid="ref3">3, 11</xref>
        ]. We also consider a sound approximation of SC-entailment, that we
call IC-entailment, consisting in checking whether an FO sentence is entailed by the intersection of all
optimal censors. We use the notation ℰ |=SC  (resp., ℰ |=IC ) for indicating that an FO sentence  is
SC-entailed (resp., IC-entailed) by a CQE instance ℰ .
      </p>
      <p>Example 1. Suppose that company C wants to share certain user-profiling data with a company C  for
targeted advertising. This is not allowed in general, but only in some countries with a special regulation
that enables sharing based on the users’ consent. C may use the following ED in the policy to enable C
to access only data compliant with the above requirements:</p>
      <p>4 = ∀, (︀ profileActivity(, ) →  ∃(citOf(, ) ∧ SR() ∧ Consent()))︀ .</p>
      <p>In the rule, profileActivitylinks a user with her profiling-data, citOf relates a user to her country of
citizenship, SR denotes countries with special regulation, and Consent denotes users who have given their
consent.</p>
      <p>Suppose that C also wants C not to be able to associate to a user with her real identity, and that this
is possible by collecting the person’s name and her date of birth at the same time. To this aim, C also
specifies the ED:</p>
      <p>5 = ∀, , (︀ (name(, ) ∧ dateB(, )) → ⊥)︀ .</p>
      <p>Now, let ℰ = ⟨ , , ⟩ be a CQE instance, where  = ∅,  = { 4,  5}, and  is as follows:
 = { profileActivity(u1, a1), Consent(u1), citOf(u1, 1), SR(1), name(u1, ann),</p>
      <p>dateB(u1, date1), profileActivity(u2, a2), citOf(u2, 1) },
where 1 is a labeled null and all the other terms used in  are constants. Let us also consider the following
four BCQs:
1 = ∃ (profileActivity(u1, a1) ∧ citOf(u1, ) ∧ SR()),
2 = profileActivity(u2, a2),
3 = ∃ profileActivity(, a2),
4 = profileActivity(u1, a1) ∧ name(u1, ann).</p>
      <p>For  ∈ {SC, IC}, one can verify that ℰ |= 1 since user u1 gave the consent and she is a citizen of some
country (1) with special regulation. Conversely, ℰ ̸|= 2 since u2 did not give the consent. Nevertheless,
one can verify that 3 belongs to each optimal CQ-censor of ℰ , and so ℰ |= 3. Finally, we have that
ℰ ̸|= 4 since there is an optimal CQ-censor  of ℰ such that dateB(u1, date1) ∈ , implying that
name(u1, ann) ̸∈  (otherwise  5 would be violated).</p>
      <p>
        We focus on TBoxes specified in DL-Liteℛ [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ], for which SC-entailment of BCQs is known to be
tractable in data complexity when policies are expressed as denials [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. Unfortunately, when the policy
consists of epistemic dependencies, such a problem turns out to be intractable in general, and the same
holds for IC-entailment.
      </p>
      <p>Theorem 1. In the case of CQE instances with DL-Liteℛ TBoxes, both SC-entailment and IC-entailment
of BUCQs are coNP-complete in data complexity.</p>
      <p>We remark that, in the above findings, the hardness for coNP holds already when the TBox is empty
and the query is a ground atom. To regain tractability, we then impose an acyclicity condition on the
policy  w.r.t. a DL-Liteℛ TBox  , defined as follows.</p>
      <p>Definition 2 (Acyclicity). We call dependency graph of ( , ) the direct graph whose nodes are the
predicates occurring in  ∪ , and whose edges (1, 2) correspond to the presence of 1 in the left-hand
side and 2 in right-hand side of either an ED in  (we call such edges P-edge) or a positive inclusion
axiom in  . We say that  is acyclic for  if there exists no cycle involving a P-edge in the dependency
graph of ( , ).</p>
      <p>For this class of epistemic policies, we are able to provide first-order rewriting algorithms for deciding
if a BUCQ is SC- or IC-entailed by a CQE instance, thus proving the following result.
Theorem 2. In the case of CQE instances with DL-Liteℛ TBoxes  and epistemic policies  acyclic for  ,
both SC-entailment and IC-entailment of BUCQs are in AC0 in data complexity.</p>
      <p>
        Besides the computational complexity study, we also carry out an analysis of the robustness of the
above-defined entailment semantics w.r.t. confidentiality-preservation. In [
        <xref ref-type="bibr" rid="ref3">12, 3, 13</xref>
        ], it is shown that
censoring mechanisms based on an indistinguishability criterion are indeed more secure than others. In
this regard, we adopt a similar approach to the one described in [12] for relational databases. Intuitively,
under such an approach an entailment semantics preserves confidentiality if, for every CQE instance
⟨ , , ⟩ and every finite set  of queries, the answers to such queries are the same as if they were
obtained from a (possibly diferent) CQE instance ⟨ , ′, ⟩ such that  ∪ ′ |=EQL . We here
describe this property formally. First, for a TBox  , a policy , two ABoxes  and ′, a set  of BUCQs,
and  ∈ {SC, IC}, we say that  and ′ are -indistinguishable for -entailment w.r.t. ( , ) if, for
every  ∈ , ⟨ , , ⟩ |=  if ⟨ , ′, ⟩ |= .
      </p>
      <p>Definition 3 (Confidentiality preservation) . For  ∈ {SC, IC}, we say that -entailment preserves
confidentiality for BCQs (resp., BUCQs) if, for every CQE instance ⟨ , , ⟩, and for every finite set  of
BCQs (resp., BUCQs), there exists an ABox ′ such that the following holds:
()  ∪ ′ |=EQL ;
()  and ′ are -indistinguishable for X-entailment with respect to ( , ).</p>
      <p>In the case of DL-Liteℛ ontologies, we can show that SC-entailment preserves confidentiality for
BCQs, but this result does not carry over to BUCQs. We however prove that the property is enjoyed
even for BUCQs in the case of IC-entailment.</p>
      <p>Acknowledgments
This work was partially supported by: projects FAIR (PE0000013) and SERICS (PE00000014) under the
MUR National Recovery and Resilience Plan funded by the EU - NextGenerationEU; GLACIATION
project funded by the EU (N. 101070141); ANTHEM (AdvaNced Technologies for Human-centrEd
Medicine) project (CUP B53C22006700001) funded by the National Plan for NRRP Complementary
Investments; the MUR PRIN 2022LA8XBH project Polar (POLicy specificAtion and enfoRcement for
privacy-enhanced data management); and by the EU under the H2020-EU.2.1.1 project TAILOR (grant
id. 952215).
[11] B. Cuenca Grau, E. Kharlamov, E. V. Kostylev, D. Zheleznyakov, Controlled query evaluation for
datalog and OWL 2 profile ontologies, in: Proc. of the 24th Int. Joint Conf. on Artificial Intelligence
(IJCAI), 2015, pp. 2883–2889.
[12] J. Biskup, T. Weibert, Keeping secrets in incomplete databases, Int. J. Inf. Sec. 7 (2008) 199–217.
[13] P. A. Bonatti, A false sense of security, Artificial Intelligence 310 (2022).</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>J.</given-names>
            <surname>Biskup</surname>
          </string-name>
          ,
          <article-title>For unknown secrecies refusal is better than lying</article-title>
          ,
          <source>Data and Knowledge Engineering</source>
          <volume>33</volume>
          (
          <year>2000</year>
          )
          <fpage>1</fpage>
          -
          <lpage>23</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>J.</given-names>
            <surname>Biskup</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P. A.</given-names>
            <surname>Bonatti</surname>
          </string-name>
          ,
          <article-title>Controlled query evaluation for enforcing confidentiality in complete information systems</article-title>
          ,
          <source>Int. J. Inf. Sec</source>
          .
          <volume>3</volume>
          (
          <year>2004</year>
          )
          <fpage>14</fpage>
          -
          <lpage>27</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>P. A.</given-names>
            <surname>Bonatti</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Sauro</surname>
          </string-name>
          ,
          <article-title>A confidentiality model for ontologies</article-title>
          ,
          <source>in: Proc. of the 12th Int. Semantic Web Conf. (ISWC)</source>
          ,
          <year>2013</year>
          , pp.
          <fpage>17</fpage>
          -
          <lpage>32</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>B.</given-names>
            <surname>Cuenca Grau</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E.</given-names>
            <surname>Kharlamov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>E. V.</given-names>
            <surname>Kostylev</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Zheleznyakov</surname>
          </string-name>
          ,
          <article-title>Controlled query evaluation over OWL 2 RL ontologies</article-title>
          ,
          <source>in: Proc. of the 12th Int. Semantic Web Conf. (ISWC)</source>
          ,
          <year>2013</year>
          , pp.
          <fpage>49</fpage>
          -
          <lpage>65</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>G. L.</given-names>
            <surname>Sicherman</surname>
          </string-name>
          , W. de Jonge, R. P. van de Riet,
          <article-title>Answering queries without revealing secrets</article-title>
          ,
          <source>ACM Trans. on Database Systems</source>
          <volume>8</volume>
          (
          <year>1983</year>
          )
          <fpage>41</fpage>
          -
          <lpage>59</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>D.</given-names>
            <surname>Lembo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Rosati</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D. F.</given-names>
            <surname>Savo</surname>
          </string-name>
          ,
          <article-title>Revisiting controlled query evaluation in description logics</article-title>
          ,
          <source>in: Proc. of the 28th Int. Joint Conf. on Artificial Intelligence (IJCAI)</source>
          ,
          <year>2019</year>
          , pp.
          <fpage>1786</fpage>
          -
          <lpage>1792</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>D.</given-names>
            <surname>Calvanese</surname>
          </string-name>
          , G. De Giacomo,
          <string-name>
            <given-names>D.</given-names>
            <surname>Lembo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Lenzerini</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Rosati</surname>
          </string-name>
          ,
          <article-title>Tractable reasoning and eficient query answering in description logics: The DL-Lite family</article-title>
          ,
          <source>J. of Automated Reasoning</source>
          <volume>39</volume>
          (
          <year>2007</year>
          )
          <fpage>385</fpage>
          -
          <lpage>429</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>M.</given-names>
            <surname>Console</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Lenzerini</surname>
          </string-name>
          ,
          <article-title>Epistemic integrity constraints for ontology-based data management</article-title>
          ,
          <source>in: Proc. of the 37th AAAI Conf. on Artificial Intelligence (AAAI)</source>
          , AAAI Press,
          <year>2020</year>
          , pp.
          <fpage>2790</fpage>
          -
          <lpage>2797</lpage>
          . URL: https://doi.org/10.1609/aaai.v34i03.5667. doi:
          <volume>10</volume>
          .1609/AAAI.V34I03.5667.
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>D.</given-names>
            <surname>Calvanese</surname>
          </string-name>
          , G. De Giacomo,
          <string-name>
            <given-names>D.</given-names>
            <surname>Lembo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Lenzerini</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Rosati</surname>
          </string-name>
          , EQL-Lite:
          <article-title>Efective first-order query processing in description logics</article-title>
          ,
          <source>in: Proc. of the 20th Int. Joint Conf. on Artificial Intelligence (IJCAI)</source>
          ,
          <year>2007</year>
          , pp.
          <fpage>274</fpage>
          -
          <lpage>279</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>F.</given-names>
            <surname>Baader</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Kriegel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Nuradiansyah</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Peñaloza</surname>
          </string-name>
          ,
          <article-title>Computing compliant anonymisations of quantified ABoxes w</article-title>
          .r.t.
          <source>ℰ ℒ policies, in: Proc. of the 19th Int. Semantic Web Conf. (ISWC)</source>
          , volume
          <volume>12506</volume>
          of Lecture Notes in Computer Science, Springer,
          <year>2020</year>
          , pp.
          <fpage>3</fpage>
          -
          <lpage>20</lpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>