|
|||||||||||
| 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
com.ontotext.gate.ontology.TaxonomyImpl
com.ontotext.gate.ontology.OntologyImpl
| Field Summary |
| Fields inherited from class com.ontotext.gate.ontology.TaxonomyImpl |
DIRECT_CLOSURE, lastGeneratedId, modified, nullBuffers, TRANSITIVE_CLOSURE |
| Fields inherited from class gate.creole.AbstractLanguageResource |
dataStore, lrPersistentId |
| Fields inherited from class gate.util.AbstractFeatureBearer |
features |
| Constructor Summary | |
OntologyImpl()
|
|
| Method Summary | |
DatatypeProperty |
addDatatypeProperty(String name,
OClass domain,
Number value)
Create a DatatypeProperty with the given domain and range |
DatatypeProperty |
addDatatypeProperty(String name,
OClass domain,
String value)
Create a DatatypeProperty with the given domain and range |
FunctionalProperty |
addFunctionalProperty(String name,
OClass domain,
Object range)
Create a FunctionalProperty with the given domain and range |
void |
addInstance(OInstance theInstance)
Adds an instance to the ontology. |
OInstance |
addInstance(String name,
OClass theClass)
Adds an instance to the ontology. |
ObjectProperty |
addObjectProperty(String name,
OClass domain,
OClass range)
|
void |
addPropertyDefinition(Property theProperty)
|
SymmetricProperty |
addSymmetricProperty(String name,
OClass domain,
OClass range)
|
TransitiveProperty |
addTransitiveProperty(OClass domain,
OClass range)
|
TClass |
createClass(String aName,
String aComment)
Creates a new OClass and returns it. |
List |
getDirectInstances(OClass aClass)
Gets all instances in the ontology, which belong to the given class only. |
OInstance |
getInstanceByName(String aName)
Gets the instance with the given name. |
List |
getInstances()
Gets all instances in the ontology. |
List |
getInstances(OClass aClass)
Gets all instances in the ontology, which belong to this class, including instances of sub-classes. |
Property |
getPropertyDefinitionByName(String name)
|
Set |
getPropertyDefinitions()
|
void |
removeInstance(OInstance theInstance)
Removes the instance from the ontology. |
| Methods inherited from class com.ontotext.gate.ontology.TaxonomyImpl |
addClass, addObjectModificationListener, containsClassByName, equals, fireObjectModificationEvent, getClassByName, getClasses, getClasses, getComment, getId, getLabel, getOntology, getSourceURI, getTaxonomicDistance, getTopClasses, getURL, getVersion, init, isDirectSubClassOf, isModified, isSubClassOf, load, reinfer, removeClass, setComment, setId, setLabel, setModified, setSourceURI, setURL, setVersion, store, toString |
| 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, 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, wait, wait, wait |
| Methods inherited from interface gate.creole.ontology.Taxonomy |
addClass, containsClassByName, equals, getClassByName, getClasses, getClasses, getComment, getId, getLabel, getOntology, getSourceURI, getTaxonomicDistance, getTopClasses, getURL, getVersion, isDirectSubClassOf, isModified, isSubClassOf, 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 |
| Constructor Detail |
public OntologyImpl()
| Method Detail |
public OInstance addInstance(String name,
OClass theClass)
Ontology
addInstance in interface Ontologyname - the instance name to be addedtheClass - the class to be added
public void addInstance(OInstance theInstance)
Ontology
addInstance in interface Ontologypublic void removeInstance(OInstance theInstance)
Ontology
removeInstance in interface OntologytheInstance - to be removedpublic List getInstances()
Ontology
getInstances in interface Ontologypublic List getInstances(OClass aClass)
Ontology
getInstances in interface OntologyaClass - the class of the instances
public List getDirectInstances(OClass aClass)
Ontology
getDirectInstances in interface OntologyaClass - the class of the instances
public OInstance getInstanceByName(String aName)
Ontology
getInstanceByName in interface OntologyaName - the instance name
public TClass createClass(String aName,
String aComment)
Taxonomy
createClass in interface TaxonomycreateClass in class TaxonomyImpl
public DatatypeProperty addDatatypeProperty(String name,
OClass domain,
String value)
Ontology
addDatatypeProperty in interface Ontologydomain - value -
public DatatypeProperty addDatatypeProperty(String name,
OClass domain,
Number value)
Ontology
addDatatypeProperty in interface Ontologydomain - value -
public FunctionalProperty addFunctionalProperty(String name,
OClass domain,
Object range)
Ontology
addFunctionalProperty in interface Ontologydomain - range -
KBFunctionalProperty value.
public ObjectProperty addObjectProperty(String name,
OClass domain,
OClass range)
addObjectProperty in interface Ontology
public SymmetricProperty addSymmetricProperty(String name,
OClass domain,
OClass range)
addSymmetricProperty in interface Ontology
public TransitiveProperty addTransitiveProperty(OClass domain,
OClass range)
addTransitiveProperty in interface Ontologypublic void addPropertyDefinition(Property theProperty)
addPropertyDefinition in interface Ontologypublic Set getPropertyDefinitions()
getPropertyDefinitions in interface Ontologypublic Property getPropertyDefinitionByName(String name)
getPropertyDefinitionByName in interface Ontology
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||