|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Taxonomy
Defines the interface of an ontology
Method Summary | |
---|---|
void |
addClass(TClass theClass)
Adds a class to the ontology. |
boolean |
containsClassByName(String theName)
Checks if the ontology contains a class with the given name. |
TClass |
createClass(String aName,
String aComment)
Creates a new OClass and returns it. |
boolean |
equals(Object o)
Checks the equality of two ontologies. |
TClass |
getClassByName(String theName)
Retrieves a class by its name. |
Set |
getClasses()
Retrieves all classes as a set. |
Iterator |
getClasses(Comparator comp)
Retireves an iterator over the classes, ordered according to the comparator. |
String |
getComment()
Gets the comment of this ontology. |
String |
getDefaultNameSpace()
Gets the default name space for this ontology. |
String |
getId()
Gets the id of this ontology. |
String |
getLabel()
Gets the label. |
int |
getTaxonomicDistance(TClass class1,
TClass class2)
Gets the taxonomic distance between 2 classes. |
Set |
getTopClasses()
Gets the top classes. |
URL |
getURL()
Gets the url of this ontology |
String |
getVersion()
Gets the version of this ontology. |
boolean |
isDirectSubClassOf(String cls1,
String cls2)
Check for subclass relation with direct closure |
boolean |
isModified()
Checks the modified flag. |
boolean |
isSubClassOf(String cls1,
String cls2)
Check for subclass relation with transitive closure |
void |
load()
Loads this ontology. |
void |
removeClass(TClass theClass)
Removes a class from this ontology. |
void |
setComment(String theComment)
Sets the comment of this ontology. |
void |
setDefaultNameSpace(String theURI)
Sets the URI of the ontology |
void |
setId(String theId)
Sets the id of this ontology. |
void |
setLabel(String theLabel)
Sets the label of the ontology. |
void |
setModified(boolean isModified)
Sets the modified flag. |
void |
setURL(URL aUrl)
Set the url of this ontology |
void |
setVersion(String theVersion)
Sets version to this ontology. |
void |
store()
Stores this ontology. |
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 |
---|
String getLabel()
void setLabel(String theLabel)
theLabel
- the label to be setURL getURL()
void setURL(URL aUrl)
aUrl
- the url to be setvoid load() throws ResourceInstantiationException
ResourceInstantiationException
void store() throws ResourceInstantiationException
ResourceInstantiationException
void setDefaultNameSpace(String theURI)
theURI
- the URI to be setString getDefaultNameSpace()
void setVersion(String theVersion)
theVersion
- the version to be setString getVersion()
String getId()
void setId(String theId)
theId
- the id to be setString getComment()
void setComment(String theComment)
theComment
- the comment to be setTClass createClass(String aName, String aComment)
aName
- the name of this classaComment
- the comment of this class
void removeClass(TClass theClass)
theClass
- the class to be removedvoid addClass(TClass theClass)
theClass
- the class to be addedTClass getClassByName(String theName)
theName
- the name of the class
boolean containsClassByName(String theName)
theName
- name of a class
Set getClasses()
Iterator getClasses(Comparator comp)
comp
- a comparator defining the order of iterating the classes
Set getTopClasses()
int getTaxonomicDistance(TClass class1, TClass class2)
class1
- the first classclass2
- the second class
boolean isSubClassOf(String cls1, String cls2)
cls1
- the first classcls2
- the second classboolean isDirectSubClassOf(String cls1, String cls2)
cls1
- the first classcls2
- the second classboolean equals(Object o)
equals
in class Object
o
- the other ontology
void setModified(boolean isModified)
isModified
- sets this param as a value of the modified property of the
ontologyboolean isModified()
isModified
in interface LanguageResource
|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |