Most of the APIs to manage Subsets can be found in the SubsetQuery class. To get the Subset object for a subset id, use SubsetQuery.fetch(id). This will return an instance of the Subset object. Many basic attributes of the Subset have getter methods on the Subset object, such as the Subset expression. Some more complex attributes have dedicated methods in SubsetQuery. The Subset's concepts, for example, can be found from SubsetQuery.fetchConcepts(id, ...). To find all the Subsets for which a Concept is a member, use SubsetQuery.fetchConceptSubsets(conId, nsId). If you only have the Concept's Code, you will first have to look up the Concept to get its internal id. For additional information on Subsets, see Chapter 10 - DTS Subsets in the DTS API Programming Tutorial accessible from the DTS API Javadoc. |