|
GATE Version 3.1-2270 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Property
This interface defines an ontology property and is the top level interface for all types of ontological properties.
| Field Summary |
|---|
| Fields inherited from interface gate.creole.ontology.OntologyConstants |
|---|
DIRECT_CLOSURE, TRANSITIVE_CLOSURE |
| Method Summary | |
|---|---|
void |
addSubProperty(Property property)
Add a SuperPropertyOf relation between the given property and this. |
void |
addSuperProperty(Property property)
Adds a SubPropertyOf relation between the given property and this. |
Set |
getDomain()
Returns the set of domain restrictions for this property. |
Set |
getRange()
Gets the set of range restrictions for this property. |
Set |
getSamePropertyAs()
Returns a set of all KBProperty instances that are in SamePropertyAs relation with this property. |
Set |
getSubProperties(byte closure)
Gets the set of sub-properties for this property. |
Set |
getSuperProperties(byte closure)
Gets the set of super-properties for this property. |
boolean |
isFunctional()
Answers whether this property is a functional property. |
boolean |
isInverseFunctional()
Answers whether this property is an inverse functional property. |
boolean |
isValidDomain(OntologyResource instance)
Checks whether this property can apply to the provided instance |
boolean |
isValidRange(Object value)
|
void |
removeSubProperty(Property property)
Removes a SuperPropertyOf relation between the given property and this. |
void |
removeSuperProperty(Property property)
Removes a SubPropertyOf relation between the given property and this. |
void |
setFunctional(boolean functional)
Sets the functional property flag on this property. |
void |
setInverseFunctional(boolean inverseFunctional)
Sets the inverse functional property flag on this property. |
void |
setSamePropertyAs(Property theProperty)
Add a samePropertyAs relation between the two properties. |
| Methods inherited from interface gate.creole.ontology.OntologyResource |
|---|
addPropertyValue, getComment, getName, getOntology, getPropertyValues, getSetPropertiesNames, getTaxonomy, getURI, removePropertyValue, removePropertyValues, setComment, setName, setURI |
| Method Detail |
|---|
void setSamePropertyAs(Property theProperty)
theProperty - Set getSamePropertyAs()
Set value.void addSuperProperty(Property property)
property - void removeSuperProperty(Property property)
property - void addSubProperty(Property property)
property - void removeSubProperty(Property property)
property - Set getDomain()
Set getRange()
OClass or Class objects.boolean isValidDomain(OntologyResource instance)
instance - the instance
boolean isValidRange(Object value)
value -
boolean isFunctional()
void setFunctional(boolean functional)
functional - true iff the property should be marked as functional.boolean isInverseFunctional()
void setInverseFunctional(boolean inverseFunctional)
inverseFunctional - true iff the property should be marked as inverse
functional.Set getSuperProperties(byte closure)
{@link - OntologyConstants#DIRECT_CLOSURE}
for direct super-properties only or
OntologyConstants.TRANSITIVE_CLOSURE for all the
super-properties.
Property values.Set getSubProperties(byte closure)
{@link - OntologyConstants#DIRECT_CLOSURE}
for direct sub-properties only or
OntologyConstants.TRANSITIVE_CLOSURE for all the
sub-properties.
Property values.
|
GATE Version 3.1-2270 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||