This document is also available in non-normative PDF version. The intent of the document is to be submitted to a standarization body.
This document presents an ontology called Web Service Modeling Ontology (WSMO) for describing various aspects related to Semantic Web Service. Having the Web Service Modeling Framework (WSMF) as a starting point, we refine this framework and develop a formal ontology and language.
WSMF [Fensel & Bussler, 2002] consists of four different main elements for describing semantic web services (see Figure 1): ontologies that provide the terminology used by other elements, goals that define the problems that should be solved by web services, web services descriptions that define various aspects of a web service, and mediators which bypass interpretability problems.
| Figure 1. The main elements of WSMF |
![]() |
This document presents an ontology called Web Service Modeling Ontology (WSMO) for describing various aspects related to Semantic Web Service. Having the Web Service Modeling Framework (WSMF) as a starting point, we refine this framework and develop a formal ontology and language.
Section 2 presents global issues related to various elements that are considered in WSMO. Following the philosophy of WSMF, we further define in the next sections the ontologies (Section 3), goals (Section 4), mediators (Section 5) and web service (Section 6). In Section 7 we define the syntax of the logical language that is used in WSMO. The semantics and computationally tractable subsets of this logical language are defined and discussed by the WSML working group. Section 8 presents our conclusions and further directions.
For a brief tutorial on WSMO we refer to the WSMO Primer [Arroyo & Stollberg, 2004] and for a non-trivial use case demonstrating how to use WSMO in a real-world setting we refer to the WSMO Use Case Modeling and Testing [Stollberg et al., 2004].
Besides the WSMO working group there are two more working groups related to the WSMO initiative: The WSML working group focusing on language issues and developing a adequate Web Service Modeling Language with various sublanguages as well the WSMX working group that is concerned with designing and building a reference implementation of an execution environment for WSMO.
This section addresses issues that concern all subsequent sections, it is especially concerned with compliance to current web standards.
The vocabulary is fully extensible, being based on URIs with optional fragment identifiers (URI references, or URIrefs) [Berners-Lee et al, 1998]. URI references are used for naming all kinds of things in WSMO. Subsequent we allow the use of namespace abbreviations and its declaration.
The default namespace for the listings in this document is wsmo: http://www.wsmo.org/2004/d2/. Furthermore this document assumes the following namespace declarations:
In the remainder of this document the above prefixes denote the correspondingly defined URIs.
WSMO distinguishes 4 kinds of identifiers: URI references, literals, anonymous Ids and variable names.
In order to explicitly distinguish full URIs syntactically from QNames, we always use angle brackets to envelope full URIs, e.g. <http://www.wsmo.org/2004/d2>.
<, > and function symbols like
+ or -. These special relations and functions
are discussed in Section 2.3 as so called
build-ins for datatypes.
Syntactically, in WSMO literals always start and ends with double quotes, e.g. "WSMO working group" or "http://www.wsmo.org/2004/d2". This allows to syntactically distinguish between URIs and literals. Typed literals are literals that follow above convention followed by "^^" and the datatype URI, e.g. "1"^^xsd:integer. For convenience, we allow additionally syntactic shortcuts such as 42 for "42"^^xsd:integer, 4.2 for "4.2"^^xsd:float. I.e., a number x without decimal point is by default assumed to stand short for "x"^^xsd:integer and a number with decimal point x.y is by default assumed to stand short for "x.y"^^xsd:float.
_#1, _#2, ...) or
unnumbered (_#). Anonymous Ids represent Identifier. The
same numbered Anonymous Id represents the same Identifier within the
same scope (logicalExpression), otherwise Anonymous Ids
represent different Identifiers [Yang & Kifer,
2003]. Anonymous Ids can be used to denote objects that exists, but
don't need a specific identifier (e.g. if someone wants to say that a
Person John has an address _# which itself has a street name
"hitchhikerstreet" and a street number "42", then the object of the
address itself does not need a particular URI, but since it must exist
as connecting object between John and "hitchhikersstreet", "42" we can
denote it with an Anonymous Id).
The concept of anonymous IDs is similar to blank nodes in RDF [Hayes, 2004], however there are some differences. Blank Nodes are essentially existential quantified variables, where the quantifier has the scope of one document. RDF defines different strategies for the union of two documents (merge and union), whereas the scope of one anonymous ID is a logical expression and the semantics of anonymous ids do not require different strategies for a union of two documents respectively two logical expressions. Furthermore Anonymous IDs are not existentially quantified variables, but distinct constants. This allows two flavors of entailment: Strict and Relaxed, where the relaxed entailment is equivalent to the behavior of blank nodes and the strict entailment allows an easier treatment wrt. implementation.
?', followed by any positive number of symbols in
{a-z, A-Z, 0-9, _, -}, i.e. ?var or
?lastValue_Of.In this section we discuss the role of datatypes and build-in operators that accommodate them. As WSMO is aligning with current web standards, we define the initial set of datatypes according to the primitive XML Schema data types.
Note: In opposite to [Hayes, 2004] we do allow
xsd:duration and recommend to use it as defined in Annex D.6
of [Malhotra et al., 2004].
In addition to data type URIs that denote XML Schema primitive datatypes, we do allow XML Schema simple types and XML Schema derived datatypes. The interpretation of all datatypes is external to the language and done by a data type oracle.
This section describes in an informal way the meaning of the keywords marked with bold in the listings contained in this document; they are used for describing WSMO elements and their properties:
We classify non functional properties in two categories: core properties and web service specific properties.
The core properties can be used for all the modeling elements of WSMO.
They consist of the Dublin Core
Metadata Element Set [Weibel et al., 1998] plus the
version element. We do not enforce restrictions on the range
value type (and this also omit the range restriction in the following
listings) but in some cases provide additional recommendations. In case that
no WSMO recommendation is given, the Dublin Core rules apply as a default:
entity nonFunctionalProperties
dc:title
dc:creator
dc:subject
dc:description
dc:publisher
dc:contributor
dc:date
dc:type
dc:format
dc:identifier
dc:source
dc:language
dc:relation
dc:coverage
dc:rights
version
|
dc:title will be
a name by which the element is formally known.dc:creator include a person, an
organization, or a service. The Dublin Core specification recommends,
that typically, the name of a dc:creator should be used to
indicate the entity.foaf:Agent as value type [Brickley &
Miller, 2004].dc:subject will be expressed as keywords, key phrases or
classification codes that describe a topic of the element. Recommended
best practice is to select a value from a controlled vocabulary or
formal classification scheme.dc:description include, but are not limited to: an
abstract, table of contents, reference to a graphical representation of
content or a free-text account of the content.dc:publisher include a person, an organization, or a
service. The Dublin Core specification recommends, that typically, the
name of a dc:publisher should be used to indicate the
entity.foaf:Agent as value type [Brickley &
Miller, 2004].dc:contributor include a person, an
organization, or a service. The Dublin Core specification recommends,
that typically, the name of a dc:contributor should be
used to indicate the entity.foaf:Agent as value type [Brickley &
Miller, 2004].dc:date will be associated with the creation or
availability of the element.dc:type includes terms describing general categories,
functions, genres, or aggregation levels for content.dc:format may include the media-type or dimensions of the
element. Format may be used to identify the software, hardware, or
other equipment needed to display or operate the element. Examples of
dimensions include size and duration.dc:identifier in order to allow Dublin Core meta data
aware applications the processing of that information.dc:source
element in whole or in part. Recommended best practice is to identify
the referenced element by means of a string or number conforming to a
formal identification system.dc:coverage will include spatial location (a place name or
geographic coordinates), temporal period (a period label, date, or date
range) or jurisdiction (such as a named administrative entity).dc:rights will contain a rights management statement for
the element, or reference a service providing such information. Rights
information often encompasses Intellectual Property Rights (IPR),
Copyright, and various Property Rights. If the Rights element is
absent, no assumptions may be made about any rights held in or over the
element.Besides the core properties described in the previous section, the web service specific non functional properties also include properties related to the quality aspect of a web service (QoS):
entity wsNonFunctionalProperties subEntityOf nonFunctionalProperties
accuracy
financial
networkRelatedQoS
performance
reliability
robustness
scalability
security
transactional
trust
|
Further discussions on service specific
nonFunctionalProperties that can be used during the service life
cycle can be found in [O`Sullivan et al., 2002]. In
conclusion, the web service specific non functional properties extend the
common core properties (in Section
2.5.1) especially by quality of service aspects. Nonetheless, the model
is extensible and more (even application-domain specific) aspects could be
added.
In WSMO Ontologies are the key to link conceptual real world semantics defined and agreed upon by communities of users. An ontology is a formal explicit specification of a shared conceptualization [Gruber, 1993]. From this rather conceptual definition we want to extract the essential components which define an ontology. Ontologies define a common agreed upon terminology by providing concepts and relationships among the set of concepts. In order to capture semantic properties of relations and concepts, an ontology generally also provides a set of axioms, which means expressions in some logical framework. An ontology is defined as follows:
entity ontology
nonFunctionalProperties ofType nonFunctionalProperties
importOntologies ofTypeSet ontology
usedMediators ofTypeSet ooMediator
concepts ofTypeSet concept
relations ofTypeSet relation
functions ofTypeSet function
instances ofTypeSet instance
axioms ofTypeSet axiom
|
The nonFunctionalProperties of an ontology consist of the
core properties described in Section
2.5.1.
Building an ontology for some particular problem domain can be a rather
cumbersome and complex task. One standard way to deal with the complexity is
modularization. ImportOntologies allow a modular approach for
ontology design; this simplified statement can be used as long as no
conflicts need to be resolved, otherwise an ooMediator needs to
be used.
When importing ontologies, most likely some steps for aligning, merging
and transforming imported ontologies have to be performed. For this reason
and in line with the basic design principles underlying the WSMF, ontology
mediators (ooMediator) are used when an alignment of the
imported ontology is necessary. Mediators are described in Section 5 in more detail.
Concepts constitute the basic elements of the agreed terminology for some problem domain. From a high level perspective, a concept – described by a concept definition – provides attributes with names and types. Furthermore, a concept can be a subconcept of several (possibly none) direct superconcepts as specified by the "isA"-relation.
entity concept
nonFunctionalProperties ofType nonFunctionalProperties
subConceptOf ofTypeSet concept
attributes ofTypeSet attribute
definedBy ofType logicalExpression
|
nonFunctionalProperties of a concept consist of the
core properties described in the Section 2.5.1.subConceptOf some
other concept in particular means that a concept inherits the signature
of this superconcept and the corresponding constraints. Furthermore,
all instances of a concept are also instances of each of its
superconcepts.attributes that represent named slots for data values for
instances that have to be filled at the instance level. An attribute
specifies a slot of a concept by fixing the name of the slot as well as
a logical constraint on the possible values filling that slot. Hence,
this logical expression can be interpreted as a typing constraint.
entity attribute nonFunctionalProperties ofType nonFunctionalProperties range ofType concept |
nonFunctionalProperties of an
attribute consist of the core properties described
in the Section
2.5.1.concept that serves as an integrity constraint
on the values of the attribute.forAll ?x ( ?x memberOf C implies l-expr(?x) )forAll ?x ( ?x memberOf C impliedBy l-expr(?x) )forAll ?x ( ?x memberOf C equivalent l-expr(?x) )
where l-expr(?x) is a logical expression with precisely
one free variable ?x.
In the first case, one gives a necessary condition for membership in the extension of the concept; in the second case, one gives a sufficient condition and in the third case, we have a sufficient and necessary condition for an object being an element of the extension of the concept.
Relations are used in order to model interdependencies
between several concepts (respectively instances of these concepts).
entity relation
nonFunctionalProperties ofType nonFunctionalProperties
superRelations ofTypeSet relation
parameters ofTypeSet parameter
definedBy ofType logicalExpression
|
nonFunctionalProperties of a relation consist of the
core properties described in the Section 2.5.1.relations of which the defined relation
is declared as being a subrelation. Being a subrelation of some other
relation in particular means that the relation inherits the signature
of this superrelation and the corresponding constraints. Furthermore,
the set of tuples belonging to the relation (the extension of the
relation, resp.) is a subset of each of the extensions of the
superrelations.entity parameter
domain ofType concept
|
nonFunctionalProperties of a
parameter consist of the core properties described
in the Section
2.5.1.concept constraining the possible values that
the parameter can take.logicalExpression (see Section 7) defining the set of instances
(n-ary tuples, if n is the arity of the relation) of the relation. The
relation is represented by a n-ary predicate symbol with named
arguments (see Section 7) (where n is
the number of parameters of the relation) where the identifier of the
relation is used as the name of the relation symbol.
If R is the identifier denoting the relation then the logical expression takes one of the following forms
forAll ?v1,...,?vn ( R[p1 hasValue ?v1,...,pn hasValue ?vn]
implies l-expr(?v1,...,?vn) )forAll ?v1,...,?vn ( R[p1 hasValue ?v1,...,pn hasValue ?vn]
impliedBy l-expr(?v1,...,?vn) )forAll ?v1,...,?vn ( R[p1 hasValue ?v1,...,pn hasValue ?vn]
equivalent l-expr(?v1,...,?vn) )
where l-expr(?v1,...,?vn) is a logical expression with
precisely ?v1,...,?vn as its free variables and
p1,...,pn are the names of the parameters of the
relation.
In the first case, one gives a necessary condition for instances
?v1,...,?vn to be related; in the second case, one gives a
sufficient condition and in the third case, we have a sufficient and
necessary condition for instances ?v1,...,?vn being
related.
A function is a special relation, with a unary range and a
n-ary domain (parameters inherited from relation),
where the range specifies the return value. In contrast to a function symbol,
a function is not only a syntactical entity but has some semantics that
allows to actually evaluate the function if one considers concrete input
values for the parameters of the function. That means, that we actually can
replace the (ground) function term in some expression by its concrete value.
Function can be used for instance to represent and exploit built-in
predicates of common datatypes. Their semantics can be captured externally by
means of an oracle or it can be formalized by assigning a logical expression
to the definedBy property inherited from
relation.
entity function subEntityOf relation
range ofType concept
|
concept constraining the possible return values of the
function.The logical representation of a function is almost the same as for
relations, whereby the result value of a function (resp. the value of a
function term) has to be represented explicitly: the function is represented
by an (n+1)-ary predicate symbol with named arguments (see Section 7) (where n is the number of arguments
of the function) where the identifier of the function is used as the name of
the predicate. In particular, the names of the parameters of the
corresponding relation symbol are the names of the parameters of the function
as well as one additional parameter result for denoting the
value of the function term with the given parameter values.
If F is the identifier denoting the function and p1,...,pn is the set of
parameters of the function then the logical expression for defining the
semantics of the function (inherited from relation) can for
example take the form
forAll ?v1,...,?vn,?res ( F[p1 hasValue
?v1,...,pn hasValue ?vn, result hasValue ?res] equivalent
l-expr(?v1,...,?vn,?res) )
where l-expr(?v1,...,?vn,?res) is a logical expression with
precisely ?v1,...,?vn,?res as its free variables
and p1,...,pn are the names of the parameters of the function.
Clearly, result may not be used as the name for a parameter of a
function in order to prevent ambiguities.
Instances are either defined explicitly or by a link to an
instance store, i.e., an external storage of instances and their values.
An explicit definition of instances of concepts is as follows:
entity instance
nonFunctionalProperties ofType nonFunctionalProperties
instanceOf ofType concept
attributeValues ofTypeSet attributeValue
|
nonFunctionalProperties of an instance
consist of the core properties described in the Section 2.5.1.concept to which the instance belongs to.attributeValues for the single attributes defined in
the concept. For each attribute defined for the concept
this instance is assigned to there should be a corresponding attribute
value. These value have to be compatible with the corresponding type
declaration in the concept definition.
entity attributeValue
nonFunctionalProperties ofType nonFunctionalProperties
value ofType {instance, URIRefernce, Literal, AnonymousId}
|
nonFunctionalProperties of an
attributeValue consist of the core properties
described in the Section
2.5.1.Instances of relations (with arity n) can be seen as n-tuples of instances of the concepts which are specified as the parameters of the relation. Thus we use the following definition for instances of relations:
entity relationInstance
nonFunctionalProperties ofType nonFunctionalProperties
instanceOf ofType relation
relatedInstances ofTypeSet parameterValue
|
nonFunctionalProperties of a
relationInstance consist of the core properties described
in the Section 2.5.1.relation this instance belongs to.parameterValues specifying the
single instances that are related according to this relation instance.
The list of parameter values of the instance has to be compatible wrt.
names and range constraints of that are specified in the corresponding
relation.A detailed discussion and a concrete proposal on how to integrate large sets of instance data in an ontology model can be found in DIP Deliverable D2.2 [Kiryakov et. al., 2004]. Basically, the approach there is to integrate large sets of instances which are already existing on some storage devices by means of sending queries to external storage devices or oracles.
An axiom is considered to be a logical expression together
with its non functional properties.
entity axiom
nonFunctionalProperties ofType nonFunctionalProperties
definedBy ofType logicalExpression
|
nonFunctionalProperties of an axiom consist of the
core properties described in Section 2.5.1.In this section, we introduce the notion of goals and define
the elements that are used in the description of a goal. A Goal is defined as
follows:
entity goal
nonFunctionalProperties ofType nonFunctionalProperties
importOntologies ofTypeSet ontology
usedMediators ofTypeSet {ooMediator, ggMediator}
postConditions ofTypeSet axiom
effects ofTypeSet axiom
|
nonFunctionalProperties of a goal consist of the
core properties described in the Section 2.5.1.ooMediators) when steps for aligning, merging and
transforming imported ontologies are needed. A goal may be defined by
reusing one or several already existing goals. This is achieved by
using goal mediators (ggMediators). For a detailed account
on mediators we refer to Section 5.PostConditions in WSMO describe the state of the
information space that is desired. Effects describe the state of the world that is
desired.In this section, we introduce the notion of mediators and
define the elements that are used in the description of a mediator.
We distinguish four different types of mediators :
ggMediators: mediators that link two goals. This link
represents the refinement of the source goal into the target goal.ooMediators: mediators that import ontologies and resolve
possible representation mismatches between ontologies.wgMediators: mediators that link web service to goals.
They explicitly may state the difference between the two entities and map
different vocabularies (through the use of ooMediators).wwMediators: mediators linking two Web Services.
The mediator is defined as follows:
entity mediator
nonFunctionalProperties ofType nonFunctionalProperties
importOntologies ofTypeSet ontology
source ofTypeSet {ontology, goal, webService, mediator}
target ofType {ontology, goal, webService, mediator}
mediationService ofType {goal, webService, wwMediator}
entity ooMediator subEntityOf mediator
source ofTypeSet {ontology, ooMediator}
entity ggMediator subEntityOf mediator
usedMediators ofTypeSet ooMediator
source ofTypeSet {goal, ggMediator}
target ofType {goal, ggMediator}
entity wgMediator subEntityOf mediator
usedMediators ofTypeSet ooMediator
source ofType {webService, wgMediator}
target ofType {goal, ggMediator}
entity wwMediator subEntityOf mediator
usedMediators ofTypeSet ooMediator
source ofType {webService, wwMediator}
target ofType {webService, wwMediator}
|
mediationService points to a goal that declarative
describes the mapping or to a web service that actually implements the
mapping or to a wwMediator that links to a web service
that actually implements the mapping.ggMediator,
wgMediator and wwMediator, use a set of
ooMediators in order to map between different vocabularies
used in the description of goals and web service capabilities and align
different heterogeneous ontologies.
Notice that there are two principled ways of relating mediators with other
entities in the WSMO model: (1) an entity can specify a relation with a
mediator through the usedMediators attribute and (2) entities
can be related with mediators through the source and target attributes of the
mediator. We expect cases in which a mediator needs to be referenced directly
from an entity, for example for importing a particular ontology necessary for
the descriptions in the entity. We also expect cases in which not the
definition of the entity itself, but rather the use of entities in a
particular scenario (e.g. web service invocation) requires the use of
mediators. In such a case, a mediator needs to be selected, which provides
mediation services between these particular entities. WSMO does not prescribe
the type of use of mediators and therefore provides maximal flexibility in
the use of mediators and thus allows for loose coupling between web services,
goals and ontologies.
In this section we identify the concepts needed for describing various
aspects of a web service. The following properties of a web service are
considered: namespaces, nonFunctionalProperties,
importOntologies, usedMediators,
capability and interfaces.
entity webService
nonFunctionalProperties ofType wsNonFunctionalProperties
importOntologies ofTypeSet ontology
usedMediators ofTypeSet ooMediator
capability ofType capability
interfaces ofTypeSet interface
|
nonFunctionalProperties of a web service are
described in Section
2.5.2.ooMediators) when steps for aligning, merging and
transforming imported ontologies are needed.capability of a web service is described in Section 6.1.interfaces of a web service are described in Section 6.2.A capability defines the web service by means of its
functionality.
entity capability
nonFunctionalProperties ofType nonFunctionalProperties
importOntologies ofTypeSet ontology
usedMediators ofTypeSet {ooMediator, wgMediator}
preconditions ofTypeSet axiom
assumptions ofTypeSet axiom
postconditions ofTypeSet axiom
effects ofTypeSet axiom
|
nonFunctionalProperties of a capability consist of
the core properties described in the Section 2.5.1.ooMediators) when steps for aligning, merging and
transforming imported ontologies are needed. It can be linked to a goal
using a wgMediator.PreConditions in WSMO describe what a web service
expects for enabling it to provide its service. In other words, they
constrain the set of states of the information space such that each
state satisfying these constraints can serve as a valid starting state
(in the information space) for executing the service in a defined
manner.Assumptions in WSMO describe the expectation of the
service on the state of the world when starting an execution of the
service. The service guarantees the declared functionality only if it
is started in such a state. Thus, the assumptions constrain the set of
states of the world to the set of valid staring states.PostConditions in WSMO describe the states of the
information space that must be reached by executing the service.Effects describe the state of the world that must to be
reached by executing the service.An interface describes how the functionality of the service
can be achieved (i.e. how the capability of a service can be
fulfilled) by providing a twofold view on the operational competence of the
service:
choreography decomposes a capability in terms of
interaction with the service (service user's view)orchestration decomposes a capability in terms of
functionality required from other services (other service providers'
view)This distinction reflects the difference between communication and
cooperation. The choreography defines how to communicate with
the web service in order to consume its functionality. The
orchestration defines how the overall functionality is achieved
by the cooperation of more elementary service providers.
An interface is defined by the following properties:
entity interface
nonFunctionalProperties ofType nonFunctionalProperties
importOntologies ofTypeSet ontology
usedMediators ofTypeSet ooMediator
choreography ofType choreography
orchestration ofType orchestration
|
nonFunctionalProperties of an interface consist of
the core properties described in the Section 2.5.1.ooMediators) when steps for aligning, merging and
transforming imported ontologies are needed.Choreography provides the necessary information for the
user to communicate with the web service (i.e. it describes how the
service works and how to access the service from the user's
perspective).Orchestration describes how the service works from the
provider's perspective (i.e. how a service makes use of other web
service or goals in order to achieve its capability).The distinction between choreography and
orchestration [1] should be considered in
the context of the role the service is playing in a conversation: provider or
requester. In case the service acts as a provider, the way of interacting
with it is specified in its choreography. If the service acts as a requester,
requesting functionalities of different services, then
are specified in the orchestration of the service.
As the major component of axiom, logical expressions are used
almost everywhere in the WSMO model to capture specific nuances of meaning of
modeling elements or their constituent parts in a formal and unambiguous way.
In the following, we give a definition of the syntax of the formal language
that is used for specifying logicalExpressions. The semantics of
this language will be defined formally by the WSML working group in a
separate document. However, we explain the semantics of the language briefly
on an informal level.
The language defines here basically is a first-order language, similar to First-order Logics [Enderton, 1972] and Frame Logic (F-Logic, resp.) [Kifer et al., 1995]. In particular, we exploit the advanced object-oriented modeling constructs of F-Logic and reflect these constructs in our language.
Other languages in WSML may introduce additional language constructs and/or restrict the use of the ones defined here. For instance, some language variants in WSML could introduce new versions of negation and predefined properties for binary predicates like transitivity or symmetry, or the use of quantifiers and variables could be restricted.
We start with the definition of the basic vocabulary for building logical expression. Then we define the set of terms and the most basic formulas (atomic formulae, resp.) which allows us to eventually define the set of logical expressions.
Let URI be the set of all valid uniform resource identifiers. This set will be used for the naming (or identifying, resp.) various entities in a WSMO description.
Definition 1. The vocabulary V of our language L(V) consists of the following symbols:
(, ), ofType, ofTypeSet,
memberOf, subConceptOf, hasValue,
hasValues, false, true.or,
and, not,
implies,impliedBy, equivalent ,
forAll, exists.As usual, 0-ary function symbols are called constants. 0-ary predicate symbols correspond to propositional variables in classical propositional logic.
Definition 2. Given a vocabulary V, we can define the set of terms Term(V) (over vocabulary V) as follows:
u in URI is a term in
Term(V).q in QN is a term in
Term(V).i in AnID is a term in
Term(V).l in Lit is a term in
Term(V).v in Var is a term in
Term(V).f is a function symbol from FSym with arity(f)
= n and t1, ..., tn are terms, then f(t1, ...,
tn) is a term in Term(V).As usual, the set of ground terms GroundTerm(V) is the subset of terms in Term(V) which do not contain any variables.
Terms can be used in general to describe computations (in some domain). One important additional interpretation of terms is that they denote objects in some universe and thus provide names for entities in some domain of discourse.
We extend this definition to the set of (complex) logical expressions (or formulae, resp.) L(V) (over vocabulary V) as follows:
Definition 3. A simple logical expression in L(V) (or atomic formula) is inductively defined by
p is a predicate symbol in PSym with arity(p)
= n and t1, ..., tn are terms, then p(t1, ...,
tn) is a simple logical expression in L(V) .r is a predicate symbol with named arguments in
PSymNamed with arity(p) = n, parNames(r) = {p1,
...,pn} and t1, ...,tn are terms, then R[p1
hasValue t1, ..., pn hasValue tn] is a simple logical expression
in L(V) .true and false are simple logical expression
in L(V).P, ATT, T are terms in
Term(V), then P[ATT ofType T] is a simple logical
expression in L(V) .P, ATT,
T1,...,Tn (where n >= 1) are terms in
Term(V), then P[ATT ofTypeSet (T1,...,Tn)] is a
simple logical expression in L(V).O, T are terms in Term(V), then
O memberOf T is a simple logical expression in
L(V).C1,C2 are terms in Term(V), then
C1 subConceptOf C2 is a simple
logical expression in L(V).O, V, ATT are terms in
Term(V), then O[ATT hasValue V] is a simple logical
expression in L(V).O, V1,...,Vn,
ATT (where n >=1) are terms in Term(V), then
O[ATT hasValues {V1,...,Vn}] is a simple logical expression
in L(V).T1 and T2 are terms in Term(V),
then T1 = T2 is a simple logical expression in
L(V).The intuitive semantics for simple logical expressions (wrt. an interpretation) is as follows:
C[ATT ofType T] defines a constraint on the
possible values that instances of class C may take for property
ATT to values of type T. Thus, this is
expression is a signature expression.C[ATT ofTypeSet
(T1,...Tn)]. It defines a constraint on the possible
values that instances of class C may take for property
ATT to values of types T1, .., Tn. That means all values of
all the specified types are allowed as values for the property
ATT.O memberOf T is true, iff element O is an
instance of type T, that means the element denoted by
O is a member of the extension of type T.C1 subConceptOf C2is true iff
concept C1 is a subconcept of concept C2, that
means the extension of concept C1 is a subset of the
extension of concept C2.O[ATT hasValue V] is true if the
element denoted by O takes value V under
property ATT.O[ATT
hasValues {V1,...,Vn}]: The expression holds if the set of values
that the element O takes for property ATT
includes all the values V1,...Vn. That means the set of
values of O for property ATT is a superset of
the set {V1, ..., Vn}.T1 = T2 is true, if both terms T1 and
T1 denote the same element of the universe.Definition 4. Definition 3 is extended to complex logical expressions in L(V) as follows
L is a logical expression in L(V) , then
not L is a logical expression in L(V).L1 and L2 are logical expressions in
L(V) and op is one of the logical connectives in {
or,and,implies,
impliedBy, equivalent }, then L1 op L2 is a logical
expression in L(V).L is a logical expression in L(V),
x is a variable from Var and Q is a
quantor in { forAll, exists }, then Qx(L) is a
logical expression in L(V).The intuitive semantics for complex logical expressions (wrt. to in interpretation) is as follows:
or,and,implies, equivalent,
impliedBy denote the common disjunction, conjunction,
implication, equivalence and backward implication of logical
expressionsforAll x (L) is true iff L holds for all possible
assignments of x with an element of the universe.exists x (L) is true iff there is an assignment of x with
an element of the universe such that L holds.Notational conventions:
There is a precedence order defined for the logical connectives as
follows, where op1 < op2 means
that op2 binds stronger than op1:
implies , equivalent
,impliedBy< or
, and <
not.
The precedence order can be exploited when writing logical expressions in order to prevent from extensive use of parenthesis. In case that there are ambiguities in evaluating an expression, parenthesis must be used to resolve the ambiguities.
The terms O[ATT ofTypeSet (T)] and O[ATT hasValues
{V}] (that means for the case n = 1 in the respective clauses above)
can be written simpler by omitting the parenthesis.
A logical expression of the form false impliedBy L (commonly
used in Logic Programming system for defining integrity constraints) can be
written using the following syntactical shortcut: constraint
L.
We allow the following syntactic composition of atomic formulas as a
syntactic abbreviation for two separate atomic formulas: C1
subConceptOf C2 and C1[ATT op V] can be syntactically
combined to C1[ATT op V] subConceptOf C2. Additionally, for the
sake of backwards compatibility with F-Logic, we as well allow the following
notation for the combination of the two atomic formulae: C1
subConceptOf C2 [ATT op V]. Both abbreviations stand for the set of
the two single atomic formulae. The first abbreviation is considered to be
the standard abbreviation for combining these two kinds of atomics
formulae.
Furthermore, we allow path expressions as a syntactical shortcut for
navigation related expressions: p.q stands for the element which
can be reached by navigating from p via property q.The property q has to be a
non-set-valued property (hasValue). For navigation over
set-valued properties (hasValues), we use a different expression
p..q . Such path expressions can be used like a term wherever a
term is expected in a logical expression.
Note: Note that this definition for our language L(V) is extensible by extending the basic vocabulary V. In this way, the language for expressing logical expressions can be customized to the needs of some application domain.
Semantically, the various modeling elements of ontologies can be represented as follows: concepts can be represented as terms, relations as predicates with named arguments, functions as predicates with named arguments, instances as terms and axioms as logical expressions.
This document presented the Web Service Modeling Ontology (WSMO) for describing several aspects related to web services, by refining the Web Service Modeling Framework (WSMF). The definition of the missing elements (choreography and orchestration) will be provided in separate deliverables of the WSMO working group.
[Arroyo & Stollberg, 2004] S. Arroyo and M. Stollberg (Eds.): WSMO Primer, WSMO Deliverable D3.1, DERI Working Draft, 2004, latest version available at http://www.wsmo.org/2004/d3/d3.1/.
[Baader et al., 2003] F. Baader, D. Calvanese, and D. McGuinness: The Description Logic Handbook, Cambridge University Press, 2003.
[Berglund et al, 2004] A Berglund, S. Boag, D. Chamberlin, M.F. Fernández, M. Kay, J. Robie, J. Siméon (Eds.): XML Path Language (XPath) 2.0, W3C Working Draft 23 July 2004, available at http://www.w3.org/TR/xpath20/.
[Berners-Lee et al, 1998] T. Berners-Lee, R. Fielding, and L. Masinter: RFC 2396 - Uniform Resource Identifiers (URI): Generic Syntax, IETF, August 1998, available at http://www.isi.edu/in-notes/rfc2396.txt.
[Biron & Malhotra, 2001] P. V. Biron and A. Malhotra: XML Schema Part 2: Datatypes, W3C Recommendation 02, 2001, avaliable at: http://www.w3.org/TR/xmlschema-2/.
[Bray et al., 1999] T. Bray, D. Hollander, and A. Layman (Eds.): Namespaces in XML, W3C Recommendation REC-xml-names-19990114, 1999, available at: http://www.w3.org/TR/REC-xml-names/.
[Brickley & Miller, 2004] D. Brickley and L. Miller: FOAF Vocabulary Specification, available at: http://xmlns.com/foaf/0.1/.
[Dean et al., 2004] M. Dean, G. Schreiber, S. Bechhofer, F. van Harmelen, J. Hendler, I. Horrocks, D. L. McGuinness, P. F. Patel-Schneider, and L. A. Stein: OWL Web Ontology Language Reference, W3C Recommendation, 10 February 2004. Available at http://www.w3.org/TR/2004/REC-owl-ref-20040210/.
[Enderton, 1972] H.B. Enderton: A Mathematical Introduction to Logic, Academic Press, 1972.
[Fensel & Bussler, 2002] D. Fensel and C. Bussler: The Web Service Modeling Framework WSMF, Electronic Commerce Research and Applications, 1(2), 2002.
[Gruber, 1993] T. Gruber: A translation approach to portable ontology specifications,Knowledge Acquisition, 5:199-220, 1993.
[Hayes, 2004] P. Hayes (ed.): RDF Semantics, W3C Recommendation 10 February 2004, 2004.
[IANA, 2002] Intenet Assigned Number Authority: MIME Media Types, available at: http://www.iana.org/assignments/media-types/, February 2002.
[ISO639, 1988] International Organization for Standardization (ISO): ISO 639:1988 (E/F). Code for the Representation of Names of Languages. First edition, 1988-04-01. Reference number: ISO 639:1988 (E/F). Geneva: International Organization for Standardization, 1988. iii + 17 pages.
[ISO8601, 2004] International Organization for Standardization (ISO): ISO 8601:2000. Representation of dates and times. Second edition, 2004-06-08. Reference number. Geneva: International Organization for Standardization, 2004. Available from http://www.iso.ch.
[Kifer et al., 1995] M. Kifer, G. Lausen, and J. Wu:Logical foundations of object-oriented and frame-based languages. Journal of the ACM, 42:741-843, July 1995.
[Kiryakov et. al., 2004] A. Kiryakov, D. Ognyanov, and V. Kirov: A framework for representing ontologies consisting of several thousand concepts definitions, Project Deliverable D2.2 of DIP, June 2004.
[Manoler & Miller, 2004] F. Manola and E. Miller: RDF Primer,W3C Working Draft 23 July 2004, available at http://www.w3.org/TR/2004/REC-rdf-primer-20040210/.
[Malhotra et al., 2004] A. Malhotra, J. Melton, N. Walsh: XQuery 1.0 and XPath 2.0 Functions and Operators, W3C Recommendation 10 February 2004, available at http://www.w3.org/TR/xpath-functions/.
[O`Sullivan et al., 2002] J. O`Sullivan, D. Edmond, and A. Ter Hofstede: What is a Service?: Towards Accurate Description of Non-Functional Properties, Distributed and ParallelDatabases, 12:117-133, 2002.
[Pan & Horrocks, 2004] J. Z. Pan and I. Horrocks: OWL-E: Extending OWL with expressive datatype expressions. IMG Technical Report IMG/2004/KR-SW-01/v1.0, Victoria University of Manchester, 2004. Available from http://dl-web.man.ac.uk/Doc/IMGTR-OWL-E.pdf.
[Parr & Quong, 1995]Parr, T.J. and R.W. Quong: ANTLR: A predicated-LL(k) parser generator. Software, Practice and Experience, 25(7), pp. 789-810, Jul 1995.
[Rajesh & Arulazi, 2003] S. Rajesh and D. Arulazi: Quality of Service for Web Services-Demystification, Limitations, and Best Practices, March 2003. (See http://www.developer.com/services/article.php/2027911.)
[Stollberg et al., 2004] M. Stollberg, H. Lausen, A. Polleres, and R. Lara (Eds.): WSMO Use Case Modeling and Testing, WSMO Deliverable D3.2, DERI Working Draft, 2004, latest version available at http://www.wsmo.org/2004/d3/d3.2/
[Weibel et al., 1998] S. Weibel, J. Kunze, C. Lagoze, and M. Wolf: RFC 2413 - Dublin Core Metadata for Resource Discovery, September 1998.
[Yang & Kifer, 2003] G. Yang and M. Kifer: Reasoning about Anonymous Resources and Meta Statements on the Semantic Web J. Data Semantics I 2003: 69-97.
The work is funded by the European Commission under the projects DIP, Knowledge Web, SEKT, SWWS, and Esperonto; by Science Foundation Ireland under the DERI-Lion project; and by the Vienna city government under the CoOperate program.
The editors would like to thank to all the members of the WSMO, WSML, and WSMX working groups for their advice and input into this document.
entity nonFunctionalProperties
dc:title
dc:creator
dc:subject
dc:description
dc:publisher
dc:contributor
dc:date
dc:type
dc:format
dc:identifier
dc:source
dc:language
dc:relation
dc:coverage
dc:rights
version
entity wsNonFunctionalProperties
performance
reliability
security
scalability
robustness
accuracy
transactional
trust
financial
networkRelatedQoS
entity ontology
nonFunctionalProperties ofType nonFunctionalProperties
importOntologies ofTypeSet ontology
usedMediators ofTypeSet ooMediator
concepts ofTypeSet concept
relations ofTypeSet relation
functions ofTypeSet function
instances ofTypeSet instance
axioms ofTypeSet axiom
entity concept
nonFunctionalProperties ofType nonFunctionalProperties
subConceptOf ofTypeSet concept
attributes ofTypeSet attribute
definedBy ofType logicalExpression
entity goal
nonFunctionalProperties ofType nonFunctionalProperties
importOntologies ofTypeSet ontology
usedMediators ofTypeSet (ooMediator or ggMediator)
postConditions ofType goalAxiomDefinition
effects ofType goalAxiomDefinition
entity attribute
nonFunctionalProperties ofType nonFunctionalProperties
range ofType concept
entity relation
nonFunctionalProperties ofType nonFunctionalProperties
superRelations ofTypeSet relation
parameters ofTypeSet parameter
definedBy ofType logicalExpression
entity parameter
domain ofType concept
entity function subEntityOf relation
range ofType concept
entity instance
nonFunctionalProperties ofType nonFunctionalProperties
instanceOf ofType concept
attributeValues ofTypeSet attributeValue
entity attributeValue
nonFunctionalProperties ofType nonFunctionalProperties
value ofType {instance, URIRefernce, Literal, AnonymousId}
entity relationInstance
nonFunctionalProperties ofType nonFunctionalProperties
instanceOf ofType relation
relatedInstances ofTypeSet {instance, URIRefernce, Literal, AnonymousId}
entity axiom
nonFunctionalProperties ofType nonFunctionalProperties
definedBy ofType logicalExpression
entity mediator
nonFunctionalProperties ofType nonFunctionalProperties
importOntologies ofTypeSet ontology
source ofTypeSet {ontology, goal, webService, mediator}
target ofType {ontology, goal, webService, mediator}
mediationService ofType {goal, webService, wwMediator}
entity ooMediator subEntityOf mediator
source ofTypeSet {ontology, ooMediator}
entity ggMediator subEntityOf mediator
usedMediators ofTypeSet ooMediator
source ofTypeSet {goal, ggMediator}
target ofType {goal, ggMediator}
entity wgMediator subEntityOf mediator
usedMediators ofTypeSet ooMediator
source ofType {webService, wgMediator}
target ofType {goal, ggMediator}
entity wwMediator subEntityOf mediator
usedMediators ofTypeSet ooMediator
source ofType {webService, wwMediator}
target ofType {webService, wwMediator}
entity webService
nonFunctionalProperties ofType wsNonFunctionalProperties
importOntologies ofTypeSet ontology
usedMediators ofTypeSet ooMediator
capability ofType capability
interfaces ofTypeSet interface
entity capability
nonFunctionalProperties ofType nonFunctionalProperties
importOntologies ofTypeSet ontology
usedMediators ofTypeSet {ooMediator, wgMediator}
preconditions ofTypeSet axiomDefinition
assumptions ofTypeSet axiomDefinition
postconditions ofTypeSet axiomDefinition
effects ofTypeSet axiomDefinition
entity interface
nonFunctionalProperties ofType nonFunctionalProperties
importOntologies ofTypeSet ontology
usedMediators ofTypeSet ooMediator
choreography ofType choreography
orchestration ofType orchestration
This Appendix describes the grammar for the Web Services Modeling Language (WSML). This language is meant for representing the concepts introduced in the Web Service Modeling Ontology (WSMO) in a human-readable way.
The language to write down this syntax is a variant of Extended Backus Nauer Form; a variant readable by SableCC. SableCC is a compiler compiler - a tool that can construct recognisers, parsers and compilers from a grammar specification. We have previously experimented with a different compiler compiler, namely ANTLR [Parr & Quong 1995]. However, SableCC can generate compilers for LALR(1) grammars - a superset of the LL(k) grammars that ANTLR can handle. For instance, LALR(1) grammars can be left-recursive, which LL(k) languages cannot. Visit www.sablecc.org for more information.
// GRAMMAR IS PRELIMINARY
// when D2 is stable, the grammar will be updated accordingly
// TODO
// frame based syntax (f-logic molecules)
// add 'relation-instance'
// add named parameters
// make identifiers optional
// literal datatyping - true/false
// restrict logical-concept definitions
| all | = | [ 0.. 0xffff] |
| digit | = | [ '0'.. '9'] |
| uletter | = | [ 'A'.. 'Z'] |
| lletter | = | [ 'a'.. 'z'] |
| letter | = | uletter | lletter | '_' |
| alphanum | = | digit | letter |
| most_uri_chars | = | '-'| '_'| '.'| '!'| '~'| '\'| 27';'| '/'| '?'| ':'| '&'| '='| '+'| '$'| '@'| '{'| '}'| '|'| '\\'| '^'| '['| ']'| '`'| '%'| '#'| '"' |
| urichar | = | alphanum | most_uri_chars | '('| ')'| ','| '*' |
| nsbegin | = | alphanum | '_' |
| nsrest | = | nsbegin | '-' |
| nsname | = | nsbegin nsrest * |
| localchar | = | alphanum | most_uri_chars |
| lname | = | localchar + |
| tab | = | 9 |
| cr | = | 13 |
| lf | = | 10 |
| eol | = | cr lf | cr | lf |
| not_cr_lf | = | [ all - [ cr + lf ] ] |
| quote | = | '"' |
| not_quote | = | [ all - quote ] |
| not_star | = | [ all - '*'] |
| not_star_slash | = | [ not_star - '/'] |
| long_comment | = | '/*'not_star *'*'+( not_star_slash not_star *'*'+) *'/' |
| begin_comment | = | '//'| 'comment' |
| short_comment | = | begin_comment not_cr_lf *eol |
| comment | = | short_comment | long_comment |
| blank | = | ( ' '| tab | eol ) + |
| qmark | = | '?' |
| colon | = | ':' |
| lpar | = | '(' |
| literal | = | quote not_quote *quote | |
| comma | = | ',' | |
| endpoint | = | '.'blank | |
| pathcon | = | '.'| '..'| '!'| '!!' | |
| gt | = | 'gt' | |
| lt | = | 'lt' | |
| gte | = | 'ge' | |
| lte | = | 'le' | |
| lpar | = | lpar | |
| rpar | = | ')' | |
| equals | = | '=' | |
| arith_op | = | '+'| '-'| '*'| '/' | |
| and | = | 'and' | |
| or | = | 'or' | |
| implies | = | 'implies' | |
| implied_by | = | 'impliedBy' | |
| equivalent | = | 'equivalent' | |
| not | = | 'not'| '~' | |
| exists | = | 'exists' | |
| forall | = | 'forall' | |
| t_namespace | = | 'namespace' | |
| t_targetnamespace | = | 'targetNamespace' | |
| t_importontology | = | 'importOntologies' | |
| t_usemediator | = | 'usedMediators' | |
| t_oomediator | = | 'ooMediator' | |
| t_ggmediator | = | 'ggMediator' | |
| t_wgmediator | = | 'wgMediator' | |
| t_wwmediator | = | 'wwMediator' | |
| t_source | = | 'source' | |
| t_target | = | 'target' | |
| t_useservice | = | 'useService' | |
| t_goal | = | 'goal' | |
| t_webservice | = | 'webservice' | |
| t_use_capability | = | 'useCapability' | |
| t_use_interface | = | 'useInterface' | |
| t_capability | = | 'capability' | |
| t_precondition | = | 'precondition' | |
| t_postcondition | = | 'postcondition' | |
| t_assumption | = | 'assumption' | |
| t_effect | = | 'effect' | |
| t_interface | = | 'interface' | |
| t_choreography | = | 'choreography' | |
| t_orchestration | = | 'orchestration' | |
| t_placeholder | = | '***' | |
| t_ontology | = | 'ontology' | |
| t_concept | = | 'concept' | |
| t_subconcept | = | 'subConceptOf' | |
| t_oftype | = | 'ofType' | |
| t_set | = | 'set' | |
| t_instance | = | 'instance' | |
| t_memberof | = | 'memberOf' | |
| t_hasvalue | = | 'hasValue' | |
| t_hasvalues | = | 'hasValues' | |
| t_relation | = | 'relation' | |
| t_subrelation | = | 'subRelationOf' | |
| t_parameter | = | 'parameter' | |
| t_function | = | 'function' | |
| t_method | = | 'method' | |
| t_range | = | 'range' | |
| t_axiom | = | 'axiom' | |
| t_ref_axiom | = | 'useAxiom' | |
| t_beginlogic | = | 'logicalExpression' | |
| t_version | = | 'version' | |
| t_nfp | = | 'nonFunctionalProperties'| 'nfp' | |
| t_endnfp | = | 'endNonFunctionalProperties'| 'endnfp' | |
| t_definedby | = | 'definedBy' | |
| prefix | = | nsname +colon | |
| uri | = | '<'urichar +'>' | |
| qname | = | nsname +| nsname colon lname | |
| t_variable | = | qmark alphanum + | |
| anonymous | = | '_#'digit * | |
| blank | = | blank | |
| comment | = | comment |
[1] One could argue that orchestration
should not be part of a public interface because it refers to how a service
is implemented. However, this is a short-term view that does not reflect the
nature of fully open and flexible eCommerce. Here companies shrink to their
core processes were they are really profitable in. All other processes are
sourced out and consumed as eServices. They advertise their services in their
capability and choreography description and they advertise their needs in the
orchestration interfaces. This enables on-the-fly creation of virtual
enterprises in reaction to demands from the market place. Even in the
dinosaurian time of eCommerce where large companies still exist,
orchestration may be an important aspect. The
orchestration of a service may not be made public but may be
visible to the different departments of a large organization that compete for
delivering parts of the overall service. Notice that the actual business
intelligence of a service provider is still hidden. It is his capability to
provide a certain functionality with a chorography that is very different
from the sub services and their orchestration. The ability for a certain type
of process management (the overall functionality is decomposed differently in
the choreography and the orchestration) is were it
comes in as a Silver bullet in the process. How he manages the difference
between the process decomposition at the choreography and the
orchestration level is the business intelligence of the web
service provider.
$Date: Tuesday 31 August 2004 - 14:09:51$