Top Banner
The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio John Domingue and Barry Norton Knowledge Media Institute, The Open University, UK
67

1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

Dec 19, 2015

Download

Documents

Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

1

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Semantic Web Services Hands-On Session

with IRS-III and WSMO Studio

John Domingue and Barry Norton

Knowledge Media Institute, The Open University, UK

Page 2: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

2

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

European Travel Scenario

Page 3: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

3

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

European Travel Demo

Page 4: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

4

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Goal Description

• Goals describe requirements from client perspective…

Goal

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

State Signature

Transition Rules

Page 5: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

5

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Goal Description

• Their Capabilities describe the functional requirements…

Goal

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

State Signature

Transition Rules

Page 6: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

6

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Goal Description

• Preconditions express guarantees client can make, purely over information they can communicate, in order that functional requirements are met…

Goal

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

State Signature

Transition Rules

Page 7: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

7

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Goal Description

• Assumptions express general guarantees client can make, involving communications and environment, in order that functional requirements are met…

Goal

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

State Signature

Transition Rules

Page 8: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

8

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Goal Description

• Postconditions express guarantees client would like over information communicated back in order that functional requirements are met…

Goal

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

State Signature

Transition Rules

Page 9: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

9

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Goal Description

• Effects express the general guarantees the client would like after the goal has been achieved

Goal

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

State Signature

Transition Rules

Page 10: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

10

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Goal Description

• Capabilities can be used for one or more of: representing a client-oriented perspective, advertising and service discovery. We do not use goal capabilities in the hands on session.

Goal

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

State Signature

Transition Rules

Page 11: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

11

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Goal Description

• The interfaces of goals describe the behavioural requirements of clients, i.e. constraints over communication

Goal

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

State Signature

Transition Rules

Page 12: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

12

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Goal Description

• The choreography expresses communications the client is able to engage in…

Goal

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

State Signature

Transition Rules

Page 13: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

13

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Goal Description

Goal

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

State Signature

Transition Rules

• The state signature describes these communications semantically, by linking modes to ontological concepts

Page 14: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

14

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Goal Description

• The state signature describes these communications semantically, by linking modes to ontological concepts:

– IN modes describe communications the client would like to receive

Goal

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

State Signature

Transition Rules

Page 15: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

15

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Goal Description

• The state signature describes these communications semantically, by linking modes to ontological concepts:

– IN modes describe communications the client would like to receive;– OUT modes describe communications the client is able to send.

Goal

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

State Signature

Transition Rules

Page 16: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

16

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Goal Description

Goal

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

State Signature

Transition Rules

• Transition rules link communications into a stateful interaction

Page 17: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

17

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Goal Description

Goal

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

State Signature

Transition Rules

• Transition rules link communications into a stateful interaction:– Transition rules can be used to constrain the stateful behaviour of matching

services, or define the process mediation ‘a priori’. We do not use transition rules in the hands on session.

Page 18: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

18

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Goal Description

Goal

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

State Signature

Transition Rules

• Orchestrations govern over the composite behaviour that is required to go into meeting the goal – the technology to exploit this is not yet available

Page 19: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

19

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Goal Description in Tutorial

Goal

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

State Signature

Transition Rules

• The steps that go into describing a goal in the tutorial are:

Page 20: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

20

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Goal Description in Tutorial

Goal

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

State Signature

Transition Rules

• The steps that go into describing a goal in the tutorial are:– Ontological description of the communications (request and response)

Page 21: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

21

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Goal Description in Tutorial

Goal

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

State Signature

Transition Rules

• The steps that go into describing a goal in the tutorial are:– Ontological description of the communications (request and response);– Creation of a goal

Page 22: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

22

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Goal Description in Tutorial

Goal

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

State Signature

Transition Rules

• The steps that go into describing a goal in the tutorial are:– Ontological description of the communications (request and response);– Creation of a goal; – Attachment of a choreography

Page 23: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

23

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Goal Description in Tutorial

Goal

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

State Signature

Transition Rules

• The steps that go into describing a goal in the tutorial are:– Ontological description of the communications (request and response);– Creation of a goal; – Attachment of a choreography; Attachment of a state signature

Page 24: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

24

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Goal Description in Tutorial

Goal

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

State Signature

Transition Rules

• The steps that go into describing a goal in the tutorial are:– Ontological description of the communications (request and response);– Creation of a goal; – Attachment of a choreography; Attachment of a state signature;– Attachment of communications to state signature

Page 25: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

25

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Goal Description in Tutorial

Goal

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

State Signature

Transition Rules

• The steps that go into describing a goal in the tutorial are:– Ontological description of the communications (request and response);– Creation of a goal; – Attachment of a choreography; Attachment of a state signature – Attachment of communications to state signature:

• request as OUT mode; response as IN

Page 26: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

26

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Web Service Description

• WSMO Web Services describe abilities of deployed services…

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

Web Service

WG-MediatorMediation Goal

OO-Mediator

Page 27: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

27

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Web Service Description

• Their Capabilities describe their functional abilities…

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

Web Service

WG-MediatorMediation Goal

OO-Mediator

Page 28: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

28

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Web Service Description

• Preconditions express guarantees they expect from clients, purely over information they communicate…

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

Web Service

WG-MediatorMediation Goal

OO-Mediator

Page 29: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

29

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Web Service Description

• Assumptions express general guarantees they expect of clients, involving communications and environment…

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

Web Service

WG-MediatorMediation Goal

OO-Mediator

Page 30: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

30

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Web Service Description

• Postconditions express guarantees they make over information communicated back, providing the preconditions and assumptions are met by the client…

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

Web Service

WG-MediatorMediation Goal

OO-Mediator

Page 31: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

31

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Web Service Description

• Effects express the general guarantees made, over communicated and changes to the environment, providing the preconditions and assumptions are met by the client

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

Web Service

WG-MediatorMediation Goal

OO-Mediator

Page 32: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

32

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Web Service Description

• The last part of the hands on session uses the assumption for web service selection.

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

Web Service

WG-MediatorMediation Goal

OO-Mediator

Page 33: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

33

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Web Service Description

• The interfaces of web services describe their behavioural characteristics, i.e. the communications they engage in

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

Web Service

WG-MediatorMediation Goal

OO-Mediator

Page 34: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

34

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Web Service Description

• The choreography expresses communications the service engages in with its clients…

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

Web Service

WG-MediatorMediation Goal

OO-Mediator

Page 35: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

35

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Web Service Description

• The state signature describes these communications semantically, by linking modes to ontological concepts

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

Web Service

WG-MediatorMediation Goal

OO-Mediator

Page 36: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

36

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Web Service Description

• The state signature describes these communications semantically, by linking modes to ontological concepts:

– IN modes describe communications the service is able to receive

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

Web Service

WG-MediatorMediation Goal

OO-Mediator

Page 37: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

37

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Web Service Description

• The state signature describes these communications semantically, by linking modes to ontological concepts:

– IN modes describe communications the client would like to receive;– OUT modes describe communications the service is able to send

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

Web Service

WG-MediatorMediation Goal

OO-Mediator

Page 38: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

38

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Web Service Description

• The state signature describes these communications semantically, by linking modes to ontological concepts:

– IN modes describe communications the client would like to receive;– OUT modes describe communications the service is able to send;– modes may be grounded to physical communications for service execution

(SOAP endpoints, REST identifiers, LISP and Java functions).

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

Web Service

WG-MediatorMediation Goal

OO-Mediator

Page 39: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

39

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Web Service Description

• Transition rules link communications into a stateful interaction

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

Web Service

WG-MediatorMediation Goal

OO-Mediator

Page 40: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

40

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Web Service Description

• Transition rules link communications into a stateful interaction:– Transition rules may be used in matching and (process) mediation against goals,

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

Web Service

WG-MediatorMediation Goal

OO-Mediator

Page 41: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

41

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Web Service Description

• Transition rules link communications into a stateful interaction:– Transition rules may be used in matching and (process) mediation against goals,

or for – In process mediation between IRS-III/WSMX broker and the deployed service

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

Web Service

WG-MediatorMediation Goal

OO-Mediator

Page 42: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

42

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Web Service Description

• Orchestrations describe how composite services achieve their behaviour in terms of communications between its components, which may be goals or services. We do not cover this in the hands on session.

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

Web Service

WG-MediatorMediation Goal

OO-Mediator

Page 43: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

43

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Web Service Description

• WG-Mediators describe which goals are met by a web service

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

Web Service

WG-MediatorMediation Goal

OO-Mediator

Page 44: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

44

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Web Service Description

• WG-Mediators describe which goals are met by a web service;• the descriptions may have some mismatch to be mediated

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

Web Service

WG-MediatorMediation Goal

OO-Mediator

Page 45: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

45

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Web Service Description

• WG-Mediators describe which goals are met by a web service;• the descriptions may have some mismatch to be mediated:

– a mediation goal describes data mediation which needs to take place between client communications and those of the service

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

Web Service

WG-MediatorMediation Goal

OO-Mediator

Page 46: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

46

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Web Service Description

• WG-Mediators describe which goals are met by a web service;• the descriptions may have some mismatch to be mediated:

– a mediation goal describes data mediation which needs to take place between client communications and those of the service;

– an oo-mediator can map between descriptions in two different ontologies – we do not cover this in the hands on session

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

Web Service

WG-MediatorMediation Goal

OO-Mediator

Page 47: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

47

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Web Service Description in Tutorial

• The steps that go into describing a service in the tutorial are:

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

Web Service

WG-MediatorMediation Goal

OO-Mediator

Page 48: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

48

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Web Service Description in Tutorial

• The steps that go into describing a service in the tutorial are:– Ontological description of the communications (may be reused from goal)

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

Web Service

WG-MediatorMediation Goal

OO-Mediator

Page 49: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

49

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Web Service Description in Tutorial

• The steps that go into describing a service in the tutorial are:– Ontological description of the communications (may be reused from goal);– Creation of a service

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

Web Service

WG-MediatorMediation Goal

OO-Mediator

Page 50: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

50

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Web Service Description in Tutorial

• The steps that go into describing a service in the tutorial are:– Ontological description of the communications (may be reused from goal);– Creation of a service; possibly attachment of an assumption

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

Web Service

WG-MediatorMediation Goal

OO-Mediator

Page 51: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

51

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Web Service Description in Tutorial

• The steps that go into describing a service in the tutorial are:– Ontological description of the communications (may be reused from goal);– Creation of a service; possibly attachment of an assumption– Creation of a wg-mediator (possibly involving a mediation goal)

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

Web Service

WG-MediatorMediation Goal

OO-Mediator

Page 52: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

52

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Web Service Description in Tutorial

• The steps that go into describing a service in the tutorial are:– Ontological description of the communications (may be reused from goal);– Creation of a service; possibly attachment of an assumption– Creation of a wg-mediator (possibly involving a mediation goal); – Attachment of a choreography

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

Web Service

WG-MediatorMediation Goal

OO-Mediator

Page 53: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

53

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Web Service Description in Tutorial

• The steps that go into describing a service in the tutorial are:– Ontological description of the communications (may be reused from goal);– Creation of a service; possibly attachment of an assumption– Creation of a wg-mediator (possibly involving a mediation goal); – Attachment of a choreography; Attachment of a state signature

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

Web Service

WG-MediatorMediation Goal

OO-Mediator

Page 54: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

54

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Web Service Description in Tutorial

• The steps that go into describing a service in the tutorial are:– Ontological description of the communications (may be reused from goal);– Creation of a service; possibly attachment of an assumption– Creation of a wg-mediator (possibly involving a mediation goal); – Attachment of a choreography; Attachment of a state signature; – Attachment of communications to state signature

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

Web Service

WG-MediatorMediation Goal

OO-Mediator

Page 55: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

55

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Web Service Description in Tutorial

• The steps that go into describing a service in the tutorial are:– Ontological description of the communications (may be reused from goal);– Creation of a service; possibly attachment of an assumption– Creation of a wg-mediator (possibly involving a mediation goal); – Attachment of a choreography; Attachment of a state signature – Attachment of communications to state signature:

• request as IN mode

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

Web Service

WG-MediatorMediation Goal

OO-Mediator

Page 56: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

56

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Web Service Description in Tutorial

• The steps that go into describing a service in the tutorial are:– Ontological description of the communications (may be reused from goal);– Creation of a service; possibly attachment of an assumption– Creation of a wg-mediator (possibly involving a mediation goal); – Attachment of a choreography; Attachment of a state signature – Attachment of communications to state signature:

• request as IN mode, grounded to LISP function

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

Web Service

WG-MediatorMediation Goal

OO-Mediator

Page 57: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

57

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Web Service Description in Tutorial

• The steps that go into describing a service in the tutorial are:– Ontological description of the communications (may be reused from goal);– Creation of a service; possibly attachment of an assumption– Creation of a wg-mediator (possibly involving a mediation goal); – Attachment of a choreography; Attachment of a state signature – Attachment of communications to state signature:

• request as IN mode, grounded to LISP function; response as OUT

Capability

Interface

PreconditionAssumption

Postcondition

Effect

Choreography

Orchestration

State Signature

Transition Rules

Web Service

WG-MediatorMediation Goal

OO-Mediator

Page 58: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

58

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

IRS-III Hands On Task• Develop an application for the European Travel scenario based on SWS. The

application should support a person booking a train ticket between 2 European cities at a specific time and date

• The following WSMO Studio tasks are involved:

– Retrieve domain ontology from IRS;

– Create WSML ontology concepts to describe communications;

– Create WSMO descriptions for Goals, WG-mediators and Web service descriptions;

– Export these definitions to the IRS;

– Create WSML ontology instances of the requests;

– Achieve the goals against these instances.

Page 59: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

59

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Tutorial Setup

Travel Services

(3001)

IRS Lisp Publisher

IRS-IIIBrowser & Editor

IRS Server (3000)

Domain Models

WSMO Studio

Page 60: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

60

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Travel Related Knowledge Models

Page 61: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

61

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Key Classes, Relations, Instances

is-in-country <city> <country> e.g.

(is-in-country berlin germany) -> true

(student <person>) -> true, for john matt michal

(business-person <person>) -> true, for liliana michael

Page 62: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

62

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Goals

1- Get train timetable– Inputs: origin and destination cities (city), date (date-and-time, e.g. (18 4

2004))– Output: timetable (string)

2- Book train– Inputs: passenger name (person), origin and destination cities, departure

time-date (list-date-and-time, e.g. (20 33 16 15 9 2004))– Output: booking information (string)

Page 63: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

63

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Services

• 1 service available for goal 1– No constraints

• 6 services available for goal 2– As a provider write the constraints applicable to the services to satisfy the goal

(assumption logical expressions)

• 1 wg-mediator mediation-service– Used to convert time in list format to time in universal format

Page 64: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

64

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Service constraints

• Services 2-5– Services for (origin and destination) cities in determined countries

• Service 4-5– Need a mediation service to map goal time-date to service time-date

• Services 6-7– Services for students or business people in Europe

Page 65: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

65

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Available Functions (1/3)1- get-train-times paris london (18 4 2004)"Timetable of trains from PARIS to LONDON on 18, 4, 2004 5:18…23:36"

2- book-english-train-journey

christoph milton-keynes london (20 33 16 15 9 2004)"British Rail: CHRISTOPH is booked on the 66 going from MILTON-KEYNES to LONDON

at 16:49, 15, SEPTEMBER 2004. The price is 169 Euros."

3- book-french-train-journey sinuhe paris lyon (3 4 6 18 8 2004)"SNCF: SINUHE is booked on the 511 going from PARIS to LYON at 6:12, 18, AUGUST

2004. The price is 27 Euros."

Page 66: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

66

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Available Functions (2/3)

4- book-german-train-journey

christoph berlin frankfurt 3304251200

"First Class Booking German Rail (Die Bahn): CHRISTOPH is booked on the 323 going from BERLIN to FRANKFURT at 17:11, 15, SEPTEMBER 2004. The price is 35 Euros."

5- book-austrian-train-journey sinuhe vienna innsbruck 3304251200

"Austrian Rail (OBB): SINUHE is booked on the 367 going from VIENNA to INNSBRUCK at 16:47, 15, SEPTEMBER 2004. The price is 36 Euros. "

Page 67: 1 The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06) Semantic Web Services Hands-On Session with IRS-III and WSMO Studio.

67

The Fourth Summer School on Ontological Engineering and the Semantic Web (SSSW'06)

Available Functions (3/3)6- book-student-european-train-journey john london nice (3 4 6 18 8 2004)"European Student Rail Travel: JOHN is booked on the 916 going from LONDON to

NICE at 6:44, 18, AUGUST 2004. The price is 94 Euros. "

7- book-business-european-train-journey liliana paris innsbruck (3 4 6 18 8 2004)"Business Europe: LILIANA is booked on the 461 going from PARIS to INNSBRUCK

at 6:12, 18, AUGUST 2004.The price is 325 Euros."

8- mediate-time (lisp function) or JavaMediateTime/mediate (java) (9 30 17 20 9 2004)3304686609