org.LexGrid.LexBIG.example
Class ListHierarchyPathToRoot
java.lang.Object
org.LexGrid.LexBIG.example.ListHierarchyPathToRoot
public class ListHierarchyPathToRoot
- extends java.lang.Object
Example showing how to determine and display paths from a given concept back
to defined root nodes through any hierarchies registered for the coding
scheme.
This program accepts one parameter (required), indicating the code to
evaluate.
BACKGROUND: From a database perspective, LexBIG stores relationships
internally in a forward direction, source to target. Due to differences in
source formats, however, a wide variety of associations may be used ('PAR',
'CHD', 'isa', 'hasSubtype', etc). In addition, the direction of navigation
may vary ('isa' expands in a reverse direction whereas 'hasSubtype' expands
in a forward direction.
The intent of the getHierarchy* methods on the
LexBIGServiceConvenienceMethods interface is to simplify the process of
hierarchy discovery and navigation. These methods significantly reduce the
need to understand conventions for root nodes, associations, and direction of
navigation for a specific source format.
Method Summary |
static void |
main(java.lang.String[] args)
Entry point for processing. |
protected void |
printChain(Association assoc,
int depth)
Displays the given concept chain, taking into account any branches that
might be imbedded. |
void |
run(java.lang.String code)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ListHierarchyPathToRoot
public ListHierarchyPathToRoot()
main
public static void main(java.lang.String[] args)
- Entry point for processing.
- Parameters:
args
-
run
public void run(java.lang.String code)
throws LBException
- Throws:
LBException
printChain
protected void printChain(Association assoc,
int depth)
throws LBException
- Displays the given concept chain, taking into account any branches that
might be imbedded.
- Parameters:
assoc
- depth
-
- Throws:
LBException