|
|||||||||||
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 Ontology
name
- the instance name to be addedtheClass
- the class to be added
public void addInstance(OInstance theInstance)
Ontology
addInstance
in interface Ontology
public void removeInstance(OInstance theInstance)
Ontology
removeInstance
in interface Ontology
theInstance
- to be removedpublic List getInstances()
Ontology
getInstances
in interface Ontology
public List getInstances(OClass aClass)
Ontology
getInstances
in interface Ontology
aClass
- the class of the instances
public List getDirectInstances(OClass aClass)
Ontology
getDirectInstances
in interface Ontology
aClass
- the class of the instances
public OInstance getInstanceByName(String aName)
Ontology
getInstanceByName
in interface Ontology
aName
- the instance name
public TClass createClass(String aName, String aComment)
Taxonomy
createClass
in interface Taxonomy
createClass
in class TaxonomyImpl
public DatatypeProperty addDatatypeProperty(String name, OClass domain, String value)
Ontology
addDatatypeProperty
in interface Ontology
domain
- value
- public DatatypeProperty addDatatypeProperty(String name, OClass domain, Number value)
Ontology
addDatatypeProperty
in interface Ontology
domain
- value
- public FunctionalProperty addFunctionalProperty(String name, OClass domain, Object range)
Ontology
addFunctionalProperty
in interface Ontology
domain
- 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 Ontology
public void addPropertyDefinition(Property theProperty)
addPropertyDefinition
in interface Ontology
public Set getPropertyDefinitions()
getPropertyDefinitions
in interface Ontology
public Property getPropertyDefinitionByName(String name)
getPropertyDefinitionByName
in interface Ontology
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |