Professional Documents
Culture Documents
Tutorial
Michael Stollberg1, Matt Moran2,
John Domingue3, and Liliana Cabral3
1DERI,Innsbruck, Austria
2DERI,Galway, Ireland
3Knowledge Media Institute, The Open University, UK
2
Agenda
Part I: Introduction to Semantic Web Services
– Vision of Next Generation Web Technology
– Semantic Web Service Challenges
Part II: The Web Service Modeling Ontology WSMO
– Aims & Design Principles
– Top Level Element Definitions
BREAK
Part III: A Walkthru Example
– Virtual Travel Agency Example
– Roles, Elements, Semantic Web Service technology usage
LUNCH
Part IV: The Web Service Execution Environment WSMX
– Aims & Design Principles
– Architecture & Components
BREAK
Part V: Hands-On Session with IRS III
– IRS III introduction
– Hands-on Session (explanation, hands-on)
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
3
PART I:
Introduction to Semantic Web
Services
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
4
The Vision
– 500 million users
– more than 3 billion pages
Static
WWW
URI, HTML, HTTP
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
5
The Vision
Serious Problems in
• information finding,
• information extracting,
• information representing,
• information interpreting and
• and information maintaining.
Static
WWW Semantic Web
URI, HTML, HTTP RDF, RDF(S), OWL
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
6
The Vision
Static
WWW Semantic Web
URI, HTML, HTTP RDF, RDF(S), OWL
Syntactic Semantic
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
7
The Vision
Bringing the web to its full potential
Static
WWW Semantic Web
URI, HTML, HTTP RDF, RDF(S), OWL
Syntactic Semantic
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
8
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
9
Ontology Definition
commonly accepted
machine-readability
understanding
with computational
semantics
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
10
Ontology Example
name email
Concept
conceptual entity of the domain Person research
matr.-nr.
field
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
11
Ontology Technology
To make the Semantic Web working we need:
• Ontology Languages:
– expressivity
– reasoning support
– web compliance
• Ontology Reasoning:
– large scale knowledge handling
– fault-tolerant
– stable & scalable inference machines
• and … Applications
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
12
Web Services
• loosely coupled, reusable components
• encapsulate discrete functionality
• distributed
• programmatically accessible over standard
internet protocols
• add new level of functionality on top of the
current web
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
13
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
14
WSDL
• Web Service Description Language
• W3C effort, WSDL 2 final construction phase
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
15
UDDI
• Universal Description, Discovery, and Integration Protocol
• OASIS driven standardization effort
Registry for
Web Services:
- provider
- service information
- technical access
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
16
SOAP
• Simple Object Access Protocol
• W3C Recommendation
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
17
Deficiencies of WS Technology
• current technologies allow usage of Web Services
• but:
– only syntactical information descriptions
– syntactic support for discovery, composition and execution
=> Web Service usability, usage, and integration needs to be
inspected manually
– no semantically marked up content / services
– no support for the Semantic Web
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
18
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
19
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
20
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
21
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
22
PART II:
The Web Service Modeling
Ontology WSMO
• Aims & Working Groups
• Design Principles
• Top Level Notions
– Ontologies
– Web Services
– Goals
– Mediators
• Comparison to OWL-S
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
23
WSMO is ..
• a conceptual model for Semantic Web Services:
– ontology of core elements for Semantic Web Services
– a formal description language (WSML)
– execution environment (WSMX)
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
24
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
25
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
26
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
27
Non-Functional Properties
every WSMO elements is described by properties that
contain relevant, non-functional aspects
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
28
WSMO Ontologies
Objectives that a client wants to
achieve by using Web Services
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
30
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)
Ontology Elements:
Concepts set of concepts that belong to the ontology, incl.
Attributes set of attributes that belong to a concept
Relations define interrelations between several concepts
Functions special type of relation (unary range = return value)
Instances set of instances that belong to the represented ontology
Axioms axiomatic expressions in ontology (logical statement)
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
32
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
33
client-service realization of
interaction interface functionality by
for consuming WS Web Service WS
aggregating
- External Visible Implementation other Web Services
WS
Behavior (not of interest in Web - functional
Service Description)
- Communication WS
decomposition
Structure - interaction with
- ‘Grounding’ aggregated WS
Capability Specification
• Non functional properties
• Imported Ontologies
• Used mediators
– OO Mediator: importing ontologies with mismatch resolution
– WG Mediator: link to a Goal wherefore service is not usable a priori
• Pre-conditions
what a web service expects in order to be able to
provide its service (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)
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
35
Date, Time
Date
Hotel
Hotel Service
Time
Error
Flight, Hotel
VTA
Date, Time
Error Service
Confirmation Flight
Flight Service
Error
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
36
Choreography Aspects
Interface for consuming Web Service
• External Visible Behavior
– those aspects of the workflow of a Web Service where Interaction is
required
– described by workflow constructs: sequence, split, loop, parallel
• Communication Structure
– messages sent and received
– their order (communicative behavior for service consumption)
• Grounding
– executable communication technology for interaction
– choreography related errors (e.g. input wrong, message timeout, etc.)
• Formal Model
– reasoning on Web Service interfaces (conversation validation)
– allow mediation support on Web Service interfaces
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
37
Orchestration Aspects
Control Structure for aggregation of other Web Services
Web Service Business Logic
State in Orchestration
Control Flow
1
WS Data Flow
Service Interaction
3
2 - decomposition of
service functionality
4 WS - interaction with
aggregated Web
Services
- all service interaction via
choreographies
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
38
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
39
• further characteristics:
– not restricted to any specific communication technology
– ontology reasoning for service interoperability determination
– basis for declarative mediation techniques on service interfaces
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
40
• States ω(Ω):
– a stable status in the information space
– defined by attribute values of ontology instances
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
41
received ontology
sent ontology
instance a
instance b
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
42
Future Directions
Choreography: Orchestration:
- interaction of services / service and client - how Web Service interacts as a requester with other Web Services that
- „choreography interface“ describes the behavior of a it aggregates for achieving its functionality
Web Service for client-service interaction for consuming - extends Choreography descriptions by extended action definitions in
its functionality Guarded Transitions.
Conceptual models
User language
- based on UML2 activity diagrams
- graphical Tool for Editing & Browsing Service Interface Description
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
43
WSMO Goals
Objectives that a client wants to
achieve by using Web Services
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
44
Goals
• Ontological De-coupling of Requester and Provider
• Goal-driven Architetcure:
- requester formulates objective independently
- ‘intelligent’ mechanisms detect suitable services for solving the Goal
- allows re-use of Services for different purposes
• Derived from different AI-approaches for intelligent systems
– Intelligent Agents (BDI Architectures)
– Problem Solving Methods
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
45
Goal Specification
• Non functional properties
• Imported Ontologies
• Used mediators
– OO Mediators: importing ontologies with heterogeneity resolution
– GG Mediator:
• Goal definition by reusing an already existing goal
• allows definition of Goal Ontologies
• Requested Capability
– describes service functionality expected to resolve the objective
– defined as capability description from the requester perspective
• Requested Interface
– describes communication behaviour supported by the requester for
consuming a Web Service (Choreography)
– Restrictions / preferences on orchestrations of acceptable Web
Services
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
46
WSMO Mediators
Objectives that a client wants to
achieve by using Web Services
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
47
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:
– 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
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
48
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
49
Mediator Structure
Source WSMO Mediator
Component
uses a Mediation Service via 1 Target
1 .. n
Component
Source
Component
- as a Goal
- directly
- optionally incl. Mediation
Mediation
Services
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
50
OO Mediator - Example
Merging 2 ontologies
Discovery
Mediation
Services
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
51
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
postcondition:
“aTicket memberof trainticket”
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
52
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
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
53
Comparison to OWL-S
•Capability specification
•General features of the Service
• Quality of Service
• Classification in Service
taxonomies
• Mapping to WSDL
• communication protocol (RPC, HTTP, …)
• Control flow of the service
• marshalling/serialization
•Black/Grey/Glass Box view
• transformation to and from XSD to OWL
• Protocol Specification
• Abstract Messages
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
54
Perspective
• OWL-S is an ontology and a language to describe Web services
– 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
• WSMO is a conceptual model for the core elements of Semantic
Web Services
– core elements: Ontologies, Web Services, Goals, Mediators
• language for semantic element description (WSML)
• reference implementation (WSMX)
– Mediation as a key element
– Ontologies as data model
• every resource description is based on ontologies
• every data element interchanged is an ontology instance
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
55
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
56
• Formal Model:
– OWL-S formal semantics has been developed in very different frameworks
such as Situation Calculus, Petri Nets, Pi-calculus
– WSMO service interface description model with ASM-based formal semantics
– OWL-S Process Model is extended by SWRL / FLOWS
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
57
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
58
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
59
Semantic Representation
• OWL-S and WSMO adopt a similar view on the need
of ontologies and explicit semantics but they rely on
different logics:
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
60
WSML Flight
Description Logics Description Logics
Logic Programming
OWL Lite subset WSML Core
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
61
Summary
current Web Service
OWL-S WSMO
technologies
Grounding
Invocation Grounding+
(WSDL / SOAP, WSDL / SOAP
How to invoke WSDL/SOAP
ontology-based)
Mediation
- Mediators -
Heterogeneity handling
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
62
PART III:
A Walkthrough Example
• Discovery
• Conversation Validation
• Mediation
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
63
=> how does the interplay of James, VTA, and other Web Services look like?
Contract
Flight Service
Booking Provider
provides
James VTA uses &
aggregates
Hotel Service
Booking Provider
Contract
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
64
Domain Ontologies
• All terminology that we use in resource descriptions need
to be based on ontologies; also, all information
interchanged should be ontology instances
• Modular ontology design
– an ontology should define terminology of a domain
– an ontology should be shared & agreed in a community
– modular ontologies are combined in specific
• Domain Ontologies needed for this Use Case:
– Trip Reservation Ontology
– Location Ontology
– Date and Time Ontology
– Purchase Ontology
– … possibly more
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
65
• main concepts:
– TRIP
• describes a trip (a journey between locations)
• passenger, origin & destination, means of travel, etc.
– RESERVATION
• describes reservations for tickets, accomodation, or complete trips
• customer, trip, price, payment
– RESERVATION REQUEST
– RESERVATION OFFER
– RESERVATION CONFIRMATION
ontology _"http://www.wsmo.org/ontologies/tripReservationOntology#"
nonFunctionalProperties
dc#title hasValue "Trip Reservation Ontology"
dc#creator hasValue _”http://www.deri.org”
dc#description hasValue “domain ontology for travel and accomodation reservation"
dc#publisher hasValue “Austrian Toursim Association"
version hasValue "$Revision 1.17 $"
endNonFunctionalProperties
importsOntology {_"http://www.wsmo.org/ontologies/dateandtime.wsml",
_"http://www.wsmo.org/ontologies/purchase.wsml“}
usesMediator {_"http://www.wsmo.org/mediators/owl2wsml.wsml“}
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
67
concept reservation
nonFunctionalProperties
dc#description hasValue "reservations for tickets, accomodation, or complete trips“
dc#relation hasValue reservationItemDef
endNonFunctionalProperties
customer impliesType po#customer
reservationItem impliesType wsml#true
price impliesType po#price
payment impliesType po#payment
axiom reservationItemDef
definedBy
forall{?x, ?y} (?x memberOf reservation[reservationItem hasValue ?y] impliedBy
(?y memberOf ticket) or (?y memberOf accomodation) or (?y memberOf trip) ).
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
68
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
69
Goal Description
• “book flight and hotel for the ICWE 2005 for James”
• goal capability postcondition: get a trip reservation for this
goal _"http://www.wsmo.org/examples/goals/icwe2005"
importsOntology {_"http://www.wsmo.org/ontologies/tripReservationOntology", …}
capability
postcondition
definedBy
?tripReservation memberOf tr#reservation[
customer hasValue fof#james,
reservationItem hasValue ?tripICWE] and
?tripICWE memberOf tr#trip[
passenger hasValue fof#james,
origin hasValue loc#innsbruck,
destination hasValue loc#sydney,
meansOfTransport hasValue ?flight,
accomodation hasValue ?hotel] and
?flight[airline hasValue tr#staralliance] memberOf tr#flight and
?hotel[name hasValue “Capitol Square Hotel”] memberOf tr#hotel .
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
70
assumption
definedBy
po#validCreditCard(?creditCard) and
(?creditCard[type hasValue po#visa] or ?creditCard[type hasValue po#mastercard]).
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
71
assumption
definedBy
reservationPrice(?reservation, "euro", ?tripPrice) and
?finalBalance= (?initialBalance - ?ticketPrice) and
?creditCard[po#balance hasValue ?finalBalance] .
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
72
Goal definition
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
73
• Aims:
– high precision discovery
– maximal automation
– effective discoverer architectures
• Requirements:
– infrastructure that allows storage and retrieval of
information about Web services
– description of Web services functionality
– description of requests or goals
– algorithms for matching requesters for capabilities with the
corresponding providers
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
74
Discovery Techniques
• different techniques available
– trade-off: ease-of-provision <-> accuracy
– resource descriptions & matchmaking algorithms
Controlled Vocabulary
ontology-based key word matching
Semantic Matchmaking
… what Semantic Web Services aim at
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
75
⇒ mapping semantic
descriptions to syntactic
repository
⇒ allows retrieval of
structural information
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
76
Controlled Vocabulary
• Example
– a Web Service for selling train tickets in Austria
dc#subject hasValue _{tc#trainticket, po#purchase, loc#austria}
– does not precisely describe Web Service functionality
=> accuracy of discovery result meager
Lara, R., Lausen, H.; Toma, I.: (Eds): WSMX Discovery. WSMX Working Draft D10 v0.2, 07 March 2005.
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
77
Controlled Vocabulary
Web Services
Information E-commerce
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
78
PlugIn Match:
G, WS, O, M ╞ ∀x. (G(x) => WS(x) )
Subsumption Match:
G, WS, O, M ╞ ∀x. (G(x) <= WS(x) )
Intersection Match: X
Non Match:
G, WS, O, M ╞ ¬∃x. (G(x) ∧ WS(x) )
Keller, U.; Lara, R.; Polleres, A. (Eds): WSMO Web Service Discovery. WSML Working Draft D5.1, 12 Nov 2004.
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
79
Discovery Approach
• Matchmaking Notion to be used defined for each goal
capability element
• Basic Procedure:
Goal Capability Web Service Capability
Precondition
Plug-In Precondition
valid pre-state?
Exact
no Assumption Assumption
yes
abort Intersection
Postcondition Postcondition
valid post-state?
Exact
no Effect Effect
yes
abort
Match
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
80
Discoverer Architecture
• Discovery as central Semantic Web Services technology
Keyword-/ Classification-based
Filtering
retrieve Service
Descriptions efficient narrowing
Controlled Vocabulary of search space
Filtering (relevant services
Resource Repository to be inspected)
(UDDI or other)
Semantic
Matchmaking
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
81
Service Interfaces
VTA Capability
Interface (Chor.) Orch.
defines provides 1) get request Flight WS ..
2) provide offer
Goal Capability 3) receive selection
4) send confirmation
Requested Capability Interface (Chor.) Interface (Orch.)
1) get request 1) flight request
book flight & hotel VTA WS
2) provide offer 2) hotel request
Requested Interface 3) receive selection ‘Trip Booking’ 3) book flight Capability
1) send request 4) send confirmation 4) book hotel
2) select from offer Interface (Chor.) Orch.
3) receive confirmation 1) get request Hotel WS ..
2) provide offer
3) receive selection
4) send confirmation
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
82
Choreography Discovery
VTA Capability
Interface (Chor.) Orch.
defines provides 1) get request Flight WS ..
2) provide offer
Goal Capability 3) receive selection
4) send confirmation
Requested Capability Interface (Chor.) Interface (Orch.)
1) get request 1) flight request
book flight & hotel VTA WS
2) provide offer 2) hotel request
Requested Interface 3) receive selection ‘Trip Booking’ 3) book flight Capability
1) send request 4) send confirmation 4) book hotel
2) select from offer Interface (Chor.) Orch.
3) receive confirmation 1) get request Hotel WS ..
2) provide offer
3) receive selection
4) send confirmation
- both choreography interfaces given (“static”) - VTA Orchestration & Chor. Interfaces of
- correct & complete consumption of VTA aggregated WS given
=> existence of a valid choreography? => existence of a valid choreography between
VTA and each aggregated WS?
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
84
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
85
received ontology
sent ontology
instance a
instance b
evolving ontology instance store
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
86
Choreography Discovery
internal internal
business logic business logic
of Web Service of Web Service
(not of interest in Service (not of interest in Service
Interface Description) Interface Description)
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
87
Information Compatibility
If choreography participants have compatible
vocabulary definitions:
– Ωin(S1) and Ωshared(S1) = Ωout(S2) and Ωshared(S2)
– determinable by Intersection Match from Discovery
SIS1, SIS2, O, M ╞ ∃x. (ΩS1(in U shared)(x) ∧ ΩS2(out U shared)(x))
– more complex for multi-party choreographies
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
88
Communication Compatibility
• Definitions (for “binary choreography” (only 2 services), more complex for multi-party choreographies)
• Communication Compatibility given if there exists a start state and a termination state
is reachable without additional input by a sequence of valid choreography states
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
89
Orchestration
Interaction with aggregated Web Services + Control Structure
Web Service Business Logic
State in Orchestration
Control Flow
1
WS Data Flow
Web Service Usage
3
- formally described service
2
functionality decomposition
- only those aspects of WS
4 WS
realization wherefore other
WS are aggregated
- aggregated WS used via
their behavior interface
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
91
• Orchestration Validation:
– need to ensure that interactions with aggregated Web
Service can be executed successfully
=> Choreography Discovery for all interaction of
Orchestrator with each aggregated Web Service
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
92
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
93
additional
requirements for
orchestration
service service
descriptions descriptions
component
service
functional functional invocation
features features
available available
service 1 service
non- service 1 ……… non- service nn
functional functional
features features
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
94
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
95
Mediation
• Heterogeneity as inherent characteristic of (Semantic) Web:
– heterogeneous terminology
– heterogeneous languages / formalisms
– heterogeneous communication protocols and business processes
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
96
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
97
• Main Features:
– Mapping Document (sources, mappings, mediation service)
– direction of mapping (uni- / bidirectional)
– mapping between Ontology Constructs:
• classMapping, attributeMapping, relationMapping (between similar constructs)
• classAtrributeMapping, classRelationMapping, classInstanceMapping
• instanceMapping (explicit ontology instance transformation)
– Conditions / logical expressions for data type mismatch handling,
restriction of mapping validity, and complex mapping definitions
– Mapping operators:
• =, <, <=, >, >=, and, or, not
• inverse, symmetric, transitive, reflexive
• join, split
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
98
Person
Human - name
- name - age
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
99
internal internal
WW Mediator
business logic business logic
of Web Service of Web Service
(not of interest in Service (not of interest in Service
Interface Description) Interface Description)
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
101
Unsolvable Mismatches
PM A
Business Business
Partner1
? Partner2
B PM A
Business Business
Partner1 A ? B Partner2
A PM
Business Business
Partner1 Ack ? Partner2
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
102
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
103
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
104
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
105
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
106
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
107
Conclusions
• Semantic Web Service descriptions require
– expertise in ontology & logical modeling
=> tool support for users & developers under development
– understanding of Semantic Web Service technologies
• what it does, and how it works
• which are the related descriptive information
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
108
PART IV:
The Web Service Execution
Environment (WSMX)
• Structural architecture
• Dynamic behaviour
• Future plans
• Demos
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
109
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
110
WSMX Introduction
• Software framework for runtime binding of service
requesters and service providers
• WSMX interprets service requester’s goal to
– discover matching services
– select (if desired) the service that best fits
– provide mediation (if required)
– make the service invocation
• Is based on the conceptual model provided by WSMO
• Has a formal execution semantics
• SO and event-based architecture based on microkernel
design using technologies as J2EE, Hibernate, Spring,
JMX, etc.
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
111
WSMX Motivation
• Provide middleware ‘glue’ for Semantic Web Services
– Allow service providers focus on their business
• Provide a reference implementation for WSMO
– Eat our own cake
• Provide an environment for goal based service
discovery and invocation
– Run-time binding of service requester and provider
• Provide a flexible Service Oriented Architecture
– Add, update, remove components at run-time as needed
• Keep open-source to encourage participation
– Developers are free to use in their own code
• Define formal execution semantics
– Unambiguous model of system behaviour
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
112
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
113
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
114
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
115
End User
Developer
Application
Services
Vertical Services
Services
Base
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
116
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
117
2005 2006
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
118
Structural Architecture
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
119
Design Principles
Strong Decoupling & Strong Mediation
autonomous components with mediators for interoperability
Peer to Peer
interaction between equal partners (in terms of control)
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
120
WSMX Architecture
Service
Service
Oriented
Oriented Messaging
Messaging
Architectures
Architectures
Application
Application
Management
Management
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
121
Benefits of SOA
• Better reuse
– Build new functionality (new execution semantics)
on top of existing Business Services
• Well defined interfaces
– Manage changes without affecting the Core System
• Easier Maintainability
– Changes/Versions are not all-or-nothing
• Better Flexibility
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
122
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
123
Messaging
• Messaging is peer-to-peer facility
• Distributed communication
– Loosely coupled
• Sender does not need to know receiver (and vice
versa)
• Asynchronous mechanism to communicate between
software applications
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
124
System Interface
Adapter 2
...
Adapter n
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
125
Selected Components
• Adapters
• Parser
• Invoker
• Choreography
• Process Mediator
• Discovery
• Data Mediator
• Resource Manager
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
126
Adapters
• To overcome data representation
mismatches on the communication layer
• Transforms the format of a received
message into WSML compliant format
• Based on mapping rules
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
127
Parser
• WSML compliant parser
– Code handed over to wsmo4j initiative
http://wsmo4j.sourceforge.net/
• Validates WSML description files
• Compiles WSML description into internal
memory model
• Stores WSML description persistently
(using Resource Manager)
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
128
SOAP
XML XML Web
Mediated Invoker
Apache
AXIS Service
WSML Data Converter
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
129
Choreography
• Requester and provider have their own
observable communication patterns
– Choreography part of WSMO
• A choreography instance is loaded for each
– Both requester and provider have their own WSMO
descriptions
• The Choreography component examines a
service’s choreography to determine next step
in communication
• The Choreography component raises events for
the Invoker to make actual service invocations
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
130
Process Mediator
• Requester and provider have their own
communication patterns
• Only if the two match precisely, a direct
communication may take place
• At design time equivalences between the
choreographies’ conceptual descriptions is
determined and stored as set of rules
• The Process Mediator provides the means for
runtime analyses of two choreography
instances and uses mediators to compensate
possible mismatches
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
131
Process Mediator
A PM
Business Business
Partner1 B B Partner2
A PM B
Business Business
Partner1 B A Partner2
PM A
Business A and B Business
Partner1 B Partner2
A PM
Business A and B Business
Partner1 B Partner2
A PM A
Business Business
Partner1 AckA Partner2
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
132
Discovery
• Responsible for finding appropriate Web
Services to achieve a goal (discovery)
• Current discovery component is based on
simple matching
• Advanced semantic discovery in
prototypical stage
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
133
Discovery
Keyword-based with Natural
Language Processing (NLP)
Syntactic
{Keyword}
Level of Abstraction
W1 … WL
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
134
Discovery
Keyword-based with Natural
Language Processing (NLP)
Syntactic
{Keyword}
Level of Abstraction
W1 … WL
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
135
Data Mediator
• Ontology-to-ontology mediation
• A set of mapping rules are defined and then executed
• Initially rules are defined semi-automatic
• Create for each source instance the target instance(s)
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
136
Resource Manager
• Stores internal memory model to a data
store
• Decouples storage mechanism from the
rest of WSMX
• Data model is compliant to WSMO API
• Independent of any specific data store
implementation i.e. database and storage
mechanism
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
137
Dynamic Behaviour
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
138
Communication Data
Data Manager
Legend Service Matchmaker
Mediator (Provider Side)
Mediator
Repository
WSMX components
SOAP
External entities
Selector
Execution Flow
Service
Usage Provider
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
139
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
140
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
141
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
142
Context Data
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
143
Event-based Implementation
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
144
Walk Through
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
145
Execution Semantics
WSMT – Web Services Modelling Toolkit
Request to discoverWSMX Managment WSMX Monitor WSML Editor Choreography Editor Mediator Editor
Web services.
Service WSMX
Administration Framework Interface
Service
Requesters Providers
WSMX Manager
Data and Communication Protocols Adapters
Adapter 1
System Interface
Grounding
Component
Wrapper
Resource Manager Interface Reasoner Interface
Adapter n
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
146
Execution Semantics
WSMT – Web Services Modelling Toolkit
Goal expressed
WSMX Managment WSMX Monitor WSML Editor Choreography Editor Mediator Editor
in WSML is sent to
WSMX System
Service InterfaceWSMX Administration Framework Interface
Service
Requesters Providers
WSMX Manager
Data and Communication Protocols Adapters
Adapter 1
System Interface
Grounding
Component
Wrapper
Resource Manager Interface Reasoner Interface
Adapter n
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
147
Execution Semantics
WSMT – Web Services Modelling Toolkit
WSMX Managment WSMX Monitor WSML Editor Choreography Editor Mediator Editor
Com. M. implements
Service WSMX
the interface to Administration Framework Interface
Service
Requesters receive WSML goals Providers
WSMX Manager
Data and Communication Protocols Adapters
Adapter 1
System Interface
Grounding
Component
Wrapper
Resource Manager Interface Reasoner Interface
Adapter n
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
148
Execution Semantics
WSMT – Web Services Modelling Toolkit
WSMX Managment WSMX Monitor WSML Editor Choreography Editor Mediator Editor
Service WSMX
Administration Framework Interface
Service
Requesters Providers
WSMX Manager
Data and Communication Protocols Adapters
Adapter 1
System Interface
Grounding
Component
Wrapper
Resource Manager Interface Reasoner Interface
Adapter n
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
149
Execution Semantics
WSMT – Web Services Modelling Toolkit
WSMX Managment WSMX Monitor WSML Editor Choreography Editor Mediator Editor
Service WSMX
Administration Framework Interface
Chor. wrapper Service
Requesters picks up event for Providers
WSMX Manager Chor. component
Data and Communication Protocols Adapters
Adapter 1
System Interface
Grounding
Component
Wrapper
Resource Manager Interface Reasoner Interface
Adapter n
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
150
Execution Semantics
WSMT – Web Services Modelling Toolkit
WSMX Managment WSMX Monitor WSML Editor Choreography Editor Mediator Editor
Service WSMX
Administration Framework Interface
Service
Requesters New choreography Providers
WSMX Manager Instance is created
Data and Communication Protocols Adapters
Adapter 1
System Interface
Grounding
Component
Wrapper
Resource Manager Interface Reasoner Interface
Adapter n
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
151
Execution Semantics
WSMT – Web Services Modelling Toolkit
WSMX Managment WSMX Monitor WSML Editor Choreography Editor Mediator Editor
Service WSMX
Administration Framework Interface
Service
Requesters Providers
WSMX Manager
Data and Communication Protocols Adapters
Adapter 1
System Interface
Grounding
Component
Wrapper
Resource Manager Interface Reasoner Interface
Adapter n
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
152
Execution Semantics
WSMT – Web Services Modelling Toolkit
WSMX Managment WSMX Monitor WSML Editor Choreography Editor Mediator Editor
Service WSMX
Administration Framework Interface
Service
Requesters Providers
WSMX Manager
Data and Communication Protocols Adapters
Adapter 1
System Interface
Grounding
Component
Wrapper
Resource Manager Interface Reasoner Interface
Adapter n
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
153
Execution Semantics
WSMT – Web Services Modelling Toolkit
WSMX Managment WSMX Monitor WSML Editor Choreography Editor Mediator Editor
Service WSMX
Administration Framework Interface
Service
Requesters Providers
WSMX Manager
Data and Communication Protocols Adapters
Adapter 1
System Interface
Grounding
Component
Wrapper
Resource Manager Interface Reasoner Interface
Adapter n
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
154
Execution Semantics
WSMT – Web Services Modelling Toolkit
WSMX Managment WSMX Monitor WSML Editor Choreography Editor Mediator Editor
Service WSMX
Administration Framework Interface
Service
Requesters Providers
WSMX Manager
Data and Communication Protocols Adapters
Adapter 1
System Interface
Grounding
Component
Wrapper
Resource Manager Interface Reasoner Interface
Adapter n
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
155
Execution Semantics
WSMT – Web Services Modelling Toolkit
WSMX Managment WSMX Monitor WSML Editor Choreography Editor Mediator Editor
Service WSMX
Administration Framework Interface
Service
Requesters Providers
WSMX Manager
Data and Communication Protocols Adapters
Adapter 1
System Interface
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
156
Execution Semantics
WSMT – Web Services Modelling Toolkit
WSMX Managment WSMX Monitor WSML Editor Choreography Editor Mediator Editor
Service WSMX
Administration Framework Interface
Service
Requesters Providers
WSMX Manager
Data and Communication Protocols Adapters
Adapter 1
System Interface
Grounding
Component
Wrapper
Resource Manager Interface Reasoner Interface
Adapter n
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
157
Execution Semantics
WSMT – Web Services Modelling Toolkit
WSMX Managment WSMX Monitor WSML Editor Choreography Editor Mediator Editor
Service WSMX
Administration Framework Interface
Service
Requesters Providers
WSMX Manager
Data and Communication Protocols Adapters
Adapter 1
System Interface
Grounding
Component
Wrapper
Resource Manager Interface Reasoner Interface
Adapter n
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
158
Execution Semantics
WSMT – Web Services Modelling Toolkit
WSMX Managment WSMX Monitor WSML Editor Choreography Editor Mediator Editor
Service WSMX
Administration Framework Interface
Service
Requesters Providers
WSMX Manager
Data and Communication Protocols Adapters
Adapter 1
System Interface
Grounding
Component
Wrapper
Resource Manager Interface Reasoner Interface
Adapter n
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
159
Execution Semantics
WSMT – Web Services Modelling Toolkit
WSMX Managment WSMX Monitor WSML Editor Choreography Editor Mediator Editor
Set of Web Service
descriptions
Service WSMX
expressed in WSML Administration Framework Interface
Service
Requesters sent to adapter. Providers
WSMX Manager
Data and Communication Protocols Adapters
Adapter 1
System Interface
Grounding
Component
Wrapper
Resource Manager Interface Reasoner Interface
Adapter n
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
160
Execution Semantics
Set of Web Service
WSMT – Web Services Modelling Toolkit
descriptions expressed
in requester’s own
WSMX Managment WSMX Monitor WSML Editor Choreography Editor Mediator Editor
format returned to
goal requester.
Service WSMX
Administration Framework Interface
Service
Requesters Providers
WSMX Manager
Data and Communication Protocols Adapters
Adapter 1
System Interface
Grounding
Component
Wrapper
Resource Manager Interface Reasoner Interface
Adapter n
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
161
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
162
Developer
Application
Services
Vertical Services
Services
Base
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
163
Conclusions
• 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
• Growing functionality - developers welcome ☺
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
164
WSMX @ Sourceforge.net
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
165
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
166
WSMT Architecture
Launcher JAR Files Plug-in Descriptions
Core
Communication Component
Receiver Logger
Plug-in 1 …. Plug-in n
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
168
Current Tools
• WSML Editor (v0.4)
• WSMX Data
Mediation
Mapping Tool
(v0.2.2)
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
169
PART V:
Hands-On Session
– demonstration
• Hands-on Session:
– Introduction to Use Case Scenario
– Exercises
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
170
IRS-III:
A framework and platform for
building Semantic Web Services
John Domingue and Liliana Cabral
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
171
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
172
Design Principles
• Ontological separation of User and Web Service
Contexts
• Capability Based Invocation
• Ease of Use
• One Click Publishing
• Agnostic to Service Implementation Platform
• Connected to External Environment
• Open
• Complete Descriptions
• Inspectable
• Interoperable with SWS Frameworks and Platforms
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
173
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
174
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
175
IRS-III Framework
IRS-3 Server
IRS Publisher
Domain Models Lisp
S
IRS Publisher
Web Service Specifications Java
O
+ Registry of Implementors
IRS Publisher
A
Goal Specifications Java WS
+ SOAP Binding
IRS Publisher
P
SOAP
IRS Client
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
176
IRS-III Architecture
Web Service
J Publishing Platforms Java Code
v S SOAP WS Publisher
a Browser
O
Registry
Browser Handler
Publisher OCML
SOAP
Publishing
Clients
A Handler Handler
Invocation
WSMO Library
A
P
Handler
IRS-III Server
Invocation
P LispWeb Server
Client
I OWL(-S) OWL(-S) Handler
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
177
Publishing Platform
Architecture
Publishing
WS Service Registry
Clients Service
SOAP Registrar
SOAP Handler
SOAP Service
Invoker
IRS-III Server
Web Service 1
Web Service 2
Invocation Client Web Service 3
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
178
IRS-III/WSMO differences
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
179
OWL
Translator
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
180
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
181
IRS-III Demo
(including OWL-S Import)
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
182
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
183
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
184
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
185
Valid Relations
• Classes are unary relations
– e.g. (country ?x)
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
186
(kappa (?goal)
(member
(wsmo-role-value
?goal
'has_source_currency)
'(euro pound)))
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
187
Exchange-rate-goal European-exchange-rate-ws
Invocation
Has-source-currency: us-dollars Non-european-exchange-rate-ws
Has-target-currency: pound European-bank-exchange-rate-ws
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
188
Hands-On Session
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
189
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
190
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
191
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
192
Tutorial Setup
IRS Server (3000) Travel
Services
Domain Models (3001) WSMX
Web Service WSMO
Descriptions
+ Registry of Implementors IRS Lisp Publisher
Goal WSMO Descriptions
+ SOAP Binding
IRS-III Knowledge Model
Mediator WSMO Descriptions Browser & Editor
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
193
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
194
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
195
Goals
1- Get train timetable
– Inputs: origin and destination cities (city), date
(date-and-time, e.g. (18 4 2004))
– Output: timetable (string)
2- Book train
– Inputs: passenger name (person), origin and
destination cities, departure time-date (list-date-
and-time, e.g. (20 33 16 15 9 2004))
– Output: booking information (string)
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
196
Services
• 1 service available for goal 1
– No constraints
• 1 wg-mediator mediation-service
– Used to convert time in list format to time in
universal format
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
197
Service constraints
• Services 2-5
– Services for (origin and destination) cities in
determined countries
• Service 4-5
– Need a mediation service to map goal time-date to
service time-date
• Services 6-7
– Services for students or business people in Europe
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
198
2- book-english-train-journey
christoph milton-keynes london (20 33 16 15 9 2004)
"British Rail: CHRISTOPH is booked on the 66 going from MILTON-KEYNES to
LONDON at 16:49, 15, SEPTEMBER 2004. The price is 169 Euros."
3- book-french-train-journey
sinuhe paris lyon (3 4 6 18 8 2004)
"SNCF: SINUHE is booked on the 511 going from PARIS to LYON at 6:12, 18,
AUGUST 2004. The price is 27 Euros."
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
199
5- book-austrian-train-journey
sinuhe vienna innsbruck 3304251200
"Austrian Rail (OBB): SINUHE is booked on the 367 going from VIENNA to
INNSBRUCK at 16:47, 15, SEPTEMBER 2004. The price is 36 Euros. "
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
200
7- book-business-european-train-journey
liliana paris innsbruck (3 4 6 18 8 2004)
"Business Europe: LILIANA is booked on the 461 going from PARIS to
INNSBRUCK at 6:12, 18, AUGUST 2004.
The price is 325 Euros."
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
201
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
202
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
203
Example: Publishing
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
204
Tips
• Order matters for input roles
– Input roles in goal must match order of arguments to function
• Need to specify both input roles and output role
• Be careful with soap binding
– sexpr as default
– String for one line output
– Use xml for multiple line output
• Input roles for web services inherited from goal
• Slot names can not be the same as class names
• Goal <-> web service linking mediator in the capability
used mediators
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
205
Closing, Outlook,
References,
Acknowledgements
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
206
Tutorial Wrap-up
• The targets of the presented tutorial were to:
– understand aims & challenges within Semantic Web Services
– understand Semantic Web Service Frameworks:
• aims, design principles, and paradigms
• ontology elements & description
=> you should now be able to correctly assess emerging technologies &
products for Semantic Web Services and utilize these for your future work
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
207
Beyond WSMO
• Although WSMO (and OWL-S) are the main initiatives
on Semantic Web services, they are not the only ones:
• 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/)
– Standardization Working Group in starting phase
• 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
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
208
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
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
209
References WSMO
• The central location where WSMO work and papers can
be found is WSMO Working Group: http://www.wsmo.org
• WSMO languages
– WSML Working Group http://www.wsml.org
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
211
References WSMO
• [WSMO Specification]: Roman, D.; Lausen, H.; Keller, U. (eds.): Web Service
Modeling Ontology, WSMO Working Draft D2, final version 1.2, 13 April 2005.
• [WSMO Primer]: Feier, C. (ed.): WSMO Primer, WSMO Working Draft D3.1, 18
February 2005.
• [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.
• [WSML] de Bruijn, J. (Ed.): The WSML Specification, WSML Working Draft D16,
03 February 2005.
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
212
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
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
213
References
Overview
• 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.
• Tim Berners-Lee, James Hendler, and Ora Lassila, “The Semantic Web”.
Scientific American, 284(5):34-43, 2001.
• 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
• Dieter Fensel, “Ontologies: Silver Bullet for Knowledge Management and
Electronic Commerce”, Springer-Verlag, Berlin, 2001.
• Stollberg, M.; Feier, C.; Roman, D.; Fensel, D.: Semantic Web Services –
Concepts and Technology. In Proceedings of the EUROLAN Summer
School, 2005 (to appear).
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
214
References
Ontology & Languages
• [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
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
215
References
Discovery
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
Herzog, R.; Lausen, H.; Roman, D.; Zugmann, P.: WSMO Registry. WSMO Working
Draft D10 v0.1, 26 April 2004.
Keller, U.; Lara, R.; Polleres, A. (Eds): WSMO Web Service Discovery. WSML
Working Draft D5.1, 12 Nov 2004.
Keller, U.; Lara, R.; Lausen, H.; Polleres, A.; Fensel, D.: Automatic Location of
Services. In Proc. of the 2nd European Semantic Web Symposium (ESWS2005),
Heraklion, Crete, 2005.
M. Kifer, R. Lara, A. Polleres, C. Zhao, U. Keller, H. Lausen and D. Fensel: A Logical
Framework for Web Service Discovery. Proc. 1st. Intl. Workshop SWS'2004 at
ISWC 2004,Hiroshima, Japan, November 8, 2004, CEUR Workshop Proceedings,
ISSN 1613-0073
Lara, R., Lausen, H.; Toma, I.: (Eds): WSMX Discovery. WSMX Working Draft D10
v0.2, 07 March 2005.
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.
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
216
References
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
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
Preist, C.: A Conceptual Architecture for Semantic Web Services. In Proceedings
of the 3rd International Semantic Web Conference (ISWC 2004), 2004, pp. 395 -
409.
Stollberg, M.; Keller, U.; Fensel. D.: Partner and Service Discovery for
Collaboration on the Semantic Web. Proc. 3rd Intl. Conference on Web
Services (ICWS 2005), Orlando, Florida, July 2005.
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
217
References
Choreography, Orchestration, Mediation
[WSMO Service Interfaces Description]: Roman, D.; Scicluna, J.; Feier, C. (eds.):
Ontology-based Choreography and Orchestration for WSMO Web Services,
WSMO Working Draft D14, final version 0.1, 1 March 2005.
[WSMO Mediators]: Scharffe, F. (ed.): WSMO Mediators, WSMO Working Draft
D29, 24 June 2005.
[WSMX Data Mediation]: Mocan, A. (ed.): WSMX Data Mediation, WSMX Working
Draft D13.3, 16 May 2005.
[WSMO Process Mediation]: Cimpian, E.; Mocan, A. (ed.): Process Mediation in
WSMX, WSMX Working Draft D13.7, 16 May 2005.
Stollberg, M.: Reasoning Tasks and Mediation on Choreography and Orchestration in
WSMO. In Proceedings of the 2nd International WSMO Implementation Workshop (WIW
2005), Innsbruck, Austria, 2005.
de Bruijn, J. and Polleres, A.. Towards an Ontology Mapping Specification Language for the
Semantic Web. DERI Technical Report 2004-06-30, 2004.
Cimpian, E. and Mocan, A. WSMX Process Mediation Based on Choreographies. In
Proceedings of the 1st International Workshop on Web Service Choreography and
Orchestration for Business Process Management at the BPM 2005, Nancy, France, 2005
Michael Altenhofen, Egon Börger and Jens Lemcke: An Execution Semantics for Mediation
Patterns. In Proceedings of the 2nd International WSMO Implementation Workshop (WIW
2005), Innsbruck, Austria, 2005.
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
218
References WSMX
• The central location where WSMX work, papers, and software can be
found is the WSMX working group homepage: http://www.wsmx.org.
• The main documents are:
– Conceptual Model (http://www.wsmo.org/2004/d13/d13.1/v0.3/)
– Architecture (http://www.wsmo.org/TR/d13/d13.4/v0.2/)
– Implementation: open source at http://sourceforge.net/projects/wsmx
– Documentation (http://www.wsmo.org/TR/d22/v0.2/)
– Execution Semantics (http://www.wsmo.org/TR/d13/d13.2/)
– WSMX Toolkit (http://www.wsmo.org/TR/d9/d9.1/v0.2/)
• Further Readings:
Bussler, C. (2003): B2B Integration. Berlin, Heidelberg: Springer.
Haselwanter, T.; Zaremba, Ma.., Zaremba Mi.: Enabling Components
Management and Executions Semantics in WSMX. In Proceedings of the
2nd International WSMO Implementation Workshop (WIW 2005),
Innsbruck, Austria, June 2005.
Zaremba, M. and Bussler, C.: Towards Dynamic Execution Semantics in
Semantic Web Services. In Proceedings of the WWW 2005 Workshop on
Web Service Semantics: Towards Dynamic Business Integration, 2005.
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
219
• 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.
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005
220
Acknowledgements
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 Austrian
government under the FIT-IT program.
5th Internation Conference on Web Engineering (ICWE 2005), Sydney, Australia, July 2005