Tip: Use Data Dictionary Links for XML and Web Services Schemata
By Uche Ogbuji2005-04-09
What exactly is a service anyway?
Imagine that you are a developer working on information systems to manage your organization's Web services. Your first task is to put together some information for detailing the proposed Web services in the context of the budget requests that you must make to be sure the products get off the ground. You'll use XML so that you can easily generate reports and views on the information, and so that you can mix together information from several domains effortlessly. Listing 1 is a snippet from a RELAX NG schema that you might construct for this purpose.
Listing 1. Portion of RELAX NG schema for budget information for Web services development
This snippet does not include the namespace declarations, but the owl prefix is bound to the namespace for OWL Web Ontology Language, http://www.w3.org/2002/07/owl#. OWL is the W3C standard for ontologies, which are documents that provide enough information to share the meanings of a group of concepts. As such, OWL is an excellent way to express semantic links in schemata. Each OWL element is an annotation that expresses a link from the containing RELAX NG definition.
<element name='service'>
<owl:sameClassAs
resource="http://www.daml.org/services/owl-s/1.0/Service.owl#Service"/>
<attribute name='id'/>
<element name='synopsis'>
<owl:samePropertyAs
resource='http://www.w3.org/2000/01/rdf-schema#comment'/>
</element>
<element name='budget-request'>
<attribute name='currency'/>
</element>
<element name='justification'/>
</element>
Tutorial Pages:
» Tip: Use Data Dictionary Links for XML and Web Services Schemata
» What exactly is a service anyway?
» Semantic links in WS descriptions
» Wrap-up
» Resources
First published by IBM DeveloperWorks
