<!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>
      <journal-title-group>
        <journal-title>DL</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>Reasoning on Multi-Relational Contextual Hierarchies via Answer Set Programming with Algebraic Measures</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Extended Abstract</string-name>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Loris Bozzato</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Thomas Eiter</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Rafael Kiesel</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Fondazione Bruno Kessler</institution>
          ,
          <addr-line>Via Sommarive 18, 38123 Trento</addr-line>
          ,
          <country country="IT">Italy</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Technische Universität Wien</institution>
          ,
          <addr-line>Favoritenstraße 9-11, A-1040 Vienna</addr-line>
          ,
          <country country="AT">Austria</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2022</year>
      </pub-date>
      <volume>35</volume>
      <fpage>7</fpage>
      <lpage>10</lpage>
      <abstract>
        <p>This extended abstract summarizes our previous work on a defeasible extension of Description Logic (DL) for contextual reasoning.1 Here, we considered on the one hand the addition of multiple dimensions of defeasibility, allowing us to express for example that a rule has to be satisfied no matter the geographical context but that the rule can change in the next years. On the other hand, we showed that Answer Set Programming (ASP) especially when enhanced with algebraic measures provide a powerful tool to implement our framework and open up perspectives for the future.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Defeasible Knowledge</kwd>
        <kwd>Description Logics</kwd>
        <kwd>ASP</kwd>
        <kwd>Algebraic Measures</kwd>
        <kwd>Justifiable Exceptions</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        Reasoning with context dependent knowledge is a classical and fundamental theme in AI [
        <xref ref-type="bibr" rid="ref2 ref3">2, 3</xref>
        ].
Recently, it has gained increasing attention for the Semantic Web as knowledge resources must
be interpreted with contextual information from their metadata. Thus, several approaches have
been developed for contextual reasoning [
        <xref ref-type="bibr" rid="ref4 ref5 ref6">4, 5, 6</xref>
        ], mostly based on description logics.
      </p>
      <p>
        A rich framework among them are Contextualized Knowledge Repositories (CKR) [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]: CKR
knowledge bases (KBs) are 2-layered structures with a global context, which contains
contextindependent global knowledge and meta-knowledge about the structure of the KB, and local
contexts containing knowledge about specific situations (e.g., a region in space, a site of an
organization). The global knowledge is propagated to local contexts, where inherited axioms
may be defeasible, meaning that instances can be “overridden” on an exceptional basis [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ].
Reasoning from CKRs strongly links to logic programming and Answer Set Programming (ASP),
as the KBs are over a Horn-description logic and the working of defeasible axioms was inspired
by conflict handling in inheritance logic programs [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ]. Furthermore, answering instance and
conjunctive queries is possible via a uniform ASP program that employs a materialization
calculus [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ].
world :
 ⊓  ⊑ ⊥
      </p>
      <p>D( ⊑ )
branch :
 ⊓  ⊑ ⊥
 ⊑</p>
      <p>D( ⊑ )
local : ()
world_2019 :
 ⊓  ⊑ ⊥</p>
      <p>D( ⊑ )
branch_2019 :
 ⊓  ⊑ ⊥</p>
      <p>D( ⊑ )
local_2019 :
()
world_2020 :
branch_2020 :</p>
      <p>D( ⊑ )
D( ⊑ )
local_2020 :
branch_2021 :
local_2021 :</p>
      <p>
        For modeling and analyzing complex scenarios where global regulations can be refined by
more specific situations, the CKR model was extended in [ 10] to cater for defeasible axioms in
local contexts and knowledge inheritance across hierarchies, based on a coverage contextual
relation [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]. Here, coverage means that one context may be more specific than another: thus,
defeasible axioms from a general context can be overridden in a covered context that represents
a more specific situation.
      </p>
      <p>Example 1. In the left CKR in Figure 1, we model the employees of a company on three diferent
contextual levels, the world, a branch and a local site. There are people working in Electronics (),
Robotics () or as a Supervisor (). They can work either onsite () or remote (). At the
global level, supervisors should (by default) work in electronics. This is overwritten (by default)
in the branch, where supervisors should work in robotics. Therefore, the supervisor  at the local
context satisfies (), () and (), but not ().</p>
      <p>This approach, however, is limited to reason only on hierarchies based on this single type
of contextual relation. In practice, defeasible inheritance may be necessary under diferent
contextual relations. For instance, in our example, we may want to specify that  ⊑  is
actually defeasible w.r.t. time and D( ⊑ ) actually only holds since 2020.</p>
      <p>As the following extension of the example shows, this shortcoming can be approached by
introducing multi-relational CKRs.</p>
      <p>Example 2 (cont.). Consider the multi-relational CKR given on the right in Figure 1. Here,
denotes the coverage relation, and denotes the time relation. Note also that axioms are not
generally defeasible anymore, but only with respect to either coverage or time, denoted by D and
D, respectively.</p>
      <p>Given the adopted model, we can correctly derive that in 2019 at the local context we still
have () instead of (). This changes in the years 2020 and 2021, where we have () due
to the defeasible axiom D( ⊑ ) at context local_2020. Here, we also model that until the
current context changes with respect to time, supervisors need to work remotely using the axiom
D( ⊑ ). Thus, we have () instead of () in 2020 and 2021.</p>
      <p>A further limitation is that even for a single coverage relation, it is challenging to encode the
induced preference relation over CKR interpretations using ASP because the relation may not be
a strict partial order. By default, this is as assumed e.g. in the asprin framework [11] and dropping
this assumption in asprin leads to an increase in complexity. A specialized implementation for
preferential reasoning was introduced [12], which however needs to consider all answer sets of
a program to single out a preferred CKR model.</p>
      <p>We showed that we can overcome the first limitation by presenting a multi-relational version
of the CKR framework. The second limitation was attacked by encoding reasoning with
preferences in a recent extension of ASP with algebraic measures.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Contributions</title>
      <p>We made the following contributions:
• We generalized single-relational CKRs to multi-relational CKRs (MR-CKR), where axioms
are not defeasible in general but merely with regard to individual relations that model
coverage along diferent dimensions such as time or location. By a combination of
preferences over the distinct individual relations, we obtain an overall preference over
the models of a CKR.
• We showed how to model multi-relation CKRs in ASP. Specifically, we use to this end
ASP with algebraic measures [13], which is a foundation to express many quantitative
reasoning problems. Here, weighted logic formulas [14] measure values associated with an
interpretation ℐ by performing a computation over a semiring, whose outcome depends on
the truth of the propositional variables in ℐ. Such measures can be used for e.g. weighted
model counting, probabilistic reasoning and, as in our case, preferential reasoning.
• While asprin is a powerful tool for modeling preferences in ASP, it appears to be
illsuited for expressing multi-relational CKR. The reason are eval-expressions in CKRs,
which propagate predicate extensions from one local context to another. We showed,
however, that under a well-behaved use of such expressions (according to a syntactic
disconnectedness condition), multi-relational CKRs can be expressed eficiently in asprin.
This enables us to use the asprin solver to evaluate preferences for CKRs, which we
showcased in a prototype implementation.
• Furthermore, ASP with algebraic measures opens up the possibility of reasoning tasks
for CKRs beyond asprin’s capability, even in absence of eval-expression. As examples,
we consider obtaining preferred CKR models by overall weight queries and epistemic
reasoning, which for description logics is specifically needed in aggregate queries [15].</p>
    </sec>
    <sec id="sec-3">
      <title>3. Discussion and Conclusion</title>
      <p>We considered the application of ASP with algebraic measures for expressing preferences of
defeasibility in multirelational CKRs. Specifically, we found special cases in which asprin can be
used for eficient reasoning and explored advanced reasoning scenarios, where the expressivity
and flexibility of algebraic measures ofers an advantage.</p>
      <p>We plan to further study the possibilities for epistemic reasoning on DLs enabled by algebraic
measures. With respect to contextual reasoning, a possible continuation of this work may
consider a refinement of the definitions of preference and knowledge propagation across
diferent contextual relations, possibly moving towards non-Horn DLs in contexts [16]. Apart
from further theoretical aspects, we plan to consider a motivating real-world application.</p>
    </sec>
    <sec id="sec-4">
      <title>Acknowledgments</title>
      <p>This work was partially supported by the European Commission funded projects “Humane AI:
Toward AI Systems That Augment and Empower Humans by Understanding Us, our Society
and the World Around Us” (grant #820437) and “AI4EU: A European AI on Demand Platform
and Ecosystem” (grant #825619), and the Austrian Science Fund (FWF) project W1255-N23. The
support is gratefully acknowledged.
[10] L. Bozzato, L. Serafini, T. Eiter, Reasoning with justifiable exceptions in contextual
hierarchies, in: M. Thielscher, F. Toni, F. Wolter (Eds.), Principles of Knowledge
Representation and Reasoning: Proceedings of the Sixteenth International Conference, KR 2018,
Tempe, Arizona, 30 October - 2 November 2018, AAAI Press, 2018, pp. 329–338. URL:
https://aaai.org/ocs/index.php/KR/KR18/paper/view/18032.
[11] G. Brewka, J. P. Delgrande, J. Romero, T. Schaub, asprin: Customizing answer set
preferences without a headache, in: B. Bonet, S. Koenig (Eds.), Proceedings of the Twenty-Ninth
AAAI Conference on Artificial Intelligence, January 25-30, 2015, Austin, Texas, USA, AAAI
Press, 2015, pp. 1467–1474. URL: http://www.aaai.org/ocs/index.php/AAAI/AAAI15/paper/
view/9535.
[12] L. Bozzato, T. Eiter, L. Serafini, Justifiable exceptions in general contextual hierarchies,
in: G. Bella, P. Bouquet (Eds.), Modeling and Using Context. CONTEXT 2019, volume
11939 of Lecture Notes in Computer Science, Springer, 2019, pp. 26–39. doi:10.1007/
978-3-030-34974-5\_3.
[13] T. Eiter, R. Kiesel, Weighted LARS for quantitative stream reasoning, in: G. D. Giacomo,
A. Catalá, B. Dilkina, M. Milano, S. Barro, A. Bugarín, J. Lang (Eds.), ECAI 2020 - 24th
European Conference on Artificial Intelligence, 29 August-8 September 2020, Santiago
de Compostela, Spain, August 29 - September 8, 2020 - Including 10th Conference on
Prestigious Applications of Artificial Intelligence (PAIS 2020), volume 325 of Frontiers in
Artificial Intelligence and Applications , IOS Press, 2020, pp. 729–736. URL: https://doi.org/
10.3233/FAIA200160. doi:10.3233/FAIA200160.
[14] M. Droste, P. Gastin, Weighted automata and weighted logics, in: L. Caires, G. F. Italiano,
L. Monteiro, C. Palamidessi, M. Yung (Eds.), Automata, Languages and Programming, 32nd
International Colloquium, ICALP 2005, Lisbon, Portugal, July 11-15, 2005, Proceedings,
volume 3580 of Lecture Notes in Computer Science, Springer, 2005, pp. 513–525. URL:
https://doi.org/10.1007/11523468_42. doi:10.1007/11523468\_42.
[15] D. Calvanese, E. Kharlamov, W. Nutt, C. Thorne, Aggregate queries over ontologies, in:
Proceedings of the 2nd International Workshop on Ontologies and Information Systems
for the Semantic Web (ONISW 2008), Association for Computing Machinery, New York,
NY, USA, 2008, pp. 97–104. URL: https://doi.org/10.1145/1458484.1458500. doi:10.1145/
1458484.1458500.
[16] L. Bozzato, T. Eiter, L. Serafini, Reasoning with Justifiable Exceptions in ℰ ℒ⊥
Contextualized Knowledge Repositories, in: Description Logic, Theory Combination, and All That,
volume 11560 of LNCS, Springer, 2019, pp. 110–134.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>L.</given-names>
            <surname>Bozzato</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Eiter</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Kiesel</surname>
          </string-name>
          ,
          <article-title>Reasoning on multirelational contextual hierarchies via answer set programming with algebraic measures</article-title>
          ,
          <source>Theory and Practice of Logic Programming</source>
          <volume>21</volume>
          (
          <year>2021</year>
          )
          <fpage>593</fpage>
          -
          <lpage>609</lpage>
          . URL: https://doi.org/10.1017/S1471068421000284. doi:
          <volume>10</volume>
          .1017/ S1471068421000284.
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <surname>J. McCarthy</surname>
          </string-name>
          , Notes on formalizing context, in: R. Bajcsy (Ed.),
          <source>Proceedings of the 13th International Joint Conference on Artificial Intelligence. Chambéry</source>
          , France,
          <source>August 28 - September 3</source>
          ,
          <year>1993</year>
          , Morgan Kaufmann,
          <year>1993</year>
          , pp.
          <fpage>555</fpage>
          -
          <lpage>562</lpage>
          . URL: http://www-formal. stanford.edu/jmc/context3/context3.html.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>F.</given-names>
            <surname>Giunchiglia</surname>
          </string-name>
          , L. Serafini,
          <article-title>Multilanguage hierarchical logics, or: how we can do without modal logics</article-title>
          ,
          <source>Artificial Intelligence</source>
          <volume>65</volume>
          (
          <year>1994</year>
          )
          <fpage>29</fpage>
          -
          <lpage>70</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>U.</given-names>
            <surname>Straccia</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Lopes</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Lukácsy</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Polleres</surname>
          </string-name>
          ,
          <article-title>A general framework for representing and reasoning with annotated semantic web data</article-title>
          , in: M.
          <string-name>
            <surname>Fox</surname>
          </string-name>
          , D. Poole (Eds.),
          <source>Proceedings of the Twenty-Fourth AAAI Conference on Artificial Intelligence</source>
          ,
          <source>AAAI</source>
          <year>2010</year>
          , Atlanta, Georgia, USA, July
          <volume>11</volume>
          -
          <issue>15</issue>
          ,
          <year>2010</year>
          , AAAI Press,
          <year>2010</year>
          . URL: http://www.aaai.org/ocs/index. php/AAAI/AAAI10/paper/view/1590.
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>S.</given-names>
            <surname>Klarman</surname>
          </string-name>
          ,
          <article-title>Reasoning with Contexts in Description Logics</article-title>
          ,
          <source>Ph.D. thesis</source>
          , Free University of Amsterdam,
          <year>2013</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>L.</given-names>
            <surname>Serafini</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Homola</surname>
          </string-name>
          ,
          <article-title>Contextualized knowledge repositories for the semantic web</article-title>
          ,
          <source>Journal of Web Semantics</source>
          <volume>12</volume>
          (
          <year>2012</year>
          )
          <fpage>64</fpage>
          -
          <lpage>87</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>L.</given-names>
            <surname>Bozzato</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Eiter</surname>
          </string-name>
          , L. Serafini,
          <article-title>Enhancing context knowledge repositories with justifiable exceptions</article-title>
          ,
          <source>Artificial Intelligence</source>
          <volume>257</volume>
          (
          <year>2018</year>
          )
          <fpage>72</fpage>
          -
          <lpage>126</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>F.</given-names>
            <surname>Buccafurri</surname>
          </string-name>
          ,
          <string-name>
            <given-names>W.</given-names>
            <surname>Faber</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Leone</surname>
          </string-name>
          ,
          <article-title>Disjunctive logic programs with inheritance</article-title>
          , in: D. D.
          <string-name>
            <surname>Schreye</surname>
          </string-name>
          (Ed.),
          <source>Logic Programming: The 1999 International Conference (ICLP</source>
          <year>1999</year>
          ), MIT Press,
          <year>1999</year>
          , pp.
          <fpage>79</fpage>
          -
          <lpage>93</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>M.</given-names>
            <surname>Krötzsch</surname>
          </string-name>
          ,
          <article-title>Eficient inferencing for OWL EL</article-title>
          , in: T. Janhunen, I. Niemelä (Eds.),
          <source>Logics in Artificial Intelligence - 12th European Conference, JELIA 2010</source>
          , Helsinki, Finland,
          <source>September 13-15</source>
          ,
          <year>2010</year>
          . Proceedings, volume
          <volume>6341</volume>
          of Lecture Notes in Computer Science, Springer,
          <year>2010</year>
          , pp.
          <fpage>234</fpage>
          -
          <lpage>246</lpage>
          . URL: https://doi.org/10.1007/978-3-
          <fpage>642</fpage>
          -15675-5_
          <fpage>21</fpage>
          . doi:
          <volume>10</volume>
          . 1007/978-3-
          <fpage>642</fpage>
          -15675-5\_
          <fpage>21</fpage>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>