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.
Go to the directory install/registry-samples/classification-schemes.
Type the following command:
Ant-base/ant pub-scheme |
The output of the pub-scheme target looks something like this:
pub-scheme: [java] Query URL is http://localhost:6480/soar/registry/soap [java] Publish URL is http://localhost:6480/soar/registry/soap [java] Created connection to registry [java] Established security credentials [java] Got registry service, query manager, and life cycle manager [java] Scheme name is LibraryFloors [java] Scheme URN is urn:devguide:samples:ClassificationScheme:LibraryFloors [java] Classification scheme saved |
Go to the directory install/registry-samples/classification-schemes.
Type the following command:
Ant-base/ant search-scheme |
The output of the search-scheme target begins something like this:
search-scheme: [java] Query URL is http://localhost:6480/soar/registry/soap [java] Created connection to registry [java] Got registry service and query manager [java] Scheme name: LibraryFloors [java] Descendant concept value: FirstFloor [java] Descendant concept value: LowerLevel [java] Descendant concept value: SecondFloor [java] Descendant concept value: ThirdFloor [java] Descendant concept value: Chinese [java] Descendant concept value: Fiction [java] Descendant concept value: Literacy [java] Descendant concept value: Periodicals [java] Descendant concept value: Reference [java] Descendant concept value: YoungAdult [java] Descendant concept value: Children ... |
Go to the directory install/registry-samples/classification-schemes.
Type the following command:
Ant-base/ant del-scheme |
The output of the del-scheme target begins and ends something like this:
del-scheme: [java] Query URL is http://localhost:6480/soar/registry/soap [java] Publish URL is http://localhost:6480/soar/registry/soap [java] Created connection to registry [java] Established security credentials [java] Got registry service, query manager, and lifecycle manager [java] Scheme name: LibraryFloors [java] Concept value: FirstFloor [java] Concept value: LowerLevel [java] Concept value: SecondFloor [java] Concept value: ThirdFloor ... [java] Object URN was urn:uuid:1cbab079-8fd8-4cd4-8b19-c60f3e735d40 [java] Object URN was urn:uuid:b03a702d-6911-4bb3-9c25-c90eae497db5 [java] Object URN was urn:uuid:0b6da45c-3424-4e14-b7a8-bfd0ea681b6d [java] Object URN was urn:uuid:ea8e978c-ee6d-4f36-8137-f2d4747f6091 |