<?xml version="1.0" encoding="UTF-8"?>
<TEI xml:space="preserve" xmlns="http://www.tei-c.org/ns/1.0" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://www.tei-c.org/ns/1.0 https://raw.githubusercontent.com/kermitt2/grobid/master/grobid-home/schemas/xsd/Grobid.xsd"
 xmlns:xlink="http://www.w3.org/1999/xlink">
	<teiHeader xml:lang="en">
		<fileDesc>
			<titleStmt>
				<title level="a" type="main">Towards a Context-Aware Relational Model</title>
			</titleStmt>
			<publicationStmt>
				<publisher/>
				<availability status="unknown"><licence/></availability>
			</publicationStmt>
			<sourceDesc>
				<biblStruct>
					<analytic>
						<author>
							<persName><forename type="first">Yannis</forename><surname>Roussos</surname></persName>
							<email>iroussos@dblab.ntua.gr</email>
							<affiliation key="aff0">
								<orgName type="department">Department of Electrical and Computer Engineering</orgName>
								<orgName type="institution">National Technical University of Athens (NTUA)</orgName>
								<address>
									<settlement>Athens</settlement>
									<country key="GR">Greece</country>
								</address>
							</affiliation>
						</author>
						<author>
							<persName><forename type="first">Yannis</forename><surname>Stavrakas</surname></persName>
							<affiliation key="aff0">
								<orgName type="department">Department of Electrical and Computer Engineering</orgName>
								<orgName type="institution">National Technical University of Athens (NTUA)</orgName>
								<address>
									<settlement>Athens</settlement>
									<country key="GR">Greece</country>
								</address>
							</affiliation>
						</author>
						<author>
							<persName><forename type="first">Vassia</forename><surname>Pavlaki</surname></persName>
							<email>vpavlaki@mail.ntua.gr</email>
							<affiliation key="aff0">
								<orgName type="department">Department of Electrical and Computer Engineering</orgName>
								<orgName type="institution">National Technical University of Athens (NTUA)</orgName>
								<address>
									<settlement>Athens</settlement>
									<country key="GR">Greece</country>
								</address>
							</affiliation>
						</author>
						<title level="a" type="main">Towards a Context-Aware Relational Model</title>
					</analytic>
					<monogr>
						<imprint>
							<date/>
						</imprint>
					</monogr>
					<idno type="MD5">D6BE2F80DBF4BD0A4514A64D020D255B</idno>
				</biblStruct>
			</sourceDesc>
		</fileDesc>
		<encodingDesc>
			<appInfo>
				<application version="0.7.2" ident="GROBID" when="2023-03-24T21:05+0000">
					<desc>GROBID - A machine learning software for extracting information from scholarly documents</desc>
					<ref target="https://github.com/kermitt2/grobid"/>
				</application>
			</appInfo>
		</encodingDesc>
		<profileDesc>
			<abstract>
<div xmlns="http://www.tei-c.org/ns/1.0"><p>In traditional databases and information systems the number of users is more or less known and their background is to a great extent homogeneous. In distributed and heterogeneous environments however such as the Web, users do not apply the same conventions when interpreting data due to different backgrounds, knowledge or culture. Interpreting and managing data according to the context is a topic not explored in its full potential in these new environments. In this work we present the Context Relational model (CR model), a model that extends the relational model to argue also about context. The interesting part of this approach is that context is treated as first-class citizen at the level of database models and query languages. This is due to the fact that an attribute may not exist under some contexts or that the attribute may have different values under different contexts. Apart from the model description this work presents also a set of basic operations which extend relational algebra so as to take context into account.</p></div>
			</abstract>
		</profileDesc>
	</teiHeader>
	<text xml:lang="en">
		<body>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1">Introduction</head><p>Information today is accessed and used in a global environment, where assumptions about data become less evident. Users with different backgrounds or viewpoints may interpret the same data in a different way. Moreover, the interpretation and suitability of data may depend on unpredictably changing conditions, like for example the current position of the user or the media he is using (laptop, mobile, PDA). To avoid such ambiguous situations the information provider needs to specify the context under which information becomes relevant. Conversely, information users can specify their own current context when requesting for data in order to denote the part that is relevant to their specific situation.</p><p>For instance imagine a product whose specification changes according to the country it is being exported. Or a Web page that is to be displayed on devices Work supported in part by DELOS Network of Excellence on Digital Libraries, IST programme of the EC FP6, no G038-507618, and by PYTHAGORAS EPEAEK II programme, EU and Greek Ministry of Education, co-funded by the European Social Fund (75%) and National Resources (25%) Work supported by HERAKLEITOS EPEAEK programme, EU and Greek Ministry of Education, co-funded by the European Social Fund (75%) and National Resources (25%) with different capabilities, like mobile phones, PDAs, and personal computers. Another example is a report that must be represented at various degrees of detail and in various languages. In those situations, context can be used as a viewpoint mechanism that takes into account implicit background knowledge.</p><p>In previous work <ref type="bibr" target="#b9">[SG02,</ref><ref type="bibr" target="#b12">Sta03]</ref> we argued that the management of context should take place at the level of database systems in a uniform way and that consequently context should be treated as a first-class citizen in data models and query languages. In particular, relational databases (R-DBs) can no longer be seen as isolated data sources, where users are familiar with the implied assumptions necessary for interpreting the data they retrieve. Today R-DBs are widely used in Web applications for dynamically constructing Web pages that are globally available. They are also used as back-ends in systems where context information is constantly provided by sensors. It is therefore interesting to examine how the notion of context can be incorporated in a R-DBMS.</p><p>In <ref type="bibr" target="#b12">[Sta03]</ref>, it has been shown that direct incorporation of context in database management systems would have the following positive results: a) management of data according to the interpretation frame, b) ability to pose cross-world queries that have no counterpart in context-unaware systems, c) personalization in a flexible and uniform manner and d) direct support for managing data and schema histories.</p><p>In this work we study the problem of incorporating context in the relational database model, which has a strong formal background, and propose a novel infrastructure. We present the Context Relational model (CR model) that can be viewed as an extended relational model able to argue about context as well. The proposed model is able to accommodate information entities that manifest different facets, whose contents can vary in structure and value. Each facet of such a multi-faceted information entity is associated with a context, stating the conditions under which this facet holds. We then discuss some operations through example queries that demonstrate the potential of this model.</p><p>The rest of the paper is organized as follows. Section 1.1 presents related work. In Section 2 the notion of context is revised. In Section 3.1 we give a motivating example to facilitate the understanding of our model. In Section 3.2 we discuss the technical challenges of our work and the advantages of our framework. In Section 3.3 we describe in detail the CR model. Section 4 presents the basic operations of an extended algebra that incorporates context through example queries. In Section 5 we state the differences of the CR model relatively to the relational model. Finally Section 6 discusses possible future research directions.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.1">Related Work</head><p>The notion of context was originally introduced in Frege's proposal of a principle of contextuality <ref type="bibr" target="#b4">[Fre84]</ref>. Since then, context has been called to account for a variety of problems in different areas. Context has been used in diverse areas of computer science as a tool for reasoning with viewpoints and background beliefs, and as an abstraction mechanism for dealing with complexity, heterogeneity, and partial knowledge. A formal framework for reasoning upon a subset of a global knowledge base can be found in <ref type="bibr" target="#b5">[GG01]</ref>, which is extended in Local Relational Model [SGMB03,BGK + 02] to allow for inconsistent databases and to support semantic interoperability in the absence of a global schema. Examples of how context can be used for partitioning an information base into manageable fragments of related objects can be found in <ref type="bibr" target="#b6">[MMP95,</ref><ref type="bibr" target="#b13">TACS98]</ref>.</p><p>In Web information systems context is often defined by giving values to a number of user-defined variables called dimensions or characteristics. By assigning values to such variables, users can constraint the information that is relevant to them by explicitly specifying the way they interpret data. In <ref type="bibr" target="#b1">[Bro98,</ref><ref type="bibr" target="#b15">Yil97]</ref>, Intensional HTML is introduced to address the problem of constructing and maintaining Web sites that must exist in many versions, for example depending on the language, user expertise, subscription level, screen resolution.</p><p>In multidimensional semistructured data <ref type="bibr" target="#b12">[Sta03,</ref><ref type="bibr" target="#b9">SG02]</ref> similar principles are applied to represent semistructured information entities that assume different facets, with varying content (value and/or structure), under different contexts. This approach sees context as a set of constraints, which are combined through context operations to specify environments under which information obtains an unambiguous meaning. Such an environment is called a world, while constraints are expressed by assigning values to dimension variables. The work in <ref type="bibr" target="#b10">[SGDZ04]</ref> shows how context can be used to represent and query valid time of data and histories of semistructured databases.</p><p>This perception of context has also been used in OMSwe, a Web-publishing platform described in <ref type="bibr" target="#b8">[NP03b,</ref><ref type="bibr" target="#b7">NP03a]</ref>. OMSwe is based on an Object DBMS, which has been extended to support a flexible, domain-independent model for information delivery where context plays a pivotal role.</p><p>New mobile-aware applications are more effective and adaptive to user information needs without consuming too much of a users attention, by taking advantage of the dynamic environmental characteristics, such as the user's location, time, people nearby, etc. A detailed survey about exploiting context-aware computing in mobile environments is presented in <ref type="bibr" target="#b2">[CK00]</ref>. In <ref type="bibr" target="#b3">[DVV03]</ref>, the authors propose a context-aware service discovery, describing a context-based index to support efficient retrieval of Web services whereas in [VVV + 03] a platform is presented for sharing context dependent data and services for mobile sources, called MobiShare.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">Preliminaries</head><p>In our approach, a world represents an environment under which data obtain a substance. The set of parameters used to specify the world are called dimensions. A context specifier is a syntactic construct used to qualify pieces of data and specify sets of worlds (or contexts) under which these pieces hold. In this way, it is possible to have at the same time variants of the same information entity, each holding under a different set of worlds, or equally under a different context. The variants of an information entity are called facets of the entity and they may differ in value and/or structure. In the model we present in Section 3, sets of worlds are represented by context specifiers, which can be seen as constraints on dimension values.</p><p>Example 1. Some context specifiers might be the following:</p><formula xml:id="formula_0">(a) [device=PC] (b) [device=PDA, payment in {credit card, cash}]</formula><p>In Example 1, context specifier (a) represents the worlds for which the dimension device has the value PC, while (b) represents the worlds for which device is PDA and payment is either credit card or cash. It is not necessary for a context specifier to contain values for every dimension in D. Omitting a dimension implies that its value may range over the whole dimension domain.</p><p>The context specifier [] is a universal context and represents the set of all possible worlds, while the context specifier [-] is an empty context and represents the empty set of worlds. In <ref type="bibr" target="#b9">[SG02,</ref><ref type="bibr" target="#b12">Sta03]</ref> operations on context specifiers are defined and it is presented how a context specifier can be transformed to the set of worlds it represents with respect to a set of dimensions D. In the case where two context specifiers represent disjoint sets of worlds the context specifiers are called mutually exclusive.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3">A Context Relational Model</head><p>In this section we start with an example used throughout this paper and we continue with stating some of the challenges we had to face. Then we present in detail a Context Relational Model (CR model) for the representation and manipulation of information under different worlds.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1">Motivating Example</head><p>Example 2. Consider a Web site about digital cameras. The information provided for each camera includes the brand name, the model of the camera, a picture, the size in megapixels and the price. Customers connect to this Web site using a variety of devices ranging over desktop computer (PC), PDA and cell phone. Moreover, they can select the method of payment between Credit Card and Cash.</p><p>The data about a digital camera returned to customers depends on the browsing device and payment method. That is, a customer using a PDA receives a picture of lower resolution than when using a PC. When using a cell phone no picture exists and only textual information is provided. Moreover, the price of a digital camera varies according to the payment method. Evidently, digital camera is an information entity whose contents and structure in this particular example vary according to the browsing device and the method of payment.</p><p>In database terms there is a main relation dcamera, with attributes: Brand, Model, MPix, Photo, Price (see Table <ref type="table" target="#tab_0">1b</ref>). Customer requests are expressed as queries and the data returned correspond to the evaluation of the queries over this relation. The context of the example relation is expressed through the following dimensions: device ranging over {PC, PDA, CELL}, payment ranging over {Credit Card, Cash}.</p><p>The schema of relation dcamera and the data for a particular entity may differ between different worlds. This is due to the fact that an attribute may not exist in some worlds and that the same attribute may have different values under different worlds. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2">Technical challenges and comparison with related work</head><p>The relational model does not treat context and entities as first class citizens. As a result, the definition and manipulation of information that exists in multiple worlds is done at application level. This has a series of disadvantages:</p><p>1. Redundancy, as the logic and the different basic operations must be reimplemented in each application. 2. Implementations that are strictly connected to specific design decisions and the nature of each application.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.">Maintenance overhead.</head><p>There are two other approaches for dealing with context. In the first approach context is managed by the application logic at a separate level from data management leading to an inflexible and hard to maintain architecture, whereas ad-hoc solutions must be developed from scratch for every new case. In the second approach, context is managed in a mediator, at an intermediate layer between the data source(s) and the application(s). In this approach the mediator contains context metadata that are "linked" to the information parts they annotate at the sources. Queries are addressed to the mediator, which uses context metadata to navigate to the relevant data.</p><p>Handling context at the level of information sources (ie. database systems) has the following advantages:</p><p>1. Comprehensive data design: context and its relation to data are taken into account at the stage of schema design. This introduces an additional complexity to schema design, however the incorporation of context conditions into the DB schema enables also the consistency checking of insertions and updates of context-dependent data. 2. Wider spectrum of queries: data models and query languages that directly incorporate context can be more expressive, leading to new sorts of queries (cross-world queries <ref type="bibr" target="#b12">[Sta03]</ref>), like "show the pictures of cameras that are more expensive when paying in cash than when paying using credit card", or data management queries like "under which contexts there is no picture". 3. Efficient access: by pushing context management at the level of information sources, the database systems have complete control and can use their context-aware schema information as well as potentially especially designed access methods to improve efficiency.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.3">Model Description</head><p>In the previous section we argued that context should be incorporated in database engines. In this next section we present in detail the proposed CR model. The basic notion of our model is the multi-facet entity. A multi-facet entity is an information entity which assumes different facets as defined under different worlds. In the remaining of the paper, when we write entity we mean a multifacet entity. A facet f i,j is the variant of an entity e i defined under a specific world w j . A set of entities are grouped to form a context relation.</p><p>For a context-relation R, a number of attributes are defined in each world. The sets of attributes defined for R in two different worlds can (i) be the same, (ii) have a common subset or (iii) have no common attributes at all. Moreover, the same attribute A i of a single entity can have different values in different worlds. We refer to the value of an attribute A i in world w j as A i {w j }. In Figure <ref type="figure" target="#fig_0">1</ref> we present the context-relation dcamera of Example 2. In order to show the basic parts of our model, we highlight the entity e 4 , the attribute Photo and the world w 2 . <ref type="table" target="#tab_0">1b</ref>, attribute Photo is not defined for worlds w 3 and w 6 (device = CELL PHONE), it stores a high resolution photo for worlds w 1 and w 4 (device = PC) and a low resolution one for worlds w 2 and w 5 (device = PDA). Also the value of attribute Price depends on the payment dimension. For example, entity e 4 has Price{w 1 } = 154 and Price{w 4 } = 142.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Entities belonging to context-relation dcamera have values for the six worlds of Table 1a. As stated in Table</head><p>A context-relation can be viewed as a cube. Each entity of the relation is an horizontal slice spanning across all the worlds. Each entity slice has |a| * |w| cells, where |a| is the total number of attributes of the entity and |w| is the total number of worlds in the system. A cell {i,j} in this slice represents the attribute A i {w j }. In Figure <ref type="figure" target="#fig_0">1</ref>, we highlight entity e 4 , which is a two-dimensional 5*6 horizontal slice, as context-relation dcamera has five attributes and is defined for six worlds. Attribute Model is the second attribute of context-relation dcamera and { Cell Phone ,Credit Card} is the third world, so cell {2,3} represents attribute Model{w 3 } for entity e4.</p><p>An attribute is a two-dimensional |e| * |w| vertical slice, where |e| is the total number of entities in the context dependent relation. A cell {i,j} in the slice corresponding to attribute A k represents the value of A k for entity e i in world w j . Proportionally, a world is a two-dimensional |e| * |a| vertical slice. Each facet of an entity e i is represented by the intersection of the slice entity for e i and the world slice for the corresponding world.</p><p>Modeling entities and attributes as two-dimensional slices allows us to exhibit these relations and interpret queries over different worlds in a more meaningful way. For example, in Figure <ref type="figure" target="#fig_0">1</ref>, we highlight attribute Photo. The response to a query that asks for the photos of entity e 4 is represented by the intersection of the vertical attribute slice for attribute Photo and the horizontal entity slice for e 4 . The response to a query that asks for all the photos in world w 2 is represented by the intersection of the two vertical slices for attribute Photo and world w 2 . Finally, the intersection of the three slices corresponds to the value of attribute Photo for entity e 4 in world w 2 .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4">Operations</head><p>In this section we present the basic operations (projection, selection, cartesian product, join and set operations) of the relational algebra extended to incorporate context. To distinguish them from the classical operations, we use the term context in front of them, as for instance context-project. We keep the relational symbols, e.g. π for context-project.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Context-Project</head><p>Given an input context-relation, the objective is to output only the attributes specified in the condition of the context-project operator. The result is a new context-relation that has only the vertical slices that correspond to the projected attributes. The resulting context relation will still include slices for all possible worlds, however will only contain actual values for the projected part (highlighted cells in figures of this section). Note that a context specifier follows each attribute. Specifying the context of the projected attributes is crucial when we are interested in the values of attributes only for some worlds. For each attribute, the context specifier denotes the set of worlds that will be projected. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>World Project</head><p>This operation retains only those facets of entities that hold under specified worlds. For example, for a customer using a PC the relevant worlds are w 1 and w 4 . We use the letter κ to represent the world-project operator:</p><formula xml:id="formula_1">κ [w 1 ,w 4 ] dcamera Entity Context-Select</formula><p>The entity context-select operation uses context in order to express conditions that involve attribute values under different worlds. The following queries illustrate this point. Note that we use the symbol σ entity to denote the entity context-selection. A simpler case where selection criteria is restricted to the values in specific worlds is illustrated by the following example query, which selects only entities where the price is less than 250 when the customer is paying in cash:</p><formula xml:id="formula_2">σ entity (BRAN D[ ]= Kodak AN D P rice[Device=P C,P ayment=Cash] &lt; 250) dcamera</formula><p>Notice that an attribute may appear more than once in the same condition with different context specifier. The following query is a cross-world query that compares the values of the same attribute in different worlds, asking for cameras that have lower price if the customer pays in cash than using a credit card:</p><formula xml:id="formula_3">σ entity (P rice[Device=P C,P ayment=Cash] &lt; P rice[Device=P C,P ayment=CreditCard]) dcamera</formula><p>In the previous queries each attribute in the select condition is evaluated in the set of worlds indicated by the respective context specifier. In case there is no context specifier for an attribute, we evaluate the condition to true if there exists at least one world where the condition holds. For instance, the following query requests for entities where at least one facet has Price less than 250 Euros:</p><formula xml:id="formula_4">σ entity (BRAN D[ ] = Kodak AN D P rice &lt; 250) dcamera Facet Context-Select</formula><p>Users should be able to pose queries that involve selection of facets or, in other words, to select parts of an entity. This can be done using the facet context-select operator, denoted σ f acet . The σ f acet operator selects only the facets of an entity that satisfy the condition, instead of the whole entity as the σ entity operator.</p><p>In Figure <ref type="figure" target="#fig_4">3</ref>(b) we present the result of selecting facets with Price less than 500 euros. Note that the select facet operation is a basic operation in our algebra as it cannot be constructed by any combination of the other operations.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Context Cartesian Product</head><p>In a way similar to the relational model, context cartesian product creates new context-relations from existing ones. For the needs of our example Figure <ref type="figure" target="#fig_5">4(a)</ref> presents a new context-relation named accessories. The attributes defined for accessories are the accessory name, the model of the corresponding digital camera that the accessory fits in, a description of the accessory and its price. Attribute model serves as a foreign key to the dcamera context-relation. The cartesian product of context-relations dcamera and accessories is presented in Figure <ref type="figure" target="#fig_5">4</ref>(b). The attributes of the resulting context-relation are the attributes of dcamera and accessories. Entities of the new relation are constructed by combining each entity of dcamera with all the entities of accessories.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Context-Join</head><p>A context-join is defined as the composition of the context cartesian product and the entity context-select operations, as in the relational model. As an example, consider a query that asks for Kodak digital cameras with cheap 200mm lens (e.g. where accessories.P rice &lt; 0.2 * dcamera.P rice). Apart from the contextjoin, which adds no new complexities in our algebra, there is a need for a more restrictive join operation, named context natural join. This operation is necessary for selecting entities where (dcamera.Model = accessories.Model) for all worlds.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Set operations</head><p>Set operations like union, intersection, difference and division are defined only for context-relations that are union compatible. In order for two context relations to be union compatible, they must have exactly the same attributes defined under each world. The semantics is the same as in set theory, but with entities as the basic set elements.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Illustrating example</head><p>The following example brings together many of the operations presented in this section. Consider a customer who uses a PC and wants to buy a Kodak camera costing less than 400 Euros. He/she also wants to buy accessories for this camera, so for all selected cameras he/she then requests to see all available accessories. Finally, he/she asks the price using cash for camera and credit card for accessories. In database terms he/she requests dcamera.Price for cash and accessories.Price for credit card: </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5">CR vs Relational model</head><p>In this section we discuss the differences of the CR model relatively to the relational model. Although relational model can be in principle used to represent context dependent information, context as such cannot be handled in database level but through the use of application logic. In the CR model context is treated as a first class citizen added at the level of databases, enabling a uniform approach to context and the definition of context aware structures and operations.</p><p>In the CR model, a world slice wi is a classical relation as in the relational model. The tuples of this relation would correspond to the facets of the entities for this world. One can argue that instead of a context-relation that is defined in k worlds we could have a set of k relations (as defined in the relational model). Another approach would be to create a single denormalized relation with as many attributes as the sum of the number of attributes defined in each world.</p><p>The main inconvenience of the relational model is that there is no way to define the relation between the same attribute under different worlds. Regardless of whether a context-relation is defined by k different relations or a single denormalized relation, the fact that two attributes represent the same attribute of an information entity under different worlds cannot be modelled.</p><p>If we decompose a context-relation to a series of relations, the link between facets that consist a single information entity is lost. This link is used in the CR model to formulate cross-world queries. Similarly, in the case of a single denormalized relation there is no way to specify the attributes that belong to a specific world and ask intra-world or cross-world queries. Moreover, maintaining a large number of relations (normalized approach) or relations with hundreds of attributes (denormalized approach) adds a great deal of complexity in the process of designing or altering the schema representing a context aware database.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6">Conclusions and future work</head><p>In this work we studied the incorporation of context into relational database systems and we presented the CR model that can argue about context as well. Our primarily aim was to allow the management of context to take place at the level of database systems. The proposed framework should also model heterogenous environments where users may receive different responses for the same query depending on the context. This is a consequence of our view of the model, where an attribute may not exist in some worlds or the same attribute may have different values under different worlds. The challenging part of this work consisted on how to extend the classical operations of relational algebra to include context and enable users to pose cross world queries. As future work we plan to: -Extend the relational calculus and algebra to incorporate context.</p><p>-Propose a context-aware query language for the CR model. -Demonstrate possible uses of our approach through example applications. In previous work, context has been used to represent time <ref type="bibr" target="#b10">[SGDZ04]</ref>. In this case it could be possible to use the CR model for representing and querying histories of data. Moreover, in [GSK + 01] the authors have shown how context can be used to achieve personalization in a uniform way at the database level.</p><p>-Design efficient access methods to take context into account.</p></div><figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_0"><head>Definition 1 .</head><label>1</label><figDesc>Let D be a nonempty set of dimension names and for each d ∈ D, let V d be the domain of d, with V d = ∅. A world w with respect to D is a set of pairs (d, v), where d ∈ D and v ∈ V d , such that for every d ∈ D exactly one (d, v) belongs to w.</figDesc></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_1"><head>Fig. 1 .</head><label>1</label><figDesc>Fig. 1. The Context Relation for the digital camera example</figDesc></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_2"><head>Fig. 2 .</head><label>2</label><figDesc>Fig. 2. a)Context-Project for attributes Model, MPix and Price in all worlds, b)Context-Project for attributes Model and MPix in world w1 and for Price in worlds {w 2 ,w 4 }</figDesc></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_3"><head>Figure 2</head><label>2</label><figDesc>(b) illustrates the following query, which projects attributes Model and MPix for world w 1 and attribute Price for worlds w 2 and w 4 : π M odel[Device=P C,P ayment=CreditCard],M P ix[Device=P C,P ayment=CreditCard], P rice[Device=P DA,P ayment in {CreditCard,Cash}] dcamera</figDesc></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_4"><head>Fig. 3 .</head><label>3</label><figDesc>Fig. 3. (a) Entity Context-Select, (b) Facet Context-Select</figDesc></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_5"><head>Fig. 4 .</head><label>4</label><figDesc>Fig. 4. a) context-relation accessories, b) Cartesian project</figDesc></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" xml:id="fig_6"><head></head><label></label><figDesc>Ctx-Rel1 ← context cartesian product(dcamera, accessories) Ctx-Rel2 ← σ entity (dc.M odel[ ] = ac.M odel[ ] AN D BRAN D[ ]= Kodak AN D dc.P rice[Device=P C, P ayment=Cash]&lt;400) Ctx-Rel1 Result ← π dcamera.M odel[Device=P C,P ayment=Cash], dcamera.P rice[Device=P C,P ayment=Cash], accessories.N ame[Device=P C,P ayment=CreditCard], accessories.P rice[Device=P C, P ayment=CreditCard] Ctx-Rel2</figDesc></figure>
<figure xmlns="http://www.tei-c.org/ns/1.0" type="table" xml:id="tab_0"><head>Table 1 .</head><label>1</label><figDesc>Table1apresents all the possible worlds, while Table1bpresents the worlds under which each attribute is defined. (a) On the left, all the possible worlds for Example 2 are presented and (b) on the right, the worlds under which each attribute is defined are presented</figDesc><table><row><cell>World Device Payment w1 PC Credit Card w 2 PDA Credit Card w3 CELL Credit Card w 4 PC Cash w5 PDA Cash w 6 CELL Cash</cell><cell>Attributes Brand Model MPix Photo Price</cell><cell>Worlds defined in every world defined in every world defined in every world defined only for worlds with browsing device in {PC,PDA} defined in every world but its values may change</cell></row></table></figure>
		</body>
		<back>
			<div type="references">

				<listBibl>

<biblStruct xml:id="b0">
	<monogr>
		<title level="m" type="main">Data management for peer-to-peer computing: A vision</title>
		<author>
			<persName><forename type="first">P</forename><surname>Bernstein</surname></persName>
		</author>
		<author>
			<persName><forename type="first">F</forename><surname>Giunchiglia</surname></persName>
		</author>
		<author>
			<persName><forename type="first">A</forename><surname>Kementsietsidis</surname></persName>
		</author>
		<author>
			<persName><forename type="first">J</forename><surname>Mylopoulos</surname></persName>
		</author>
		<author>
			<persName><forename type="first">L</forename><surname>Serafini</surname></persName>
		</author>
		<author>
			<persName><forename type="first">I</forename><surname>Zaihrayeu</surname></persName>
		</author>
		<imprint>
			<date type="published" when="2002">2002</date>
			<publisher>WebDB</publisher>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b1">
	<analytic>
		<title level="a" type="main">Ihtml 2: Design and implementation</title>
		<author>
			<persName><forename type="first">G</forename><surname>Brown</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">Proceedings of the 11th International Symposium on Languages for Intensional Programming</title>
				<meeting>the 11th International Symposium on Languages for Intensional Programming</meeting>
		<imprint>
			<date type="published" when="1998">1998</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b2">
	<monogr>
		<title level="m" type="main">A survey of context-aware mobile computing research</title>
		<author>
			<persName><forename type="first">G</forename><surname>Chen</surname></persName>
		</author>
		<author>
			<persName><forename type="first">D</forename><surname>Kotz</surname></persName>
		</author>
		<idno>TR2000-381</idno>
		<imprint>
			<date type="published" when="2000">2000</date>
		</imprint>
		<respStmt>
			<orgName>Dartmouth College Computer Science</orgName>
		</respStmt>
	</monogr>
	<note type="report_type">Technical Report</note>
</biblStruct>

<biblStruct xml:id="b3">
	<analytic>
		<title level="a" type="main">Towards a context-aware service directory</title>
		<author>
			<persName><forename type="first">C</forename><surname>Doulkeridis</surname></persName>
		</author>
		<author>
			<persName><forename type="first">E</forename><surname>Valavanis</surname></persName>
		</author>
		<author>
			<persName><forename type="first">M</forename><surname>Vazirgiannis</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">Proceedings of the 4th VLDB Workshop on Technologies for E-services (TES&apos;03)</title>
				<meeting>the 4th VLDB Workshop on Technologies for E-services (TES&apos;03)</meeting>
		<imprint>
			<date type="published" when="2003">2003</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b4">
	<monogr>
		<title level="m" type="main">Die grundlagen der arithmetik</title>
		<author>
			<persName><forename type="first">G</forename><surname>Frege</surname></persName>
		</author>
		<imprint>
			<date type="published" when="1884">1884</date>
			<publisher>Koebner</publisher>
			<pubPlace>Breslau</pubPlace>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b5">
	<analytic>
		<title level="a" type="main">Local model semantics, or contextual reasoning = locality + compatibility</title>
		<author>
			<persName><surname>Ch</surname></persName>
		</author>
		<author>
			<persName><forename type="first">F</forename><surname>Ghidini</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Y</forename><surname>Giunchiglia</surname></persName>
		</author>
		<author>
			<persName><forename type="first">D</forename><surname>Stavrakas</surname></persName>
		</author>
		<author>
			<persName><forename type="first">A</forename><surname>Karteris</surname></persName>
		</author>
		<author>
			<persName><forename type="first">D</forename><surname>Mouzaki</surname></persName>
		</author>
		<author>
			<persName><surname>Sterpis</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">ADBIS</title>
				<imprint>
			<date type="published" when="2001">2001. 2001</date>
			<biblScope unit="volume">127</biblScope>
			<biblScope unit="page" from="221" to="259" />
		</imprint>
	</monogr>
	<note>A web-based system for handling multidimensional information through mxml</note>
</biblStruct>

<biblStruct xml:id="b6">
	<analytic>
		<title level="a" type="main">Partitioning information bases with contexts</title>
		<author>
			<persName><forename type="first">J</forename><surname>Mylopoulos</surname></persName>
		</author>
		<author>
			<persName><forename type="first">R</forename><surname>Motschnig-Pitrik</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">CoopIS</title>
				<imprint>
			<date type="published" when="1995">1995</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b7">
	<analytic>
		<title level="a" type="main">Empowering databases for contextdependent information delivery</title>
		<author>
			<persName><forename type="first">M</forename><forename type="middle">C</forename><surname>Norrie</surname></persName>
		</author>
		<author>
			<persName><forename type="first">A</forename><surname>Palinginis</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">CAiSE&apos;03 Workshop on Ubiquitous Mobile Information and Col-laboration Systems (UMICS&apos;03)</title>
				<imprint>
			<date type="published" when="2003">2003</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b8">
	<analytic>
		<title level="a" type="main">From state to structure: an xml web publishing frame-work</title>
		<author>
			<persName><forename type="first">M</forename><forename type="middle">C</forename><surname>Norrie</surname></persName>
		</author>
		<author>
			<persName><forename type="first">A</forename><surname>Palinginis</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">CAiSE&apos;03</title>
				<imprint>
			<date type="published" when="2003">2003</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b9">
	<analytic>
		<title level="a" type="main">Multidimensional semistructured data: representing context-dependent information on the web</title>
		<author>
			<persName><forename type="first">Y</forename><surname>Stavrakas</surname></persName>
		</author>
		<author>
			<persName><forename type="first">M</forename><surname>Gergatsoulis</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">CAiSE02</title>
				<imprint>
			<date type="published" when="2002">2002</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b10">
	<analytic>
		<title level="a" type="main">Representing and querying histories of semistructured databases using multidimensional oem</title>
		<author>
			<persName><forename type="first">Y</forename><surname>Stavrakas</surname></persName>
		</author>
		<author>
			<persName><forename type="first">M</forename><surname>Gergatsoulis</surname></persName>
		</author>
		<author>
			<persName><forename type="first">Ch</forename><surname>Doulkeridis</surname></persName>
		</author>
		<author>
			<persName><forename type="first">V</forename><surname>Zafeiris</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="j">Information Systems</title>
		<imprint>
			<biblScope unit="volume">29</biblScope>
			<biblScope unit="page" from="461" to="482" />
			<date type="published" when="2004">2004</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b11">
	<monogr>
		<title level="m" type="main">Local relational model: A logical formalization of database coordination</title>
		<author>
			<persName><forename type="first">L</forename><surname>Serafini</surname></persName>
		</author>
		<author>
			<persName><forename type="first">F</forename><surname>Giunchiglia</surname></persName>
		</author>
		<author>
			<persName><forename type="first">F</forename><surname>Mylopoulos</surname></persName>
		</author>
		<author>
			<persName><forename type="first">P</forename><surname>Bernstein</surname></persName>
		</author>
		<imprint>
			<date type="published" when="2003">2003</date>
			<publisher>CON-TEXT</publisher>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b12">
	<monogr>
		<title level="m" type="main">Multidimensional semistructured data: representing and querying context-dependent multifacet information on the web</title>
		<author>
			<persName><forename type="first">Y</forename><surname>Stavrakas</surname></persName>
		</author>
		<imprint>
			<date type="published" when="2003">2003</date>
		</imprint>
		<respStmt>
			<orgName>National Technical University of Athens</orgName>
		</respStmt>
	</monogr>
	<note type="report_type">PhD thesis</note>
</biblStruct>

<biblStruct xml:id="b13">
	<monogr>
		<title level="m" type="main">Context in information bases</title>
		<author>
			<persName><forename type="first">M</forename><surname>Theodorakis</surname></persName>
		</author>
		<author>
			<persName><forename type="first">A</forename><surname>Analyti</surname></persName>
		</author>
		<author>
			<persName><forename type="first">P</forename><surname>Constantopoulos</surname></persName>
		</author>
		<author>
			<persName><forename type="first">N</forename><surname>Spyratos</surname></persName>
		</author>
		<imprint>
			<date type="published" when="1998">1998</date>
			<publisher>CoopIS</publisher>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b14">
	<analytic>
		<title level="a" type="main">Mobishare: Sharing context-dependent data and services from mobile sources</title>
		<author>
			<persName><forename type="first">;</forename><forename type="middle">E</forename><surname>Vvv</surname></persName>
		</author>
		<author>
			<persName><forename type="first">C</forename><surname>Valavanis</surname></persName>
		</author>
		<author>
			<persName><forename type="first">M</forename><surname>Ververidis</surname></persName>
		</author>
		<author>
			<persName><forename type="first">G</forename><surname>Vazirgiannis</surname></persName>
		</author>
		<author>
			<persName><forename type="first">K</forename><surname>Polyzos</surname></persName>
		</author>
		<author>
			<persName><surname>Norvag</surname></persName>
		</author>
	</analytic>
	<monogr>
		<title level="m">Proceedings of the IEEE/WIC International Conference on Web Intelligence</title>
				<meeting>the IEEE/WIC International Conference on Web Intelligence</meeting>
		<imprint>
			<date type="published" when="2003">2003</date>
		</imprint>
	</monogr>
</biblStruct>

<biblStruct xml:id="b15">
	<monogr>
		<title level="m" type="main">Intensional html</title>
		<author>
			<persName><forename type="first">T</forename><surname>Yildirim</surname></persName>
		</author>
		<imprint>
			<date type="published" when="1997">1997</date>
		</imprint>
		<respStmt>
			<orgName>Department of Computer Science, Univerity of Victoria</orgName>
		</respStmt>
	</monogr>
	<note type="report_type">Master&apos;s thesis</note>
</biblStruct>

				</listBibl>
			</div>
		</back>
	</text>
</TEI>
