|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RDFProperty
RDFProperty is the top level property. Any property is an RDFProperty. Each sub property has their constraints on the type of values they can have for their domain and range. Typically RDFProperties (and not any of their sub properties) can have any OResource as its domain and range.
| Method Summary | |
|---|---|
void |
addSubProperty(RDFProperty property)
Add a SuperPropertyOf relation between the given property and this. |
Set<OResource> |
getDomain()
Deprecated. |
Set<RDFProperty> |
getEquivalentPropertyAs()
Returns a set of all RDFProperty instances that are in EquivalentPropertyAs relation with this property. |
OURI |
getOURI()
Get the URI of the property. |
Set<OResource> |
getRange()
Deprecated. |
Set<RDFProperty> |
getSubProperties(byte closure)
Deprecated. |
Set<RDFProperty> |
getSubProperties(OConstants.Closure closure)
|
Set<RDFProperty> |
getSuperProperties(byte closure)
Deprecated. |
Set<RDFProperty> |
getSuperProperties(OConstants.Closure closure)
|
boolean |
isEquivalentPropertyAs(RDFProperty theProperty)
Checks whether the property is Equivalent as the one provide. |
boolean |
isFunctional()
Answers whether this property is a functional property. |
boolean |
isInverseFunctional()
Answers whether this property is an inverse functional property. |
boolean |
isSubPropertyOf(RDFProperty theProperty,
byte closure)
Deprecated. |
boolean |
isSubPropertyOf(RDFProperty theProperty,
OConstants.Closure closure)
|
boolean |
isSuperPropertyOf(RDFProperty theProperty,
byte closure)
Deprecated. |
boolean |
isSuperPropertyOf(RDFProperty theProperty,
OConstants.Closure closure)
|
boolean |
isValidDomain(OResource aResource)
Deprecated. |
boolean |
isValidRange(OResource aResource)
Deprecated. |
void |
removeSubProperty(RDFProperty property)
Removes a SuperPropertyOf relation between the given property and this. |
void |
setEquivalentPropertyAs(RDFProperty theProperty)
Add an equivalentPropertyAs relation between the two properties. |
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. |
| 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 |
|---|
void setEquivalentPropertyAs(RDFProperty theProperty)
theProperty - Set<RDFProperty> getEquivalentPropertyAs()
Set value.boolean isEquivalentPropertyAs(RDFProperty theProperty)
theProperty -
@Deprecated Set<RDFProperty> getSuperProperties(byte closure)
{@link - OConstants#DIRECT_CLOSURE} for direct
super-properties only or
OConstants.TRANSITIVE_CLOSURE for all the
super-properties.
Property values.Set<RDFProperty> getSuperProperties(OConstants.Closure closure)
@Deprecated
boolean isSuperPropertyOf(RDFProperty theProperty,
byte closure)
theProperty - closure - either OntologyConstants.DIRECT_CLOSURE or
OntologyConstants.TRANSTIVE_CLOSURE
boolean isSuperPropertyOf(RDFProperty theProperty,
OConstants.Closure closure)
void addSubProperty(RDFProperty property)
property - void removeSubProperty(RDFProperty property)
property - @Deprecated Set<RDFProperty> getSubProperties(byte closure)
{@link - OConstants#DIRECT_CLOSURE} for direct sub-properties
only or OConstants.TRANSITIVE_CLOSURE for all the
sub-properties.
Property values.Set<RDFProperty> getSubProperties(OConstants.Closure closure)
@Deprecated
boolean isSubPropertyOf(RDFProperty theProperty,
byte closure)
theProperty - closure - either OntologyConstants.DIRECT_CLOSURE or
OntologyConstants.TRANSTIVE_CLOSURE
boolean isSubPropertyOf(RDFProperty theProperty,
OConstants.Closure closure)
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.@Deprecated boolean isValidRange(OResource aResource)
aResource - the Resource
@Deprecated boolean isValidDomain(OResource aResource)
aResource - the Resource
@Deprecated Set<OResource> getDomain()
@Deprecated Set<OResource> getRange()
OClass or Class objects.OURI getOURI()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||