<!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>Contextual Representation and Reasoning with Description Logics</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Luciano Serafini</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Martin Homola</string-name>
          <email>homola@fmph.uniba.sk</email>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
          <xref ref-type="aff" rid="aff2">2</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Comenius University, Faculty of Mathematics</institution>
          ,
          <addr-line>Physics and Informatics, Mlynska ́ dolina, 84248 Bratislava</addr-line>
          ,
          <country country="SK">Slovakia</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Fondazione Bruno Kessler</institution>
          ,
          <addr-line>Via Sommarive 18, 38123 Trento</addr-line>
          ,
          <country country="IT">Italy</country>
        </aff>
        <aff id="aff2">
          <label>2</label>
          <institution>premise Pop, wn by @ by LReas Push</institution>
          ,
          <addr-line>wc Pop, wc LReas</addr-line>
        </aff>
      </contrib-group>
      <abstract>
        <p>Despite most of the information available in the Semantic Web (SW) is context dependent, there is a lack of mechanism to qualify knowledge with the context in which it is supposed to hold. In the current practice, contextual information is often crafted in the ontology identifier or in the annotations, non of which affects reasoning. Extensions of the SW languages with specific mechanisms that allow to qualify knowledge, e.g., w.r.t. its provenance [6] or w.r.t. time and events [17], were proposed. Among other works that offer possible solutions [8, 22, 13], the most interesting are ALCALC [14] and Metaview [24], however, a widely accepted approach has not yet been reached. Instead of extending the current SW languages, we propose a shift of approach: to adapt the theories of context proposed by McCarthy [18] and well studied in AI [7, 15, 3]. We adopt the context-as-a-box metaphor [3] to represent context, in which a context is seen as a “box” containing knowledge in form of logical statements, whose boundaries are determined with contextual attributes (called dimensions) qualifying the knowledge inside the box. An example context representing knowledge about football in Italy in year 2010 is depicted in Fig. 1. We will most often rely on three dimensions: time, location and topic; but others were considered as well [15].</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>Introduction</title>
      <p>To clarify the requirements for contextual representation in the SW, consider a
scenario from the domain of football. Knowledge will be qualified with time, location, and
the following topics: football (FB), FIFA world cups (FWC), national football leagues
(NFL), world news (WN), and national news (NN). Suppose that all information about
FWC and NFL should be included in FB, and for each nation all facts about its NFL
should be included in its NN. Also all information about FWC should be included in
WN. On the other hand, only a part of information about NFL should be included in WN
(only that of worldwide interest). A well designed contextual representation formalism
should support the following requirements:
knowledge about context: knowledge about contexts such as contextual dimensions
and relations between contexts as for instance that one context is more specific
than some other, should be explicitly represented and reasoned about. For example,
we should be able to assert that the context of FWC in 2010 is more specific than
the context of FB and WN in the same year;
contextually bounded facts: in each context we should be able to state facts with local
effect that do not necessarily propagate everywhere, e.g., an axiom like “a player is
a member of only one team” should be true in some contexts (e.g., FWC, NFL, for
each year) but not in more general contexts like FB;
reuse/lifting of facts: be able to include “automatically” all the information contained
in more specific contexts. For example, facts in FWC should be lifted up into the
WN, and FB. This lifting should be done without spoiling locality of knowledge;
overlapping and varying domains: objects can be present in multiple contexts, but
not necessarily in all contexts, e.g., a player can exist in both the FWC context and
in the NFL contexts, but many players present in NFL will not be present in FWC;
inconsistency tolerance: two contexts may possibly contain contradicting facts. For
instance NN of Italy could assert that “Cassano is the best player of the world”,
while at the same time the world news report that “Rooney is the best player of the
world”, without making the whole system inconsistent;
complexity invariance: the qualification of knowledge by context should not increase
the complexity.</p>
      <p>
        Based on these requirements, we propose a framework called Contextualized
Knowledge Repository (CKR), build on top of the expressive description logic SROIQ3 [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]
that is behind OWL 2 [
        <xref ref-type="bibr" rid="ref26">26</xref>
        ]. A CKR knowledge base is composed of DL knowledge
bases, called contexts, each qualified by a set of contextual attributes that specify the
boundaries within which the knowledge base is assumed to be true. Contexts are
organized by a hierarchical coverage relation that regulates the propagation of knowledge
between them. The paper defines the syntax and semantics of CKR; shows that
concept satisfiability and subsumption are decidable with the complexity upper bound of
2NEXPTIME (i.e., same as for SROIQ); and finally it provides a sound and complete
Natural Deduction calculus that characterizes the propagation of knowledge between
contexts. Proofs of our statements are available in [
        <xref ref-type="bibr" rid="ref21">21</xref>
        ].
2
      </p>
    </sec>
    <sec id="sec-2">
      <title>Contextualized Knowledge Repository</title>
      <p>
        Logical representation of contextual knowledge is based on two classes of formulae:
one class to specify knowledge within contexts, and another to predicate about
contexts. McCarthy [
        <xref ref-type="bibr" rid="ref18">18</xref>
        ] proposed to use a unique language for both types of knowledge,
namely quantified modal logic. While this is optimal from the representational
perspective, it easily leads to undecidability. At the opposite extreme there are approaches such
3 Although we are able to represent any SROIQ axioms in CKR, to maintain decidability the
framework currently excludes reflexivity and role disjointness axioms. See [
        <xref ref-type="bibr" rid="ref21">21</xref>
        ] for discussion.
as multi-context systems [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ], distributed [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] or package-based description logics [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ],
where context structure is fixed and it is not possible to specify knowledge about
contexts, which limits their practical applicability. We therefore propose an intermediate
approach, by allowing to specify the context structure and properties in a (simple)
logical meta-language, but avoiding to mix it with the object-language used within each
context in order to maintain good computational properties.
      </p>
      <p>
        The meta-language is used to specify context structure. It uses a meta-vocabulary ,
a standard DL vocabulary that contains: (a) a set of individuals called context identifiers;
(b) a finite set of roles A = fA1; : : : ; Ang called dimensions; (c) for each dimension
A 2 A a set of individuals DA called dimensional values and a role A called coverage
relation. The number of dimensions n = jAj is assumed to be a fixed constant. This
will be important in order not to introduce additional complexity blow up. Also, relevant
research on contextual dimensions suggests that their number is usually very limited
[
        <xref ref-type="bibr" rid="ref16">16</xref>
        ]. The meta-assertions of the form A(C; d) for a context identifier C and some d 2
DA (e.g., time(c0; 2010)), state that the value of the dimension A of the context C is
d. The meta-assertions of the form d A e (e.g., Italy space Europe) state that the
value d of the dimensions A is covered by the value e. Depending on the dimension, the
coverage relation has different intuitive meanings, e.g., if A is space then the coverage
relation is topological containment, if A is topic then it is topic specificity.
      </p>
      <p>A (full) dimensional vector d is a set of assignments fA1:=dA1 ; : : : ; An:=dAn g,
with dAi 2 DAi for each 1 i n. Note that dAi (eAi ; : : : ) denotes the actual value
that d (e; : : : ) assigns to the dimension Ai. D is the set of all dimensional vectors of
. For any B A, dB = fB:=dB j B 2 Bg and if B A, then dB is called partial
dimensional vector. Note that dA = d. Given two (partial) dimensional vectors dB and
eC, the completion of dB w.r.t. eC is dB+eC = dB [ f(A:=eA) 2 eC j A 2= Bg.</p>
      <p>The object-language is used to specify knowledge inside the contexts. It uses an
object-vocabulary, obtained from any standard DL vocabulary (containing
individuals, concepts, and roles) by closing it w.r.t. what we call concept/role qualification.
That is, for every concept/role symbol X of and every (partial) dimensional
vector dB, a new concept/role symbol XdB , called the qualification of X w.r.t. dB, is
added to . Qualified symbols are necessary for cross context semantic reference,
e.g., the concept of “Italian professor” in the context of France will be formalized
by Professorlocation:=Italy. If not ambiguous we will omit the attribute name, using e.g.
ProfessorItaly instead of Professorlocation:=Italy.</p>
      <p>Definition 1 (Context). A context C on the meta/object-vocabulary pair h ; i is a
triple hid(C); dim(C); K(C)i where:
1. id(C) is a context identifier of ;
2. dim(C) is a full dimensional vector of D ;
3. K(C) is a DL knowledge base over .</p>
      <p>Note that while symbols appearing inside contexts can possibly be qualified with partial
dimensional vectors, dim(C), the dimensional vector of the context C, is never partial.
We use the notation Cd to denote a context with dim(C) = d.</p>
      <p>Definition 2 (Contextualized Knowledge Repository). A contextualized knowledge
repository (CKR) on a meta/object-vocabulary pair h ; i is a pair K = hM; Ci where:
1. C is a set of contexts on h ; i, one for each context identifier of ;
2. M, called meta-knowledge, is a DL knowledge base on where
(a) every A 2 A is a functional role;
(b) for every Cd 2 C, and every A 2 A, M j= A(id(Cd); dA);
(c) for every A 2 A, the relation fd A d0 j M j= A(d; d0)g is a strict partial
order on DA.</p>
      <p>For a CKR K, B A, dimensional vectors d, e, and contexts C, C0 we say: (a) e
covers d w.r.t. B (denoted d B e) if M j= B(dB; eB) for every B 2 B; (b) e covers
d (denoted d e) if d A e; (c) C0 covers C (denoted C C0) if dim(C) dim(C0).</p>
      <p>If one context covers another it means that its perspective is broader. We will see that
this is reflected in the semantics and the domain of the broader context always contains
the domain of the narrower context. The coverage induces a hierarchical organization
of contexts in each CKR. For instance Fig. 2 depicts the context coverage induced from
the following coverage relations between dimensional values:</p>
      <p>FWC topic WN
FWC topic FB</p>
      <p>NFL topic FB
NFL topic NN
africa
italy
space world
space world</p>
      <p>
        Besides for the coverage relation, which is explicitly expressed in CKR, there are
other relations between contexts [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ]. We chose to represent the coverage relation
because many other relations between contexts can be axiomatized on top of it. For
instance the temporal relation between contexts can be axiomatized via GCI axioms in
a broader context, e.g., to assert that everyone who is a professor in 2011 typically is
a professor also in 2012 (i.e., none of the years covers the other, but instead they are
consecutive), we can add the axiom Professor2011 v Professor2012 into some context
that covers both 2011 and 2012 (e.g., one associated with the decade 2011–2020).
      </p>
      <p>
        A model of a CKR is composed of local models for each context that must satisfy
some additional restrictions. Given a CKR K, a model for a context Cd is a pair Id =
d; Id such that Id j= K(Cd) in the usual DL sense [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ] with two exceptions: (a)
d may also be empty; (b) Id is not required to interpret individuals of that do not
occur in K(C). In the rest of the paper, whenever we write Id for any expression , we
will also mean that Id is defined on all constants occurring in .
      </p>
      <p>Definition 3 (CKR Model). A model of a CKR K is a family I = fIdgd2D of local
models such that for all d, e, and f , for every atomic concept A, atomic role R, atomic
concept/role X and individual a:
1. (&gt;d)If
2. (Af )Id
3. (Rf )Id
(&gt;e)If if d
(&gt;f )Id
(&gt;f )Id</p>
      <p>e
(&gt;f )Id
4. aId = aIe , given d
e, either if aId is defined,
or if aIe is defined and aIe 2</p>
      <p>d
e
d) if d</p>
      <p>e</p>
      <p>The semantics takes care that local domains respect the coverage hierarchy
(condition 1). Given contexts Cd Ce, if an individual a occurs in the narrower context then
it must be defined also in the broader context with the same meaning; if a only occurs in
the broader context however, it does not have to be defined in the narrower one
(condition 4). The interpretation of any concept or role qualified with some f 2 D is always
roofed under (&gt;f )Id in any context Cd, i.e., in a sense &gt;f represents the &gt; of Cf inside
Cd (conditions 2 and 3). This is always true regardless of the relation between Cf and
Cd. If Cd Ce then the interpretation of any concept and role Xf in these contexts must
be equal modulo the domain of the narrower context (conditions 7 and 8). Treatment of
partially qualified symbols is done in condition 5: missing values are always taken from
the current context in which the symbol appears. Therefore in the end all symbols (even
those with empty qualifying vector) are treated as fully qualified by the semantics.
Finally, for each CKR model we require that each local interpretation Id is a model of Cd
in the usual sense for DL (condition 9). Finally notice that ?d is always interpreted in
the empty set. Therefore we can simplify the notation by using just ?.
3</p>
    </sec>
    <sec id="sec-3">
      <title>Reasoning in CKR</title>
      <p>
        In the following we devise a proof theoretical characterization of CKR entailment in
the natural deduction (ND) style [
        <xref ref-type="bibr" rid="ref20">20</xref>
        ], with special focus on the rules for transferring
knowledge across contexts. We decide to characterize CKR entailment with ND, since
ND provides a clear intuition on how knowledge propagates across contexts. This
allows to show interesting properties of CKR reasoning like the fact that (a) in consistent
CKR, unconnected contexts do not interact (b) propagation always follows the coverage
relation, and other similar properties. ND formalisms also provide a first base for the
development of a forward reasoning algorithm, which constitutes a natural extension of
the forward local reasoning supported by OWLIM, the platform on top of which a first
version of CKR with limited expressive capacity of RDFS has been implemented [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ].
      </p>
      <p>
        We now briefly introduce ND, for more details see [
        <xref ref-type="bibr" rid="ref20">20</xref>
        ]. A ND calculus is a set of
inference rules of the form:
1
n
[Bn+1]
n+1
[Bn+m]
n+m
(1)
with n; m 0, where i and are formulae and Bi are sets of formulae. The i’s are
the premises of , is the conclusion and the Bi’s are the assumptions discharged by
. A deduction of depending on a set of formulae is a tree rooted in inductively
constructed starting from a set of assumptions in by applying the inference rules.
More formally: a formula is a deduction of depending on f g; if for each 1
i n + m, i is a deduction of i depending on i and the calculus contains a
rule of the form (1), then 1 n+m is a deduction of depending on (Sin=1 i) [
Sin=+nm+1 ( i n Bi) . A formula
is derivable from
if there is a deduction of
depending on a subset of .
      </p>
      <p>CKR reasoning tasks are, as in any DL, concept satisfiability and entailment;
however in CKR these tasks are relativized w.r.t. a context. A CKR K is d-satisfiable (a
concept C is d-satisfiable w.r.t. K) if there exists a model I of K with d 6= ; (CId 6= ;).
A formula is d-entailed by K (denoted K j= d : ) if Id j= in every model I of K.</p>
      <p>
        Reasoning rules in the ND calculus for CKR allow to deduce conclusions in one of
the contexts based on evidence from other contexts, they are therefore a kind of bridge
rules [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ]. As an example consider the following simple bridge rule:
d : A v B d
e : Ad v Bd
e
(2)
It implies that whenever A v B is true in a context Cd such that d e, then Ad v Bd
should be true in Ce. The rule is indeed sound thanks to conditions 5 and 6 of Definition
3 that impose that in any CKR model I the interpretation of A and B in Id coincide
respectively with the interpretations of Ad and Bd in Ie. The rationale of rule (2) is that
a statement in a narrower context, can be embedded into a larger context, by applying a
transformation that preserves its semantics.
      </p>
      <p>We generalize this idea by introducing the notion of embedding between DL
knowledge bases. An embedding is a function that translates expressions from one vocabulary
to another in a suitable manner. The input vocabulary will be split into c (symbols
fully specified w.r.t. the current context) and e (symbols external to the current
context) and each of the sets of symbols will be translated differently. More formally: let
and 0 be two DL alphabets, = c ] e, &gt; 2 c. A DL embedding is a total
function f : ! 0 that maps individuals, atomic concepts, and atomic roles of to
individuals, atomic concepts, and atomic roles of 0 respectively. For every embedding
f the extension f that maps complex expressions and axioms over into complex
expressions and axioms over 0 is recursively defined on top of f as given in Table 1.</p>
      <p>Two DL-interpretations I and I0 of and 0 respectively are said to comply with
the DL embedding f if: (a) aI = f (a)I0 for each individual a of such that aI is
defined; (b) XI = f (X)I0 for each concept/role X 2 c; (c) AI = f (A)I0 \ f (&gt;)I0
for each concept A 2 e; (d) RI = f (R)I0 \ f (&gt;)I0 f (&gt;)I0 for each role R 2 e.
Lemma 1. If I and I0 comply with the DL-embedding f : !
concept/role X, XI = (f (X))I0 ; (b) for every axiom , I j=
0 then: (a) for every
iff I0 j= f ( ).</p>
      <p>The specific embedding that will be instrumental in order to characterize the logical
consequence in CKR is now introduced as the @d operator.</p>
      <p>Definition 4 (@d operator). Given a CKR K over h ; i, for every d 2 D , the
operator ( )@d is defined as fd( ), using the embedding fd of into itself such that:
(a) fd(a) = a for every individual a; (b) fd(Xd0B ) = Xd0B+d for every concept/role
Xd0B 2 ; (c) c = fXd0B 2 j d0B dBg; (d) e = n c.
f(A) if A 2 c
f(&gt;) u f(A) if A 2 e
f (R) = ff((IR)) f(R) f(I ) iiff RR 22 ce
f (:C) = f(&gt;) u :f (C)
f (9R:C) = f9f(&gt;(R) )u:f9f((CR)):f (C) iiff RR 22 ce</p>
      <p>For instance if the concept Team occurs in Cd with d = hFWC; 2010; Africai, it
belongs to c as d0B dB for B = ;. Hence Team@d = TeamFWC;2010;Africa. This
is natural, as in a context wider than Cd the concept TeamFWC;2010;Africa is fully
defined by Team in ChFWC;2010;Africai. But NationalTeamFB 2= c as FB 6 FWC. Hence
NationalTeamFB@hFWC; 2010; Africai = NationalTeamFB;2010;Africa u&gt;FWC;2010;Africa.
Intuitively, to embed NationalTeamFB from ChFWC;2010;Africai into a broader context one
must restrict it to &gt;FWC;2010;Africa because its interpretation in the broader context may
be broader.</p>
      <p>A ND system for a CKR K = hC; Mi over h ; i is shown in Table 2. Here i
are either object-formulae of the form d : (d 2 D , is a DL formula over ) or
meta-formulae over , while and i are always object-formulae. A formula d :
is derivable from K and (denoted K; ` d : ) if it is derivable from [ fd : j 2
Cd; d 2 D g [ f j M j= g using the ND rules of Table 2. A shorthand K ` d : is
used for K; ; ` d : .</p>
      <p>Theorem 1 (Soundness and Completeness). K ` d : if and only if K j= d : .
Let us show some example deductions in the CKR K with structure depicted in Fig 2.
Example 1 shows how knowledge is propagated from Cwc to Ci via the common
supercontext Cf , and Example 2 shows how knowledge is propagated from Cwn to Cf via the
common sub-context Cwc. Finally Example 3 shows how contradicting knowledge can
coexist in different separated context.</p>
      <p>Example 1. The following deduction shows how the subsumption wc : WChamp v
Player propagates from the FWC context Cwc to the Italian NFL context Ci. Notice
that the result of this deduction, i.e., i : WChampwc v Playerwc, in the context Ci is
weaker than the premise as it holds only on the set of players of the Italian National
League. In other words, the knowledge shifting from Cwc to Ci is limited by the domain
of interpretation of Ci.
LReas</p>
      <p>Top</p>
      <p>Push
d : 9R:A(x)
d : ?(a)
e : &gt; v ?</p>
      <p>Bot
[d : &gt;(a)]
d : &gt; v ? aE
d : &gt; v ?
d :
e</p>
      <p>Pop
[d : R(x; y); d : A(y)]</p>
      <p>e :
e :
9E
f : 9Rd&gt; v &gt;d</p>
      <p>f : &gt; v 8Rd&gt;d
d :
e : &gt;d(an) d
e
d : A t B(x)
[d : A(x)] [d : B(x)]</p>
      <p>e : e :
e :
tE
e :
d : &gt;nR:A(x)
[d : yi 6= yj; d : R(x; yi); d : A(yi)]1 i6=j n
e :
(&gt;n)E
Restrictions : 1) LReas can be applied if every individual occurring in occurs in a i for
some 1 i n; 2) in the Push rule a1; : : : ; an are assumed to be all individuals occuring
in ; 3) the individuals a, y, and yi, 1 i n, occuring in aE, 9E, and (&gt;n)E are new, not
occuring elsewhere in K and the proof apart from the assumptions discharded by these rules.
Example 2. The following deduction shows how wn : Playerf v Pro (i.e., every
football player mentioned in the world news is a professional) propagates from Cwn to Cf ,
trough the common sub-context Cwc.
wn
f
wn
Notice that we did not infer that f : Playerf v Prown, i.e., that every Player of football
is a professional player in the world news, but the fact that this subsumption holds only
on the players of the FWC domain.</p>
      <p>Example 3. Suppose that the Italian News context Cin contains the facts that Rooney
does not take part to the Italian league in 2010, i.e., :&gt;i(Rooney), and that he is not
considered a good football player, i.e., :GoodPlayerf (Rooney). Suppose also that the
world news context Cwn contains the opposite evaluation, i.e. GoodPlayerf (Rooney).
In the CKR of Fig. 2, these two contradicting statements do not necessarily lead to
inconsistency. Indeed, to derive inconsistency one has to find a context where to combine
the two contradicting facts. However, to transfer the facts wn : GoodPlayerf (Rooney)
and in : :GoodPlayerf (Rooney) into a common context, one have to pass through Ci.
But the fact that Rooney is not an individual of Ci disables any inference about Rooney
in Ci. Model-theoretically we admit CKR models where RooneyIwn 6= RooneyIin .</p>
    </sec>
    <sec id="sec-4">
      <title>Decidability and Complexity</title>
      <p>Decidability of CKR entailment is proved indirectly by embedding a CKR into a single
DL knowledge base, we will again use DL-embeddings. Given a meta-vocabulary
and an object-vocabulary = NC ] NR ] NI, a DL-vocabulary #( ; ) = #NC ]
#NR ] #NI is defined as follows: #NC = fAed j A 2 NC ^ d; e 2 D g; #NR =
fRde j R 2 NR ^ d; e 2 D g; #NI = fae j a 2 NI ^ e 2 D g. An embedding of Cd
into #( ; ) is now done by the #d operator:
Xd0B ; (c) c =</p>
      <p>; (d) e = ;.</p>
      <p>Definition 5 (#d operator). Given K = hC; Mi over h ; i and d 2 D , ( )#d is
defined as gd( ), where gd : ! #( ; ) is a DL-embedding defined as follows:
(a) gd(a) = ad for every individual a; (b) gd(Xd0B ) = Xdd0B+d for every concept/role</p>
      <p>Using the #d operator we now transform a CKR K over h ; i into a DL theory
#(K) over #( ; ). For every individual a, concept C, role R, concept/role X, and for
every d; e; f 2 D , #(K) contains the following axioms (the gap in the numbering is
to maintain the correspondence with Definition 3):
1. &gt;fd v &gt;fe for d e;
2. Ced v &gt;e ;</p>
      <p>d
3. 9Red:&gt; v &gt;ed and &gt; v 8Red:&gt;ed;
4. ad = ae, if d e;
6. Xdd Xde, if d e;
7. Cfd Cfe u &gt;dd, if d e;
8. Idd Rfe Idd v Rfd and Rfd v Rfe, if d
9. #d for all 2 K(C) and d = dim(C).
e;
Lemma 2. Given a CKR K, (a) if K is d-satisfiable then #(K) is satisfiable; (b) if there
d
is a d such that #(K) 6j= &gt;d v ?, then K is d-satisfiable.</p>
      <p>
        Reasoning in CKR is now reduced into reasoning in SROIQ. Subsumption is
decidable for SROIQ KB that are --stratified [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ]. Hence we can prove decidability only
for CKRs that are transformed into --stratified KBs. We say that a CKR is --stratified
if the set of RIA Sd2D f(R v S)#d j R v S 2 K(Cd)g is --stratified. The RIA
introduced in step 8 are not --stratified, but it suffices to add Idd Rfe v S1, S1 Idd v Rfd,
where S1 is a new role w.r.t. each pair Rfd and Re. Hence if a K is --stratified, there is
f
a --stratified SROIQ KB equivalent to #(K), and hence subsumption is decidable.
Theorem 2. If K is --stratified, then checking if K j= d : C v D is decidable with the
complexity upper bound of 2NEXPTIME.
      </p>
      <p>
        The complexity upper bound is established by the fact that the number of
dimensions (a fixed constant) and also the number of contexts are bounded. The number of
contexts n is always smaller than the size m of the knowledge base K because in order
to initialize a context we must add several axioms into M. Consecutive analysis of the
construction of #(K) shows that its size is bounded by k m n2 for some constant
k, and therefore under O(m3). So the size of #(K) and the time required to generate it
is polynomial in the size of K.
Both aRDF [
        <xref ref-type="bibr" rid="ref25">25</xref>
        ] and Context Description Framework [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ] extend RDF triples by an
ntuple of qualification attributes with partially ordered domains. Apart from CKR being
based on SROIQ it differs from these approaches by qualifying whole theories and not
each formula separately. This approach is more compact as usually the context is shared
by a group of formulae. An extension of RDFS to cope with context was proposed by
[
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] and further developed in [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]. A new predicate isin(c; ) is used to assert that the
triple occurs in the context c. A set of operators to combine contexts (c1 ^ c1, c1 _ c2,
:c) and to relate contexts (c ) c2, c ! c2) is defined, making the approach particularly
suited for manipulating contexts. Unfortunately, no sound and complete axiomatization
or decision procedure was provided so far.
      </p>
      <p>
        The contextual DL ALCALC [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ] is a multi-modal extension of the ALC DL with
the contextual modal operator [C]rA representing “all objects of type A in all contexts
of type C reachable from the current context via relation r.” In both ALCALC and CKR
contextual structure is formalized in a meta-language separated from the domain
language used to describe the domain. The main difference is that CKR is more expressive
in the object-language (SROIQ vs. ALC) but less expressive in the contextual
assertions, allowing qualification of knowledge only w.r.t. individual contexts rather than
context classes as in ALCALC .
      </p>
      <p>
        The Metaview approach [
        <xref ref-type="bibr" rid="ref24">24</xref>
        ] enriches OWL ontologies with logically treated
annotations and it can be used to model contextual metadata similarly to CKR albeit on
per-axiom basis. The main difference is that in the Metaview approach the contextual
level has no implications on ontology reasoning. Instead, a contextually sensitive query
language MQL is provided.
      </p>
      <p>
        CKR is also logically related to approaches such as multi-context systems [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ],
distributed description logics [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ], and especially to package-based description logics [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]
and semantic imports [
        <xref ref-type="bibr" rid="ref19">19</xref>
        ]. While similar techniques are employed in CKR in order to
facilitate information reuse in between contexts, they are used to meet different goals.
The amount of information that is possibly “imported” from one context to another
by qualified symbols depends on the relation of these context in the CKR’s coverage
hierarchy, thus reflecting the underlaying ideas of the AI theories of context.
6
      </p>
    </sec>
    <sec id="sec-5">
      <title>Conclusion</title>
      <p>
        CKR is a novel framework for representing contextual knowledge in the SW. We have
provided a sound and complete axiomatization and we have shown that reasoning in
CKR is decidable at no additional complexity costs. After the recent introduction of
a tractable version of CKR built on top of RDFS [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ] we plan to investigate on other
tractable local languages, e.g., OWL-Horst [
        <xref ref-type="bibr" rid="ref23">23</xref>
        ]. For the tractable version we have
developed a prototype [
        <xref ref-type="bibr" rid="ref11 ref9">9, 11</xref>
        ] on top of the Sesame 2 RDF triple store, where contexts have
been naturally implemented with named graphs [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]. We also want to study a distributed
tableaux based reasoning technique for CKR.
Acknowledgements. The authors would like to thank to Andrei Tamilin, Mathew
Joseph, and Loris Bozzato. This work was supported from the LiveMemories project
(http://www.livememories.org/). Martin Homola also supported from the
Slovak national project VEGA 1/0688/10.
      </p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <string-name>
            <surname>Bao</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Tao</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>McGuinness</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          :
          <article-title>Context representation for the Semantic Web</article-title>
          .
          <source>In: WebSci10</source>
          (
          <year>2010</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Bao</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Voutsadakis</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Slutzki</surname>
            ,
            <given-names>G.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Honavar</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          :
          <article-title>Package-based description logics</article-title>
          .
          <source>In: Modular Ontologies, LNCS</source>
          , vol.
          <volume>5445</volume>
          , pp.
          <fpage>349</fpage>
          -
          <lpage>371</lpage>
          . Springer (
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Benerecetti</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bouquet</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ghidini</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          :
          <article-title>Contextual Reasoning Distilled</article-title>
          . JETAI
          <volume>12</volume>
          (
          <issue>3</issue>
          ),
          <fpage>279</fpage>
          -
          <lpage>305</lpage>
          (
          <year>2000</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <string-name>
            <surname>Borgida</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Serafini</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          :
          <article-title>Distributed description logics: Assimilating information from peer sources</article-title>
          .
          <source>JoDS 1</source>
          ,
          <fpage>153</fpage>
          -
          <lpage>184</lpage>
          (
          <year>2003</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <string-name>
            <surname>Carroll</surname>
            ,
            <given-names>J.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Bizer</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hayes</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Stickler</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          :
          <article-title>Named graphs, provenance and trust</article-title>
          .
          <source>In: WWW'05</source>
          .
          <string-name>
            <surname>ACM</surname>
          </string-name>
          (
          <year>2005</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6.
          <string-name>
            <surname>Ding</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Finin</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Peng</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>da</surname>
            <given-names>Silva</given-names>
          </string-name>
          ,
          <string-name>
            <given-names>P.P.</given-names>
            ,
            <surname>McGuinness</surname>
          </string-name>
          ,
          <string-name>
            <surname>D.</surname>
          </string-name>
          :
          <article-title>Tracking RDF graph provenance using RDF molecules</article-title>
          . In: ISWC (
          <year>2005</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <surname>Giunchiglia</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Serafini</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          :
          <article-title>Multilanguage hierarchical logics, or: how we can do without modal logics</article-title>
          .
          <source>Artif. Intell</source>
          .
          <volume>65</volume>
          (
          <issue>1</issue>
          ),
          <fpage>29</fpage>
          -
          <lpage>70</lpage>
          (
          <year>1994</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <surname>Guha</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>McCool</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Fikes</surname>
          </string-name>
          , R.:
          <article-title>Contexts for the Semantic Web</article-title>
          . In: ISWC (
          <year>2004</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Homola</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Serafini</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Tamilin</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Modeling contextualized knowledge</article-title>
          .
          <source>In: CIAO</source>
          (
          <year>2010</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Horrocks</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kutz</surname>
            ,
            <given-names>O.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sattler</surname>
            ,
            <given-names>U.</given-names>
          </string-name>
          :
          <article-title>The even more irresistible SROIQ</article-title>
          . In: KR (
          <year>2006</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Joseph</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Serafini</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          :
          <article-title>Simple reasoning for contextualized rdf knowledge</article-title>
          .
          <source>In: WoMo</source>
          (
          <year>2011</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Kazakov</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          :
          <article-title>An extension of complex role inclusion axioms in the description logic SROIQ</article-title>
          . In: IJCAR (
          <year>2010</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Khriyenko</surname>
            ,
            <given-names>O.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Terziyan</surname>
          </string-name>
          , V.:
          <article-title>A framework for context sensitive metadata description</article-title>
          .
          <source>IJSMO</source>
          <volume>1</volume>
          (
          <issue>2</issue>
          ),
          <fpage>154</fpage>
          -
          <lpage>164</lpage>
          (
          <year>2006</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <surname>Klarman</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <article-title>Gutie´rrez-</article-title>
          <string-name>
            <surname>Basulto</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          :
          <article-title>ALCALC : a context description logic</article-title>
          .
          <source>In: JELIA</source>
          (
          <year>2010</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15.
          <string-name>
            <surname>Lenat</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          :
          <article-title>Cyc: A large-scale investment in knowledge infrastructure</article-title>
          .
          <source>Commun. ACM</source>
          <volume>38</volume>
          (
          <issue>11</issue>
          ),
          <fpage>33</fpage>
          -
          <lpage>38</lpage>
          (
          <year>1995</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          16.
          <string-name>
            <surname>Lenat</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          :
          <article-title>The dimensions of context space</article-title>
          .
          <source>Tech. rep</source>
          .,
          <source>CYCorp</source>
          (
          <year>1998</year>
          ), http://www.cyc. com/doc/context-space.pdf
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          17.
          <string-name>
            <surname>Liao</surname>
            ,
            <given-names>H.C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Tu</surname>
          </string-name>
          , C.C.
          <article-title>: A RDF and OWL-based temporal context reasoning model for smart home</article-title>
          .
          <source>Inform. Tech. J. 6</source>
          ,
          <fpage>1130</fpage>
          -
          <lpage>1138</lpage>
          (
          <year>2007</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          18.
          <string-name>
            <surname>McCarthy</surname>
            ,
            <given-names>J.:</given-names>
          </string-name>
          <article-title>Notes on formalizing context</article-title>
          .
          <source>In: IJCAI</source>
          (
          <year>1993</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          19.
          <string-name>
            <surname>Pan</surname>
            ,
            <given-names>J.Z.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Serafini</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zhao</surname>
            ,
            <given-names>Y.</given-names>
          </string-name>
          :
          <article-title>Semantic import: An approach for partial ontology reuse</article-title>
          .
          <source>In: WoMo-06</source>
          (
          <year>2006</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          20.
          <string-name>
            <surname>Prawitz</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          : Natural Deduction:
          <string-name>
            <given-names>A</given-names>
            <surname>Proof-Theoretical Study</surname>
          </string-name>
          .
          <source>Almquist and Wiksell</source>
          (
          <year>1965</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          21.
          <string-name>
            <surname>Serafini</surname>
            ,
            <given-names>L.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Homola</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Contextualized Knowledge Repositories for the Semantic Web</article-title>
          .
          <source>Tech. Rep. 31940</source>
          ,
          <string-name>
            <surname>FBK</surname>
          </string-name>
          (
          <year>2011</year>
          ), https://dkm.fbk.eu/images/6/64/TR31940.pdf
        </mixed-citation>
      </ref>
      <ref id="ref22">
        <mixed-citation>
          22.
          <string-name>
            <surname>Stoermer</surname>
          </string-name>
          , H.:
          <article-title>Introducing context into Semantic Web knowledge bases</article-title>
          . In: CAiSE DC (
          <year>2006</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref23">
        <mixed-citation>
          23. ter Horst, H.J.:
          <article-title>Completeness, decidability and complexity of entailment for RDF Schema and a semantic extension involving the OWL vocabulary</article-title>
          .
          <source>J. Web Sem</source>
          .
          <volume>3</volume>
          (
          <issue>2-3</issue>
          ),
          <fpage>79</fpage>
          -
          <lpage>115</lpage>
          (
          <year>2005</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref24">
        <mixed-citation>
          24.
          <string-name>
            <surname>Tran</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Haase</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Motik</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Cuenca Grau</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Horrocks</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          :
          <article-title>Metalevel information in ontology-based applications</article-title>
          . In: AAAI (
          <year>2008</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref25">
        <mixed-citation>
          25.
          <string-name>
            <surname>Udrea</surname>
            ,
            <given-names>O.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Recupero</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Subrahmanian</surname>
            ,
            <given-names>V.S.</given-names>
          </string-name>
          :
          <article-title>Annotated RDF</article-title>
          .
          <source>ACM Trans. Comput. Log</source>
          .
          <volume>11</volume>
          (
          <issue>2</issue>
          ),
          <fpage>1</fpage>
          -
          <lpage>41</lpage>
          (
          <year>2010</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref26">
        <mixed-citation>
          26.
          <article-title>W3C: OWL 2 Web Ontology Language Document Overview</article-title>
          . W3C
          <string-name>
            <surname>Recommendation</surname>
          </string-name>
          (
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>