gate.creole.ontology
Interface ObjectProperty

All Superinterfaces:
OResource, RDFProperty
All Known Subinterfaces:
SymmetricProperty, TransitiveProperty

public interface ObjectProperty
extends RDFProperty

ObjectProperty is a sub type of the RDFProperty. This property takes a set of OClasses as its domain and range. The property can be then assigned to an instance, where the subject instance must belongs to all the OClasses (Transitive closure) specified in the domain and the object instance must belongs to all the OClass (Transitive Closure) specified in the range.

Author:
Niraj Aswani, Johann Petrak

Method Summary
 Set<OResource> getDomain()
          Returns the set of domain restrictions for this property.
 Set<ObjectProperty> getInverseProperties()
          Returns the set of inverse properties for this property.
 Set<OResource> getRange()
          Gets the set of range restrictions for this property.
 boolean isValidDomain(OInstance anInstance)
          Checks whether the provided instance is compatible with the domain restrictions on the property.
 boolean isValidRange(OInstance anInstance)
          Checks whether the provided instance is compatible with the range restrictions on the property.
 void setInverseOf(ObjectProperty theInverse)
          Set theInverse as inverse property to this property.
 
Methods inherited from interface gate.creole.ontology.RDFProperty
addSubProperty, getEquivalentPropertyAs, getOURI, getSubProperties, getSubProperties, getSuperProperties, getSuperProperties, isEquivalentPropertyAs, isFunctional, isInverseFunctional, isSubPropertyOf, isSubPropertyOf, isSuperPropertyOf, isSuperPropertyOf, isValidDomain, isValidRange, removeSubProperty, setEquivalentPropertyAs, setFunctional, setInverseFunctional
 
Methods inherited from interface gate.creole.ontology.OResource
addAnnotationPropertyValue, getAllSetProperties, getAnnotationPropertyValues, getComment, getComments, getLabel, getLabels, getName, getONodeID, getOntology, getPropertiesWithResourceAsDomain, getPropertiesWithResourceAsRange, getSetAnnotationProperties, getURI, hasAnnotationPropertyWithValue, removeAnnotationPropertyValue, removeAnnotationPropertyValues, setComment, setLabel, setURI
 

Method Detail

getInverseProperties

Set<ObjectProperty> getInverseProperties()
Returns the set of inverse properties for this property.

Returns:
a Set of ObjectProperty value.

setInverseOf

void setInverseOf(ObjectProperty theInverse)
Set theInverse as inverse property to this property.

Parameters:
theInverse -

getDomain

Set<OResource> getDomain()
Returns the set of domain restrictions for this property.

Specified by:
getDomain in interface RDFProperty
Returns:

getRange

Set<OResource> getRange()
Gets the set of range restrictions for this property.

Specified by:
getRange in interface RDFProperty
Returns:
a set of OClass or Class objects.

isValidRange

boolean isValidRange(OInstance anInstance)
Checks whether the provided instance is compatible with the range restrictions on the property.

Parameters:
anInstance - the Instance
Returns:
true if this instance is compatible with the range restrictions on the property. False otherwise.

isValidDomain

boolean isValidDomain(OInstance anInstance)
Checks whether the provided instance is compatible with the domain restrictions on the property.

Parameters:
anInstance - the Instance
Returns:
true if this instance is compatible with the domain restrictions on the property. False otherwise.