|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
void |
addInstance(OInstance theInstance)
Adds an instance to the knowledge base. |
OInstance |
addInstance(String name,
OClass theClass)
Adds an instance to the knowledge base. |
List |
getDirectInstances(OClass theClass)
Gets all instances in the KB, which belong to the given class only. |
OInstance |
getInstanceByName(String instanceName)
Gets the instance with the given name. |
List |
getInstances()
Gets all instances in the KB. |
List |
getInstances(OClass theClass)
Gets all instances in the KB, which belong to this class, including instances of sub-classes. |
void |
removeInstance(OInstance theInstance)
Removes the instance from the knowledge base. |
Methods inherited from interface gate.creole.ontology.Ontology |
addClass, containsClassByName, createClass, equals, getClassByName, getClasses, getClasses, getComment, getId, getLabel, getOntology, getSourceURI, getTaxonomicDistance, getTopClasses, getURL, getVersion, isModified, load, removeClass, setComment, setId, setLabel, setModified, setSourceURI, setURL, setVersion, store |
Methods inherited from interface gate.LanguageResource |
getDataStore, getLRPersistenceId, getParent, setDataStore, setLRPersistenceId, setParent, sync |
Methods inherited from interface gate.Resource |
cleanup, getParameterValue, init, setParameterValue, setParameterValues |
Methods inherited from interface gate.util.FeatureBearer |
getFeatures, setFeatures |
Methods inherited from interface gate.util.NameBearer |
getName, setName |
Method Detail |
public OInstance addInstance(String name, OClass theClass)
name
- the instance name to be addedtheClass
- the class to be added
public void addInstance(OInstance theInstance)
public void removeInstance(OInstance theInstance)
theInstance
- to be removedpublic List getInstances()
public List getInstances(OClass theClass)
theClass
- the class of the instances
public List getDirectInstances(OClass theClass)
theClass
- the class of the instances
public OInstance getInstanceByName(String instanceName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |