All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class COM.Lexical.Metaphrase.Concept

java.lang.Object
    |
    +----COM.Lexical.Metaphrase.Concept

public class Concept
extends java.lang.Object
Metaphrase concept class. Concepts are used to represent a semantic unit, or "meaning," in the Metaphrase thesaurus. The particular names associated with a given concept will change over time, and concepts may occasionally be removed; but the meaning of the concept with a given conceptID will never change, and there will be only one Concept ID for each meaning named in the thesaurus.

Version:
Authority1.1, 11 Apr 2000

Method Index

 o atoms()
List Atom's for Concept.
 o atoms(Source)
List Atoms with given Source which are in this Concept.
 o conceptID()
Concept unique ID.
 o cooccurs()
Get Cooccurrence's for this Concept.
 o cooccurs(SemanticClass)
Get Cooccurrence's between given Concept and concepts whose SemanticClass is sClass.
 o cooccurs(SemanticClass, SemanticClassifier)
Get Cooccurrence's between given Concept and concepts whose SemanticClass is sClass, based on given classifier (instead of Metaphrase.classify(Concept)).
 o definitions()
List Definitions for Concept.
 o metaphrase()
Metaphrase to which Concept belongs.
 o nearestAtoms(Source)
List Atoms with given Source which are nearest to this Concept.
 o neighborhoodAtoms(Source)
List Atoms with given Source which are in the semantic neighborhood of this Concept.
 o neighborhoodAtoms(Source, String[])
List Atoms with given Source and one of the given termgps which are in the semantic neighborhood of this Concept.
 o partitions(Source)
List Partitions of Source which include Concept.
 o preferredName()
The preferred name for Concept.
 o Print(PrintStream)
Prints the contents of Concept to out.
 o relationships()
List Relationship's for Concept.
 o semanticClass()
Semantic class of Concept.
 o semanticTypes()
Semantic Type(s) of Concept.
 o setConceptID(String)
Sets the conceptID.
 o sources()
Fetch list of sources in which Concept occurs.
 o status()
Concept status.
 o synonyms()
List synonyms (Terms) for Concept.
 o toString()
Returns the conceptID.

Method Detail

 o metaphrase
public Metaphrase metaphrase()
          Metaphrase to which Concept belongs.
 o conceptID
public java.lang.String conceptID()
          Concept unique ID.
 o status
public java.lang.String status()
          Concept status. Should be one of: UMLS, reviewed, unreviewed.
 o preferredName
public java.lang.String preferredName()
          The preferred name for Concept. Should be the same as this.synonyms()[0].preferredForm().
 o semanticTypes
public SemanticType[] semanticTypes()
          Semantic Type(s) of Concept.
 o semanticClass
public SemanticClass semanticClass() throws MetaphraseException
          Semantic class of Concept. Semantic classes are typically determined algorithmically based on Semantic Type(s) and/or source code of attached atom(s).
Throws:
MetaphraseException - thrown if this.metaphrase().semanticClassifier is undefined.
See Also:
setSemanticClassifier, SemanticClassifier, SemanticClass
 o synonyms
public Term[] synonyms() throws MetaphraseException
          List synonyms (Terms) for Concept.
Throws:
MetaphraseException - thrown in case of an error accessing Metaphrase.
 o atoms
public Atom[] atoms() throws MetaphraseException
          List Atom's for Concept.
Throws:
MetaphraseException - error accessing Metaphrase.
 o definitions
public Definition[] definitions() throws MetaphraseException
          List Definitions for Concept.
Throws:
MetaphraseException - error accessing Metaphrase.
 o sources
public Source[] sources() throws MetaphraseException
          Fetch list of sources in which Concept occurs.
Throws:
MetaphraseException - error accessing Metaphrase.
 o relationships
public Relationship[] relationships() throws MetaphraseException
          List Relationship's for Concept.
Throws:
MetaphraseException - error accessing Metaphrase.
 o partitions
public Partition[] partitions(Source source) throws MetaphraseException
          List Partitions of Source which include Concept.
Throws:
MetaphraseException - error accessing Metaphrase.
 o atoms
public Atom[] atoms(Source source) throws MetaphraseException
          List Atoms with given Source which are in this Concept.
Throws:
MetaphraseException - error accessing Metaphrase.
 o neighborhoodAtoms
public Atom[] neighborhoodAtoms(Source source) throws MetaphraseException
          List Atoms with given Source which are in the semantic neighborhood of this Concept.
Throws:
MetaphraseException - error accessing Metaphrase.
 o neighborhoodAtoms
public Atom[] neighborhoodAtoms(Source source,
                                java.lang.String termgps[]) throws MetaphraseException
          List Atoms with given Source and one of the given termgps which are in the semantic neighborhood of this Concept.
Throws:
MetaphraseException - error accessing Metaphrase.
 o nearestAtoms
public Atom[] nearestAtoms(Source source) throws MetaphraseException
          List Atoms with given Source which are nearest to this Concept. Returns atoms(source) if non-empty, otherwise returns neighborhoodAtoms(source).
Throws:
MetaphraseException - error accessing Metaphrase.
 o cooccurs
public Cooccurrence[] cooccurs() throws MetaphraseException
          Get Cooccurrence's for this Concept.
Throws:
MetaphraseException - thrown in case of an error accessing Metaphrase.
 o cooccurs
public Cooccurrence[] cooccurs(SemanticClass sClass) throws MetaphraseException
          Get Cooccurrence's between given Concept and concepts whose SemanticClass is sClass.
Throws:
MetaphraseException - thrown in case of an error accessing Metaphrase.
 o cooccurs
public Cooccurrence[] cooccurs(SemanticClass sClass,
                               SemanticClassifier classifier) throws MetaphraseException
          Get Cooccurrence's between given Concept and concepts whose SemanticClass is sClass, based on given classifier (instead of Metaphrase.classify(Concept)).
Throws:
MetaphraseException - thrown in case of an error accessing Metaphrase.
 o toString
public java.lang.String toString()
          Returns the conceptID.
Overrides:
toString in class java.lang.Object
 o setConceptID
public void setConceptID(java.lang.String conceptID)
          Sets the conceptID.
 o Print
public void Print(java.io.PrintStream out) throws MetaphraseException
          Prints the contents of Concept to out.
Throws:
MetaphraseException - thrown in case of a failure to access metaphrase.

All Packages  Class Hierarchy  This Package  Previous  Next  Index