edu.uchsc.ccp.knowtator.textsource.generif
Class GeneRIFTextSource
java.lang.Object
edu.uchsc.ccp.knowtator.textsource.DefaultTextSource
edu.uchsc.ccp.knowtator.textsource.filelines.FileLineTextSource
edu.uchsc.ccp.knowtator.textsource.generif.GeneRIFTextSource
- All Implemented Interfaces:
- TextSource
public class GeneRIFTextSource
- extends FileLineTextSource
CLS_NAME
public static final String CLS_NAME
- See Also:
- Constant Field Values
ENTREZ_GENE_SLOT_NAME
public static final String ENTREZ_GENE_SLOT_NAME
- See Also:
- Constant Field Values
PMID_SLOT_NAME
public static final String PMID_SLOT_NAME
- See Also:
- Constant Field Values
GeneRIFTextSource
public GeneRIFTextSource(String id,
String[] entrezIDs,
String pmid,
String text)
createTextSourceInstance
public Instance createTextSourceInstance(KnowledgeBase knowledgeBase)
- Description copied from interface:
TextSource
- This is the generic method for creating a "knowtator text source"
instance from a TextSource object. All instances of
"knowtator text source" can be created in a very simplistic way from a
TextSource object. An instance of the class specified by the name
returned by getProtegeClsName() is created with the name returned by
getName()
- Specified by:
createTextSourceInstance
in interface TextSource
- Overrides:
createTextSourceInstance
in class DefaultTextSource
- Returns:
- may return null if textSource.getProtegeClsName() is not a known
cls name. Otherwise the new Protege instance that has been
created.
getEntrezIDs
public String[] getEntrezIDs()