ubiquitous computing - sti innsbruck · pdf filepervasive profile description language (ppdl)...

44
Prof. Dr. Thomas Strang [email protected] Ubiquitous Computing Context and Context-Awareness University of Innsbruck WS 2010/2011

Upload: hangoc

Post on 09-Mar-2018

219 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: Ubiquitous Computing - STI Innsbruck · PDF filePervasive Profile Description Language (PPDL) ... Context retrieval (e.g. through inferencing) is the act of making sense of input data

Prof. Dr. Thomas [email protected]

Ubiquitous ComputingContext and Context-Awareness

University of InnsbruckWS 2010/2011

Page 2: Ubiquitous Computing - STI Innsbruck · PDF filePervasive Profile Description Language (PPDL) ... Context retrieval (e.g. through inferencing) is the act of making sense of input data

2

Context as Filter

Context is a filter striking against the everyday information overload

Lect

ure

Ubi

quito

us C

ompu

ting,

Pro

f. D

r. Th

omas

Str

ang,

WS

2010

/201

1

Page 3: Ubiquitous Computing - STI Innsbruck · PDF filePervasive Profile Description Language (PPDL) ... Context retrieval (e.g. through inferencing) is the act of making sense of input data

3

What is Context? What does Context-Aware mean?

In the early 90's, primarily position information were considered as contextual parameters (Schilit et al., Want et al., Leonhardt, etc.)

Examples of more generic definitions of context which consider broader range of parameters:

Pascoe, 1998:"Context is the subset of physical or conceptual states

of interest to a particular entity""Context-awareness is the ability of a program or

device to sense various states of its environment and itself"

Lect

ure

Ubi

quito

us C

ompu

ting,

Pro

f. D

r. Th

omas

Str

ang,

WS

2010

/201

1

Page 4: Ubiquitous Computing - STI Innsbruck · PDF filePervasive Profile Description Language (PPDL) ... Context retrieval (e.g. through inferencing) is the act of making sense of input data

4

What is Context? What does Context-Aware mean?

Schmidt, 1999:

"A context describes a situation and the environment a device or user is in. A context is identified by a unique name. For each context, a set of features is relevant. For each relevant feature a range of values is determined (implicit or explicit) by the context"

Chen and Kotz, 2000:

"Context is the set of environmental states and settings that either determines an application's behaviour or in which an application event occurs and is interesting to the user"

Lect

ure

Ubi

quito

us C

ompu

ting,

Pro

f. D

r. Th

omas

Str

ang,

WS

2010

/201

1

Page 5: Ubiquitous Computing - STI Innsbruck · PDF filePervasive Profile Description Language (PPDL) ... Context retrieval (e.g. through inferencing) is the act of making sense of input data

5

What is Context? What does Context-Aware mean?

Definition of Context:“Any information that can be used to characterize the situation of an entity. An Entity is a person, place or object that is considered relevant [..] [concerning service usage.]” (A.K.Dey: “Understanding and using context”, 2001)

Definition of Context Awareness:“A system is context-aware if it uses context to provide relevant information and/or services to the user, where relevancy depends on the user’s task.” (A.K.Dey: “Understanding and using context”, 2001)

Most popular definition of context and context-awareness:

Lect

ure

Ubi

quito

us C

ompu

ting,

Pro

f. D

r. Th

omas

Str

ang,

WS

2010

/201

1

Page 6: Ubiquitous Computing - STI Innsbruck · PDF filePervasive Profile Description Language (PPDL) ... Context retrieval (e.g. through inferencing) is the act of making sense of input data

6

Discussion

Definition of Dey and Schmidt et al. are both incomplete but complement each other:

Schmidt et al. require range for features

Dey is more focussed on characterization of an entity

Disadvantage in both definitions is the dependency to the term situation

Important component is the relevance

Pascoe as well as Chen and Kotz emphazise on states.

In all definitions: Restriction to user/device or user/service interaction. Why not e.g. service/service?

Lect

ure

Ubi

quito

us C

ompu

ting,

Pro

f. D

r. Th

omas

Str

ang,

WS

2010

/201

1

Page 7: Ubiquitous Computing - STI Innsbruck · PDF filePervasive Profile Description Language (PPDL) ... Context retrieval (e.g. through inferencing) is the act of making sense of input data

Relevance

Relevance independent context

Situation1 is modelled and tracked for any kind of aspect (dimension) irrespective whether the state is important for current interaction or not

Relevance dependend context

Situation is modelled for any kind of aspect, but contextual information is derived and applied just if it is relevant for the current interaction

Some refer to the first as situation awareness and as context awareness to the latter. Some just don‘t care.

Lect

ure

Ubi

quito

us C

ompu

ting,

Pro

f. D

r. Th

omas

Str

ang,

WS

2010

/201

1

71) of a user, a vehicle, the environment or any other entity

Page 8: Ubiquitous Computing - STI Innsbruck · PDF filePervasive Profile Description Language (PPDL) ... Context retrieval (e.g. through inferencing) is the act of making sense of input data

Relevance

In this lecture we shall see the context as relevance dependent:

„A context is the set of all for a specific task relevant context information“

„A situation is the set of all known context information“

Lect

ure

Ubi

quito

us C

ompu

ting,

Pro

f. D

r. Th

omas

Str

ang,

WS

2010

/201

1

8

(Strang: “Service-Interoperability in UbiComp Environments”, 2004)

Page 9: Ubiquitous Computing - STI Innsbruck · PDF filePervasive Profile Description Language (PPDL) ... Context retrieval (e.g. through inferencing) is the act of making sense of input data

Context vs. Content

What is the difference between context and content?

All context-aware services will work w/o context (e.g. in case of too high uncertainty or temporary lack of data), but not w/o content

Context is used to optimize an interaction, meaning that context is a „better“ content (personalized, localized, etc.)

Context shall be used to minimize interaction with the user or the service

Lect

ure

Ubi

quito

us C

ompu

ting,

Pro

f. D

r. Th

omas

Str

ang,

WS

2010

/201

1

9

Page 10: Ubiquitous Computing - STI Innsbruck · PDF filePervasive Profile Description Language (PPDL) ... Context retrieval (e.g. through inferencing) is the act of making sense of input data

Primary Dimensions of Context

Location

Time

Identity

Activity

Lect

ure

Ubi

quito

us C

ompu

ting,

Pro

f. D

r. Th

omas

Str

ang,

WS

2010

/201

1

10Imag

e of

Pet

ter D

uvan

der

being part of almost all context models

Page 11: Ubiquitous Computing - STI Innsbruck · PDF filePervasive Profile Description Language (PPDL) ... Context retrieval (e.g. through inferencing) is the act of making sense of input data

11

Location vs. Context

„There is more to context than location“ [Schmidt et al. 1999]For example:

Network connectivity, battery capacityEnvironment: presence of physical devices (e.g. printers), displays, other persons/objectsLight, Noise, Temperature, Pressure, Humidity Social Situation, Mood

Basically, anything that can be sensed can be modelled as context information, even many things where no sensor is (yet) invented (e.g. mood)

Lect

ure

Ubi

quito

us C

ompu

ting,

Pro

f. D

r. Th

omas

Str

ang,

WS

2010

/201

1

Page 12: Ubiquitous Computing - STI Innsbruck · PDF filePervasive Profile Description Language (PPDL) ... Context retrieval (e.g. through inferencing) is the act of making sense of input data

Incompleteness / Uncertainty

Context used to approximate state and user intend

Example: Museum tour guide infers from proximity between person and exhibit an interest of the person in the exhibit, but in fact the person may just coincidently stopped near the exhibit, doing some conversation. Additional context would be necessary to fully understand the situation, which will never be sufficient for 100% certainty. Thus any context-aware system must inherently support uncertainty, i.e. express certainty in their beliefs and use the context information in dependency to the (low or high) level of certainty.

Lect

ure

Ubi

quito

us C

ompu

ting,

Pro

f. D

r. Th

omas

Str

ang,

WS

2010

/201

1

12

Page 13: Ubiquitous Computing - STI Innsbruck · PDF filePervasive Profile Description Language (PPDL) ... Context retrieval (e.g. through inferencing) is the act of making sense of input data

Ambiguity

Many sources of information are many sources for errors – incorrect sensor readings, incorrectinferences, divergent interpretation of data, toname just a few reasons

Serious context-aware systems must include the existance of ambiguities in their model and provide solutions for ambiguity resolution strategies

One typical approach dealing with context ambiguity is to combine multiple disparate sources of context, i.e. a sensor fusion approach such as Hidden Markov Modeling

Lect

ure

Ubi

quito

us C

ompu

ting,

Pro

f. D

r. Th

omas

Str

ang,

WS

2010

/201

1

13

Page 14: Ubiquitous Computing - STI Innsbruck · PDF filePervasive Profile Description Language (PPDL) ... Context retrieval (e.g. through inferencing) is the act of making sense of input data

14

Context Modelling and Retrieval

"Context-awareness is one of the key drivers of the ubiquitous computing paradigm, whereas a well designed context modelling and retrieval approach is a key accessor to the context in any context-aware system."

[ Strang and Linnhoff-Popien, 2004 ]

Lect

ure

Ubi

quito

us C

ompu

ting,

Pro

f. D

r. Th

omas

Str

ang,

WS

2010

/201

1

Page 15: Ubiquitous Computing - STI Innsbruck · PDF filePervasive Profile Description Language (PPDL) ... Context retrieval (e.g. through inferencing) is the act of making sense of input data

15

Context Modelling Approaches

Key-Value-Pairs Modelsmost simple category of modelsnot very efficient for more sophisticated structuring purposesonly exact matchingno inheritance

Environment Variables: Key-Value-Pairs

Lect

ure

Ubi

quito

us C

ompu

ting,

Pro

f. D

r. Th

omas

Str

ang,

WS

2010

/201

1

Page 16: Ubiquitous Computing - STI Innsbruck · PDF filePervasive Profile Description Language (PPDL) ... Context retrieval (e.g. through inferencing) is the act of making sense of input data

16

Context Modelling Approaches

Markup Scheme Modelsscheme implements modeltypical representatives: profilesExamples:

Extensions of Composite Capabilities/Preference Profile (CC/PP)User Agent Profile (UAProf)

Comprehensive Structured Context Profiles (CSCP)Pervasive Profile Description Language (PPDL)Centaurus Capability Markup Language (CCML)

CSCP Instance based on RDF

Lect

ure

Ubi

quito

us C

ompu

ting,

Pro

f. D

r. Th

omas

Str

ang,

WS

2010

/201

1

Page 17: Ubiquitous Computing - STI Innsbruck · PDF filePervasive Profile Description Language (PPDL) ... Context retrieval (e.g. through inferencing) is the act of making sense of input data

17

Context Modelling Approaches

Graphical Modelsparticularly useful for structuring, but usually not used on instance levelExamples:

Well known: UMLContextual Extended ORM

Person(name)

Device(id)

Person(name)

Location(name)

located at

permitted to use

M

Person(name)

Location(name)

located at M

Activity(name)

engaged in

[ ]

prof

iled

fact

type

sens

edfa

ct ty

pefa

ctde

pend

ency

ORM Entity Typen-ary ORM Fact Type

ORM Entity Type

Contextual Extended ORM

Lect

ure

Ubi

quito

us C

ompu

ting,

Pro

f. D

r. Th

omas

Str

ang,

WS

2010

/201

1

Page 18: Ubiquitous Computing - STI Innsbruck · PDF filePervasive Profile Description Language (PPDL) ... Context retrieval (e.g. through inferencing) is the act of making sense of input data

18

Context Modelling Approaches

Logic Based ModelsLogic defines conditions on which a concluding expression or fact may be derived from a set of other expressions or facts (reasoning)

context is defined as facts, expressions and rulesHigh degree of formalityExamples:

McCarthy’s Formalizing ContextAkman&Surav’s Extended Situation Theory

Context Expression from Extended Situation Theory

Lect

ure

Ubi

quito

us C

ompu

ting,

Pro

f. D

r. Th

omas

Str

ang,

WS

2010

/201

1

Page 19: Ubiquitous Computing - STI Innsbruck · PDF filePervasive Profile Description Language (PPDL) ... Context retrieval (e.g. through inferencing) is the act of making sense of input data

19

Context Modelling Approaches

Object Oriented ModelsIntention behind object orientation is (as always) encapsulation and reusabilityExamples:

Cues (TEA project)Active Object Model (GUIDE project)

Context tuple space

Cue tuple space

Sensor 1 Sensor 2 Sensor n

Cue1,1

Cue1,2

Cue1,i

Cue2,1

Cue2,2

Cue2,j

Cuen,1

Cuen,2

Cuen,k

Context

Applications and Scripting

TEA cues

Lect

ure

Ubi

quito

us C

ompu

ting,

Pro

f. D

r. Th

omas

Str

ang,

WS

2010

/201

1

Page 20: Ubiquitous Computing - STI Innsbruck · PDF filePervasive Profile Description Language (PPDL) ... Context retrieval (e.g. through inferencing) is the act of making sense of input data

20

Context Modelling Approaches

Ontology Based ModelsOntology used as explicit specification of a shared conceptualization

strong in the field of normalization and formaliyContext is modelled as concepts and factsExamples:

CoBrA systemASC model of Context Ontology Language (CoOL)CONON

ASC Model of CoOL

Aspect

Scale

ContextInformation

Lect

ure

Ubi

quito

us C

ompu

ting,

Pro

f. D

r. Th

omas

Str

ang,

WS

2010

/201

1

Page 21: Ubiquitous Computing - STI Innsbruck · PDF filePervasive Profile Description Language (PPDL) ... Context retrieval (e.g. through inferencing) is the act of making sense of input data

21

The ASC Context Modelling Approach

conceptAspect

Temperature

conceptContextInformation

5°C35°C

3°F10°C

60°F

0°C

-7°C

95°F

80°F13°C

conceptEntity

characterized by

conceptScale

Lect

ure

Ubi

quito

us C

ompu

ting,

Pro

f. D

r. Th

omas

Str

ang,

WS

2010

/201

1

Strang, T., Linnhoff-Popien, C., Frank, K.: CoOL: A Context OntologyLanguage to enable ContextualInteroperability, DAIS 2003

Page 22: Ubiquitous Computing - STI Innsbruck · PDF filePervasive Profile Description Language (PPDL) ... Context retrieval (e.g. through inferencing) is the act of making sense of input data

Excursion: Ontologies & Uncertainty (1/2)

“An ontology is a hierarchically structured set of terms for describing a domain that can be used as a skeletal foundation for a knowledge base.”

by Swartout, Patil, Knight and Russ, 1996

Concept

Fact

Class

Instance

Important distinguishing feature: Ontologies are property oriented.

Father/son conversation:„Dad, is a ferrari a red car with a little horse on it?“„That‘s correct, son, why?“„I think it is passing us just now!“

Lect

ure

Ubi

quito

us C

ompu

ting,

Pro

f. D

r. Th

omas

Str

ang,

WS

2010

/201

1

Page 23: Ubiquitous Computing - STI Innsbruck · PDF filePervasive Profile Description Language (PPDL) ... Context retrieval (e.g. through inferencing) is the act of making sense of input data

23

Excursion: Ontologies & Uncertainty (2/2)

Property orientation allows for „fuzzy“ context reasoning!Lect

ure

Ubi

quito

us C

ompu

ting,

Pro

f. D

r. Th

omas

Str

ang,

WS

2010

/201

1

Page 24: Ubiquitous Computing - STI Innsbruck · PDF filePervasive Profile Description Language (PPDL) ... Context retrieval (e.g. through inferencing) is the act of making sense of input data

24

Context Modelling Approaches

Probabilistic ModelsEverything is modeled as possible worlds which have a certain probability Inherently good to model uncertainty with probability distributions (PDF)Dependencies aremodeledas networksExamples:

Bayesian Networks

Lect

ure

Ubi

quito

us C

ompu

ting,

Pro

f. D

r. Th

omas

Str

ang,

WS

2010

/201

1

Observations

Physical World

Possible World 3

Possible World 2

Possible World 4 Possible

World 1

Possible Worlds

Uncertainty ofpossible worldscan berepresentedby probabilities

0.3

0.1 0.4

0.2

[Illu

stra

tion

by M

. Röc

kl]

Page 25: Ubiquitous Computing - STI Innsbruck · PDF filePervasive Profile Description Language (PPDL) ... Context retrieval (e.g. through inferencing) is the act of making sense of input data

Context Retrieval

Context retrieval (e.g. through inferencing) is the act of making sense of input data from sensors and other sources, to determine the context of an entity.

Once this context has been inferred, the application/service can take an appropriate action (at least likely more appropriate than based on content).

This usually brings up additonal issues such as how to resolve ambiguity or uncertainty in context.

Lect

ure

Ubi

quito

us S

ervi

ces,

Tho

mas

Str

ang,

WS

2004

/200

5

25

Page 26: Ubiquitous Computing - STI Innsbruck · PDF filePervasive Profile Description Language (PPDL) ... Context retrieval (e.g. through inferencing) is the act of making sense of input data

26

Context Retrieval

Modeling Approach Standard Retrieval Method

Key-Value-Pairs Models Linear Search

Markup Scheme Models Markup Query Language

Graphical Models Transformation

Logic Based Models Inferencing

Object Oriented Models Algorithm

Ontology Based Models Reasoning

Probability Models Calculation

Lect

ure

Ubi

quito

us C

ompu

ting,

Pro

f. D

r. Th

omas

Str

ang,

WS

2010

/201

1

Page 27: Ubiquitous Computing - STI Innsbruck · PDF filePervasive Profile Description Language (PPDL) ... Context retrieval (e.g. through inferencing) is the act of making sense of input data

Appropriateness Criteria for context modelling in UbiComp

Distributed Composition

Partial Validation

Richness and Quality of Information

Incompleteness and Ambiguity

Level of Formality

Applicability to existing environments

Lect

ure

Ubi

quito

us S

ervi

ces,

Tho

mas

Str

ang,

WS

2004

/200

5

27

[ Strang and Linnhoff-Popien, 2004 ]

Page 28: Ubiquitous Computing - STI Innsbruck · PDF filePervasive Profile Description Language (PPDL) ... Context retrieval (e.g. through inferencing) is the act of making sense of input data

Requirement 1: Distributed Composition

Any ubiquitous computing system is a derivative of a distributed computing system which lacks of a central instance being responsible for the creation, deployment and maintenance of data and services, in particular context descriptions. Instead, composition and administration of a context model and its data varies with notably high dynamics in terms of time, network topology and source.

Lect

ure

Ubi

quito

us C

ompu

ting,

Pro

f. D

r. Th

omas

Str

ang,

WS

2010

/201

1

28

Page 29: Ubiquitous Computing - STI Innsbruck · PDF filePervasive Profile Description Language (PPDL) ... Context retrieval (e.g. through inferencing) is the act of making sense of input data

Requirement 2: Partial Validation

It is highly desirable to be able to partially validate contextual knowledge on structure as well as on instance level against a context model in use even if there is no single place or point in time where the contextual knowledge is available on one node as a result of distributed composition. This is particularly important because of the complexity of contextual interrelationships, which make any modeling intention error-prone.

Lect

ure

Ubi

quito

us C

ompu

ting,

Pro

f. D

r. Th

omas

Str

ang,

WS

2010

/201

1

29

Page 30: Ubiquitous Computing - STI Innsbruck · PDF filePervasive Profile Description Language (PPDL) ... Context retrieval (e.g. through inferencing) is the act of making sense of input data

Requirement 3: Richness and Quality of Information

The quality of a information delivered by a sensor varies over time, as well as the richness of information provided by different kinds of sensors characterizing an entity in an ubiquitous computing environment may differ.

Lect

ure

Ubi

quito

us C

ompu

ting,

Pro

f. D

r. Th

omas

Str

ang,

WS

2010

/201

1

30

Page 31: Ubiquitous Computing - STI Innsbruck · PDF filePervasive Profile Description Language (PPDL) ... Context retrieval (e.g. through inferencing) is the act of making sense of input data

Requirement 4: Incompleteness & Ambiguity

The set of contextual information available at any point in time characterizing relevant entities in ubiquitous computing environments is usually incomplete and/or ambiguous, in particular if this information is gathered from sensor networks. This should be covered by the model, for instance by interpolation of incomplete data on the instance level.

Lect

ure

Ubi

quito

us C

ompu

ting,

Pro

f. D

r. Th

omas

Str

ang,

WS

2010

/201

1

31

Page 32: Ubiquitous Computing - STI Innsbruck · PDF filePervasive Profile Description Language (PPDL) ... Context retrieval (e.g. through inferencing) is the act of making sense of input data

Requirement 5: Level of Formality

It is always a challenge to describe contextual facts and interrelationships in a precise and traceablemanner. For instance, to perform the task “print document on printer near to me”, it is required to have a precise definition of terms used in the task, for instance what “near” means to “me”. It is highly desirable, that each participating party in an ubiquitous computing interaction shares the same interpretation of the data exchanged and the meaning “behind” it (so called shared understanding), and that this can be formally proved.

Lect

ure

Ubi

quito

us C

ompu

ting,

Pro

f. D

r. Th

omas

Str

ang,

WS

2010

/201

1

32

Page 33: Ubiquitous Computing - STI Innsbruck · PDF filePervasive Profile Description Language (PPDL) ... Context retrieval (e.g. through inferencing) is the act of making sense of input data

Requirement 6: Applicability to existing environments

From the implementation perspective it is important that a context model must be applicable within the existing infrastructure of ubiquitous computing environments, e.g. a service framework such as Web Services.

Lect

ure

Ubi

quito

us C

ompu

ting,

Pro

f. D

r. Th

omas

Str

ang,

WS

2010

/201

1

33

Page 34: Ubiquitous Computing - STI Innsbruck · PDF filePervasive Profile Description Language (PPDL) ... Context retrieval (e.g. through inferencing) is the act of making sense of input data

34

Model Appropriateness for UbiComp Environments

Requirement

Approach

DistributedComposition

Partial Verification

Richness & Quality of Information

Incomplete-ness & Ambiguity

Level of Formality

Applicabityto serviceframeworks

Key-Value Models - - -- -- -- +

Markup Scheme Models + ++ - - + ++

Graphical Models -- - + - + +

Object Oriented Models ++ + + + + +

Logic Based Models ++ - - - ++ -

Ontology BasedModels ++ ++ + + ++ +

ProbabilityModels - + + ++ - -

Lect

ure

Ubi

quito

us C

ompu

ting,

Pro

f. D

r. Th

omas

Str

ang,

WS

2010

/201

1

Page 35: Ubiquitous Computing - STI Innsbruck · PDF filePervasive Profile Description Language (PPDL) ... Context retrieval (e.g. through inferencing) is the act of making sense of input data

Other important arguments

How about traceablity?

Sometimes called scrutability

Component of trust, which is itself a concept of the security&privacy domain, but also an important aspect of social interaction

Lect

ure

Ubi

quito

us S

ervi

ces,

Tho

mas

Str

ang,

WS

2004

/200

5

35

Page 36: Ubiquitous Computing - STI Innsbruck · PDF filePervasive Profile Description Language (PPDL) ... Context retrieval (e.g. through inferencing) is the act of making sense of input data

36

Service Usage Evolution Chain

Mobile NetworksMobile Information Access

Adaptive Applications

DistributedService Usage

MobileService Usage

UbiquitousService Usage

Ad-hoc Networks

Smart Sensors & Devices

Context-Awareness

Two main benefits from Context-Awareness:

Adaptation to changes in environment without user interaction

Effective information filter (typical mobile devices have limited UI!)

Location-Awareness is special kind of Context-Awareness.

Modeling & Integration Requirements:• high level of formality• distributed composition• partial validation

• incompleteness• quality of information• applicability to existing service frameworksLe

ctur

e U

biqu

itous

Com

putin

g, P

rof.

Dr.

Thom

as S

tran

g, W

S 20

10/2

011

Page 37: Ubiquitous Computing - STI Innsbruck · PDF filePervasive Profile Description Language (PPDL) ... Context retrieval (e.g. through inferencing) is the act of making sense of input data

37

Context-Aware Service Example

click!

1.

3.

pickup photos

uploading pics

2.

?

Lect

ure

Ubi

quito

us C

ompu

ting,

Pro

f. D

r. Th

omas

Str

ang,

WS

2010

/201

1

Page 38: Ubiquitous Computing - STI Innsbruck · PDF filePervasive Profile Description Language (PPDL) ... Context retrieval (e.g. through inferencing) is the act of making sense of input data

service provider domain

Excurse: MNM service model

customer domain

uses manages

implements realizes observes implementsrealizes

supplies

accesses

usesserviceclient

supplies

accesses

uses

concludes

substantiates

concludes

usagefunctionality

managementfunctionality

QoSparameters

serv

ice

serviceaccess point

service

CSMclientcustomer

«role»user

«role»

CSMaccess point

provides

service implementation manages

directs

«role»service provider

service management implementation

serviceagreement

Sou

rce:

Gar

schh

amm

er, M

., H

auck

, R.,

Heg

erin

g, H

.-G.,

Kem

pter

, B.,

Rad

isic

, I.,

Röl

le, H

., S

chm

idt,

H.,

A C

ase-

Driv

enM

etho

dolo

gyfo

rApp

lyin

gth

eM

NM

Ser

vice

M

odel

, In

Stad

ler,

R.,

Ule

ma,

M.,

edito

rs, P

roce

edin

gsof

the

8th

Inte

rnat

iona

l IF

IP/IE

EE

Net

wor

k O

pera

tions

and

Man

agem

ent S

ympo

sium

(NO

MS

200

2), p

p.

697-

710,

IEEE

Pub

lishi

ng, I

FIP/

IEEE

, Flo

renc

e, It

aly,

Apr

il, 2

002.

Abs

trac

t Ser

vice

Page 39: Ubiquitous Computing - STI Innsbruck · PDF filePervasive Profile Description Language (PPDL) ... Context retrieval (e.g. through inferencing) is the act of making sense of input data

service provider domain

Contextual Extended MNM service model

customer domain

uses manages

implements realizes observes implementsrealizes

supplies

accesses

usesserviceclient

supplies

accesses

uses

concludes

substantiates

concludes

usagefunctionality

managementfunctionality

serv

ice

cont

ext p

rovi

der d

omai

n

context

uses

CMaccess point

uses

accesses

impl

emen

ts

prov

ides

cont

ext i

nfor

mat

ion

man

ages

dire

cts

cont

ext m

gt im

plem

enta

tion

«role»

cont

ext p

rovi

der

conc

lude

s

awareness

supplies

accesses

real

izes

serviceaccess point

service

CSMclientcustomer

«role»CMclientuser

«role»

CSMaccess point

provides

service implementation manages

directs

«role»service provider

usesCMclient

service management implementation

serviceagreement

QoSparameters

Page 40: Ubiquitous Computing - STI Innsbruck · PDF filePervasive Profile Description Language (PPDL) ... Context retrieval (e.g. through inferencing) is the act of making sense of input data

40

Context-Aware Web Service Interaction

Service ProviderDomain

ServiceDirectory

(e.g. SLP-DA)

Announcements

Invocation

Customer DomainDirect

Service Discovery

Invocation

Middleware/Intermediate

Delegated Svc. Discovery

incl. ContextBinding Lookup

ContextMgt.

AccessPoint

Rea

sone

r(In

fere

nce

Eng

ine)

Query

Knowledge

Rules

Con

text

Mgt

. Im

plem

enta

tion

Context Provider Domain

Facts

ASC

Onto-logies

CoO

L ba

sed

Know

ledg

e

Monitor &Event Generator

SOAP Interaction

Relevance Criteria

Context Informationen

„Pickup-Station near my Hotel“

„Photo Geiger, 87629 Füssen“

Lect

ure

Ubi

quito

us C

ompu

ting,

Pro

f. D

r. Th

omas

Str

ang,

WS

2010

/201

1

Page 41: Ubiquitous Computing - STI Innsbruck · PDF filePervasive Profile Description Language (PPDL) ... Context retrieval (e.g. through inferencing) is the act of making sense of input data

41

Relevance as Applied Reasoning(here: F-Logic)

FORALL Shop, Position <- EXISTS Distance, ImpScale, intDistancePosition:#WGS84ContextInformation[#characterizes->Shop:#Entity] ANDImpScale[#useOperation->#SpatialDistanceFromSymbolInterOp@("Füssen")] ANDDistance:#IntegerContextInformation[#integerValue->intDistance;

#usedByScale->>ImpScale:#MeterScale; #characterizes->Position] AND lessorequal(intDistance, 5000).

Ontobroker

Inferencing Result:

0:#PhotoPorst,#Schwangau

0:#KaisersDrugstore,#Fuessen

Reasoner(Inference Engine)

Middleware

Service Provider Domain

Customer Domain shopVector = pickupStations();

pickupStations( shopVector );

Relevance-Criteria: “Consider all pickup-stations as relevant which are less than 5km from Neuschwanstein/Füssen”.

Lect

ure

Ubi

quito

us C

ompu

ting,

Pro

f. D

r. Th

omas

Str

ang,

WS

2010

/201

1

Page 42: Ubiquitous Computing - STI Innsbruck · PDF filePervasive Profile Description Language (PPDL) ... Context retrieval (e.g. through inferencing) is the act of making sense of input data

42

24

12

618

321

915

Scope „business hours“for service „food delivery“

Scope24

12

618

321

915

implicit parameter„current time“

Context-Aware Semantic Web Service:The Food Delivery Example (1/2)

Three types of parameter:

• input parameter• output parameter• implicit parameter

Which values expects the operation?

Which values delivers the operation?

For which values is the serviceitself available?

Lect

ure

Ubi

quito

us C

ompu

ting,

Pro

f. D

r. Th

omas

Str

ang,

WS

2010

/201

1

Page 43: Ubiquitous Computing - STI Innsbruck · PDF filePervasive Profile Description Language (PPDL) ... Context retrieval (e.g. through inferencing) is the act of making sense of input data

43

Context-Aware Semantic Web Service:The Food Delivery Example (2/2)

24

12

618

321

915

Scope „business hours“

24

12

618

321

915

implicit parameter„current time“

User

24

12

618

321

915

Scope „business hours“

NCS Handover

motivates

Lect

ure

Ubi

quito

us C

ompu

ting,

Pro

f. D

r. Th

omas

Str

ang,

WS

2010

/201

1

Page 44: Ubiquitous Computing - STI Innsbruck · PDF filePervasive Profile Description Language (PPDL) ... Context retrieval (e.g. through inferencing) is the act of making sense of input data

Contemporary Context-Aware Applications

Typocal, almost canonical examples of context-aware applications

Tour guide

Restaurant/ATM finder

Message/call handling, often combined with interruptability in the office and while mobile

Health care / ambient assisted living

Lect

ure

Ubi

quito

us C

ompu

ting,

Pro

f. D

r. Th

omas

Str

ang,

WS

2010

/201

1

44