Service Registry 3 2005Q4 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.

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

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

ProcedureTo Run the JAXRPublishScheme Example

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

  2. Type the following command:


    asant pub-scheme
    

ProcedureTo Run the JAXRSearchScheme Example

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

  2. Type the following command:


    asant search-scheme -Dname=LibraryFloors
    

ProcedureTo Run the JAXRDeleteScheme Example

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

  2. Type the following command:


    asant del-scheme -Dname=LibraryFloors