|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gate.util.AbstractFeatureBearer | +--gate.creole.AbstractResource | +--gate.creole.AbstractLanguageResource | +--gate.creole.ProtegeProjectName
Dummy Protege LR. Just keep the Protege project file name
Constructor Summary | |
ProtegeProjectName()
|
Method Summary | |
void |
addClass(OClass theClass)
Adds a class to the ontology. |
boolean |
containsClassByName(String theName)
Checks if the ontology contains a class with the given name. |
OClass |
createClass(String aName,
String aComment)
Creates a new OClass and returns it. |
boolean |
equals(Object o)
Checks the equality of two ontologies. |
OClass |
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 |
getId()
Gets the id of this ontology. |
edu.stanford.smi.protege.model.KnowledgeBase |
getKnowledgeBase()
|
String |
getLabel()
Gets the label. |
Ontology |
getOntology(URL someUrl)
Gets ontology by URL. |
URL |
getProjectName()
|
String |
getSourceURI()
Gets the source URI. |
int |
getTaxonomicDistance(OClass class1,
OClass 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 |
isModified()
Checks the modified flag. |
void |
load()
Loads this ontology. |
void |
removeClass(OClass theClass)
Removes a class from this ontology. |
void |
setComment(String theComment)
Sets the comment of this ontology. |
void |
setId(String theId)
Sets the id of this ontology. |
void |
setKnowledgeBase(edu.stanford.smi.protege.model.KnowledgeBase base)
|
void |
setLabel(String label)
Sets the label of the ontology. |
void |
setModified(boolean isModified)
Sets the modified flag. |
void |
setProjectName(URL name)
|
void |
setSourceURI(String theURI)
Sets the URI of the ontology |
void |
setURL(URL aUrl)
Set the url of this ontology |
void |
setVersion(String theVersion)
Sets version to this ontology. |
void |
setViewResource(ProtegeWrapper visual)
|
void |
store()
Stores this ontology. |
Methods inherited from class gate.creole.AbstractLanguageResource |
cleanup, getDataStore, getLRPersistenceId, getParent, setDataStore, setLRPersistenceId, setParent, sync |
Methods inherited from class gate.creole.AbstractResource |
checkParameterValues, getName, getParameterValue, getParameterValue, init, removeResourceListeners, setName, setParameterValue, setParameterValue, setParameterValues, setParameterValues, setResourceListeners |
Methods inherited from class gate.util.AbstractFeatureBearer |
getFeatures, setFeatures |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 |
Constructor Detail |
public ProtegeProjectName()
Method Detail |
public void setProjectName(URL name)
public URL getProjectName()
public void setViewResource(ProtegeWrapper visual)
public void setKnowledgeBase(edu.stanford.smi.protege.model.KnowledgeBase base)
public edu.stanford.smi.protege.model.KnowledgeBase getKnowledgeBase()
public Ontology getOntology(URL someUrl) throws ResourceInstantiationException
Ontology
getOntology
in interface Ontology
gate.creole.ontology.Ontology
someUrl
- the url of the ontologyResourceInstantiationException
- if something gets wrong with the loadingpublic String getLabel()
Ontology
getLabel
in interface Ontology
gate.creole.ontology.Ontology
public void setLabel(String label)
Ontology
setLabel
in interface Ontology
gate.creole.ontology.Ontology
theLabel
- the label to be setpublic URL getURL()
Ontology
getURL
in interface Ontology
gate.creole.ontology.Ontology
public void setURL(URL aUrl)
Ontology
setURL
in interface Ontology
gate.creole.ontology.Ontology
aUrl
- the url to be setpublic void setSourceURI(String theURI)
Ontology
setSourceURI
in interface Ontology
gate.creole.ontology.Ontology
theURI
- the URI to be setpublic String getSourceURI()
Ontology
getSourceURI
in interface Ontology
gate.creole.ontology.Ontology
public void setVersion(String theVersion)
Ontology
setVersion
in interface Ontology
gate.creole.ontology.Ontology
theVersion
- the version to be setpublic String getVersion()
Ontology
getVersion
in interface Ontology
gate.creole.ontology.Ontology
public void load() throws ResourceInstantiationException
Ontology
load
in interface Ontology
public void store() throws ResourceInstantiationException
Ontology
store
in interface Ontology
public String getId()
Ontology
getId
in interface Ontology
gate.creole.ontology.Ontology
public void setId(String theId)
Ontology
setId
in interface Ontology
gate.creole.ontology.Ontology
theId
- the id to be setpublic String getComment()
Ontology
getComment
in interface Ontology
gate.creole.ontology.Ontology
public void setComment(String theComment)
Ontology
setComment
in interface Ontology
gate.creole.ontology.Ontology
theComment
- the comment to be setpublic OClass createClass(String aName, String aComment)
Ontology
createClass
in interface Ontology
gate.creole.ontology.Ontology
aName
- the name of this classaComment
- the comment of this classpublic void removeClass(OClass theClass)
Ontology
removeClass
in interface Ontology
gate.creole.ontology.Ontology
theClass
- the class to be removedpublic void addClass(OClass theClass)
Ontology
addClass
in interface Ontology
gate.creole.ontology.Ontology
theClass
- the class to be addedpublic OClass getClassByName(String theName)
Ontology
getClassByName
in interface Ontology
gate.creole.ontology.Ontology
theName
- the name of the classpublic boolean containsClassByName(String theName)
Ontology
containsClassByName
in interface Ontology
gate.creole.ontology.Ontology
theName
- name of a classpublic Set getClasses()
Ontology
getClasses
in interface Ontology
gate.creole.ontology.Ontology
public Iterator getClasses(Comparator comp)
Ontology
getClasses
in interface Ontology
gate.creole.ontology.Ontology
comp
- a comparator defining the order of iterating the classespublic Set getTopClasses()
Ontology
getTopClasses
in interface Ontology
gate.creole.ontology.Ontology
public int getTaxonomicDistance(OClass class1, OClass class2)
Ontology
getTaxonomicDistance
in interface Ontology
gate.creole.ontology.Ontology
class1
- the first classclass2
- the second classpublic boolean equals(Object o)
Ontology
equals
in interface Ontology
equals
in class Object
gate.creole.ontology.Ontology
o
- the other ontologypublic void setModified(boolean isModified)
Ontology
setModified
in interface Ontology
gate.creole.ontology.Ontology
isModified
- sets this param as a value of
the modified property of the ontologypublic boolean isModified()
Ontology
isModified
in interface LanguageResource
isModified
in class AbstractLanguageResource
gate.creole.ontology.Ontology
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |