216
Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler Jos de Brujin Ruben Lara Matthew Moran Michael Stollberg Michal Zaremba Laurentiu Vasiliu Liliana Cabral John Domingue Carnegie Mellon University

Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

  • Upload
    doque

  • View
    217

  • Download
    1

Embed Size (px)

Citation preview

Page 1: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

Semantic Web Services TutorialISWC 2004, Hiroshima, Japan

Massimo PaolucciKatia SycaraDavid Martin

Sinuhe ArroyoChristoph BusslerJos de BrujinRuben LaraMatthew Moran Michael StollbergMichal ZarembaLaurentiu Vasiliu

Liliana CabralJohn Domingue

Carnegie MellonUniversity

Page 2: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 2

Table of contents(I) Introduction to Semantic Web Services (SWS)(II) Semantic Web Services

• OWL-S & WSMO• OWL-S and WSMO - Design decisions and trade-offs

#Q&A, Coffee break#

(III) Semantic Web Services implementations• OWL-S• WSMX• IRS – III – bridge implementation between OWL-S & WSMO

(IV) Summary, Conclusions & Future Work

Page 3: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 3

SWS(I)

Introduction to Semantic Web ServicesLaurentiu Vasiliu

Contributors: Sinuhe Arroyo, Christoph Bussler

Page 4: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 4

Semantic Web Services=

Semantic Web Technology+

Web Service Technology

Page 5: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 5

Semantic Web Services

Web Services: [Stencil Group]• loosely coupled, reusable components• semantically encapsulate discrete

functionality • distributed • programmatically accessible over standard

internet protocols• add new level of functionality on top of the

current web

Page 6: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 6

Semantic Web Services (2)Semantic Web:• ontologies - basic building block • allow machine supported data interpretation Semantic Web Services:• will allow the automatic publication, discovery,

selection, composition, mediation and execution of inter-organization business logic

• Internet to become a global common platform to support SWS applications

Page 7: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 7

Semantic Web ServicesUsage Process:• Publication: Make available the description of the capability

of a service • Discovery: Locate different services suitable for a given

task • Selection: Choose the most appropriate services among

the available ones • Composition: Combine services to achieve a goal• Mediation: Solve mismatches (data, protocol, process)

among the combined • Execution: Invoke services following programmatic

conventions

Page 8: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 8

Semantic Web ServicesUsage Process – execution support

• Monitoring: Control the execution process• Compensation: Provide transactional support and undo or

mitigate unwanted effects• Replacement: Facilitate the substitution of services by

equivalent ones• Auditing: Verify that service execution occurred in the

expected way

Page 9: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 9

Lack of SWS standards

Page 10: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 10

Lack of SWS standards

Page 11: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 11

Lack of SWS standards

Current technology does not allow realization of any of the parts of the Web Services’usage process:

• Only syntactical standards available• Lack of fully developed markup languages• Lack of marked up content and services• Lack of semantically enhanced repositories• Lack of frameworks that facilitate discovery,

composition and execution• Lack of tools and platforms that allow to

semantically enrich current Web content

Page 12: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 12

Table of contents(I) Introduction to Semantic Web Services (SWS)(II) Semantic Web Services

• OWL-S & WSMO• OWL-S and WSMO - Design decisions and trade-offs

#Q&A, Coffee break#

(III) Semantic Web Services implementations• OWL-S• WSMX• IRS – III – bridge implementation between OWL-S &

WSMO(IV) Summary, Conclusions & Future Work

Page 13: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 13

OWL-S & WSMO(II)

Semantic Web Services Concepts

Page 14: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 14

OWL-S Ontology

Katia SycaraMassimo Paolucci

David Martin

Page 15: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 15

OWL-S Ontology• OWL-S is an OWL ontology to describe Web services• OWL-S leverages on OWL to

– Support capability based discovery of Web services– Support automatic composition of Web Services– Support automatic invocation of Web services

Complete do not compete– OWL-S does not aim to replace the Web services standards

rather OWL-S attempts to provide a semantic layer • OWL-S relies on WSDL for Web service invocation (see Grounding)• OWL-s Expands UDDI for Web service discovery (OWL-S/UDDI

mapping)

Page 16: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 16

OWL-S Upper Ontology

• Mapping to WSDL• communication protocol (RPC, HTTP, …)• marshalling/serialization• transformation to and from XSD to OWL

• Control flow of the service•Black/Grey/Glass Box view

• Protocol Specification• Abstract Messages

•Capability specification•General features of the Service

• Quality of Service• Classification in Service

taxonomies

Page 17: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 17

Service Profiles

Service Profile– Presented by a service.– Represents

what the service provides– Two main uses:

1. Advertisements of Web Services capabilities

2. Request of Web services with a given set of capabilities

Page 18: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 18

OWL-S Profile in a Nutshell• Describes Web service

– What capabilities it provides: • What transformation the service computes• Type of service and products

– General features such as• Agent providing the service• Security requirements• Quality guarantees of service

• Primary role: to assist discovery– Allows capability based search– Allows selection based on requirements of the requester

• Profile does not specify use/invocation

Page 19: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 19

OWL-S Service ProfileCapability Description

• Preconditions– Set of conditions that should hold prior to service invocation

• Inputs– Set of necessary inputs that the requester should provide to invoke the

service• Outputs

– Results that the requester should expect after interaction with the service provider is completed

• Effects– Set of statements that should hold true if the service is invoked

successfully.• Service type

– What kind of service is provided (eg selling vs distribution)• Product

– Product associated with the service (eg travel vs books vs auto parts)

Page 20: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 20

OWL-S Service ProfileAdditional Properties

• Security Parameters– Specify the security capabilities of a Web service (eg support

X509 Encryption)– Specify the security requirements of a Web service (eg a client

should be able to provide X509 Encryption)• Quality rating

– What level of service quality does the Web service provide?• Description with standard business taxonomies

– How would the service be classified in standard taxonomies such as UNSPSC or NAICS?

This is not a closed set, new properties can be added using existing ontologies

Page 21: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 21

Process Model

• Process Model– Describes how a service

works: internal processes of the service

– Specifies service interaction protocol

– Specifies abstract messages: ontological type of information transmitted

• Facilitates– Web service invocation– Composition of Web services– Monitoring of interaction

Page 22: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 22

Viewpoints of Process Model• Three viewpoints of a Web service

– Glass Box:• The Web service reveals all its internal structure• Which parts of the service it performs in-house, which one it

subcontracts, etc– Black Box:

• The Web service model does not reveal anything about the internal working of the service

• It just specifies what data it gathers and what data it sends back

– Grey Box:• The Web service selectively hides some parts of its Process

Model, while it publicizes others

Page 23: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 23

Definition of Process• A Process represents a transformation (function). It is

characterized by four parameters– Inputs: the inputs that the process requires – Preconditions: the conditions that are required for the

process to run correctly– Outputs: the information that results from (and is

returned from) the execution of the process– Results: a process may have different outcomes

depending on some condition• Condition: under what condition the result occurs• Constraints on Outputs• Effects: real world changes resulting from the execution of the

process

Page 24: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 24

Motivation for Results• Processes may terminate in exceptional states:

– The credit company may fail to charge the credit card– The book may be out of stock– The deliver of the goods may fail

• Results support modeling of non-deterministic outcomes of Web services– The condition specifies when an outcome is generated– Each outcome is characterized by

• a set of constraints on outputs • a set of effects

Page 25: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 25

Example of Process<process:AtomicProcess rdf:ID="LogIn">

<process:hasInput rdf:resource="#AcctName"/><process:hasInput rdf:resource="#Password"/><process:hasOutput rdf:resource="#Ack"/><process:hasPrecondition isMember(AccName)/><process:hasResult>

<process:Result><process:inCondition>

<expr:SWRL-Condition>correctLoginInfo(AccName,Password)

</expr:SWRL-Condition></process:inCondition><process:withOutput rdf:resource=“#Ack“>

<valueType rdr:resource=“#LoginAcceptMsg”></process:withOutput><process:hasEffect>

<expr:SWRL-Condition>loggedIn(AccName,Password)

</expr:SWRL-Condition></process:hasEffect>

</process:Result></process:hasResult>

</process:AtomicProcess>

Inputs / Outputs

Result

Condition

Effect

OutputConstraints

Precondition

Page 26: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 26

Ontology of ProcessesProcess

Atomic

Simple

CompositeProvides abstraction, encapsulation etc.

Invokablebound to grounding

Defines a workflow composed of process performs

Page 27: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 27

Process Model Organization• Process Model is described as a tree structure

– Composite processes are internal nodes– Simple and Atomic Processes are the leaves

• Simple processes represent an abstraction– Placeholders of processes that aren’t specified – Or that may be expressed in many different ways

• Atomic Processes correspond to the basic actions that the Web service performs– Hide the details of how the process is implemented– Correspond to WSDL operations

Page 28: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 28

Composite Processes•Composite Processes specify how processes work together to compute a complex function•Composite processes define

1.Control FlowSpecify the temporal relations between the executions of the different sub-processes

2.Data FlowSpecify how the data produced by one process is transferred to another process

Page 29: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 29

Example of Composite ProcessSequenceBookFlight

DepartArrive

FlightsAirline

Airline Flight

Perform

Get Flights Flight

Perform

SelectFlight

Flights

Control Flow LinksSpecify order of execution

Data-Flow LinksSpecify transfer of data

Perform statementsSpecify the execution of a process

Page 30: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 30

Perform Construct• Perform provides invocation mechanism

– Specify context of process execution• input data flow• hooks for output data flow

• Distinction between definition and invocation of a process– Definition specifies the process’ I/P/R– Perform specify when the process is invoked

and with what parameters

Page 31: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 31

Control Flow• Processes can be chained to form a workflow• OWL-S supports the following control flow constructs

– Sequence/Any-Order: represents a list of processes that are executed in sequence or arbitrary order

– Conditionals: if-then-else statements– Loops: while and repeat-until statements – Multithreading and synchronization: split process

in multiple threads, and rendezvous (joint) points– Non-deterministic choices: (arbitrarily) select one

process of a set

Page 32: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 32

Data FlowDataflow allows information that is transferred from process

to process.Output→Input:

The information produced by one process is transferred to another in the same control construct

Input →Input:The information received by a composite process is transferred to

the sub-processes

Output→Output:The information produced by a subprocess is transferred to a

super-process

Page 33: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 33

Process Model: take home lesson

• Service Model describes– Set of processes that define the operations

performed by the Web service– Control flow describing the temporal flow of

processes– Data flow describing the transfer of

information between sub-processes

Page 34: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 34

Service Grounding

• Service Grounding– Provides a specification of service

access information.– Service Model + Grounding give

everything needed for using the service

– Builds upon WSDL to define message structure and physical binding layer

• Specifies:– communication protocols,

transport mechanisms, communication languages, etc.

Page 35: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 35

Rationale of Service Grounding

• Provides a specification of service access information.

• Service Model + Grounding give everything needed for using the service – Service description is for reasoning about the service

• Decide what information to send and what to expect– Service Grounding is for message passing

• Generate outgoing messages, and get incoming messages• Mapping XML Schemata to OWL concepts

• Builds upon WSDL to define message structure and physical binding layer

Page 36: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 36

Mapping OWL-S / WSDL 1.1• Operations

correspond to Atomic Processes

• Input/Outputmessages correspond to Inputs/Outputs of processes

Page 37: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 37

Example of GroundingSequenceBookFlight

DepartArrive

FlightsAirline

Airline Flight

Perform

Get Flights Flight

Perform

SelectFlight

Flights

Get Flights OpDepartArrive

Flights

WSDL

AirlineFlightSelect

Flight opFlights

Page 38: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 38

Result of using the Grounding• Invocation mechanism for OWL-S

– Invocation based on WSDL– Different types of invocation supported by WSDL can be used

with OWL-S• Clear separation between service description and

invocation/implementation– Service description is needed to reason about the service

• Decide how to use it• Decide how what information to send and what to expect

– Service implementation may be based on SOAP an XSD types– The crucial point is that the information that travels on the wires

and the information used in the ontologies is the same• Allows any web service to be represented using OWL-S

– For example: Amazon.com

Page 39: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 39

Handling stateful vs stateless Web services

1. Stateless Web services• The server does not maintain the state of the

computation• Dataflow links specify how the client

communicate the state to the service2. Stateful Web services

• The service does maintain the state• No need of dataflow links since transfer of

information is opaque to the client

Page 40: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 40

Representing StatefulWeb services

SequenceBookFlight

FlightsAirline

Airline Flight

Perform

Get Flights Flight

PerformSelectFlight

Flights

Get Flights OpArrive Flights

ServerFlightSelect

Flight opFlights

Stateless: no information is transferred between the

Client

Servertwo operations

Page 41: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 41

Representing Stateless Web services

SequenceBookFlight

FlightsAirline

Airline Flight

Perform

Get Flights Flight

PerformSelectFlight

Get Flights OpArrive Flights

ServerFlightSelect

Flight opFlights

Client

Stateful: information is recorded by the server, no need of transfer between the two operations

Page 42: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 42

Conclusion OWL-S section• OWL-S provides a language for the description of Web

services– Service Profile provides description of capabilities of

Web Service• Allows capability-based discovery

– Process Model provides the description of how to use a Web service

• Allows automatic invocation of Web service– Service Grounding maps Atomic Processes into

WSDL operations• Allows separation between description and implementation• Supports description of arbitrary Web services

Page 43: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 43

WSMO

Web Service Modeling Ontology

Michael Stollberg

Contributors: Dumitru Roman, Holger Lausen, Rubén Lara, Axel Pollerers

Page 44: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 44

Features • WSMO is a complete conceptual model for

Semantic Web Services and related aspects

• WSMO is derived from and based on the Web Service Modeling Framework WSMF

• WSMO is a SDK-Cluster Working Group

Page 45: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 45

Outline• WSMO Working Groups• WSMO Design Principles

• WSMO Top Level Notions– Ontologies – Goals – Web Services– Mediators

• Walk-Thru Example

Page 46: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 46

WSMO Working Groups

A Conceptual Model for SWS

A Formal Language for WSMO

A Rule-based Language for SWS

Execution Environment for WSMO

Page 47: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 47

WSMO Design Principles

Strong Decoupling & Strong Mediationautonomous components with mediators for interoperability

Interface vs. Implementationdistinguish interface (= description) from implementation (=program)

Peer to Peerinteraction between equal partners (in terms of control)

Execution Semanticsreference implementation (WSMX)

Page 48: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 48

WSMO Top Level NotionsObjectives that a client may havewhen consulting a Web Service

Provide the formally specified terminologyof the information used by all other components

Semantic description of Web Services: - Capability (functional)- Interfaces (usage)

Connectors between components with mediation facilities for handling heterogeneities

WSMO D2, version 1.0, 20 September 2004

Page 49: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 49

Non-Functional Properties• Every WSMO elements is described by properties that

contain relevant, non-functional aspects of the item• used for management and element overall description• Core Properties:

- Dublin Core Metadata Element Set plus version (evolution support)

- W3C-recommendations for description type • Web Service Specific Properties:

- quality aspects and other non-functional information of Web Services

- used for Service Selection

Page 50: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 50

Non-Functional Propertiesontology <http://www.wsmo.org/2004/d3/d3.2/v0.1/20040628/dt.wsml>

nonFunctionalPropertiesdc:title "Date and Time Ontology"dc:creator "DERI International"dc:subject "Date", "Time", "Date and Time Algebra"dc:description "generic representation of data and time including basic algebra"dc:publisher "DERI International"dc:contributor "Holger Lausen", "Axel Polleres", "Ruben Lara"dc:date 2004-06-28dc:type http://www.wsmo.org/2004/d2/v0.3/20040329/#ontosdc:format "text/plain"dc:language "en-US"dc:relation <http://www.isi.edu/~pan/damltime/time-entry.owl>,

<http://www.w3.org/TR/xmlschema-2/> dc:coverage "World"dc:rights <http://www.deri.org/privacy.html>version 1.21

Page 51: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 51

WSMO Ontologies

Objectives that a client may havewhen consulting a Web Service

Provide the formally specified terminologyof the information used by all other components

Semantic description of Web Services: - Capability (functional)- Interfaces (usage)

Connectors between components with mediation facilities for handling heterogeneities

Page 52: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 52

Ontology Specification• Non functional properties (see before)• Imported Ontologies importing existing ontologies

where no heterogeneities arise • Used mediators: OO Mediators (ontology import with

terminology mismatch handling)

• ‘Standard’ Ontology Notions:Concepts set of concepts that belong to the ontology, incl.Attributes set of attributes that belong to a conceptRelations: define interrelations between several conceptsFunctions: special type of relation (unary range = return value) Instances: set of instances that belong to the represented ontologyAxioms axiomatic expressions in ontology (logical statement)

Page 53: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 53

WSMO Goals

Provide the formally specified terminologyof the information used by all other components

Semantic description of Web Services: - Capability (functional)- Interfaces (usage)

Objectives that a client may havewhen consulting a Web Service

Connectors between components with mediation facilities for handling heterogeneities

Page 54: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 54

Goals• De-coupling of Request and Service

Goal-driven Approach, derived from AI rational agent approach- Requester formulates objective independent / without regard to

services for resolution- ‘Intelligent’ mechanisms detect suitable services for solving the

Goal- Allows re-use of Services for different purposes

• Usage of Goals within Semantic Web Services– A Requester, that is an agent (human or machine), defines a Goal

to be resolved – Web Service Discovery detects suitable Web Services for solving

the Goal automatically – Goal Resolution Management is realized in implementations

Page 55: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 55

Goal Specification• Non functional properties • Imported Ontologies• Used mediators

– OO Mediators: for importing ontologies with integration– GG Mediator:

• Goal definition by reusing an already existing goal• Allows specification of Goal Ontologies

• Post-conditions Describe the state of the information space that is desired.

- The result expected from execution a Web Service- Expressed as an axiom (unambiguous, based on ontology)

• Effects Describe the state of the world that is desired.

- Expected changes in the world that shall hold after a service execution

- Expressed as an axiom (unambiguous, based on ontology)

Page 56: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 56

WSMO Standard

WSMO Web ServicesObjectives that a client may havewhen consulting a Web Service

Semantic description of Web Services: - Capability (functional)- Interfaces (usage)

Provide the formally specified terminologyof the information used by all other components

Connectors between components with mediation facilities for handling heterogeneities

Page 57: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 57

WSMO Web Service Description - complete item description- quality aspects - Web Service Management

- Advertising of Web Service- Support for WS Discovery

Web ServiceImplementation(not of interest in Web Service Description)

Choreography --- Interfaces ---

Capability

functional description

WS

WS

Interaction Interface for consuming WS- Messages - External Visible

Behavior- ‘Grounding’

Realization of WS by using other Web Services - Functional

decomposition - WS

Composition

Non-functional Properties

Core + WS-specific

WS

Orchestration

Page 58: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 58

Web Service specific Properties

• non-functional information of Web Services:

Accuracy RobustnessAvailability ScalabilityFinancial SecurityNetwork-related QoS Transactional Performance Trust Reliability

Page 59: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 59

Capability Specification• Non functional properties • Imported Ontologies • Used mediators

– OO Mediator: importing ontologies as terminology definition – WG Mediator: link to a Goal that is solved by the Web Service

• Pre-conditions What a web service expects in order to be able to provide its service. They define conditions over the input.

• Assumptions Conditions on the state of the world that has to hold before the Web Service can be executed

• Post-conditions describes the result of the Web Service in relation to the input, and conditions on it

• Effects Conditions on the state of the world that hold after execution of the Web Service (i.e. changes in the state of the world)

Page 60: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 60

Choreography in WSMO

“Interface of Web Service for client-service interaction when consuming the Web Service”

• External Visible Behavior– those aspects of the workflow of a Web Service

where User Interaction is required – described by process / workflow constructs

• Communication Structure– messages sent and received – their order (messages are related to activities)

Page 61: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 61

Choreography in WSMO (2)• Grounding

– concrete communication technology for interaction – choreography related errors (e.g. input wrong,

message timeout, etc.) • Formal Model

– allow operations / mediation on Choreographies – Formal Basis: Abstract State Machines (ASM)

Page 62: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 62

Choreography & Mediation Aim: support collaboration of multiple Web Services

Future Work:• Language and Formal Model for multi-party

Choreographies– Specification of Global Interaction Protocols – related: WS-CDL (W3C WS Choreography Working Group)

• Protocol and Process Mediation Facilities – formal model for operations on Choreography Interfaces – related: Process Algebra, PI Calculus, Petri Nets

WS2

WS3

WS11.

2.

4.3.

Page 63: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 63

WSMO Orchestration

under construction

“Achieve Web Service Functionality by aggregation of other Web Services”

• Orchestration Language– decomposition of Web Service functionality– control structure for aggregation of Web Services

• Web Service Composition– Combine Web Services into higher-level functionality – Resolve mismatches occurring between composed Web Services

• Proxy Technology– Placeholders for used Web Services – Facility for applying the Choreography of used Web Services

Page 64: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 64

WSMO Orchestration Overview

decomposition of the Web Service functionality into sub-functionalities

Proxies as placeholders for used Web Services

Control Structure for aggregation of other Web Services

Page 65: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 65

WSMO Mediators

Provide the formally specified terminologyof the information used by all other components

Semantic description of Web Services: - Capability (functional)- Interfaces (usage)

Objectives that a client may havewhen consulting a Web Service

Connectors between components with mediation facilities for handling heterogeneities

Page 66: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 66

Mediation • Heterogeneity …

– Mismatches on structural / semantic / conceptual / level – Occur between different components that shall interoperate– Especially in distributed & open environments like the Internet

• Concept of Mediation (Wiederhold, 94): – Mediators as components that resolve mismatches– Declarative Approach:

• Semantic description of resources • ‘Intelligent’ mechanisms that resolve mismatches independent of

content– Mediation cannot be fully automated (integration decision)

• Levels of Mediation within Semantic Web Services (WSMF):(1) Data Level: mediate heterogeneous Data Sources (2) Protocol Level: mediate heterogeneous Communication Patterns (3) Process Level: mediate heterogeneous Business Processes

Page 67: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 67

WSMO Mediators Overview

Page 68: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 68

Mediator StructureWSMO Mediator

uses a Mediation Service via

Source Component

Source Component

TargetComponent1 .. n

1

Mediation Services

- as a Goal - directly- optionally incl. Mediation

Page 69: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 69

OO Mediator - ExampleMerging 2 ontologies

OO MediatorMediation Service

Train ConnectionOntology (s1)

Purchase Ontology (s2)

Train Ticket Purchase Ontology

Mediation Services

Goal:“merge s1, s2 and s1.ticket subclassof s2.product”

Discovery

Page 70: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 70

GG Mediators• Aim:

– Support specification of Goals by re-using existing Goals – Allow definition of Goal Ontologies (collection of pre-defined Goals)– Terminology mismatches handled by OO Mediators

• Example: Goal Refinement

GG MediatorMediation Service

Source Goal“Buy a ticket”

Target Goal “Buy a Train Ticket”

postcondition: “aTicket memberof trainticket”

Page 71: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 71

WG & WW Mediators• WG Mediators:

– link a Web Service to a Goal and resolve occurring mismatches – match Web Service and Goals that do not match a priori– handle terminology mismatches between Web Services and Goals⇒ broader range of Goals solvable by a Web Service

• WW Mediators:– enable interoperability of heterogeneous Web Services⇒ support automated collaboration between Web Services

– OO Mediators for terminology import with data level mediation– Protocol Mediation for establishing valid multi-party collaborations– Process Mediation for making Business Processes interoperable

Page 72: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 72

WSMO Walk-Thru Example

• Use Case– Buy a train ticket to travel from Innsbruck,

Austria to Frankfurt, Germany.– Departure Date: 11 November 2004– Departure Time: after 6 p.m.

• Show: – modeling of WSMO components– service usage process

Page 73: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 73

Use Case Overview

Customer

TimeTable

Payment

Delivery

uses & aggregates

Service Provider

Service Provider

provides

Contract

Contract

VTA

how does the interplay of the Customer, VTA, and the other Web Services look like?

Page 74: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 74

Goal Specification - ExampleGoal Postcondition

„I want to buy a train ticket from Innsbruck to Frankfurt on 11/11/04, after 6 p.m.”

postconditionaxiom buyATicketForItinerary

nonFunctionalPropertiesdc:description “defines the desire expressed in the Goal"

definedBy?Ticket[

trip hasValue someTrip[start hasValue innsbruckend hasValue frankfurt

departure hasValue myDeparture[ date hasValue 2004-11-11, time hasValue 18-00] memberOf dt:dateandtime

] memberOf tc:trainTrip, passenger hasValue aPassenger memberOf loc:person,

] memberOf tc:ticket .

Page 75: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 75

Capability - ExamplePostcondition (returns a ticket for a train trip with constraints)

postconditionnonFunctionalProperties

dc:description "the output of the service with constraints”definedBy?Ticket[

trip hasValue ?Trip[ start hasValue ?Start, end hasValue ?End, departure hasValue ?Departure

] memberOf tc:trainTrip andpassenger hasValue ?Passenger memberOf loc:person

] memberOf tc:ticket and(?Start.locatedIn = austria or ?Start.locatedIn = germany) and(?End.locatedIn = austria or ?End.locatedIn = germany) and?Departure > currentDate() .

Page 76: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 76

Step1: Goal Definition and Web Service Discovery

Goal: „I want to buy a train ticket fromInnsbruck to Frankfurt on 11th November 2004, departure later than 6 p.m.“creates

Customer Service RegistryWS Discoverer

searches

VTA result set including

Page 77: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 77

Orchestration

Composition

Web Service Interfaces

Choreography

invocation

connection choice

contract of purchase

payment & delivery

request: buyer information, itinerary

set of valid itinerariesitinerary

input not valid

no valid connection

purchase propositionoption selection OR

accept OR not accept

payment informationrequest payment information

payment information incorrect

internal

connection choice TimeTable

Payment

Delivery

P

P

successful purchase

payment & delivery

Page 78: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 78

Service Usage I: “Invocation”

CustomerInvocation Message

incl. Input-Information (Buyer, Itinerary)VTA CI

Choreography Side Orchestration Side

Page 79: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 79

Service Usage II: “Connection Choice”

CI

Customer

VTA

TimeTableP

REQ: valid itineraries

RES: set of itineraries

INF: set of itineraries

INF: itineraries CI

Choreography Side Orchestration Sidetime

Page 80: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 80

Service Usage III: “Contract of Purchase”

Customer

INF: Purchase Proposition

incl. all purchase contract information

VTA CI

Choreography Side Orchestration Side

INF: Purchase Offer Acceptance

INF: Proposition Option Selection

repeat until acceptance

time

Page 81: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 81

Service Usage IV: “Payment & Delivery”

CI

CustomerVTA

Payment

PREQ: paymentincl. item, creditcard

RES: payment OK

REQ: creditcard info

RES: creditcard info

CI

time Choreography Side Orchestration Side

ERR: creditcard invalidERR: creditcard invalid

Delivery

REQ: deliveryincl. item, ship-address

ACK: delivery OK CIINF: successful purchase

Page 82: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 82

Table of contents(I) Introduction to Semantic Web Services (SWS)(II) Semantic Web Services

• OWL-S & WSMO• OWL-S and WSMO - Design decisions and trade-offs

#Q&A, Coffee break#

(III) Semantic Web Services implementations• OWL-S• WSMX• IRS – III – bridge implementation between OWL-S &

WSMO(IV) Summary, Conclusions & Future Work

Page 83: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 83

OWL-S and WSMO

Design decisions and tradeoffs

Katia Sycara Ruben Lara David Martin (presenter for Katia)Contributors: Massimo Paolucci, WSMO team

Page 84: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 84

OWL-S vs WSMO Perspective• OWL-S is an ontology and a language to describe Web

services– The guiding lines for the development of OWL-S have been

• Strong relation to Web Services standards– Rather than proposing another WS* standard, OWL-S aims at enriching

existing standards– OWL-S is grounded in WSDL and it has been mapped into UDDI

• Based on the Semantic Web– Ontologies provide conceptual framework to describe the domain of

Web services and an inference engine to reason about the domain– Ontologies are essential elements of interoperation between Web

services • Build upon 30 years of AI research on Knowledge Representation

and Planning

Page 85: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 85

OWL-S vs WSMO Perspective• WSMO provides a conceptual model for Web Services

and related aspects– WSMO separates the different language specifications layers

(MOF style)• Language for defining WSMO is the meta – meta - model in MOF• WSMO and WSML are the meta - models in MOF• Actual goals, web services, etc. are the model layer in MOF• Actual data described by ontologies and exchanged is the

information layer in MOF– Stress on solving the integration problem

• Mediation as a key element– Languages to cover wide range of scenarios and improve

interoperability– Relation to industry WS standards– All the way from conceptual modelling to usable implementation

Page 86: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 86

Web Services Problems• Web services as loosely coupled components that

work through collaboration• WS interaction requires :

– Discovery• How are Web services found and selected?

– Composition• How to make different Web services work together?

– Invocation• How is data transformed to fit the requirement of the

partner Web service?– Guaranteeing Security and Policies

• How are the partners requirements satisfied?– Mediation and Interoperation

• How are data and protocol mismatches resolved?

Page 87: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 87

Problems of Discovery

• Discovery requires– Infrastructure that allows storage and retrieval of

information about Web services • For example a UDDI server

– Description of capabilities of Web services– Description of requests or goals– Algorithms for matching requesters for

capabilities with the corresponding providers

Page 88: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 88

OWL-S vs WSMO Discovery• OWL-S Profile provides capability description & request

– Functional capabilities (what the Web services does)– Quality parameters (how the Web service does it) – Capability description & request are both Profile-based– OWL-S reliance on OWL provides (one type of) matching– It can be mapped to UDDI or used in other architectures such as

brokering or P2P• WSMO separates requester and provider viewpoints

– WSMO goals describe requester objectives– WSMO capabilities describe WS functionality– Non-functional properties used for security, trust, etc.– Different steps in service discovery– Different approaches to web service discovery

• Cover a wide range of scenarios!

Page 89: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 89

Differences between OWL-S and WSMO

OWL-S profile ≈ WSMO capability + goal + non-functional properties

• Request– OWL-S uses Profiles to express existing capabilities

(advertisements) and desired capabilities (requests) – WSMO separates provider (capabilities) and

requester points of view (goals)• Conceptually, OWL-S requested profile and WSMO goal

are not exactly the same – Requested service profile vs requester objectives

Page 90: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 90

Problems of Composition

• No single Web service may achieve all goals of an agent – Composition is the process of chaining results from

different Web services automatically• Planning problem

– How do the Web services fit together?• Interoperation problem

– How does the information exchanged fit together?– How is this information interpreted by the end points?

Page 91: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 91

OWL-S vs WSMO Composition• OWL-S WS composition based on Process Model

– Processes are modeled as planning operators– OWL-S does not provide a “pure” choreography language, but

Process Model can be used as a highly flexible choreography language for the description of WS protocols

– Multi party orchestration is not modeled directly; it results from a planning process driven by the goals of the main actor and that involves the Process Models of all the participants

• WSMO enables automatic, semiautomatic and fixed composition– Automatic composition based on planning and use of WS

capabilities and choreographies– Orchestration can define the use of other WSs

• Fixed WSs• Proxies (goals) to be resolved at run-time

Page 92: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 92

Differences between OWL-S and WSMO

OWL-S Process Model ≈ WSMO Choreography

• Differences:– WSMO provides choreography + orchestration while OWL-S

provides only choreography and facilitates automatic orchestration

– WSMO allows multiple choreographies– WSMO choreography will come with ASM-based formal

semantics– OWL-S formal semantics has been developed in very different

frameworks such as Situation Calculus, Petri Nets, Pi-calculus– OWL-S Process Model more mature than WSMO choreography

Page 93: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 93

Problem of Invocation• Invocation requires the mapping of abstract

“semantically based” descriptions into data-exchanges with partner services– Specification of what information is required– Transformation into a data-format that the server

understands– Resolve process and protocol heterogeneity– Accommodate a different granularity of description– Interpretation of the information received using the

available ontologies– Dealing with server failures

Page 94: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 94

OWL-S vs WSMO Grounding

OWL-S Grounding ≈ WSMO Grounding

• OWL-S and WSMO provide default mapping to WSDL– Clear separation between WS description and

interface implementation– Other mappings could be used– OWL-S Grounding is more mature than WSMO’s

Page 95: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 95

Relation to Web Services Technology

OWL-S WSMO Web Services Infrastructure

DiscoveryWhat it does

Profile Web Services (capability)

Orchestration + choreography

Grounding

UDDI API

ChoreographyHow is done

Process Model BPEL4WS

InvocationHow to invoke

Grounding+ WSDL/SOAP WSDL/SOAP

• OWL-S and WSMO map to UDDI API adding semantic annotation• OWL-S and WSMO share a default WSDL/SOAP Grounding • BPEL4WS could be mapped into WSMO orchestration and choreography• Mapping still unclear at the lever of choreography/orchestration

– In OWL-S, multi-party interaction is obtained through automatic composition and invocation of multiple parties

– BPEL allows hardcoded representation of many Web services in the same specification.

– Trade-off: OWL-S support substitution of Web services at run time, such substitution is virtually impossible in BPEL.

Page 96: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 96

Mediation and Interoperation• Interaction of Web services is bound to produce many forms of

mismatch– Data mismatch: the interacting parties do not agree on the

data format that they are using– Ontology mismatch: the interacting parties refer to different

ontologies– Protocols mismatch: the interacting parties expect

information at different times– Goals Mismatch: the interacting parties attempt to achieve

very different goals– Interpretations Mismatch: The interacting parties interpret

the same information in very different ways• These mismatches need to be reconciled for the interoperation to

succeed.• Mediators are the components that reconcile these

mismatches

Page 97: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 97

Mediators in OWL-S and WSMO• OWL-S does not have an explicit notion of mediator

– Mediation is a by-product of the orchestration process• For example protocol mismatches are resolved by constructing a

plan that coordinates the activity of the Web services– …or it results from translation axioms that are available to the

Web services• It is not the mission of OWL-S to generate these axioms

• WSMO regards mediators as key conceptual elements– Different kinds of mediators modelled

• Refiners and bridges– Reusable mediators– Mediation mechanism not dictated

• E.g. Rules or WS invocation

Page 98: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 98

Differences between OWL-S and WSMO

• There is no clear mapping between OWL-S and WSMO approach to mediation– OWL-S adopts the view that mediators emerge

• as infrastructure elements • or as by product of the reasoning capabilities of the Web

service (for example through matchmaking or planning)

– WSMO views mediators as fundamental conceptual elements…

• But they can also be located as the result of matchmaking or composition

Page 99: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 99

Semantic Representation• OWL-S and WSMO adopt a similar view on the need of

ontologies and explicit semanticsbut they rely on different logics

– OWL-S is based on OWL/SWRL• OWL represent taxonomical knowledge• SWRL provides inference rules

– WSMO is based on WSML a family of languages with a common basis for compatibility and extensions in the direction of Description Logics and Logic Programming

Page 100: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 100

WSML vs OWL

• The relation between WSML and OWL+SWRL is still to be completely worked out– For some languages it is known

• WSML-Core is an interesting subset of OWL Lite• WSML-DL is equivalent to OWL DL

but for other languages the relation is still unknown

Page 101: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 101

OWL-S

Using OWL-S to address Web Services problems

Katia SycaraDavid Martin

Page 102: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 102

OverviewOWL-S, as Web services description language

needs to support DiscoveryCompositionInvocationGuaranteeing Security and PoliciesMediation and Interoperation

In this section we will discuss these issues in more detail

Page 103: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 103

Discovery with OWL-SExpressing capabilities in OWL-S

• OWL-S Profile describes capabilities of Web services• Three types of representations:

1. Functional representation– Input/Output specify the information transformation

produced by the Web service– Precondition/Effect specify the domain transformation

produced by the Web service2. Non-functional properties3. Type of service and product information

• Many capability matching algorithms have been proposed, here we discuss three.

Page 104: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 104

Discovery with OWL-SCMU’s Matchmaker

• Matching of I/O of the request with I/O of the advertisement

• Efficient implementation given correct indexing of advertisements– Match within ms– Linear complexity on the size of

the query• Current work aims at generalizing

matching process to include preconditions/effects service and product types and service parameters

Proposed by Paolucci et al, ISWC 2002

Thing

Vehicle

Car Truck

SedanCoupe

subs

ume

plug

-inex

act

Mid-SizeLuxury

Price

Page 105: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 105

Discovery with OWL-SUsing Subsumption

• Use subsumption relation between advertisement and request• Five degrees of match

– Exact– PlugIn R⊆A– Subsumed A⊆R– Intersection ¬(A ⎡⎤ R⊆⊥)– Fail when disjoint A ⎡⎤ R⊆⊥

• It shows that pure subsumption is inadequate for discovery in OWL-S– But problem is much deeper: subsumption is inadequate for

discovery of Web services because• It is inherently difficult to specify partial descriptions of services

which would allow the requester to say which are the features of the WS it really care about

• Most of the matches reduce to intersection which is not really informative

Proposed by Li et al, WWW 2003

Page 106: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 106

CMU UDDI is publicly available at www.daml.ri.cmu.edu/matchmakeror on SemWebCentralwww.semwebcentral.orgA variant of the CMU UDDI is in use at the NTT UDDI Business Registry (The main public UDDI in Japan) (see Kawamura et al 2003, 2004)

Discovery with OWL-SIntegration of OWL-S and UDDIPublishPublish PortPort InquiryInquiry PortPort

Green Pages

Yellow Pages

White Pages

UDDIUDDIBusiness RegistryBusiness Registry

CapabilityCapability PortPort

OWLOWL--SSMatching Matching

EngineEngine

• CMU OWL-S Matching engine has been integrated within UDDI server

• CMU UDDI server provides• Normal UDDI Publish/Inquiry ports

• Complete interoperability with any UDDI Client

• Capability Port provides OWL-S based capability requests

(see Srinivasan et al 2004)

• OWL-S Profile has been mapped to UDDI data structure

• OWL-S Web services can be advertised in UDDI as any other Web service

(see Paolucci et al 2002)

Page 107: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 107

Composition with OWL-SMindSwap’s Web Service Composer

• WS composition environment– Uses SHOP2, a well established planner – Contains an OWL-S execution environment

• Used for many applications of WS composition ranging from– Information gathering– Language translation– etc…

• Generates a composition that is directly executable through WSDL groundings.

in collaboration with

Page 108: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 108

Composition with OWL-SKSL Automated WS Composition ToolApproach:I. Plan a sequences of services that realize user’s

objective, using Golog & sit’n calculus .(NP complete or worse)

II. Customize reusable generic procedures- Define and archive reusable generic procedures- Customize with user’s constraints.(NP complete or worse in a reduced search space)

Advantages: efficiency, ease of use, customization

Page 109: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 109

Composition with OWL-SCMU Composition Architecture

• It integrates discovery and composition– OWL-S/UDDI Matchmaker for discovery– Retsina planner to control the agent

• Interleaving of planning and execution to allow communication while planning

– OWL Reasoner– OWL-S Virtual Machine to communicate with other Web Services

• Used in a number of applications: travel domain, supply chain management

• Connection with autonomous agent technology

in collaboration with

Page 110: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 110

Invocation with OWL-SMapping OWL-S to WSDL

• OWL-S invocation is based on the Grounding– Map atomic processes into WSDL operations– Use XSLT to map between XML Schema data

structures and Ontological Information– Invocation procedure totally separated from

semantic description of Web service• Invocation may be modified without changing

semantic description– Any Web service can be described in OWL-S

without modifying the WSDL description of the service

• Amazon’s Web service has been described in OWL-S maintaining Amazon’s XML-Schema data types

Page 111: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 111

Invocation with OWL-SOWL-S Virtual Machine

• OWL-S VM a generic processor for the OWL-S Process Model – It can interact with any OWL-S Web service– Based on the Process Model formal semantics

(Ankolekar et al 2002)

– Implement grounding mapping to WSDL– Exploits Web services technology such as Axis

and WSIF for actual invocation and message exchange

Page 112: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 112

Security and Policies• No standard OWL-S representation for Security and Policies has been

published yet– But experimentation already underway– Adoption of a solution will depend on WS security standards

• Security Experiments with • representing security capability/requirements for discovery• Representing security information in Process Model.(See Denker et al 2003)

• Policies: – Experiments combining OWL-S and Rei– Rei statements included in Process Model to constrain the use of a Web

service (see Kagal 2004)• Recent work on Formal Verification of OWL-S Process Models provides

a way to certify adherence to a policy(see Ankolekar et al “Spinning the OWL-S Process Model” In Semantic Web Services Workshop at ISWC ’04)

Page 113: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 113

Mediation with OWL-S• OWL-S is orthogonal to mediation

– Mediators are architecture components– OWL-S is a language for the description of Web

services• It works with any architecture that supports

ontology specification • To the extent that WSMO mediators are Web

services, they can be described in OWL-S.(See Paolucci et al. “Expressing WSMO Mediators in OWL-S” In Semantic Web Services

Workshop at ISWC ’04)

Page 114: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 114

Mediation with OWL-S (2)• General schema to represent WSMO mediators:

– any xy-mediator is represented by a Web service that takes input x and reports output y

• …but the mediation is more complex than asserting the need for mappings– Discovery maps advertisements and requests – Planning systems to reconcile discrepancies

between Web services– Data type Mapping rules are used in the

OWL-S Groundings• OWL-S assumes all these technologies for

interoperation and mediation

Page 115: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 115

Conclusion: How OWL-SAddresses WS problems

• Discovery– Provide formal representation of capabilities of WSs– Many different types of inferences possible to find Web services using OWL/OWL-S

• Composition– Support formal representation of WS Process Model of Web services– Process Model can be integrated into Planning systems for automatic composition

• Invocation– Support any type of WS invocation mechanism– Clear separation between WS description and implementation

• Guaranteeing Security and Policies– No explicit policy and security specification yet– Proposed solution will interoperate with WS security standards

• Mediation and Interoperation– Mediation services can be directly described– Interoperation allowed by ontology-based description of WS descriptions and data

• The solutions are envisioned maintaining a strong relation with existing WS standards

Page 116: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 116

WSMO

Using WSMO to address Web Services problems

Rubén Lara

Page 117: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 117

WSMO discovery

Page 118: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 118

Steps of discovery• GOAL DISCOVERY

– Abstracting user goal and producing a suitable representation of the goal

• Tool support (delegation to the user)• (Semi)automatic• Parameterized pre-defined goals ([Kifer et al., to

appear], Semantic Web Fred)

Page 119: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 119

Steps of discovery• WEB SERVICE Vs SERVICE

– Want to buy a book• Look for a Web Service which sells books• Consult the Web Service to check whether the book is in stock,

price, delivery conditions, etc.– Web Service: interface to database or “actions”– Service: the database or “actions” themselves

– Finding services based on the semantic annotation of Web Services requires COMPLETE AND CORRECT descriptions

• In practical terms, DUPLICATION OF SERVICES!– Unrealistic assumption– Difficult to scale (in terms of complexity of reasoning & human

resources)

Page 120: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 120

Web Service Discovery+-

Usability, resources &

efficiency

Com

plexity & accuracy

• 1) Keyword-based search• 2) Characterization of the service

results• 3) Precise description of Web

Service functionality

+ -

Page 121: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 121

Web Service discovery• [Kifer et al., 2004] uses FLORA-2 to do discovery and contracting.

– First approach using relation input-output/effects + mediation (see SWSs workshop tomorrow)

• [Keller et al., 2004] uses FOL in the context of the Semantic Web Fred for discovery (see demo sessions)

• WSMX discovery (see implementation slides)

• Subsumption-based approaches can be equally applied– Good indexing technique for discovery based on characterization of

results

• Consideration of preferences and non-functional properties will be included

Page 122: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 122

WSMO composition• 3 levels of dynamism

– Fixed orchestration• Appropriate in some real world cases

– Orchestration with proxies• Provides dynamic resolution of activities with a single service

(multiple invocations possible)

– Automatic composition• Planning-based• Necessary at the functionality and at the process level!

– Heterogeneity is to be resolved by mediators

Page 123: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 123

WSMO composition• Knowledge Web: integration of discovery

and composition

Discovery

Functionality Composition

(EPFL)

ProcessComposition

(Trento)

Page 124: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 124

Service Grounding – WSMO

• Deal with existing WSDL services– Map from XML Schema used in WSDL to WSML– Use existing tools to mediate from WSML to WSML

• Also investigating– Using XSLT to map from XML-S of WSDL directly to

WSML/XML of ontology used by WSMO description• Ultimate aim to have Semantic description of

interface grounding in the Choreography

Page 125: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 125

Service Grounding – WSMO

Amazon WS

WSDLXML Schema

WSMO

Choreography

Book Ontology

WSML from XML Schema

Mapping Rules

Create WSMO description

1

Mapping Rules

used by

Map XML schema to WSML

2

3

Create MappingRules4 Add mapping rules to

WSMO choreography

Page 126: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 126

Perspective on Security and Policies

• WSMO distinguishes capabilities, constraints and preferences on both sides [Arroyo et al., 2004]– Functional and non-functional– Extensions to WSMO required– Policies at WSDL level?– Must be ensured at execution time

• Extend WSDL (and others) to include policies and control execution

• Experiments with the representation of policies in WSMO using Peertrust [Lara et al., 2004]– Different scope to WS-Policy (trust negotiation)– Link to WS-Policy feasible

Page 127: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 127

Conclusion: How WSMOAddresses WS problems

• Discovery– Provide formal representation of capabilities and goal– Conceptual model for service discovery– Different approaches to web service discovery

• Composition– Provide formal representation of capabilities and choreographies– 3 levels of automatization: full, partial, none

• Invocation– Support any type of WS invocation mechanism– Clear separation between WS description and implementation

• Guaranteeing Security and Policies– No explicit policy and security specification yet– Proposed solution will interoperate with WS standards

• Mediation and Interoperation– Mediators as a key conceptual element– Mediation mechanism not dictated– (Multiple) formal choreographies + mediation enable interoperation

• The solutions are envisioned maintaining a strong relation with existing WS standards

Page 128: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 128

Questions and Answers

# Coffee Break #

Page 129: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 129

Table of contents(I) Introduction to Semantic Web Services (SWS)(II) Semantic Web Services

• OWL-S & WSMO• OWL-S and WSMO - Design decisions and trade-offs

#Q&A, Coffee break#

(III) Semantic Web Services implementations• OWL-S• WSMX• IRS – III – bridge implementation between OWL-S &

WSMO(IV) Summary, Conclusions & Future Work

Page 130: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 130

SWSImplementations

(III)OWL-S WSMX

Page 131: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 131

OWL-S

Tools and applications

Katia SycaraMassimo Paolucci

David Martin

Page 132: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 132

OWL-S Tools• The OWL-S community is heavily engaged

to produce tools that facilitate the use and adoption of OWL-S

• Three tools presented here– CMU Eclipse-based OWL-S IDE– SRI Protégé-based OWL Editor– MindSwap Swoop: an Editor and verifier for

OWL and OWL-S

Page 133: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 133

CMU OWL-S IDE• CMU OWL-S IDE is an Eclipse based tool that

integrates the generation of OWL-S representation with the generation of the WS Java code

• Tools targeted to Web service developers– Main idea is to allow developers to generate their

code and OWL-S description within the same environment

Demo available at Conference Demo Session

Page 134: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 134

OWL-S Production cycle1. Developer creates Java code2. IDE transforms Java into partial OWL description

1.WSDL is generated as by-product3. Easy to use OWL-S editor is used to complete the

OWL-S description4. UDDI client can be used for automatic advertisement in

UDDI5. Verification tools are available for correctness checking6. Automatic client generation7. Extension to SWeDE OWL Editor

Page 135: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 135

Architecture OWL-S IDEUDDIUDDIClientClient

OWLOWL--S FilesS Files

ProfileProfile

ProcessProcess

GroundingGrounding

OWLOWL--S2UDDIS2UDDIConverterConverter

WSDL2OWLWSDL2OWL--SSConverterConverter

OWLOWL--SSAPIAPI

OWLOWL--SSVMVM

ApacheApache’’ssJava2WSDLJava2WSDLConverterConverter

10/22/04

Legend: Tools integrated in the OWL-S IDE

Data Files

OWLOWL--SSEditorEditor

eclipseeclipse

JavaJavaCodeCode

UDDIUDDI--datadatastructurestructure

WSDLWSDLCodeCode

JavaJavaCodeCode

Spin Based Spin Based VerificationVerification

OWLOWL--S/UDDI S/UDDI Matching EngineMatching Engine

BBNBBN’’ssSWeDESWeDE

OWL EditorOWL Editor

JavaJavaCodeCode

Page 136: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 136

OWL-S Editor for Protégé• Easy, intuitive OWL-S service development environment• Based on popular Protégé/OWL ontology editor• Open-source, with code available at

http://owlseditor.projects.semwebcentral.org• It provides

– IOPR Manager• Input/Output/Precondition/Result• Maintain IOPR correspondences between OWL-S sub-

ontologies• Perform consistency checks

• Graph Overview• Visualize & navigate relationships between OWL-S sub-

ontologies• Generate & import skeletal OWL-S from WSDL

Demo session: Wed.,17.00 -18.30Thanks to Daniel Elenius, Grit Denker and David Martin Thanks to

Page 137: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 137

Sample Functionalities

Instance panes for Services,

Profiles,Processes, and

Groundings

Full control of OWL-S

properties with customized

widgets

Toolbar provides WSDL import,

graphical overview, and more

Thanks to

Page 138: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 138

Additional Features

• Control Flow (shown at right)• View and edit as a tree• Also visualize as a graph

• Work in progress• Data Flow• Customized OWL-S code generation

• Search the Semantic Web for OWL-S services

Edit details of control constructs

ACB

D

Tree View

Graph View

Page 139: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 139

SWOOPSWOOP is meant for rapid and easy browsing and

development of OWL ontologiesFeatures

– Web Browser like look & feel: • hyperlink based navigation • history buttons (Back, Next etc) for traversal; • bookmarks that can be saved for later reference

– Inline Editing• Color coding to emphasize ontology changes, • Undo/redo options are provided with an ontology change log

and a rollback option– Verification tools highlighting logical problems

Page 140: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 140

SWOOP and OWL-S• Swoop can be used to display OWL-S

ontologies– It provides validation of correctness of OWL

code– It will provide visualization of both XML syntax

and human readable syntax

Page 141: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 141

Applications• OWL-S has been used in a number of

applications ranging from e-commerce to mobile computing, to robotics.

• Here we briefly discuss... – Task Computing

• Use OWL-S in pervasive computing– OWL-S for Robots

• OWL-S used to describe behavior of agents and robots

Page 142: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 142

Task ComputingProblem

• User wants to do “Tasks” while on the run– email – printing – sharing documents – complex tasks

• Services to perform those tasks may be offered in the environment

• But the user may not be able to access them– She may not know what is available– How to use the services– She will likely need some configuration to use those

services

(see http://taskcomputing.org/)

Thanks to

Page 143: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 143

Task ComputingThe Objective

Task Computing fills the gap between a user’ desires and the available means

Task computing helps the user to– Discover the services that are available– Use those services– Combine those services to fit the needs of the

user

Thanks to

Page 144: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 144

Task ComputingTechnology

• Help users access Services (Web based and not) and – Discovery using UPnP– Composition produced at execution time, not

at the design time• Use:

– OWL-S based representation of services and devices

Thanks to

Page 145: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 145

Beyond Web Services:OWL-S for Robotic Applications• Objective:

– To develop a common, implementation-independent, extendable knowledge source for researchers and developers in the intelligent vehicle community that will:

• Provide a standard set of domain concepts along with their attributes and inter-relations

• Allow for knowledge capture and reuse• Facilitate systems specification, design, and

integration • Accelerate research in the field.

Thanks to

Page 146: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 146

Interchange Formats andUpper Ontologies

• OWL– Neutral (W3C) interchange format– XML base enables use of XSLT transforms– Provides access to emerging semantic web technologies

• OWL-S– Rich semantics for describing complex processes (without being

too complicated)– Well suited to agent architectures

• Pieces of SUMO (Suggested Upper Merged Ontology)– Class structure and properties provide a good starting point for

developing domain specific ontology– Native KIF format too complex for target community and not

necessary for requirements capture• Namespaces

– Used quite a bit to make ontology more manageable

Page 147: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 147

IGV Ontology• Intelligent Ground Vehicle (IGV) Ontology based on OWL-S• Upper ontology based on three concepts

– Agent– The service that the agent can perform,– The procedures that the agent follows to perform the

services

• OWL-S used to model Agents and Services

Page 148: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 148

Tactical BehaviorsPlan State-Table Selection

Example of representation of vehicle operation where • The first column represents the condition of the IGV• The first column also represents preconditions, • The second column the processes that are invoked

New StartupAndOperateCommand S1 proc_StartEngine

S2 S1 EngineStarted

S2 GearChangeRequired S3 proc_ChangeGear

S3 GearChanged S2

S2 NewCommandedVelocity S4 proc_AdjustEngineThrottle

S2 S4 EngineThrottleAdjusted

S2 ShutDownRequested S5 proc_SetGearToPark

S5 GearInPark S6 ShutDownEngine

StartUpAndOperate

Input Conditions Output Commands

S6 EngineShutDown S0 Done

Page 149: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 149

WSMO-WSMX

Introduction

Michal Zaremba

Contributors: WSMX team

Page 150: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 150

WSMO-WSMX Introduction

• WSMX is a software framework that allows runtime binding of service requester and provider

• Requester provides semantic description of goal• WSMX interprets the goal to:

– Discover matching services– Select the service that best fits– Provide data mediation if required– Make the service invocation

• Based on the conceptual model provided by WSMO– Add-ons required for WSMXGoal, BusinessPartner, Preferences

• WSMX has a formal execution semantics– Describes how WSMX gets from requester goal to service

invocation

Page 151: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 151

WSMX Execution Semantics• What is it?

– Description of the operation of a system using a formal language• What are the benefits?

– Precise system description based on a formal mathematical language

– Can run simulations to test for potential problems • Live-lock • Dead-lock or • Unreachable states in the system

• Petri-Nets– Have a formal semantics– Allow simulations – test for deadlocks etc.– Other methodologies – Abstract State Machines, UML …

Page 152: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 152

WSMX Manager

Architecture: Compilation

Events Repository

WSMXManagerListener Msg

Scanner

WSMX Manager Core

RDBMS

WSD

L

WSDL

Adapter 1

WSMO Editor WSMO Monitoring

WSD

L

EventsScanner

Adapter 2

Adapter n

Compiler

Resource Manager Reasoner APIs

OntologyRepository

RDBMS

WSMO Repository

RDBMS

Reasoner

(e.g. Flora/XSB)

External WSMO Repository

e.g. UDDI

WebService 1

WebService 2

AnotherWSMX

Internet

Back-endapplication

Agent

AnotherWSMX

API 1 API 2 API n…

ParserListener

DiscoveryListener

SelectorListener

MediatorListener

InvokerListener

Parser Discovery Selector

DataMediator

DataAdapter

Invoker

WSMO editor is anindependent tool for creating & managing WSMO descriptions

Internet

Page 153: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 153

WSMX Manager

Architecture: Compilation

Events Repository

WSMXManagerListener Msg

Scanner

WSMX Manager Core

RDBMS

WSD

L

WSDL

Adapter 1

WSMO Editor WSMO Monitoring

WSD

L

EventsScanner

Adapter 2

Adapter n

Compiler

Resource Manager Reasoner APIs

OntologyRepository

RDBMS

WSMO Repository

RDBMS

Reasoner

(e.g. Flora/XSB)

External WSMO Repository

e.g. UDDI

WebService 1

WebService 2

AnotherWSMX

Internet

Back-endapplication

Agent

AnotherWSMX

API 1 API 2 API n…

ParserListener

DiscoveryListener

SelectorListener

MediatorListener

InvokerListener

Parser Discovery Selector

DataMediator

DataAdapter

Invoker

WSML for Goal, WS, Mediator or Ontology

Internet

Page 154: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 154

WSMX Manager

Architecture: Compilation

Events Repository

WSMXManagerListener Msg

Scanner

WSMX Manager Core

RDBMS

WSD

L

WSDL

Adapter 1

WSMO Editor WSMO Monitoring

WSD

L

EventsScanner

Adapter 2

Adapter n

Compiler

Resource Manager Reasoner APIs

OntologyRepository

RDBMS

WSMO Repository

RDBMS

Reasoner

(e.g. Flora/XSB)

External WSMO Repository

e.g. UDDI

WebService 1

WebService 2

AnotherWSMX

Internet

Back-endapplication

Agent

AnotherWSMX

API 1 API 2 API n…

ParserListener

DiscoveryListener

SelectorListener

MediatorListener

InvokerListener

Parser Discovery Selector

DataMediator

DataAdapter

Invoker

Internal representationof concepts

Internet

Page 155: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 155

WSMX Manager

Architecture: Get Goal

Events Repository

WSMXManagerListener Msg

Scanner

WSMX Manager Core

RDBMS

WSD

L

WSDL

Adapter 1

WSMO Editor WSMO Monitoring

WSD

L

EventsScanner

Adapter 2

Adapter n

Compiler

Resource Manager Reasoner APIs

OntologyRepository

RDBMS

WSMO Repository

RDBMS

Reasoner

(e.g. Flora/XSB)

External WSMO Repository

e.g. UDDI

WebService 1

WebService 2

AnotherWSMX

Internet

Back-endapplication

Agent

AnotherWSMX

API 1 API 2 API n…

ParserListener

DiscoveryListener

SelectorListener

MediatorListener

InvokerListener

Parser Discovery Selector

DataMediator

DataAdapter

Invoker

Take back-end app as example ofservice requester

Internet

Page 156: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 156

WSMX Manager

Architecture: Get Goal

Events Repository

WSMXManagerListener Msg

Scanner

WSMX Manager Core

RDBMS

WSD

L

WSDL

Adapter 1

WSMO Editor WSMO Monitoring

WSD

L

EventsScanner

Adapter 2

Adapter n

Compiler

Resource Manager Reasoner APIs

OntologyRepository

RDBMS

WSMO Repository

RDBMS

Reasoner

(e.g. Flora/XSB)

External WSMO Repository

e.g. UDDI

WebService 1

WebService 2

AnotherWSMX

Internet

Back-endapplication

Agent

AnotherWSMX

API 1 API 2 API n…

ParserListener

DiscoveryListener

SelectorListener

MediatorListener

InvokerListener

Parser Discovery Selector

DataMediator

DataAdapter

Invoker

Message representing a requester goal

Internet

Page 157: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 157

WSMX Manager

Artchitecture: Get Goal

Events Repository

WSMXManagerListener Msg

Scanner

WSMX Manager Core

RDBMS

WSD

L

WSDL

Adapter 1

WSMO Editor WSMO Monitoring

WSD

L

EventsScanner

Adapter 2

Adapter n

Compiler

Resource Manager Reasoner APIs

OntologyRepository

RDBMS

WSMO Repository

RDBMS

Reasoner

(e.g. Flora/XSB)

External WSMO Repository

e.g. UDDI

WebService 1

WebService 2

AnotherWSMX

Internet

Back-endapplication

Agent

AnotherWSMX

API 1 API 2 API n…

ParserListener

DiscoveryListener

SelectorListener

MediatorListener

InvokerListener

Parser Discovery Selector

DataMediator

DataAdapter

InvokerWSML Message is persistently stored

Internet

Page 158: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 158

WSMX Manager

Architecture: New Message

Events Repository

WSMXManagerListener Msg

Scanner

WSMX Manager Core

RDBMS

WSD

L

WSDL

Adapter 1

WSMO Editor WSMO Monitoring

WSD

L

EventsScanner

Adapter 2

Adapter n

Compiler

Resource Manager Reasoner APIs

OntologyRepository

RDBMS

WSMO Repository

RDBMS

Reasoner

(e.g. Flora/XSB)

External WSMO Repository

e.g. UDDI

WebService 1

WebService 2

AnotherWSMX

Internet

Back-endapplication

Agent

AnotherWSMX

API 1 API 2 API n…

ParserListener

DiscoveryListener

SelectorListener

MediatorListener

InvokerListener

Parser Discovery Selector

DataMediator

DataAdapter

InvokerMsg scanner picks up a new WSML Message

Internet

Page 159: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 159

WSMX Manager

Architecture: New Message

Events Repository

WSMXManagerListener Msg

Scanner

WSMX Manager Core

RDBMS

WSD

L

WSDL

Adapter 1

WSMO Editor WSMO Monitoring

WSD

L

EventsScanner

Adapter 2

Adapter n

Compiler

Resource Manager Reasoner APIs

OntologyRepository

RDBMS

WSMO Repository

RDBMS

Reasoner

(e.g. Flora/XSB)

External WSMO Repository

e.g. UDDI

WebService 1

WebService 2

AnotherWSMX

Internet

Back-endapplication

Agent

AnotherWSMX

API 1 API 2 API n…

ParserListener

DiscoveryListener

SelectorListener

MediatorListener

InvokerListener

Parser Discovery Selector

DataMediator

DataAdapter

InvokerEvent scanner picks up new eventscreated for WSML messages

Internet

Page 160: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 160

WSMX Manager

Architecture: Event Raised

Events Repository

WSMXManagerListener Msg

Scanner

WSMX Manager Core

RDBMS

WSD

L

WSDL

Adapter 1

WSMO Editor WSMO Monitoring

WSD

L

EventsScanner

Adapter 2

Adapter n

Compiler

Resource Manager Reasoner APIs

OntologyRepository

RDBMS

WSMO Repository

RDBMS

Reasoner

(e.g. Flora/XSB)

External WSMO Repository

e.g. UDDI

WebService 1

WebService 2

AnotherWSMX

Internet

Back-endapplication

Agent

AnotherWSMX

API 1 API 2 API n…

ParserListener

DiscoveryListener

SelectorListener

MediatorListener

InvokerListener

Parser Discovery Selector

DataMediator

DataAdapter

Invoker

Event scanner sends event to the WSMX Manager which broadcasts the event to registered components

Internet

Page 161: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 161

WSMX Manager

Architecture: Parse

Events Repository

WSMXManagerListener Msg

Scanner

WSMX Manager Core

RDBMS

WSD

L

WSDL

Adapter 1

WSMO Editor WSMO Monitoring

WSD

L

EventsScanner

Adapter 2

Adapter n

Compiler

Resource Manager Reasoner APIs

OntologyRepository

RDBMS

WSMO Repository

RDBMS

Reasoner

(e.g. Flora/XSB)

External WSMO Repository

e.g. UDDI

WebService 1

WebService 2

AnotherWSMX

Internet

Back-endapplication

Agent

AnotherWSMX

API 1 API 2 API n…

ParserListener

DiscoveryListener

SelectorListener

MediatorListener

InvokerListener

Parser Discovery Selector

DataMediator

DataAdapter

Invoker

Parser listener picks upevents for the Parser component, then retrieves WSML using Resource Mgr

Parser interface takes the WSML message as input

Internet

Page 162: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 162

WSMX Manager

Architecture: Discovery

Events Repository

WSMXManagerListener Msg

Scanner

WSMX Manager Core

RDBMS

WSD

L

WSDL

Adapter 1

WSMO Editor WSMO Monitoring

WSD

L

EventsScanner

Adapter 2

Adapter n

Compiler

Resource Manager Reasoner APIs

OntologyRepository

RDBMS

WSMO Repository

RDBMS

Reasoner

(e.g. Flora/XSB)

External WSMO Repository

e.g. UDDI

WebService 1

WebService 2

AnotherWSMX

Internet

Back-endapplication

Agent

AnotherWSMX

API 1 API 2 API n…

ParserListener

DiscoveryListener

SelectorListener

MediatorListener

InvokerListener

Parser Discovery Selector

DataMediator

DataAdapter

Invoker

Discovery listener picks upevents for the Discoverycomponent

Discovery interface takesWSML representation of requester goal

Internet

Page 163: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 163

WSMX Discovery• Based on matching of logical Goals with WS Capabilities• Goals and capabilities have postconditions and effects. • Capabilities additionally have preconditions and assumptions• WSMX adds concept of conditional Web Service to capability

ConditionalWS1

ConditionalWS2

WSMO RegistryWSMX Matchmaker

Step 1

Possible Matches

Step 2

Step 3

Matchrequester

Goal

Collection of WSStep 4

Network

Page 164: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 164

WSMX Manager

Architecture: Selection

Events Repository

WSMXManagerListener Msg

Scanner

WSMX Manager Core

RDBMS

WSD

L

WSDL

Adapter 1

WSMO Editor WSMO Monitoring

WSD

L

EventsScanner

Adapter 2

Adapter n

Compiler

Resource Manager Reasoner APIs

OntologyRepository

RDBMS

WSMO Repository

RDBMS

Reasoner

(e.g. Flora/XSB)

External WSMO Repository

e.g. UDDI

WebService 1

WebService 2

AnotherWSMX

Internet

Back-endapplication

Agent

AnotherWSMX

API 1 API 2 API n…

ParserListener

DiscoveryListener

SelectorListener

MediatorListener

InvokerListener

Parser Discovery Selector

DataMediator

DataAdapter

Invoker

Selector listener picks up events for the Selector component

Selector interface takescollection of WS and returns one WS

Internet

Page 165: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 165

WSMX Manager

Architecture: Mediation

Events Repository

WSMXManagerListener Msg

Scanner

WSMX Manager Core

RDBMS

WSD

L

WSDL

Adapter 1

WSMO Editor WSMO Monitoring

WSD

L

EventsScanner

Adapter 2

Adapter n

Compiler

Resource Manager Reasoner APIs

OntologyRepository

RDBMS

WSMO Repository

RDBMS

Reasoner

(e.g. Flora/XSB)

External WSMO Repository

e.g. UDDI

WebService 1

WebService 2

AnotherWSMX

Internet

Back-endapplication

Agent

AnotherWSMX

API 1 API 2 API n…

ParserListener

DiscoveryListener

SelectorListener

MediatorListener

InvokerListener

Parser Discovery Selector

DataMediator

DataAdapter

Invoker

Mediator listener picks upevents for the Mediatorcomponent and gets the IDs for the source and target ontologies as well as the data for mediation

Mediator takes source & target ontologies as input as well as WSML data to mediate

Internet

Page 166: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 166

WSMX Mediation

Page 167: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 167

WSMX Manager

Architecture: Invocation

Events Repository

WSMXManagerListener Msg

Scanner

WSMX Manager Core

RDBMS

WSD

L

WSDL

Adapter 1

WSMO Editor WSMO Monitoring

WSD

L

EventsScanner

Adapter 2

Adapter n

Compiler

Resource Manager Reasoner APIs

OntologyRepository

RDBMS

WSMO Repository

RDBMS

Reasoner

(e.g. Flora/XSB)

External WSMO Repository

e.g. UDDI

WebService 1

WebService 2

AnotherWSMX

Internet

Back-endapplication

Agent

AnotherWSMX

API 1 API 2 API n…

ParserListener

DiscoveryListener

SelectorListener

MediatorListener

InvokerListener

Parser Discovery Selector

DataMediator

DataAdapter

Invoker

Invoker interface takesWS to be invoked and the mediated data as input.

Internet

Page 168: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 168

WSMX Manager

Architecture: Invocation

Events Repository

WSMXManagerListener Msg

Scanner

WSMX Manager Core

RDBMS

WSD

L

WSDL

Adapter 1

WSMO Editor WSMO Monitoring

WSD

L

EventsScanner

Adapter 2

Adapter n

Compiler

Resource Manager Reasoner APIs

OntologyRepository

RDBMS

WSMO Repository

RDBMS

Reasoner

(e.g. Flora/XSB)

External WSMO Repository

e.g. UDDI

WebService 1

WebService 2

AnotherWSMX

Internet

Back-endapplication

Agent

AnotherWSMX

API 1 API 2 API n…

ParserListener

DiscoveryListener

SelectorListener

MediatorListener

InvokerListener

Parser Discovery Selector

DataMediator

DataAdapter

Invoker Web serviceis invoked

Internet

Page 169: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 169

WSMX Summary• Event based component architecture• Conceptual model is WSMO with some add-ons• End to end functionality for executing SWS• Has a formal execution semantics• Real implementation • Open source code base at SourceForge• Event driven component architecture• Developers welcome

Page 170: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 170

WSMX Useful Links• Home

– http://www.wsmx.org/• Overview

– http://www.wsmo.org/2004/d13/d13.0/v0.1/• Architecture

– http://www.wsmo.org/2004/d13/d13.4/v0.2/ • Mediation

– http://www.wsmo.org/2004/d13/d13.3/v0.2/• Execution Semantics

– http://www.wsmo.org/2004/d13/d13.2/v0.1/ • Open source code base at SourceForge

– https://sourceforge.net/projects/wsmx

Page 171: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 171

IRS IIIBridge implementation between

OWL-S & WSMO

John Domingue

Contributors: Liliana Cabral

Page 172: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 172

IRS-III: A framework and platform for building

Semantic Web Services

Page 173: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 173

The Internet Reasoning Service is an infrastructure for publishing, locating, executing and composing Semantic Web Services, organized according to the WSMO framework

Page 174: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 174

Design Principles• Compatible with WSMO• OWL-S import• Tight integration• Open• Inspectable• Backward compatible• Research platform for semantic web

services

Page 175: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 175

Features of IRS-III (1/2)• Based on Soap messaging standard• Provides Java API for client

applications• Provides built-in brokering and

service discovery support• Provides capability-centred service

invocation

Page 176: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 176

Features of IRS-III (2/2)• Publishing support for variety of platforms

– Java, Lisp, Web Applications, Java Web Services

• Enables publication of ‘standard code’– Provides clever wrappers automatically, which

turn code into web services– One-click publishing of web services

• Integrated with standard Web Services world– Published code appears as

• Semantic web service to IRS• ‘Ordinary’ web service to web service world

Page 177: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 177

IRS-III Framework

IRS-3 Server

Domain Models

Web Service Specifications+ Registry of Implementors

Goal Specifications+ SOAP Binding

IRS Publisher

S O A

P

IRS Client

SOAP

IRS Publisher

IRS Publisher

IRS Publisher

Lisp

Java

Java WS

Page 178: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 178

IRS-III Architecture

LispWeb Server

IRS-III Server

WS Publisher Registry

OCMLWSMO Library

OWL(-S) HandlerOWL(-S)

Browser

Invocation Client

Publishing Clients

SOAP Handler

SOAP

Publishing Platforms

Web Service

Java Code

Web Application

SOAPBrowserHandler

PublisherHandler

InvocationHandler

Java

API

WSMX

Page 179: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 179

Publishing Platform Architecture

IRS-III Publishing PlatformHTTP Server

SOAP Handler

ServiceRegistrar

ServiceInvoker

WS Service Registry

IRS-III Server

Invocation Client

SOAP

SOAP

Publishing Clients

SOAP

Web Service 1Web Service 2

Web Service 3

Page 180: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 180

IRS-III/WSMO differences

• Underlying language OCML• Goals have inputs and outputs• IRS-III broker finds applicable web services

via mediators– Used mediator within WS capability – Mediator source = goal

• Web services have inputs and outputs ‘inherited’ from goal descriptions

• Web service selected via assumption (in capability)

Page 181: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 181

OWL-S 1.0 Translation

Web Service(Mediatorand Goal)

OWL-STranslator

OWL-SProcess

OWLTranslator

Page 182: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 182

OWL Process to Web Service

• IOPEs are translated to:has-input, has-output, has-precondition andhas-postcondition

in the capability of a Web service.• The type and condition definitions at the

range of the above roles are translated by the OWL to OCML translator.

• Simple goal and mediators can be generated (optional) as template for later development.

Page 183: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 183

IRS-III Demo (including OWL-S Import)

Page 184: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 184

Multiple WS for goal• Each WS has a mediator for used-

mediator slot of capability– Some WS may share a mediator

• Define a kappa expression for assumption slot of WS capability

• Kappa expression format– (kappa (?goal) <ocml relations>)

• Getting the value of an input role– (wsmo-role-value ?goal <role-name>)

Page 185: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 185

Defining a Mediation Service• Define a wg-mediator• Source = goal• Mediation-service = goal for mediation

service• Mediation goal

– Mediation goal input roles are a subset of goal input roles

• Define mediator and WS as normal

Page 186: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 186

Goal Based Invocation

Invocation

Instantiate Goal Description

Exchange-rate-goal Has-source-currency: us-dollarsHas-target-currency: pound

Web Service Discovery

European-exchange-rate-wsNon-european-exchange-rate-wsEuropean-bank-exchange-rate-ws

Solve GoalGoal -> WG Mediator -> WS/Capability/Used-mediator

Web service selection

European-exchange-rate

Mediate input values

‘$’ -> us-dollar

WS -> Capability -> Assumptionexpression Mediation

Invoke selected web service

European-exchange-rate

Invocation

Page 187: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 187

Table of contents(I) Introduction to Semantic Web Services (SWS)(II) Semantic Web Services

• OWL-S & WSMO• OWL-S and WSMO - Design decisions and trade-offs

#Q&A, Coffee break#

(III) Semantic Web Services implementations• OWL-S• WSMX• IRS – III – bridge implementation between OWL-S &

WSMO(IV) Summary, Conclusions & Future Work

Page 188: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 188

Summary, Conclusions&

Future Work

Laurentiu Vasiliu

Page 189: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 189

Other SWS implementationsSELF-SERV

• Bottom-up approach to service composition• Aim is scalable and decentralized middleware• Services are registered & grouped by capability• Registered services can be declaratively

composed• Not directly Semantic Web Services• Has a formal execution semantics• Prototype graphical tool implemented

Page 190: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 190

Other SWS implementations Meteor-S

• Web service annotation framework• Provides a mechanism to add data, functional

and QoS semantics to WSDL files• Semi-automatically annotate WSDL descriptions• Implements algorithms for semantic annotation

and categorisation of Web services• Empirical testing of semantic annotation of Web

services

Page 191: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 191

Tutorial Wrap-up• The targets of the presented tutorial were to:

– understand aims & challenges within Semantic Web Services – understand the main technologies of OWL-S and WSMO – be able to correctly assess emerging technologies & products for

Semantic Web Services • Given an overview of ‘hot topics’ within the Semantic

Web and Semantic Web Services

• Provided a detailed introduction into OWL-S and WSMO:– design principles & paradigms – building blocks of OWL-S and WSMO – technologies & OWLS+WSMO implementations

Page 192: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 192

OWL-S and WSMO• North-American and European initiatives with

converging aims• Offer a SWS platforms to be used by B2C and

B2B applications• Provide a backbone for advanced integration

and automation of industrial and businessprocesses

• Are the most developed SWS technologies up to now available to be used in commercial and industrial applications

• Developments towards refining and interconnecting them

Page 193: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 193

OWL-S and WSMO technologies

• In spite of some existing scepticism, logic formalism and elements of logic are needed for advanced B2C and B2Bapplications

• Rules (based on logic) are compulsory in automating the selection and composition of processes

Page 194: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 194

OWL-S and WSMO technologies

• SWS designed to allow automatic– publication– discovery– selection– composition– mediation – executionof intra / inter-organization business processes

Page 195: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 195

Future work – OWL-S• OWL-S is close to conclusion, but a few issues

still need to be addressed– An exception mechanism is still missing– There is a need of an exec instruction for loading and

executing Process Models dynamically – A new Grounding for WSDL 2 should be developed

• Additional issues that OWL-S does not address– Security and Policies are not directly expressed in

OWL-S yet– There are no facilities for Contracting and agreement– There are no facilities for Web service management

Page 196: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 196

Future work – OWL-S (2)

• Standardization– The OWL-S coalition is planning to submit a W3C note to

draw attention and create momentum for W3C standardization activities on Semantic Web services

– Members of the OWL-S coalition are already active in standardization committee such as UDDI, WSDL 2 and WS Coordination

• The Future of OWL-S– OWL-S is nearing its completion and it will converge in the

results of the SWSI working group or future standardization activities

– The OWL-S coalition plans to remain in existence to maintain and further develop the language if needed

Page 197: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 197

Future work - WSMO• Further develop and consolidate concepts

and implementation aspects of WSMO, WSML and WSMX– Choreography and orchestration– Business process execution– Web services composition – Process and protocol mediation

• Open to new ideas, contributions and suggestions

Page 198: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 198

Future Work WSMO (2)

• WSMO & WSMX – applied in several case studies within EU funded projects

• WSMX v2 to be release in November• IRS III new release at the beginning of

2005• Following on during the conference:

WSMX demo and poster, IRS III demo

Page 199: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 199

Beyond OWL-S and WSMO• Although OWL-S and WSMO are the main initiatives on

Semantic Web services, they are not the only activities• Semantic Web Services Interest Group

– Interest group founded at W3C to discuss issues related to Semantic Web Services (http://www.w3.org/2002/ws/swsig/)

• SWSI: International initiative to push toward a standardization of SWS (http://www.swsi.org)

• Semantic Web services are entering the main stream– UDDI is adopting OWL for semantic search– WSDL 2 will contain a mapping to RDF– The use of semantics is also discussed in the context of

standards for WS Policies

Page 200: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 200

SWSI (www.swsi.org)• SWSI (Semantic Web Services Initiative) is becoming

the point of synthesis of the SWS activity around the World

• SWSI includes many participants belonging to both academy and industry from the US and Europe

• SWSI is composed of two committees– SWSL which is expected to produce a language for Semantic

Web services– SWSA which is expected to describe the architectural

requirements for Semantic Web services

• OWL-S and WSMO are two main inputs, but contributions include IRS, Meteor-S

Page 201: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 201

Semantics in the Main Stream• Many WS standardization groups are realizing that they need to add

semantic representation• UDDI v.next

– UDDI v.next is the new version of UDDI– UDDI TC has decided to use OWL as a standard language for the

representation of business taxonomies – OWL-based inference will be used to improve WS search

• Web Service Description Language v2– The WSDL working group at W3C has decided to add an RDF mapping

to WSDL 2– The RDF mapping may effectively provide a standard grounding

mechanism for OWL-S and WSMO• Web Services policies proposals require a significant amount of

inference– There have been proposals to use OWL or SWRL as basic languages– Or to provide a mapping to semantic Web languages

Page 202: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 202

References OWL-S• The main repository of papers on OWL-S is at

http://www.daml.org/services/owl-s/pub-archive.html that contains many papers produced by the coalition as well as from the community at large

• The main source of information on OWL-S is the Web site http://www.daml.org/services/owl-s

• The rest of this section will report what we believe to be the most influential papers on OWL-S as well as paper referred in this tutorial

Page 203: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 203

References OWL-S• Fundamental

David Martin, Massimo Paolucci, Sheila McIlraith, Mark Burstein, Drew McDermott, Deborah McGuinness, Bijan Parsia, Terry Payne, Marta Sabou, Monika Solanki, Naveen Srinivasan, Katia Sycara, "Bringing Semantics to Web Services: The OWL-S Approach", Proceedings of the First International Workshop on Semantic Web Services and Web Process Composition (SWSWPC 2004), July 6-9, 2004, San Diego, California, USA.

The DAML Services Coalition (alphabetically Anupriya Ankolenkar, Mark Burstein, Jerry R. Hobbs, Ora Lassila, David L. Martin, Drew McDermott, Sheila A. McIlraith, Srini Narayanan, Massimo Paolucci, Terry R. Payne and Katia Sycara), "DAML-S: Web Service Description for the Semantic Web", Proceedings of the First International Semantic Web Conference (ISWC), Sardinia (Italy), June, 2002.

DAML Services Coalition (alphabetically A. Ankolekar, M. Burstein, J. Hobbs, O. Lassila, D. Martin, S. McIlraith, S. Narayanan, M. Paolucci, T. Payne, K. Sycara, H. Zeng), "DAML-S: Semantic Markup for Web Services", in Proceedings of the International Semantic Web Working Symposium (SWWS), July 30-August 1, 2001.

Page 204: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 204

References OWL-S• Discovery

Lei Li and Ian Horrocks. A software framework for matchmaking based on semantic web technology. In Proc. of the Twelfth International World Wide Web Conference (WWW 2003), 2003

B. Benatallah, M. Hacid, C. Rey, F. Toumani Towards Semantic Reasoning for Web Services Discovery,. In Proc. of the International Semantic Web Conference (ISWC 2003), 2003

Daniel J. Mandell and Sheila A. McIlraith. Adapting BPEL4WS for the Semantic Web: The Bottom-Up Approach to Web Service Interoperation. In Proceedings of the Second International Semantic Web Conference (ISWC2003),

Massimo Paolucci, Takahiro Kawamura, Terry R. Payne, Katia Sycara; Importing the Semantic Web in UDDI. In Proceedings of Web Services, E-business and Semantic Web Workshop, 2002

Massimo Paolucci, Takahiro Kawamura, Terry R. Payne, Katia Sycara; "Semantic Matching of Web Services Capabilities." In Proceedings of the 1st International Semantic Web Conference (ISWC2002), 2002

Page 205: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 205

References OWL-S • Composition and Invocation

Evren Sirin, Bijan Parsia, Dan Wu, James Hendler, and Dana Nau. HTN planning for web service composition using SHOP2. In Journal of Web Semantics, To appear, 2004

Katia Sycara, Massimo Paolucci, Anupriya Ankolekar and Naveen Srinivasan, "Automated Discovery, Interaction and Composition of Semantic Webservices," Journal of Web Semantics, Volume 1, Issue 1, September 2003, pp. 27-46

Massimo Paolucci, Anupriya Ankolekar, Naveen Srinivasan and Katia Sycara, "The DAML-S Virtual Machine," In Proceedings of the Second International Semantic Web Conference (ISWC), 2003,

Srini Narayanan and Sheila McIlraith ``Analysis and Simulation of Web Services" Computer Networks, 42 (2003), 675-693, Elsevier Science, 2003

Page 206: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 206

References OWL-S• Formal Models and Verification

Anupriya Ankolekar, Massimo Paolucci, and Katia SycaraSpinning the OWL-S Process Model -- Toward the Verification of the OWL-S Process Models In Proceedings of Workshop on Semantic Web Services:Preparing to Meet the World of Business Applications (ISWC 2004)

Narayanan, S. and McIlraith, S. ``Simulation, Verification and Automated Composition of Web Services''. IN the Proceedings of the Eleventh International World Wide Web Conference (WWW-11), May, 2002

Anupriya Ankolekar, Frank Huch and Katia Sycara. "Concurrent Semantics for the Web Services Specification Language DAML-S." In Proceedings of the Fifth International Conference on Coordination Models and Languages, York, UK, April 8-11, 2002.

Anupriya Ankolekar, Frank Huch, Katia Sycara. "Concurrent Execution Semantics for DAML-S with Subtypes." In The First International Semantic Web Conference (ISWC), 2002.

Page 207: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 207

References OWL-S• Policies and Security

Ronald Ashri, Grit Denker, Darren Marvin, Mike Surridge,Terry Payne, Semantic Web Service Interaction Protocols: An Ontological Approach, 3rd

International Semantic Web Conference (ISWC2004), Hiroshima, JapanLalana Kagal, Grit Denker, Tim Finin, Massimo Paolucci, Naveen Srinivasan and

Katia Sycara, "An Approach to Confidentiality and Integrity for OWL-S", forthcoming in Proceedings of AAAI 2004 Spring Symposium.

Grit Denker, Lalana Kagal, Tim Finin, Massimo Paolucci, Naveen Srinivasan and Katia Sycara, "Security For DAML Web Services: Annotation and Matchmaking" In Proceedings of the Second International Semantic Web Conference (ISWC 2003), Sandial Island, Fl, USA, October 2003, pp 335-350.

Page 208: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 208

References OWL-S• Applications

Schlenoff, C., Barbera, A., Washington, R., “Experiences in Developing an Intelligent Ground Vehicle (IGV) Ontology in Protégé” In Proceedings of the 7th International ProtegeConference, Bethesda, MD, July 6 - 8, 2004.

Aabhas V Paliwal, Nabil Adam, Christof Bornhövd, and Joachim SchaperSemantic Discovery and Composition of Web Services for RFID Applications in Border Control In Proceedings of Workshop on Semantic Web Services:Preparing to Meet the World of Business Applications (ISWC 2004)

Mithun Sheshagiri, Norman Sadeh and Fabien Gandon, Using Semantic Web Services for Context-Aware Mobile Applications, Proceedings of MobiSys2004 Workshop on Context Awareness, Boston, June 2004

Zhexuan Song, Yannis Labrou and Ryusuke Masuoka, "Dynamic Service Discovery and Management in Task Computing," pp. 310 - 318, MobiQuitous2004, August 22-26, 2004, Boston, USA

Page 209: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 209

References WSMO• The central location where WSMO work and papers

can be found is WSMO Working Group: http://www.wsmo.org

• In regard of WSMO languages: WSML Working Group: http://www.wsml.org

• WSMO implementation: WSMX working group can be found at: http://www.wsmx.org

• WSMX open source can be found at: https://sourceforge.net/projects/wsmx/

Page 210: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 210

References WSMO• [WSMO Specification]: Roman, D.; Lausen, H.; Keller, U. (eds.):

Web Service Modeling Ontology, WSMO Working Draft D2, final version 1.0, 20 September 2004.

• [WSMO Primer]: Feier, C. (ed.): WSMO Primer, WSMO Working Draft D3.1, 12 October 2004.

• [WSMO Choreography] Roman, D.; Stollberg, M.; Vasiliu, L.; Bussler, C.:(eds.): Choreography in WSMO, WSMO Working Draft D14, 14 October 2004.

• [WSMO Orchestration] Roman, D.; Vasiliu, L.; Bussler, C.: (eds.): Orchestration in WSMO, WSMO Working Draft D15, 29 May 2004.

• [WSMO Use Case] Stollberg, M.; Lausen, H.; Polleres, A.; Lara, R. (ed.): WSMO Use Case Modeling and Testing, WSMO Working Drafts D3.2; D3.3.; D3.4; D3.5, 05 November 2004.

Page 211: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 211

References WSMO

• [Arroyo et al. 2004] Arroyo, S., Lara, R., Gomez, J. M., Berka, D., Ding, Y. and Fensel, D: "Semantic Aspects of Web Services" in Practical Handbook of Internet Computing. Munindar P. Singh, editor. Chapman Hall and CRC Press, Baton Rouge. 2004.

• [Berners-Lee et al. 2001] Tim Berners-Lee, James Hendler, and OraLassila, “The Semantic Web”. Scientific American, 284(5):34-43, 2001.

• [Chen et al., 1993] Chen, W., Kifer, M., and Warren, D. S. (1993). HILOG: A foundation for higher-order logic programming. Journal of Logic Programming, 15(3):187-230.

• Domingue, J. Cabral, L., Hakimpour, F., Sell D., and Motta, E., (2004) IRS-III: A Platform and Infrastructure for Creating WSMO-based Semantic Web Services WSMO Implementation Workshop (WIW), Frankfurt, Germany, September,2004

• [Fensel, 2001] Dieter Fensel, “Ontologies: Silver Bullet for Knowledge Management and Electronic Commerce”, Springer-Verlag, Berlin, 2001.

Page 212: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 212

References WSMO

• [Gruber, 1993] Thomas R. Gruber, “A Translation Approach to Portable Ontology Specifications”, Knowledge Acquisition, 5:199-220, 1993.

• [Grosof et al., 2003] Grosof, B. N., Horrocks, I., Volz, R., and Decker, S. (2003). Description logic programs: Combining logic programs with description logic. In Proc. Intl. Conf. on the World Wide Web (WWW-2003), Budapest, Hungary.

• [Kifer et al., 1995] Kifer, M., Lausen, G., and Wu, J. (1995). Logical foundations of object-oriented and frame-based languages. JACM, 42(4):741-843.

• [Pan and Horrocks, 2004] Pan, J. Z. and Horrocks, I. (2004). OWL-E: Extending OWL with expressive datatype expressions. IMG Technical Report IMG/2004/KR-SW-01/v1.0, Victoria University of Manchester. Available from http://dl-web.man.ac.uk/Doc/IMGTR-OWL-E.pdf.

• [Stencil Group] -www.stencilgroup.com/ideas_scope_200106wsdefined.html

Page 213: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 213

References WSMO

• OWL-- - http://www.wsmo.org/2004/d20/d20.1/• OWL Flight – http://www.wsmo.org/2004/d20/d20.3/• [Volz, 2004] Volz, R. (2004). Web Ontology Reasoning with Logic Databases.

PhD thesis, AIFB, Karlsruhe.• WSML-Core – http://www.wsmo.org/2004/d16/d16.7/• [WSMO Standard] Roman, D.; Lausen, H.; Keller, U. (eds.): Web Service

Modeling Ontology - Standard (WSMO - Standard) v 1.0, WSMO Working Draft D2, 16 August 2004.

• [WSMO Choreography] Roman, D.; Stollberg, M.; Vasiliu, L.; Bussler, C.:(eds.): Choreography in WSMO, WSMO Working Draft D14, 17 August 2004.

• [WSMO Orchestration] Roman, D.; Vasiliu, L.; Bussler, C.: (eds.): Orchestration in WSMO, WSMO Working Draft D15, 29 May 2004.

• [WSMO Use Case] Stollberg, M.; Lausen, H.; Polleres, A.; Lara, R. (ed.): WSMO Use Case Modeling and Testing, WSMO Working Draft D3.2, 19 July 2004.

Page 214: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 214

References IRS III tutorial• J. Domingue, L. Cabral, F. Hakimpour,D. Sell and E. Motta: IRS-III: A Platform and

Infrastructure for Creating WSMO-based Semantic Web Services. Proceedings of the Workshop on WSMO Implementations (WIW 2004) Frankfurt, Germany, September 29-30, 2004, CEUR Workshop Proceedings, ISSN 1613-0073, online http://CEUR-WS.org/Vol-113/paper3.pdf.

• J. Domingue and S. Galizia: Towards a Choreography for IRS-III.• Proceedings of the Workshop on WSMO Implementations (WIW 2004) Frankfurt,

Germany, September 29-30, 2004, CEUR Workshop Proceedings, ISSN 1613-0073, online http://CEUR-WS.org/Vol-113/paper7.pdf.

• Cabral, L., Domingue, J., Motta, E., Payne, T. and Hakimpour, F. (2004).• Approaches to Semantic Web Services: An Overview and Comparisons. In

proceedings of the First European Semantic Web Symposium (ESWS2004);• 10-12 May 2004, Heraklion, Crete, Greece.

• Motta, E., Domingue, J., Cabral, L. and Gaspari, M. (2003) IRS-II: A Framework and Infrastructure for Semantic Web Services. In proceedings of the 2nd International Semantic Web Conference (ISWC2003) 20-23 October 2003, Sundial Resort, Sanibel Island, Florida, USA.

Page 215: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 215

AcknowledgementsWe would like to acknowledge the contribution of the past and present members of the OWL-S coalition for their hard work in the development of the language. Furthemore, we would like to thank the community at large for contributing to tools and ideas.

Furthermore, we would like to thank to all the members of the WSMO, WSML, and WSMX working groups for their advice and input into this tutorial.

Special thanks to Sheila McIlraith, Craig Schlenoff, Daniel Eleniusand Naveen Srinivasan for providing slides and suggestions on this tutorial.

Slide design by Harriett Cornish, Knowledge Media Insitute, The Open University

Page 216: Semantic Web Services Tutorial - WSMO · Semantic Web Services Tutorial ISWC 2004, Hiroshima, Japan Massimo Paolucci Katia Sycara David Martin Sinuhe Arroyo Christoph Bussler

22/11/2004 3rd International Semantic Web Conference, Hiroshima, Japan, 7th – 11th November 2004 216

AcknowledgementsThe development of OWL-S has been funded almost

exclusively by the DAML DARPA program.

The WSMO work is funded by the European Commission under the projects DIP, Knowledge Web, SEKT, SWWS, AKT and Esperonto; by Science Foundation Ireland under the DERI-Lion project; and by the Vienna city government under the CoOperate program.