|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Ontology
This is the base interface for all concrete implementations of ontologies.
Method Summary | |
---|---|
DatatypeProperty |
addDatatypeProperty(String name,
String comment,
OClass domain,
Class range)
Creates a new Datatype property in this ontology where the domain consists of a single OClass . |
DatatypeProperty |
addDatatypeProperty(String name,
String comment,
Set domain,
Class range)
Create a DatatypeProperty with the given domain and range. |
void |
addInstance(OInstance theInstance)
Adds a preconstructed instance to the ontology. |
OInstance |
addInstance(String name,
OClass theClass)
Adds an instance to the ontology. |
ObjectProperty |
addObjectProperty(String name,
String comment,
OClass domain,
OClass range)
Creates a new object property (a property that takes instances as values). |
ObjectProperty |
addObjectProperty(String name,
String comment,
Set domain,
Set range)
Creates a new object property (a property that takes instances as values). |
Property |
addProperty(String name,
String comment,
OClass domain,
Class range)
Creates a new generic property that is neither datatype or object property. |
Property |
addProperty(String name,
String comment,
Set domain,
Set range)
Creates a new generic property that is neither datatype or object property. |
SymmetricProperty |
addSymmetricProperty(String name,
String comment,
OClass domain,
OClass range)
Creates a new symmetric property. |
SymmetricProperty |
addSymmetricProperty(String name,
String comment,
Set domain,
Set range)
Creates a new symmetric property (an object property that is symmetric). |
TransitiveProperty |
addTransitiveProperty(String name,
String comment,
OClass domain,
OClass range)
Creates a new transitive property. |
TransitiveProperty |
addTransitiveProperty(String name,
String comment,
Set domain,
Set range)
Creates a new transitive property (an object property that is transitive). |
Set |
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. |
Set |
getInstances()
Gets all instances in the ontology. |
Set |
getInstances(OClass theClass)
Gets all instances in the ontology, which belong to this class, including instances of sub-classes. |
Property |
getPropertyDefinitionByName(String name)
Returns the property definition for a given property. |
Set |
getPropertyDefinitions()
Gets the set of all known property definitions in this ontology. |
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, getDefaultNameSpace, getId, getLabel, getTaxonomicDistance, getTopClasses, getURL, getVersion, isDirectSubClassOf, isModified, isSubClassOf, load, removeClass, setComment, setDefaultNameSpace, setId, setLabel, setModified, 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 |
---|
OInstance addInstance(String name, OClass theClass)
name
- the name for the new instancetheClass
- the class to which the instance belongs
void addInstance(OInstance theInstance)
void removeInstance(OInstance theInstance)
theInstance
- to be removedSet getInstances()
Set
of OInstance objectsSet getInstances(OClass theClass)
theClass
- the class of the instances
Set
of OInstance objectsSet getDirectInstances(OClass theClass)
theClass
- the class of the instances
Set
of OInstance objectsOInstance getInstanceByName(String instanceName)
instanceName
- the instance name
DatatypeProperty addDatatypeProperty(String name, String comment, OClass domain, Class range)
OClass
.
name
- the name for the new property.comment
- the comment for the new property.domain
- the OClass
to which this property applies.range
- the Class
specifying the types of Java objects that this
property has as values.
DatatypeProperty addDatatypeProperty(String name, String comment, Set domain, Class range)
name
- the name for the new property.comment
- the comment for the new property.domain
- the set of ontology classes (i.e. OClass
objects} that
constitutes the range for the new property. The property only
applies to instances that belong to all classes included
in its domain. An empty set means that the property applies to
instances of any class.range
- the Class
specifying the types of Java objects that this
property has as values.
Property addProperty(String name, String comment, Set domain, Set range)
name
- the name for the new property.comment
- the comment for the new property.domain
- the set of ontology classes (i.e. OClass
objects} that
constitutes the range for the new property. The property only
applies to instances that belong to all classes included
in its domain. An empty set means that the property applies to
instances of any class.range
- the set of ontology classes (i.e. OClass
objects} that
constitutes the range for the new property.
Property addProperty(String name, String comment, OClass domain, Class range)
name
- the name for the new property.comment
- the comment for the new property.domain
- the OClass
defining the type of instances this property
can apply to.range
- Java Class
defining the type of values this proeprty can
take.
ObjectProperty addObjectProperty(String name, String comment, Set domain, Set range)
name
- the name for the new property.comment
- the comment for the new property.domain
- the set of ontology classes (i.e. OClass
objects} that
constitutes the range for the new property. The property only
applies to instances that belong to all classes included
in its domain. An empty set means that the property applies to
instances of any class.range
- the set of ontology classes (i.e. OClass
objects} that
constitutes the range for the new property.
ObjectProperty addObjectProperty(String name, String comment, OClass domain, OClass range)
name
- the name for the new property.comment
- the comment for the new property.domain
- the OClass
to which this property applies.range
- the OClass
specifying the types of instances that this
property can take as values.
SymmetricProperty addSymmetricProperty(String name, String comment, Set domain, Set range)
name
- the name for the new property.comment
- the comment for the new property.domain
- the set of ontology classes (i.e. OClass
objects} that
constitutes the range for the new property. The property only
applies to instances that belong to all classes included
in its domain. An empty set means that the property applies to
instances of any class.range
- the set of ontology classes (i.e. OClass
objects} that
constitutes the range for the new property.
SymmetricProperty addSymmetricProperty(String name, String comment, OClass domain, OClass range)
name
- the name for the new property.comment
- the comment for the new property.domain
- the OClass
to which this property applies.range
- the OClass
specifying the types of instances that this
property can take as values.
TransitiveProperty addTransitiveProperty(String name, String comment, Set domain, Set range)
name
- the name for the new property.comment
- the comment for the new property.domain
- the set of ontology classes (i.e. OClass
objects} that
constitutes the range for the new property. The property only
applies to instances that belong to all classes included
in its domain. An empty set means that the property applies to
instances of any class.range
- the set of ontology classes (i.e. OClass
objects} that
constitutes the range for the new property.
TransitiveProperty addTransitiveProperty(String name, String comment, OClass domain, OClass range)
name
- the name for the new property.comment
- the comment for the new property.domain
- the OClass
to which this property applies.range
- the OClass
specifying the types of instances that this
property can take as values.
Set getPropertyDefinitions()
Set
of Property
objects.Property getPropertyDefinitionByName(String name)
name
- the name for which the definition is sought.
Property
object.
|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |