org.LexGrid.LexBIG.example
Class FindRelatedNodesForTermAndAssoc

java.lang.Object
  extended by org.LexGrid.LexBIG.example.FindRelatedNodesForTermAndAssoc

public class FindRelatedNodesForTermAndAssoc
extends java.lang.Object

Example showing how to find all endpoints of a named association for which the given term matches as source or target.

Note: the match algorithm applied to the term is the standard lucene query syntax.


Constructor Summary
FindRelatedNodesForTermAndAssoc()
           
 
Method Summary
static void main(java.lang.String[] args)
          Entry point for processing.
protected  void printSources(java.lang.String term, java.lang.String assoc, LexBIGService lbSvc, java.lang.String scheme, CodingSchemeVersionOrTag csvt)
          Display association sources for which the given term participates as target.
protected  void printTargets(java.lang.String term, java.lang.String assoc, LexBIGService lbSvc, java.lang.String scheme, CodingSchemeVersionOrTag csvt)
          Display association targets for which the given term participates as source.
 void run(java.lang.String term, java.lang.String assoc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FindRelatedNodesForTermAndAssoc

public FindRelatedNodesForTermAndAssoc()
Method Detail

main

public static void main(java.lang.String[] args)
Entry point for processing.

Parameters:
args -

run

public void run(java.lang.String term,
                java.lang.String assoc)
         throws LBException
Throws:
LBException

printSources

protected void printSources(java.lang.String term,
                            java.lang.String assoc,
                            LexBIGService lbSvc,
                            java.lang.String scheme,
                            CodingSchemeVersionOrTag csvt)
                     throws LBException
Display association sources for which the given term participates as target.

Parameters:
term -
assoc -
lbSvc -
scheme -
csvt -
Throws:
LBException

printTargets

protected void printTargets(java.lang.String term,
                            java.lang.String assoc,
                            LexBIGService lbSvc,
                            java.lang.String scheme,
                            CodingSchemeVersionOrTag csvt)
                     throws LBException
Display association targets for which the given term participates as source.

Parameters:
term -
assoc -
lbSvc -
scheme -
csvt -
Throws:
LBException

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.