All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class COM.Lexical.Metaphrase.Relationship

java.lang.Object
    |
    +----COM.Lexical.Metaphrase.Association
            |
            +----COM.Lexical.Metaphrase.Relationship

public class Relationship
extends Association
implements ConceptElement
Metaphrase relationship class. Relationships can be classified at both a course level (rel()) and a finer level (rela()). All Relationships are also associated with a Source (source()), although this Source is often the Metathesaurus (SAB="MTH").

Version:
Authority1.1, 11 Apr 2000

Method Index

 o Print(PrintStream)
Prints the contents of Relationship to out.
 o rel()
Relation of the second Concept to the first Concept.
 o rela()
Relationship attribute.
 o source()
Source of Relationship.
 o toString()
For debugging.

Method Detail

 o rel
public java.lang.String rel()
          Relation of the second Concept to the first Concept. One of Related Broader (RB), Related Narrower (RN), Related Other (RO), Related Alike (RL), Parent (PAR), Child (CHD), Sibling (SIB), Allowed Qualifier (AQ) MeSH only, Qualified By (QB) MeSH only.
 o rela
public java.lang.String rela()
          Relationship attribute. One of the relationships defined in the UMLS Semantic Network. The list of relationships in the Semantic Network will be made available through a future version of the API.

By defualt, the rela specifies the relationship of concept2 to concept1 (as with rel). However, if Metaphrase.reverseRelas=true, the rela are inverted, so they specify the relationship of concept1 to concept2--the reverse direction from rel.

 o source
public Source source()
          Source of Relationship.
 o toString
public java.lang.String toString()
          For debugging.
Overrides:
toString in class java.lang.Object
 o Print
public void Print(java.io.PrintStream out)
          Prints the contents of Relationship to out.
Overrides:
Print in class Association

All Packages  Class Hierarchy  This Package  Previous  Next  Index