| 
 | 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
ResourceInstantiationExceptionpublic String getLabel()
Taxonomy
getLabel in interface Taxonomypublic void setLabel(String label)
Taxonomy
setLabel in interface Taxonomylabel - the label to be setpublic URL getURL()
Taxonomy
getURL in interface Taxonomypublic void setURL(URL aUrl)
Taxonomy
setURL in interface TaxonomyaUrl - the url to be setpublic void setDefaultNameSpace(String theURI)
Taxonomy
setDefaultNameSpace in interface TaxonomytheURI - the URI to be setpublic String getDefaultNameSpace()
Taxonomy
getDefaultNameSpace in interface Taxonomypublic void setVersion(String theVersion)
Taxonomy
setVersion in interface TaxonomytheVersion - the version to be setpublic String getVersion()
Taxonomy
getVersion in interface Taxonomy
public void load()
          throws ResourceInstantiationException
Taxonomy
load in interface TaxonomyResourceInstantiationException
public void store()
           throws ResourceInstantiationException
Taxonomy
store in interface TaxonomyResourceInstantiationExceptionpublic String getId()
Taxonomy
getId in interface Taxonomypublic void setId(String theId)
Taxonomy
setId in interface TaxonomytheId - the id to be setpublic String getComment()
Taxonomy
getComment in interface Taxonomypublic void setComment(String theComment)
Taxonomy
setComment in interface TaxonomytheComment - the comment to be set
public TClass createClass(String aName,
                          String aComment)
Taxonomy
createClass in interface TaxonomyaName - the name of this classaComment - the comment of this class
public void removeClass(TClass theClass)
Taxonomy
removeClass in interface TaxonomytheClass - the class to be removedpublic void addClass(TClass theClass)
Taxonomy
addClass in interface TaxonomytheClass - the class to be addedpublic TClass getClassByName(String theName)
Taxonomy
getClassByName in interface TaxonomytheName - the name of the class
public boolean containsClassByName(String theName)
Taxonomy
containsClassByName in interface TaxonomytheName - name of a class
public Set getClasses()
Taxonomy
getClasses in interface Taxonomypublic Iterator getClasses(Comparator comp)
Taxonomy
getClasses in interface Taxonomycomp - 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 Taxonomyclass1 - the first classclass2 - the second class
public boolean equals(Object o)
Taxonomy
equals in interface Taxonomyequals in class Objecto - the other ontology
public void setModified(boolean isModified)
Taxonomy
setModified in interface TaxonomyisModified - sets this param as a value of the modified property of the
          ontologypublic boolean isModified()
AbstractLanguageResource
isModified in interface TaxonomyisModified in interface LanguageResourceisModified in class AbstractLanguageResource
public boolean isSubClassOf(String cls1,
                            String cls2)
Taxonomy
isSubClassOf in interface Taxonomycls1 - the first classcls2 - the second class
public boolean isDirectSubClassOf(String cls1,
                                  String cls2)
Taxonomy
isDirectSubClassOf in interface Taxonomycls1 - 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 | |||||||||