Service Registry 3.1 Developer's Guide

Creating and Displaying Classification Schemes: Examples

For an example of creating a classification scheme, see JAXRPublishScheme.java in the directory INSTALL/registry-samples/classification-schemes/src. This example creates a classification scheme named LibraryFloors and a concept hierarchy that includes each floor of the library and the subject areas that can be found there. It gives the classification scheme a human-friendly unique identifier value so that it can be searched for by identifier rather than by name.

To display the concept hierarchy, use the program JAXRSearchScheme.java in the same directory. This example displays the concept hierarchy for the LibraryFloors classification scheme.

To delete the classification scheme and concepts, use the program JAXRDeleteScheme.java in the same directory.

ProcedureTo Run the JAXRPublishScheme Example

  1. Go to the directory INSTALL/registry-samples/classification-schemes.

  2. Type the following command:


    Ant-base/ant pub-scheme
    

ProcedureTo Run the JAXRSearchScheme Example

  1. Go to the directory INSTALL/registry-samples/classification-schemes.

  2. Type the following command:


    Ant-base/ant search-scheme
    

ProcedureTo Run the JAXRDeleteScheme Example

  1. Go to the directory INSTALL/registry-samples/classification-schemes.

  2. Type the following command:


    Ant-base/ant del-scheme