public class AnnotationEngine extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
AnnotationEngine()
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addActorAnnotation(java.lang.String lsid,
java.lang.String conceptName)
Annotate an actor (via the lsid) with a given ontology concept id
|
EntityTreeModel |
buildDefaultActorLibrary()
Constructs the default actor library that is loaded, e.g., when Kepler is
started in graph mode.
|
java.util.Vector<java.lang.String> |
getDefaultConceptNames()
Not Implemented.
|
protected void |
initialize()
Reload the ontology and annotation information.
|
static AnnotationEngine |
instance() |
static void |
main(java.lang.String[] args)
The main program for the AnnotationEngine class for testing: prints out
the annotations.
|
void |
print()
For testing... dumps out the annotations using n3 syntax.
|
java.util.Vector<NamedObj> |
search(java.lang.String classname)
search default case
|
java.util.Vector<NamedObj> |
search(java.lang.String classname,
boolean approx) |
protected AnnotationEngine()
public static AnnotationEngine instance()
public void print()
protected void initialize()
public java.util.Vector<java.lang.String> getDefaultConceptNames()
public void addActorAnnotation(java.lang.String lsid, java.lang.String conceptName) throws java.lang.Exception
lsid
- The feature to be added to the ActorAnnotation attributeconceptName
- The feature to be added to the ActorAnnotation attributejava.lang.Exception
- Description of the Exceptionpublic EntityTreeModel buildDefaultActorLibrary()
_libPane
- Description of the Parameterpublic java.util.Vector<NamedObj> search(java.lang.String classname)
classname
- Description of the Parameterpublic java.util.Vector<NamedObj> search(java.lang.String classname, boolean approx)
classname
- the classname (as a term/keyword) to search forapprox
- if true, find approximate term matches, and if false, do exact
matches Searches the ontology matching the term and for
matches, finds annotated items. For example,
search("RichnessIndex") finds all actors that instantiate
either the class named "RichnessIndex" or one of its
subclasses.public static void main(java.lang.String[] args)
args
- The command line arguments