<!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>Modeling Contextualized Knowledge</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Martin Homola</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Luciano Sera ni</string-name>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Andrei Tamilin</string-name>
          <email>tamilin@fbk.eu</email>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Comenius University</institution>
          ,
          <addr-line>FMFI, 84248 Bratislava</addr-line>
          ,
          <country country="SK">Slovakia</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>FBK-IRST</institution>
          ,
          <addr-line>Via Sommarive 18, 38123 Trento</addr-line>
          ,
          <country country="IT">Italy</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Most of the knowledge available in the Semantic Web is context dependent. Examples of contextual information that is associated with knowledge are time, topic, provenance, reliability, etc. Recently, several paradigms, tools and languages have been proposed with the aim of adding context awareness into the Semantic Web. That is, enabling representation and reasoning not only with the knowledge alone, but also with the associated contextual information. Examples include RDF quadruples, named graphs, annotated RDF, and contextualized knowledge repositories. These new paradigms introduce a new dimension into knowledge engineering: in addition to individuals, concepts, properties and their relations, we also need to de ne the set of contexts, and we need to \split" the knowledge between these contexts. In this paper, we propose a modeling exercise with one of the tools, for which we choose the contextualized knowledge repository. The example is complex enough to highlight many issues connected with contextualized knowledge representation, and it could possibly become the rst benchmark for contextual knowledge representation tools.</p>
      </abstract>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>The Wikipedia Infobox of the term \Italy" states that Italian President is
\Giorgio Napolitano"; clearly, this fact holds only during the current legislature.
Similarly, from Freebase one can see that Homer Simpson is a Nuclear Safety
Inspector and that John McCarthy is a professor of Stanford University, these two
facts hold under di erent circumstances, the former holds in the Simpsons
ctional world while the latter holds in the current real world. Searching for Diego
Maradona in the Sigma3 semantic search engine, one obtains that he is an
attacking mid elder, and he coaches Argentina national team. These two facts
cannot hold at the same time.</p>
      <p>
        These are just simple examples showing that most of the knowledge
retrievable from the Semantic Web is context dependent. Nevertheless, the information
about the context is usually not speci ed in Semantic Web resources, and when it
is so, e.g., by adding attributes like rdfs:comment, owl:AnnotationProperty,
etc., this information is completely ignored in the reasoning process. The
importance of contextualized knowledge has been widely recognized and this has
3 http://sig.ma/
motivated proposals for extending Semantic Web languages with the possibility
of qualifying knowledge w.r.t. some speci c contextual dimension. For instance
[
        <xref ref-type="bibr" rid="ref1 ref2">1, 2</xref>
        ] focus on the representation of knowledge provenance; [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ] allows the
representation of propositional attitudes, [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ] covers the dynamic aspect of knowledge
and knowledge about events. In the last years there have been also proposals for
a general context representation framework for the Semantic Web [5{7].
      </p>
      <p>
        Recently we have proposed a new architecture which accommodates
contextual knowledge within the current state-of-the-art semantic web technology [
        <xref ref-type="bibr" rid="ref8 ref9">8,
9</xref>
        ]. The architecture, called Contextualized Knowledge Repository (CKR), has
been also implemented on top of the state-of-the-art RDF triple store OWLIM4.
Main features of CKR are as follows:
1. knowledge is contextualized relying on the well studied theories of context
[10{15] and this contextualization is implemented inside the current
Semantic Web languages without any semantic extension. This is an advantage
since we want to rely on the plethora of existing Semantic Web tools;
2. a context is treated as a theory|set of sentences in a logical language, closed
under logical consequence|and it is associated with a \point" in a
dimensional space. Contexts are also rst class objects, and the logic provides
terms to denote them;
3. knowledge propagates across contexts according to schematic patterns. This
is done through so called quali ed concepts and roles which constitute a
semantic bridge between di erent contexts. Lifting axioms are thus hidden
from the user and they work automatically. This transfers part of the
complexity of the modeling task from the user to the system.
      </p>
      <p>In this paper, we show a practical modeling scenario on which the CKR
architecture is applied. We demonstrate the modeling capabilities and main
advantages of CKR. The proposed modeling scenario is from the FIFA World Cup
domain which has been chosen for its inherent contextual nature and it is
complex enough to highlight many issues connected with contextualized knowledge
representation. We believe that this scenario can be possibly remodeled also
in any other contextual Semantic Web framework thus constituting a modeling
benchmark in this area.
2</p>
    </sec>
    <sec id="sec-2">
      <title>The Modeling Domain</title>
      <p>As a case study for contextualized knowledge representation we propose the
domain of football and in particular we focus on the FIFA World Cup 2010. The
reasons for choosing this domain are the following:
1. it is a structured domain, and most of the information available, such as
teams, matches, scores, etc., can be easily represented with the standard
Semantic Web languages as RDF/OWL.
4 http://www.ontotext.com/owlim/
2. large part of the knowledge about this event is context dependent. For
instance, the players of a team can be di erent for each match. Two teams
can play one against the other in two di erent matches obtaining di erent
scores, a player can have a di erent role in di erent matches, etc.
3. the domain presents a high level of interconnection between knowledge
contained in di erent contexts. For instance the players of a team are always the
same along the entire competition, players do not change their shirt number,
etc.</p>
      <p>Already from the web site of the FIFA World Cup 20105, one can recognize
a certain level of contextual representation of the information, and how contexts
are used for a better presentation of the information. For instance, pages are
organized by team, by player, by single match. The information contained in
each single page focuses on a given topic, and it is supposed to hold within the
contextual boundaries of the page. The contextual structure is mainly driven
by the sake of e ective organization of the web site. We will analyze the page
content in detail, starting from more speci c pages, proceeding to the more
general, nally reaching the home page.</p>
      <p>Among the most speci c pages, there are the pages associated to each single
match. They contain information which holds only in that particular match.
For instance the lineup formation, the yellow/red cards, the substitutions, the
goals, etc. For instance the fact that \Gilardino was replaced by Di Natale" is
contained in the page for Match 11 of Group F, and it is supposed to hold in this
match (and not in other matches). In RDF, this information is represented by
a triple of the form \hAlberto Gilardinoi:his substituted byi:hAntonio di Natalei".
In this case, the triple is valid only in this particular context (i.e., that of the
Match 11). However, not all of the information contained in a page is context
dependent.</p>
      <p>For instance, the pages of matches contain more general information about
the teams, the players, etc. which also holds in a broader context. The page
related to the match also lists general information about players such as their
height, the club where they currently play, etc. This information is \imported"
and it is apparently listed here because it is considered to be relevant for the
context. It is important to notice that, only a part of all information that is
possibly available is \imported" in this context. For instance, the information
about the club is relative only on the current year, and not all the clubs a player
has ever played for.</p>
      <p>There are other pages associated with di erent phases of the competition.
For instance, the page entitled \group stage"6 summarizes the information of
the initial phase of the competition, such as the composition of groups, and
the matches taken within each group. Clearly, this information forms a broader
context that encompasses all of the matches of the group stage. Some of the
data listed cannot be associated with any of the particular matches, such as for
instance the composition and the nal ranking of each group.
5 http://www. fa.com/
6 http://www. fa.com/worldcup/matches/groupstage.html</p>
      <p>The broadest context is the one associated with the whole competition. It
contains information about the teams, the players, the stadiums, the schedule,
etc. Such a context is not the broadest one can imagine, indeed one could consider
all the di erent editions of the FIFA world cup, and the knowledge about all the
football leagues in each country. As a consequence the context \FIFA world cup
2010" should be inserted in a larger contextual structure that involves all the
other mentioned contexts.
3</p>
    </sec>
    <sec id="sec-3">
      <title>Contextualized Knowledge Repository</title>
      <p>
        According to the context as a box metaphor [
        <xref ref-type="bibr" rid="ref16">16</xref>
        ] a context can be viewed as
a box. Inside the box is a set of logical statements representing the
information associated with this particular context. This is the contextual data. The
boundaries of the box are then determined by a set of dimensional values. This
information is the contextual meta data, often simply marked as the outside of
the box. For instance, a match between Italy and Paraguay during the FIFA
World Cup can be represented by the following context:
      </p>
      <p>time(C; 2010-06-14); location(C; World); topic(C; FIFA WC Match 11)
C =</p>
      <p>TeamA(Team Italy)
TeamB(Team Paraguay)</p>
      <p>Referee(Benito Archundia)</p>
      <p>
        Although contexts are possibly de ned on top of any logical language, we
focus on RDF and OWL and hence we will build contexts on top of description
logics (DL) [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ]. This is due to the fact that OWL itself is built on top of the
DL SROIQ [
        <xref ref-type="bibr" rid="ref18">18</xref>
        ]. Furthermore we will assume that all the symbols that appear
either in the contexts or in dimensional information come from some shared
vocabulary .
      </p>
      <p>De nition 1 (Context). A context is a triple hC; dim(C); K(C)i such that:
1. dim(C) is a set of assertions of the form A(C; v) where A is called dimensional
attribute and v dimensional value;
2. K(C) is a DL knowledge base in SROIQ or some of its sublanguages.</p>
      <p>The set of dimensional values dim(C) of a given context C determines its
contextual boundaries. It is also called the dimensional vector of C. In a sense, it
indicates the position of the context in the dimensional space, which is generated
as the product of all dimensions. For instance the location dimension indicates
the geographical location associated with the context. Similarly for dimensions
such as time, topic and possibly others. A context is always speci ed with a total
dimensional vector in which values for each dimension are given. Later on we
will also employ partial dimensional vectors with some values missing (e.g., for
querying in a CKR).</p>
      <p>This determination may be precise, when all these values are constants. This
is the case of the context above, in which location is set to World, time is set to
2010-06-14, and topic is set to FIFA WC Match 11. Such contexts are called
primitive contexts. They contain information which is tightly bound with a particular
set of dimensional values.</p>
      <p>Besides for primitive contexts we will also make use of context classes. These
are more generic contexts that allow us to specify some information which is valid
for multiple sets of dimensional values. This is done by using a concept in place
of one or more of the dimensional values. The semantics will then take care of
that this information is associated with all primitive contexts whose dimensional
vectors \instantiate" the dimensional vector of the class context. Let us take for
example a generic context class representing a football match:</p>
      <p>time( ; &gt;); location( ; &gt;); topic( ; Football Match)
=</p>
      <p>TeamA v Football Team
TeamB v Football Team</p>
      <p>TeamA v :TeamB</p>
      <p>Provided that the value FIFA WC Match 11 is an instance of the concept
Football Match, the semantics will associate this information with the context
representing match 11 listed above, and similarly also with all other contexts
representing particular FIFA matches that instantiate the context class.</p>
      <p>In addition to context classes CKR o ers another more selective option to
propagate knowledge across contexts. With quali ed concepts and roles, one can
selectively query knowledge recorded in some other context. Syntactically this is
done by adding the dimensional vector of the queried context into the subscript.
For instance, if in the context of FIFA Match we wish to import information from
the context FIFA WC representing the FIFA World Cup, we may write an axiom
of the form:
9has NationalityFIFA WC :(Referee t Assistant Referee) u</p>
      <p>9is National Team OfFIFA WC :(TeamA t TeamB) v ?</p>
      <p>By this axiom it is required in the context of a match that referees and
assistant referees must not share nationality with any of the teams in the match.
Since the information about the nationalities is part of the context FIFA WC
we have used quali ed role names like has NationalityFIFA WC in order to
access this information. The semantics will take care of that the interpretation
of has NationalityFIFA WC is the same as the interpretation of has Nationality in
the context FIFA WC.</p>
      <p>This kind of knowledge transcendence is enabled by the fact that the topics
of FIFA World Cup and the one of FIFA match are related (i.e., the latter is a
subtopic of the former). Therefore the semantics of quali ed concepts and roles
is closely related to the hierarchy of contexts, which in turn re ects the hierarchy
of dimensions. Therefore a CKR consists of a collection of contexts C and of meta
knowledge about the dimensions D, as we formally de ne below.
De nition 2 (Contextualized Knowledge Repository). A contextualized
knowledge repository (CKR) is a pair K = hD; Ci where C is a set of contexts,
and D is a DL knowledge base such that:
1. D contains n distinct roles A = fA1; : : : ; Ang called dimensions (or
dimensional attributes);
2. for every dimension A 2 A, D contains a nite set DA called the dimension
values of A such that each v 2 DA is either a constant symbol or a concept
in D;
3. for every dimension A 2 A, D contains a role coversA whose domain and
range are the constants of DA;
4. the transitive closure of the relation fhd; d0i j D j= covers(d; d0)g, denoted by</p>
      <p>A, is a partial order on DA.</p>
      <p>Due to the hierarchy of dimensions, the organization of contexts in each
CKR is hierarchical as well. Given a CKR K and two contexts C1 and C2 with
dim(C1) = d and dim(C2) = e. We say that C1 is covered by C2 if dA A eA for
each A 2 A. This is denoted by C1 C2 (also d e).</p>
      <p>Context classes do not directly participate in the context hierarchy, as some
of their dimensional values are not constants. This corresponds with our intuition
that a context class is a special collection of knowledge that belongs into multiple
contexts. These contexts are called instances of a given context class. A context C
is an instance of a context class , if for each A 2 A either dim(C)A = dim( )A
or D j= dim( )A(dim(C)A)7. This is denoted by (C) (also (dim(C))).</p>
      <p>
        The semantics of a CKR is an extension of the model-theoretic semantics of
DL [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ]. A model of a CKR K = hD; Ci is a class of interpretations I = fIdgd2D,
Id = d; Id , that satis es certain additional constraints. The most important
of these constraints are:
1. Id is a model of the information associated with the dimensional vector d
(i.e., Id j= K(C) for every d 2 D, and Id j= K( ) for every context class
such that (d));
2. the hierarchy of contexts is re ected by the hierarchy of interpretation
domains (i.e., d e if d e);
3. interpretation of constants is shared by all contexts (i.e., aId = aIe for every
constant a);
4. interpretation of quali ed symbols is based on their home context (i.e.,
(Cd)Ie = CId \ e and (Rd)Ie = RId \ e e for any concept C and any
role R if d e or e d).
      </p>
      <p>
        Entailment in a CKR is de ned with respect to a particular context.
Id j=
De nition 3. A formula (i.e., a subsumption X v Y or an assertion A(a))
is entailed by the CKR K in d, denoted by K j= d : , if for each model I of K,
8.
7 The somewhat clumsy notation D j= dim( )A(dim(C)A) refers to the standard
DLrelated reasoning task of instance checking, i.e., it is to be read: the knowledge base
D implies that the constant dim(C)A is an instance of the concept dim( )A [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ].
8 The de nition of I j= X v Y and I j= A(x) is the standard one for description
logics [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ].
      </p>
      <p>
        All basic decision problems such as concept satis albility checking and
entailment with respect to a CKR knowledge base are decidable, and the complexity
of reasoning is not increased when compared to classical DL [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ].
      </p>
      <p>The advantages of explicit tracking of knowledge provenance by attaching
contextual meta information are apparent. In addition, our system provides
means for e cient manipulation of generic information that is valid in
multiple contexts using the construct of context class. Also, knowledge propagation
in the system is encoded in the semantics of quali ed concepts and roles and
the complexity is hidden from the user which leads to practical and e cient
modeling. We will demonstrate this in the next section.
4</p>
    </sec>
    <sec id="sec-4">
      <title>Modeling with CKR</title>
      <p>In this section we describe how we model the domain of football, in particular the
domain of FIFA Would Cup 2010, within a contextualized knowledge repository.
The modeling is composed of three basic components. The rst component is
the dimension hierarchies and the meta knowledge DFootball. In this knowledge
base we represent the structure of the contexts in which we organize all the
information about football. The structure of DFootball will be inspired by the
structure of the FIFA World Cup 2010 web site. The second component of the
modeling consists of the context classes which describe types of contexts that
we will deal with, such as for instance matches, teams, groups, etc. Each context
class contains all the axioms that should hold in all of its instance-contexts.
Finally, the third component of the model are the contexts, with all the speci c
knowledge.
4.1</p>
      <sec id="sec-4-1">
        <title>Context dimensions</title>
        <p>The knowledge base DFootball contains the meta knowledge and formalizes the
structure of the contexts in the repository in a logical form. In the proposed
implementation we consider the following three dimensions:
time: values are time intervals of the form hstart-time; end-timei.9 Coverage
relation is the standard containment relation between intervals. It does not
require explicit representation because the containment relation between two
intervals can be evaluated on the y;
location: values determine the geographical region in which the set of
statements in a context is true. This structure is represented by geographic
ontology encoded in OWL and constructed from Geonames10, the resource
of geographical places. The ontology de nes generic concepts, such as for
instance Geographic Area or Country as well as speci c individuals for
geographical places, such as World, Italy, or Florence. The concepts are then
9 For the sake of notation simplicity, to refer to the common temporal intervals, e.g.,
the whole year or day, we will just use the year or date instead of start-end tuple.
10 http://www.geonames.org/</p>
        <p>Context description time location topic
European Champions League 2010 2010 Europe Continental league
FIFA World Cup 2010 2007{2010 World FIFA WC
The nal tournaments of the FIFA 1990{2010 World
World Cup of the last 20 years
The group A of FIFA World Cup 2006 World FIFA WC group A
2006
TWhoerldnCalumpatch of the latest FIFA 2010 World</p>
        <sec id="sec-4-1-1">
          <title>FIFA WC nal match</title>
        </sec>
        <sec id="sec-4-1-2">
          <title>FIFA WC nal tournament</title>
          <p>4.2</p>
        </sec>
      </sec>
      <sec id="sec-4-2">
        <title>Context classes</title>
        <p>In the CKR architecture, context classes can be viewed as a tool which makes
the representation of knowledge more e ective. Axioms that are valid in many
contexts are asserted in a context class and they are automatically imported by
the semantics into all contexts that instantiate the class. For example, in every
context that describes a football match, certain general axioms should hold: e.g.,
there are two teams, one playing against the other, the number of players in the
match is eleven or less per team, there is a goalkeeper in each team, etc. Instead
of explicitly including all these axioms in each single context associated with a
football match, one can create the context class Match containing the axioms
and impose that all contexts that describe a particular match are instances of
this context class.</p>
        <p>Example 1. As an explanatory example we show the de nition of the context
class Match associated to every match
time(Match; Time Interval u 9start:( 1900));
location(Match; World);
topic(Match; Football Match)</p>
        <p>Team TeamA t TeamB
Match = TeamA v :TeamB</p>
        <p>Team v =11:in Lineup :&gt;
Team v 9has Captain:&gt;
has captain v in Lineup
: : :
The context class described above matches with all the contexts which describe
any football match which is taken in any part of the world after 1900. When a
context is declared to be an instance of this class it inherits the basic structure
of a football match and as well as all the constraints de ned in the context class
in terms of axioms.</p>
        <p>Example 2. Another example is a context class that speci es the composition of
a group during the FIFA World Cup and basic relations between the teams of
the group, for instance, there are exactly four teams in the group, and in the end
there is one winner and one runner-up winner who are among these four teams:
topic(FIFA Group; FIFA Group)</p>
        <p>Team Team1 t Team2 t Team3 t Team4
FIFA Group = Winner v Team</p>
        <p>Runner-up v Team
: : :
The context class FIFA Group will match any of the eight contexts representing
the actual groups of the FIFA World Cup, that is, groups A, B, C, D, E, F, G,
H, and as a result it will de ne the notions of the winner and the runner-up in
each of the groups.
4.3</p>
      </sec>
      <sec id="sec-4-3">
        <title>Contexts</title>
        <p>The declaration of the actual contexts in the repository concludes the modeling
process. It is important to stress that when a context is loaded into the CKR,
rst all matching context classes are identi ed and then axioms contained in
them are copied into the context. Let us now see some examples.
Example 3. To represent the FIFA World Cup group A 2010, one gives the
following de nitions:
time(GA 2010; 2010); location(GA 2010; World); topic(GA 2010; FIFA WC group A)</p>
        <p>Team1(Team Uruguay)
GA 2010 = :T:e:am2(Team Mexico)</p>
        <p>Winner(Team Uruguay)</p>
        <p>Runner-up(Team Mexico)</p>
        <p>Note that the axioms about the teams and the winners are imported due to
the fact that the dimension value FIFA WC group A is an instance of the concept
FIFA Group and hence the whole context is an instance of the eponymous context
class.</p>
        <p>Another powerful modeling mechanism proposed in the CKR is the notion
of quali ed concepts and roles. This mechanism allows to refer from one context
to concepts and roles of another context. For example, according to the format
of the FIFA World Cup, after the group stage matches only the winner and the
runner-up team from each group pass into the next tournament stage, called
\round of sixteen", here, group A is one context and a match in the round
of sixteen is another. With help of quali ed concepts and roles we are able to
express complex axioms in the latter context reusing knowledge of the former.
Example 4. To represent the constraint that during the match 46 in the round
of sixteen the teams Uruguay and Republic Korea are actually the winner and
the runner-up of the groups A and B accordingly, we insert the following axioms
in the context of the match:</p>
        <p>time(Match 49; 2010); location(Match 49; World); topic(Match 49; FIFA WC Match 49)
Match 49 = TTeeaammAA(vTeWaminUnerru2g0u10a;yW)orld;FIFA WC group A</p>
        <p>: : :
The semantics of quali ed symbols will take care that the quali ed concept
Winner2010;World;FIFA WC group A actually refers to Winner in the context with the
dimensions h2010; World; FIFA WC group Ai, that is, the one that we above named
GA 2010.</p>
        <p>Example 5. To represent the context of the nal match of the FIFA World Cup
2010, the following declarations can be used:
time(Final 2010; 2010); location(Final 2010; World); topic(Final 2010; FIFA WC nal match)
TeamA(Team Spain)</p>
        <p>TeamB(Team Netherlands)
Final 2010 = in Lineup(Team Netherlands; Maarten Stekelenburg)
in Lineup(Team Netherlands; Giovanni van Bronckhorst )
has Captain(Team Netherlands; Giovanni van Bronckhorst )
: : :
We also assert in the meta-knowledge that FIFA WC nal match is an instance
of the concept Football Match and hence this context will inherit all the axioms
from the context class Match. In addition, please note the role of each player
and the shirt number of the player do not change between the matches in one
tournament, thus this information is not speci ed here but it can be imported
from the more general context of the FIFA World Cup 2010 whenever needed.
This approach is also re ected at the actual web site of the FIFA tournament.
5</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>Conjunctive Query Answering over CKR</title>
      <p>In this section we will take a look on conjunctive query answering in a CKR. We
show how the notion of conjunctive query has to be generalized in order to be
useful in a situation involving multiple contexts and we will explain how answers
for the conjunctive queries are de ned. We will then show several examples of
conjunctive queries and the answers building on our FIFA World Cup scenario
introduced above.</p>
      <p>
        In the classical setting a conjunctive query (CQ) is an expression of the form
Q(x) 9y Vin=1 i(x; y) where x and y are tuples of variables, and each i(x; y)
is either an unary or a binary predicate taking variables from x and y [
        <xref ref-type="bibr" rid="ref19">19</xref>
        ]. In
the multi-contextual setting, conjunctive queries need to be parametrized also
with respect to a context.
      </p>
      <sec id="sec-5-1">
        <title>De nition 4 (Contextual Conjunctive Query). A contextual conjunctive</title>
        <p>query (CCQ) over a CKR is an expression of the form Q(x) 9y Vin=1 di :
i(x; y) where for each i, di is a possibly partial dimensional vector, and i(x; y)
is a conjunction of unary and binary predicates taking variables from x and y. If
x is empty then the query is called boolean. If for each i, di is a total dimensional
vector then the query is said to be fully contextualized.</p>
        <p>In CKR, queries can span over multiple contexts with di erent
conceptualizations and hence the result can be seen as a mash-up of knowledge from
di erent contexts. We will make use of substitution and completion. By [x=a]
we will understand the expression derived from in which each element of x is
replaced by the respective element of a. Given two dimensional vectors d and e,
by d + e we will understand a completed vector which contains all elements of
d plus the elements of e for those dimensions which d is missing. The semantics
of CCQ is de ned as follows.</p>
        <p>De nition 5. A fully contextualized boolean CCQ Q() 9y Vin=1 di : i(y) is
said to be entailed by a CKR K, if for each model I of K there is a substitution
u such that Idi j= (y)[y=u]. This is denoted by K j= Q().</p>
        <p>The expression e : a formed by a dimensional tuple e and a tuple of constants
a is an answer for a CCQ Q(x) 9y Vik=1 di : i(x; y) with respect to a CKR
K, if K j= Vik=1 di + e : i(x; y)[x=a].</p>
        <p>Let us now see some practical examples of CCQ.</p>
        <p>Example 6. As a simple example, consider the following query which retrieves
the list of all goalkeepers and the teams they play for in the current World Cup:
Q(x; y)</p>
        <p>h2010; World; FIFA WCi : Goalkeeper(x) ^ in Squad(x; y)
The answer set will look like:</p>
        <p>x y
Gianluigi Bu on Team Italy
Federico Marchetti Team Italy</p>
        <p>Tim Howard Team USA
Example 7. The previous query is concerned with a sole context of the 2010
World Cup, which is fully speci ed in the query. We may of course query over
multiple contexts. The next query retrieves the list of goalkeepers who played
for the team Italy in any FIFA World Cup:</p>
        <p>Q(x)</p>
        <p>hWorld; FIFA WCi : Goalkeeper(x) ^ in Squad(x; Team Italy)
As we can see, by omitting one of the dimensions in the dimensional vector
within the query, this query is evaluated by substituting all possible dimensional
values for this dimension and querying in every resulting context. This yields
the answer set:</p>
        <p>Context
time location
2010 World
2010 World
2006 World
2006 World</p>
        <p>World</p>
        <p>topic x
FIFA WC Gianluigi Bu on
FIFA WC Federico Marchetti
FIFA WC Gianluigi Bu on
FIFA WC Angelo Peruzzi</p>
        <p>FIFA WC
Note that the answer set is contextualized, that is, for each answer we get also
the context in which it answers the query. We can also see that some individuals
are listed more than once, each time in a di erent context.</p>
        <p>Example 8. Of course, we have the possibility to explicitly address more than
one context. In the following query, we ask about the list of players who did
in fact play in some match. For this we have to consider the context FIFA WC,
which contains the list of players and then the contexts of particular matches.
Q(x; y)</p>
        <p>9zh2010; World; FIFA WCi : in Squad(x; y) ^h2010; Worldi : in Lineup(z; x)
The rst context we have speci ed fully and for the second one we again use
the same feature as above: we omit the value for the topic dimension, thus all
possible values are substituted here. Due to the fact that the predicate in Lineup
is inherent to the contexts that represent matches, the query is evaluated once
per each match. The answer set will look as follows:
We can see that same goalkeepers played in several matches, but in addition
there are also matches in which more than one goalkeeper played.</p>
        <p>From the examples, we conclude that CCQ are a natural and particularly
versatile extension of CQ that provides a exible mechanism for data retrieval
over a CKR that allows us to retrieve and combine data from multiple contexts
and in addition it allows predicating over contextual meta data in order to re ne
the query.
6</p>
      </sec>
    </sec>
    <sec id="sec-6">
      <title>Related Work</title>
      <p>In this section we outline some notable approaches and systems for modeling
contextualized knowledge with semantic web technologies, particularly focusing
on the football domain selected for the use case in the present work. Though
the football domain is characterized by well structuredness of the available
information (e.g., tournaments, teams, players, matches, etc.), which simpli es its
representation with RDF/OWL semantic web standards, the challenging
problem is to re ect and consistently represent context dependency of the most of
knowledge with RDF/OWL (e.g., lineups within a certain match, authors of goal
shots, etc.).</p>
      <p>
        The 2006 FIFA World Cup was one of the main application scenarios
investigated within the SmartWeb11 research project. The corresponding knowledge
on the world cup has been encoded in the SWIntO Sport Event RDFS ontology
[
        <xref ref-type="bibr" rid="ref20">20</xref>
        ]. The modeling choice pursued to represent context-dependency of knowledge
was through a specialization of concepts and properties. For example, depending
on the context, the notion of team can refer to the football club, complete squad
composition in a certain tournament or the actual lineup in a certain match. To
distinguish between these di erent granularities the concept Team is specialized
into FootballClubTeam, Squad or FootballMatchTeam respectively, and
instantiated accordingly into di erent individuals germany, germany fifa 2006 and
germany 14 june 2006, which afterwards are linked together using speci c
relation personatedBy. The similar modeling approach is used to represent a notion
of player, having di erent roles in a club, in a team or a speci c match; di erent
o cials in di erent matches, etc. In our approach there is no need to
proliferate creation of specialized concepts and individuals for distinguishing contextual
quali cations, because contexts allow us to treat di erences of concepts in
different contexts and consistently use the same name for individuals through out
di erent contexts.
      </p>
      <p>Another notable example extensively modeling football domain is Freebase.
Freebase12 is a massive collaboratively-edited RDF-exportable knowledge base
of facts about people, organizations, events, etc. The knowledge base is
organized into domains (e.g., sport disciplines, politics, etc.), grouping relevant
types (e.g., sport championships, clubs and players, politicians and parties, etc.).
11 http://smartweb.dfki.de/
12 http://www.freebase.com/
Types have properties (e.g., Date of birth for type Person), and can be
organized in inheritance hierarchies (e.g., Football Player type extends generic
type Person) allowing for property inheritance. For example, for
representation of facts about 2010 FIFA World Cup Freebase contains a dedicated type
FIFA World Cup 201013. One of the distinguishing characteristics of Freebase
is extensive use of rei cation in order to support compound multi-dimensional
properties, allowing to assign contextually bounded values. An example of such
a compound property is Football Player Match Participation allowing to
assert for a given match a player and a team he plays.
7</p>
    </sec>
    <sec id="sec-7">
      <title>Conclusion</title>
      <p>
        Contextualized Knowledge Repository (CKR) constitutes a novel architecture
for the Semantic Web that has been lately proposed and implemented [
        <xref ref-type="bibr" rid="ref8 ref9">8, 9</xref>
        ]. It
is completely embedded within the current Semantic Web standards represented
by RDF and OWL. It builds on top of these standard formalisms and enhances
them in the following aspects: (1) knowledge is organized in contexts which
are hierarchically sorted according to the coverage relation de ned with respect
to the contextual metadata; (2) the coverage relation is itself formalized in an
RDF/OWL ontology, which introduces exibility on the structure of contexts
and it allows to reason, not only inside the contexts but also on the contextual
organization; (3) with context classes generic knowledge that is valid in multiple
contexts can be asserted e ectively and with minimal redundancy; (4) so called
quali ed concepts and roles allow for fully automated knowledge \importing"
between the contexts that relies on their hierarchical structure, it is intuitive to
use, and whose technicalities are hidden from the user; (5) contextual conjunctive
queries provide a exible data retrieval mechanism in which also contextual
metadata are returned with the answers and furthermore the querying can be
also re ned by such metadata.
      </p>
      <p>In this paper, we describe a modeling scenario from the domain of football,
by which we demonstrate the features of the CKR architecture, we show how
to model with it in practise, and highlight its particular advantages. The choice
of this particular domain is due to its inherent contextual nature and su cient
complexity. Although equivalent modeling can surely be done in any ontology
language such as OWL that does not provide any context aware features, it
is apparent from our demonstration that with CKR an increased e ciency of
the representation and more intuitive modeling are achieved. We believe that
the scenario can be remodeled also in any other contextualized Semantic Web
framework and thus it may serve in future as a modeling benchmark in this area.
13 http://www.freebase.com/view/en/2010 fa world cup</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          1.
          <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.L.</surname>
          </string-name>
          :
          <article-title>Tracking rdf graph provenance using rdf molecules</article-title>
          .
          <source>In: Proceedings of the Fourth International Semantic Web Conference</source>
          . (
          <year>2005</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          2.
          <string-name>
            <surname>Carroll</surname>
            ,
            <given-names>J.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: Proceedings of the 14th international conference on World Wide Web</source>
          , New York, NY, USA, ACM (
          <year>2005</year>
          )
          <volume>613</volume>
          {
          <fpage>622</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          3.
          <string-name>
            <surname>Nickles</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          :
          <article-title>Social acquisition of ontologies from communication processes</article-title>
          .
          <source>Appl. Ontol</source>
          .
          <volume>2</volume>
          (
          <issue>3</issue>
          -4) (
          <year>2007</year>
          )
          <volume>373</volume>
          {
          <fpage>397</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          4.
          <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>Information Technology Journal</source>
          <volume>6</volume>
          (
          <year>2007</year>
          )
          <volume>1130</volume>
          {
          <fpage>1138</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          5.
          <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>
          .
          <source>In: ISWC</source>
          , volume
          <volume>3298</volume>
          of Lecture Notes in Computer Science, Springer (
          <year>2004</year>
          )
          <volume>32</volume>
          {
          <fpage>46</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          6. H.Stoermer:
          <article-title>Introducing Context into Semantic Web Knowledge Bases</article-title>
          .
          <source>In: Proceedings of the CAISE*06 Doctoral Consortium</source>
          . (
          <year>June 2006</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          7.
          <string-name>
            <given-names>O.</given-names>
            <surname>Khriyenko</surname>
          </string-name>
          ,
          <string-name>
            <surname>V.</surname>
          </string-name>
          <article-title>Terziyan: A framework for context sensitive metadata description</article-title>
          .
          <source>Int. J. Metadata Semant. Ontologies</source>
          <volume>1</volume>
          (
          <issue>2</issue>
          ) (
          <year>2006</year>
          )
          <volume>154</volume>
          {
          <fpage>164</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          8.
          <string-name>
            <given-names>M.</given-names>
            <surname>Joseph</surname>
          </string-name>
          ,
          <string-name>
            <surname>L.</surname>
          </string-name>
          <article-title>Sera ni, A.Tamilin: Context shifting for e ective search over large knowledge bases</article-title>
          . In: Workshop on Context,
          <article-title>Information And Ontologies (CIAO2009), collocated with the 6th European Semantic Web Conference (ESWC-</article-title>
          <year>2009</year>
          ).
          <article-title>(</article-title>
          <year>2009</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          9.
          <string-name>
            <surname>Sera</surname>
            <given-names>ni</given-names>
          </string-name>
          , L.,
          <string-name>
            <surname>Homola</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Joseph</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Tamilin</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          :
          <article-title>Contextualized knowledge repositories for the semantic web</article-title>
          .
          <source>Technical report, Fondazione Bruno Kessler { IRST</source>
          , Trento, Italy (
          <year>2010</year>
          ) To appear.
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          10.
          <string-name>
            <surname>Buvac</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mason</surname>
            ,
            <given-names>I.A.</given-names>
          </string-name>
          :
          <article-title>Propositional logic of context</article-title>
          .
          <source>In: In Proceedings of the Eleventh National Conference on Arti cial Intelligence</source>
          .
          <article-title>(</article-title>
          <year>1993</year>
          )
          <volume>412</volume>
          {
          <fpage>419</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          11.
          <string-name>
            <surname>Buvac</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          :
          <article-title>Quanti cational logic of context</article-title>
          .
          <source>In: In Proceedings of the Eleventh National Conference on Arti cial Intelligence</source>
          .
          <article-title>(</article-title>
          <year>1996</year>
          )
          <volume>412</volume>
          {
          <fpage>419</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          12.
          <string-name>
            <surname>Giunchiglia</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sera</surname>
            <given-names>ni</given-names>
          </string-name>
          , L.:
          <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>
          ) (
          <year>1994</year>
          )
          <volume>29</volume>
          {
          <fpage>70</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          13.
          <string-name>
            <surname>Ghidini</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Giunchiglia</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          :
          <article-title>Local models semantics, or contextual reasoning = locality + compatibility</article-title>
          .
          <source>Arti cial Intelligence</source>
          <volume>127</volume>
          (
          <year>2001</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          14.
          <string-name>
            <surname>Ghidini</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sera</surname>
            <given-names>ni</given-names>
          </string-name>
          , L.:
          <article-title>Distributed First Order Logics</article-title>
          . In Gabbay, D., de Rijke, M., eds.:
          <source>Frontiers Of Combining Systems 2. Studies in Logic and Computation</source>
          , Research Studies Press (
          <year>1998</year>
          )
          <volume>121</volume>
          {
          <fpage>140</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          15.
          <string-name>
            <surname>M.Benerecetti</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          <string-name>
            <surname>Bouquet</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          <article-title>Ghidini: Contextual Reasoning Distilled</article-title>
          .
          <source>Experimental and Theoretical AI</source>
          <volume>12</volume>
          (
          <issue>3</issue>
          ) (
          <year>2000</year>
          )
          <volume>279</volume>
          {
          <fpage>305</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          16.
          <string-name>
            <surname>M.Benerecetti</surname>
          </string-name>
          , Bouquet, P.,
          <string-name>
            <surname>C.</surname>
          </string-name>
          <article-title>Ghidini: On the Dimensions of Context Dependence</article-title>
          . In P.Bouquet,
          <string-name>
            <surname>L.Sera ni</surname>
          </string-name>
          , R.H.Thomason, eds.
          <source>: Perspectives on Contexts. CSLI Lecture Notes</source>
          .
          <article-title>Center for the Study of Language and Information/SRI (</article-title>
          <year>2007</year>
          )
          <volume>1</volume>
          {
          <fpage>18</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          17.
          <string-name>
            <surname>Baader</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Calvanese</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>McGuinness</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Nardi</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Patel-Schneider</surname>
          </string-name>
          , P., eds.:
          <source>The Description Logic Handbook</source>
          . Cambridge University Press (
          <year>2003</year>
          )
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          18.
          <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>
          .
          <source>In: Procs. of the 10th International Conference on Principles of Knowledge Representation and Reasoning (KR</source>
          <year>2006</year>
          ), AAAI Press (
          <year>2006</year>
          )
          <volume>57</volume>
          {
          <fpage>67</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          19.
          <string-name>
            <surname>Horrocks</surname>
            ,
            <given-names>I.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Tessaris</surname>
            ,
            <given-names>S.:</given-names>
          </string-name>
          <article-title>A conjunctive query language for description logic aboxes</article-title>
          .
          <source>In: AAAI/IAAI</source>
          . (
          <year>2000</year>
          )
          <volume>399</volume>
          {
          <fpage>404</fpage>
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          20.
          <string-name>
            <surname>Oberle</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Ankolekar</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Hitzler</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Cimiano</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sintek</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Kiesel</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Mougouie</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Vembu</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Baumann</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Romanelli</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Buitelaar</surname>
            ,
            <given-names>P.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Engel</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Sonntag</surname>
            ,
            <given-names>D.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Reithinger</surname>
            ,
            <given-names>N.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Loos</surname>
            ,
            <given-names>B.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Porzel</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zorn</surname>
            ,
            <given-names>H.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Micelli</surname>
            ,
            <given-names>V.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Schmidt</surname>
            ,
            <given-names>C.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Weiten</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Burkhardt</surname>
            ,
            <given-names>F.</given-names>
          </string-name>
          ,
          <string-name>
            <surname>Zhou</surname>
            ,
            <given-names>J.:</given-names>
          </string-name>
          <article-title>DOLCE ergo SUMO: On foundational and domain models in the SmartWeb Integrated Ontology (SWIntO)</article-title>
          .
          <source>Web Semantics</source>
          <volume>5</volume>
          (
          <issue>3</issue>
          ) (
          <year>September 2007</year>
          )
          <volume>156</volume>
          {
          <fpage>174</fpage>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>