|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ObjectProperty
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.
| 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 |
|---|
Set<ObjectProperty> getInverseProperties()
Set of ObjectProperty value.void setInverseOf(ObjectProperty theInverse)
theInverse - Set<OResource> getDomain()
getDomain in interface RDFPropertySet<OResource> getRange()
getRange in interface RDFPropertyOClass or Class objects.boolean isValidRange(OInstance anInstance)
anInstance - the Instance
boolean isValidDomain(OInstance anInstance)
anInstance - the Instance
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||