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
atoms()
- List Atom's for Concept.
atoms(Source)
- List Atoms with given Source which are in this Concept.
conceptID()
- Concept unique ID.
cooccurs()
- Get Cooccurrence's for this Concept.
cooccurs(SemanticClass)
- Get Cooccurrence's between given Concept and concepts whose
SemanticClass is sClass.
cooccurs(SemanticClass, SemanticClassifier)
- Get Cooccurrence's between given Concept and concepts whose
SemanticClass is sClass, based on given classifier (instead of
Metaphrase.classify(Concept)).
definitions()
- List Definitions for Concept.
metaphrase()
- Metaphrase to which Concept belongs.
nearestAtoms(Source)
- List Atoms with given Source which are nearest to this Concept.
neighborhoodAtoms(Source)
- List Atoms with given Source which are in the semantic
neighborhood of this Concept.
neighborhoodAtoms(Source, String[])
- List Atoms with given Source and one of the given termgps which
are in the semantic neighborhood of this Concept.
partitions(Source)
- List Partitions of Source which include Concept.
preferredName()
- The preferred name for Concept.
Print(PrintStream)
- Prints the contents of Concept to out.
relationships()
- List Relationship's for Concept.
semanticClass()
- Semantic class of Concept.
semanticTypes()
- Semantic Type(s) of Concept.
setConceptID(String)
- Sets the conceptID.
sources()
- Fetch list of sources in which Concept occurs.
status()
- Concept status.
synonyms()
- List synonyms (Terms) for Concept.
toString()
- Returns the conceptID.
metaphrase
public Metaphrase metaphrase()
Metaphrase to which Concept belongs.
conceptID
public java.lang.String conceptID()
Concept unique ID.
status
public java.lang.String status()
Concept status. Should be one of: UMLS, reviewed, unreviewed.
preferredName
public java.lang.String preferredName()
The preferred name for Concept.
Should be the same as this.synonyms()[0].preferredForm().
semanticTypes
public SemanticType[] semanticTypes()
Semantic Type(s) of Concept.
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
synonyms
public Term[] synonyms() throws MetaphraseException
List synonyms (Terms) for Concept.
- Throws:
- MetaphraseException - thrown in case of an error
accessing Metaphrase.
atoms
public Atom[] atoms() throws MetaphraseException
List Atom's for Concept.
- Throws:
- MetaphraseException - error accessing Metaphrase.
definitions
public Definition[] definitions() throws MetaphraseException
List Definitions for Concept.
- Throws:
- MetaphraseException - error accessing Metaphrase.
sources
public Source[] sources() throws MetaphraseException
Fetch list of sources in which Concept occurs.
- Throws:
- MetaphraseException - error accessing Metaphrase.
relationships
public Relationship[] relationships() throws MetaphraseException
List Relationship's for Concept.
- Throws:
- MetaphraseException - error accessing Metaphrase.
partitions
public Partition[] partitions(Source source) throws MetaphraseException
List Partitions of Source which include Concept.
- Throws:
- MetaphraseException - error accessing Metaphrase.
atoms
public Atom[] atoms(Source source) throws MetaphraseException
List Atoms with given Source which are in this Concept.
- Throws:
- MetaphraseException - error accessing Metaphrase.
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.
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.
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.
cooccurs
public Cooccurrence[] cooccurs() throws MetaphraseException
Get Cooccurrence's for this Concept.
- Throws:
- MetaphraseException - thrown in case of an error
accessing Metaphrase.
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.
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.
toString
public java.lang.String toString()
Returns the conceptID.
- Overrides:
- toString in class java.lang.Object
setConceptID
public void setConceptID(java.lang.String conceptID)
Sets the conceptID.
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