Retrieving the superclasses of a class

You can use the WSRR Atom Web 2.0 classification API to retrieve an Atom feed containing summary entries of the superclasses of a specified class.

You can retrieve either of the following information:
  • Only the superclasses that are one level above the specified class.
  • All superclasses at all levels above the specified class.
The details of the Atom API request are as follows:
Method Atom representation URI Description
GET Atom feed http://hostname:port/ServiceRegistryFeeds/WSRR/8.5/classification/classes/OWL-URI/immediateSuperClasses

where OWL-URI is the percent-encoded form of the OWL URI of the classification class whose superclasses you want to retrieve.

Retrieve only the superclasses that are one level above the specified class.
GET Atom feed http://hostname:port/ServiceRegistryFeeds/WSRR/8.5/classification/classes/OWL-URI/superClasses

where OWL-URI is the percent-encoded form of the OWL URI of the classification class whose superclasses you want to retrieve.

Retrieve all superclasses at all levels above the specified class.
If you have multiple instances of WSRR deployed, you must identify the instance by specifying its prefix, for example:
http://hostname:port/prefixServiceRegistryFeeds/WSRR/8.5/classification/classes/OWL-URI/superClasses
Where prefix is the WSRR Instance Prefix that you specified when you created the instance.

See Classification classes feed for details of the body of the response that is returned from this request.

Example

The following request retrieves the superclasses that are one level above the Sector Planning class:
GET http://myhost:9080/ServiceRegistryFeeds/WSRR/8.5/classification/classes/http%3A%2F%2Fwww.ibm.com%2Fxmlns%2Fprod%2Fserviceregistry%2Fprofile%2Fv6r3%2FBusinessDomain%23SectorPlanning/immediateSuperClasses