Semantic Web in A Pervasive Context-Aware Architecture: Harry Chen Tim Finin Anupam Joshi
Semantic Web in A Pervasive Context-Aware Architecture: Harry Chen Tim Finin Anupam Joshi
A type of relation between the individuals of the Figure 3 shows the design layout of our prototype system.
TemporalEntity class is temporal ordering. The tem- Central to the system is a context broker. This broker is im-
poral ordering relation can be expressed in the before and plemented as a FIPA compliant agent that runs on the JADE
the after properties, i.e., an individual of the Instant platform (a Java library for building FIPA compliant agents)
or Interval class can have a before or after prop- [2]. The broker uses the Jena Semantic Web Toolkit6 for
erty value of another individual of Instant or Interval managing and manipulating ontologies (e.g., dynamically
class. The temporal ordering relation can also be expressed constructing OWL ontology statements for agent communi-
using the inside and time-between properties, which cations, manipulating ontology knowledge that is stored in a
describes a time instant is inside of a particular time in- persistent knowledge base).
terval, and a time interval is in between of two different RDQL (RDF Data Query Language) is used in the broker’s
time instants, respectively. reasoning engine to access the stored ontology knowledge.
Using RDQL, the reasoning engine periodically queries the
4
To convert DAML-time from DAML+OIL to OWL, we have used 5
the OWL Coverter, a tool for automating ontology conversion from Descriptions of events are assumed to be defined by ontologies
DAML+OIL to OWL (http://www.mindswap.org/2002/ that are outside of the DAML-time ontology
6
owl.html) http://www.hpl.hp.com/semweb/jena.htm
To show the underlying ontology reasoning in the broker,
we have developed a web application, backed by the Apache
Tomcat Server, for viewing the internal knowledge base of
the context broker. In future, this web application will in-
clude administrator functions for manging a context broker
(start, shutdown etc.).
6. RELATED WORK
In the past, a number of system architectures have been de-
veloped to support pervasive computing such as the Con-
text Toolkit framework [17], Schilit’s context-aware archi-
tecture [18], Cooltown [13], and Intelligent Room [7]. These
Figure 3: In our prototype system, the broker attempts systems have made progress in various aspects of pervasive
to infer the location context of devices and users. An user computing but are weak in supporting knowledge sharing
model is dynamically acquired from an URL specified in and context reasoning. A significant source of this weak-
the received user policy. ness is their lack a common ontology with explicit semantic
representation [6, 5].
Key differences between our architecture and the previous
knowledge base for the presence of certain context knowl- systems are the following:
edge (e.g., has any device been detected in the room, who
• We use Semantic Web languages (i.e., RDF and OWL) to
is the owner of a particular device?). When queries return
define ontologies of contexts, providing an explicit repre-
matched results, the broker automatically inserts new asser-
sentation of contexts for reasoning and knowledge shar-
tions about the local context into its knowledge base. For
ing. In the previous systems, contexts are often imple-
example, if queries return information about the presence of
mented as programming objects (e.g., Java class objects)
a new device and the person who owns the device, then the
or informally described in documentations.
broker asserts the owner of the device is also present in the
room. • In CoBrA a resource-rich agent (i.e., the context broker)
For context sensing, the context broker delegates the tasks to is provided to manage and maintain a shared model of
other sensing agents in the environment. When the broker context for all devices, services and agents in an associ-
starts on a hosting JADE platform, it finds all sensing agents ated space. In the previous systems, individual entities
that are registered with the local yellow page service (FIPA are required to manage and maintain their own context
Directory Facilitator) and sends a FIPA subscribe message to knowledge.
these agents, requesting to be notified about context changes.
In our prototype system, we have implemented a sensing • The context reasoning in CoBrA gives context brokers
agent called BT Sensor, which is responsible for detecting the ability to infer new context knowledge (e.g., spatial
Bluetooth OBEX object push events that are initiated by the relations, device profiles) that cannot be easily acquired
mobile devices. As a mobile device sends an OBEX ob- from the physical sensors. In the previous systems, con-
ject to the BT Sensor (e.g., a SonyEricsson T68i cellphone texts acquired from sensors are presumed to be accurate
sends a vNote object to the BT Sensor), the BT Sensor agent and consistent.
concludes the presence of the device and notifies the context
broker. • The use of policies in CoBrA allow users to control their
contextual information, specifying the granularity of in-
Messages sent from a Bluetooth device to the BT Sensor formation that is shared by the systems and choosing re-
agent contains a FIPA ACL message that informs the context cipients to receive notifications of their context changes.
broker of a user’s background information (or user model). In preivous systems, acquired contextual information is
A user model includes a privacy policy that a user defines allowed to be freely share by all computing entities in the
to control the use and the sharing of his/her context infor- environment, which could potentially jeopardize user pri-
mation. Due to the message size limitations in our Blue- vacy.
tooth devices, messages sent by the devices contain the URL
of the web documents that have complete descriptions of 7. CONCLUSION & FUTURE WORK
the user models. The representation of this URL informa- The use of ontology is a key requirement for realizing perva-
tion is expressed in a RDF statement which is encoded in sive context-aware systems. Our preliminary research in the
N3 [3], for example, "agt:HarryChen agt:aboutMe Context Broker Architecture shows the Web Ontology Lan-
http://umbc.edu/hchen4/aboutMe.". The first guage OWL is adequate for defining ontologies for support-
term agt:HarryChen is a subject RDF resource that de- ing context reasoning and knowledge sharing. As Semantic
fines this statement is about the user Harry Chen. The sec- Web technologies and tools (i.e., programming libraries for
ond term agt:aboutMe is a property of the subject. The manipulating ontologies and logic inference engines for on-
last term is the value of the property, which is an URL tology reasoning), we believe the Semantic Web will create
from which the user model of agt:HarryChen can be re- new research opportunities for building pervasive context-
trieved. aware systems.
At present the development of CoBrA and the EasyMeeting [13] Tim Kindberg and John Barton. A Web-based nomadic
system is still in the early stage of research. Our short-term computing system. Computer Networks (Amsterdam,
objective is to define an ontology for expressing privacy pol- Netherlands: 1999), 35(4):443–456, 2001.
icy and to enhance a broker’s reasoning with users and ac-
tivities by including temporal and spatial relations. A part of [14] Sanjeev Kumar, Philip R. Cohen, and Hector J.
our long-term objective is to deploy an intelligent meeting Levesque. The adaptive agent architecture: Achieving
room in the newly constructed Information Technology and fault-tolerance using persistent broker teams. In
Engineering Building on the UMBC main campus. Proceedings of the Fourth International Conference
on Multi-Agent Systems, pages 159–166, 2000.
REFERENCES
[15] Deborah L. McGuinness and Frank van Harmelen.
[1] R. Scott Cost andTim Finin andAnupam Joshi, Yun Owl web ontology language overview.
Peng, Charles Nicholas andHarry Chen, Lalana Kagal, http://www.w3.org/TR/owl-features/,
Filip Perich andYouyong Zou andSovrin Tolia, and 2003.
Ian Soboroff. Ittalks: A case study in the semantic
web and daml. In proceedings of the International [16] Nissanka B. Priyantha, Anit Chakraborty, and Hari
Semantic Web Working Symposium, July 2002. Balakrishnan. The cricket location-support system. In
Mobile Computing and Networking, pages 32–43,
[2] Fabio Bellifemine, Agostino Poggi, and Giovanni 2000.
Rimassa. Developing multi agent systems with a
fipa-compliant agent framework. Software - Practice [17] Daniel Salber, Anind K. Dey, and Gregory D. Abowd.
And Experience, 31(2):103–128, 2001. The context toolkit: Aiding the development of
context-enabled applications. In CHI, pages 434–441,
[3] Tim Berners-Lee. Primer: Getting into RDF & 1999.
Semantic Web using N3, 2003.
[18] Bill Schilit, Norman Adams, and Roy Want.
[4] Tim Berners-Lee, James Hendler, and Ora Lassila. Context-aware computing applications. In IEEE
The semantic web. Scientific American, may 2001. Workshop on Mobile Computing Systems and
Applications, Santa Cruz, CA, US, 1994.
[5] Harry Chen. An intelligent broker architecture for
context-aware systems. PhD. dissertation proposal. [19] Ira A. Smith and Philip R. Cohen. Toward a semantics
See http://users.ebiquity.org/ for an agent communication language based on speech
˜hchen4/phd/hcthsisp.pdf, 2003. acts. In Howard Shrobe and Ted Senator, editors,
Proceedings of the Thirteenth National Conference on
[6] Harry Chen, Sovrin Tolia, Craig Sayers, Tim Finin, Artificial Intelligence and the Eighth Innovative
and Anupam Joshi. Creating context-aware software Applications of Artificial Intelligence Conference, Vol.
agents. In Proceedings of the First GSFC/JPL 2, pages 24–31, Menlo Park, California, 1996. AAAI
Workshop on Radical Agent Concepts, 2001. Press.
[7] Michael H. Coen. Design principles for intelligent [20] Michael K. Smith, Chris Welty, and Deborah
environments. In AAAI/IAAI, pages 547–554, 1998. McGuinness. Owl web ontology language guide.
http://www.w3.org/TR/owl-guide/, 2003.
[8] Anind K. Dey. Providing Architectural Support for
Building Context-Aware Applications. PhD thesis, [21] Jeffrey Undercoffer, Filip Perich, Andrej Cedilnik,
Georgia Institute of Technology, 2000. Lalana Kagal, Anupam Joshi, and Tim Finin. A secure
infrastructure for service discovery and management
[9] Foundation for Intelligent Physical Agent. FIPA in pervasive computing. The Journal of Special Issues
Device Ontology Specification, pc00091a edition, on Mobility of Systems, Users, Data and Computing,
2001. 2003.
[10] Benjamin N. Grosof, Ian Horrocks, Raphael Volz, and [22] Frank van Harmelen, Jim Hendler, Ian Horrocks,
Stefan Decker. Description logic programs: Deborah L. McGuinness, Peter F. Patel-Schneider, and
Combining logic programs with description logic. In Lynn Andrea Stein. Owl web ontology language
12th International Conference on the World Wide Web, reference.
2002. http://www.w3.org/TR/owl-ref/), 2002.
[11] Jerry R. Hobbs. A daml ontology of time. http: [23] Roy Want, Andy Hopper, Veronica Falcao, and Jon
//www.cs.rochester.edu/˜ferguson/ Gibbons. The active badge location system. Technical
daml/daml-time-20020830.txt, 2002. Report 92.1, Olivetti Research Ltd., ORL, 24a
Trumpington Street, Cambridge CB2 1QA, 1992.
[12] Lalana Kagal, Tim Finin, and Anupam Joshi. A policy
language for a pervasive computing environment. In
IEEE 4th International Workshop on Policies for
Distributed Systems and Networks, 2003.