|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgate.util.AbstractFeatureBearer
gate.creole.AbstractResource
gate.creole.AbstractLanguageResource
gate.creole.ProtegeProjectName
public class ProtegeProjectName
Dummy Protege LR. Just keep the Protege project file name
Field Summary |
---|
Fields inherited from class gate.creole.AbstractLanguageResource |
---|
dataStore, lrPersistentId |
Fields inherited from class gate.creole.AbstractResource |
---|
name |
Fields inherited from class gate.util.AbstractFeatureBearer |
---|
features |
Constructor Summary | |
---|---|
ProtegeProjectName()
|
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. |
edu.stanford.smi.protege.model.KnowledgeBase |
getKnowledgeBase()
|
String |
getLabel()
Gets the label. |
Taxonomy |
getOntology(URL someUrl)
|
URL |
getProjectName()
|
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()
Returns true of an LR has been modified since the last sync. |
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 |
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 |
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, getBeanInfo, 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 |
---|
clone, finalize, 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 |
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 Taxonomy getOntology(URL someUrl) throws ResourceInstantiationException
ResourceInstantiationException
public String getLabel()
Taxonomy
getLabel
in interface Taxonomy
public void setLabel(String label)
Taxonomy
setLabel
in interface Taxonomy
label
- the label to be setpublic URL getURL()
Taxonomy
getURL
in interface Taxonomy
public void setURL(URL aUrl)
Taxonomy
setURL
in interface Taxonomy
aUrl
- the url to be setpublic void setDefaultNameSpace(String theURI)
Taxonomy
setDefaultNameSpace
in interface Taxonomy
theURI
- the URI to be setpublic String getDefaultNameSpace()
Taxonomy
getDefaultNameSpace
in interface Taxonomy
public void setVersion(String theVersion)
Taxonomy
setVersion
in interface Taxonomy
theVersion
- the version to be setpublic String getVersion()
Taxonomy
getVersion
in interface Taxonomy
public void load() throws ResourceInstantiationException
Taxonomy
load
in interface Taxonomy
ResourceInstantiationException
public void store() throws ResourceInstantiationException
Taxonomy
store
in interface Taxonomy
ResourceInstantiationException
public String getId()
Taxonomy
getId
in interface Taxonomy
public void setId(String theId)
Taxonomy
setId
in interface Taxonomy
theId
- the id to be setpublic String getComment()
Taxonomy
getComment
in interface Taxonomy
public void setComment(String theComment)
Taxonomy
setComment
in interface Taxonomy
theComment
- the comment to be setpublic TClass createClass(String aName, String aComment)
Taxonomy
createClass
in interface Taxonomy
aName
- the name of this classaComment
- the comment of this class
public void removeClass(TClass theClass)
Taxonomy
removeClass
in interface Taxonomy
theClass
- the class to be removedpublic void addClass(TClass theClass)
Taxonomy
addClass
in interface Taxonomy
theClass
- the class to be addedpublic TClass getClassByName(String theName)
Taxonomy
getClassByName
in interface Taxonomy
theName
- the name of the class
public boolean containsClassByName(String theName)
Taxonomy
containsClassByName
in interface Taxonomy
theName
- name of a class
public Set getClasses()
Taxonomy
getClasses
in interface Taxonomy
public Iterator getClasses(Comparator comp)
Taxonomy
getClasses
in interface Taxonomy
comp
- a comparator defining the order of iterating the classes
public Set getTopClasses()
Taxonomy
getTopClasses
in interface Taxonomy
public int getTaxonomicDistance(TClass class1, TClass class2)
Taxonomy
getTaxonomicDistance
in interface Taxonomy
class1
- the first classclass2
- the second class
public boolean equals(Object o)
Taxonomy
equals
in interface Taxonomy
equals
in class Object
o
- the other ontology
public void setModified(boolean isModified)
Taxonomy
setModified
in interface Taxonomy
isModified
- sets this param as a value of the modified property of the
ontologypublic boolean isModified()
AbstractLanguageResource
isModified
in interface Taxonomy
isModified
in interface LanguageResource
isModified
in class AbstractLanguageResource
public boolean isSubClassOf(String cls1, String cls2)
Taxonomy
isSubClassOf
in interface Taxonomy
cls1
- the first classcls2
- the second classpublic boolean isDirectSubClassOf(String cls1, String cls2)
Taxonomy
isDirectSubClassOf
in interface Taxonomy
cls1
- the first classcls2
- the second class
|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |