|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
DatatypeProperty |
addDatatypeProperty(String name,
OClass domain,
Number range)
Create a DatatypeProperty with the given domain and range |
DatatypeProperty |
addDatatypeProperty(String name,
OClass domain,
String range)
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)
|
List |
getDirectInstances(OClass theClass)
Gets all instances in the ontology, which belong to the given class only. |
OInstance |
getInstanceByName(String instanceName)
Gets the instance with the given name. |
List |
getInstances()
Gets all instances in the ontology. |
List |
getInstances(OClass theClass)
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 interface gate.creole.ontology.Taxonomy |
addClass, containsClassByName, createClass, 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 |
Method Detail |
public OInstance addInstance(String name, OClass theClass)
name
- the instance name to be addedtheClass
- the class to be added
public void addInstance(OInstance theInstance)
public void removeInstance(OInstance theInstance)
theInstance
- to be removedpublic List getInstances()
public List getInstances(OClass theClass)
theClass
- the class of the instances
public List getDirectInstances(OClass theClass)
theClass
- the class of the instances
public OInstance getInstanceByName(String instanceName)
instanceName
- the instance name
public DatatypeProperty addDatatypeProperty(String name, OClass domain, String range)
domain
- range
- public DatatypeProperty addDatatypeProperty(String name, OClass domain, Number range)
domain
- range
- public FunctionalProperty addFunctionalProperty(String name, OClass domain, Object range)
domain
- range
-
KBFunctionalProperty
value.public ObjectProperty addObjectProperty(String name, OClass domain, OClass range)
public SymmetricProperty addSymmetricProperty(String name, OClass domain, OClass range)
public TransitiveProperty addTransitiveProperty(OClass domain, OClass range)
public void addPropertyDefinition(Property theProperty)
public Set getPropertyDefinitions()
public Property getPropertyDefinitionByName(String name)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |