gate.creole.ontology
Interface RDFProperty

All Superinterfaces:
OResource
All Known Subinterfaces:
AnnotationProperty, DatatypeProperty, ObjectProperty, SymmetricProperty, TransitiveProperty

public interface RDFProperty
extends OResource

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.

Author:
Niraj Aswani, Johann Petrak

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)
          Gets the set of sub-properties for this property.
 Set<RDFProperty> getSuperProperties(byte closure)
          Deprecated.  
 Set<RDFProperty> getSuperProperties(OConstants.Closure closure)
          Gets the set of super-properties for this property.
 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

setEquivalentPropertyAs

void setEquivalentPropertyAs(RDFProperty theProperty)
Add an equivalentPropertyAs relation between the two properties. Each property has a set of these, so it is possible to have equivalentPropertyAs relation between more than two properties.

Parameters:
theProperty -

getEquivalentPropertyAs

Set<RDFProperty> getEquivalentPropertyAs()
Returns a set of all RDFProperty instances that are in EquivalentPropertyAs relation with this property. Or null if there are no such properties.

Returns:
a Set value.

isEquivalentPropertyAs

boolean isEquivalentPropertyAs(RDFProperty theProperty)
Checks whether the property is Equivalent as the one provide.

Parameters:
theProperty -
Returns:
true, if the provided property is same as the one provided, otherwise - false.

getSuperProperties

@Deprecated
Set<RDFProperty> getSuperProperties(byte closure)
Deprecated. 

Gets the set of super-properties for this property.

Parameters:
closure - OConstants.DIRECT_CLOSURE for direct super-properties only or OConstants.TRANSITIVE_CLOSURE for all the super-properties.
Returns:
a set of RDFProperty values.

getSuperProperties

Set<RDFProperty> getSuperProperties(OConstants.Closure closure)
Gets the set of super-properties for this property.

Parameters:
closure - OConstants.Closure.DIRECT_CLOSURE for direct super-properties only or OConstants.Closure.TRANSITIVE_CLOSURE for all the super-properties.
Returns:
a set of RDFProperty values.

isSuperPropertyOf

@Deprecated
boolean isSuperPropertyOf(RDFProperty theProperty,
                                     byte closure)
Deprecated. 

Checks whether the property is a super property of the given property.

Parameters:
theProperty -
closure - either OntologyConstants.DIRECT_CLOSURE or OntologyConstants.TRANSTIVE_CLOSURE
Returns:
true, if the property is a super property of the given property, otherwise - false.

isSuperPropertyOf

boolean isSuperPropertyOf(RDFProperty theProperty,
                          OConstants.Closure closure)

addSubProperty

void addSubProperty(RDFProperty property)
Add a SuperPropertyOf relation between the given property and this.

Parameters:
property -

removeSubProperty

void removeSubProperty(RDFProperty property)
Removes a SuperPropertyOf relation between the given property and this.

Parameters:
property -

getSubProperties

@Deprecated
Set<RDFProperty> getSubProperties(byte closure)
Deprecated. 

Gets the set of sub-properties for this property.

Parameters:
closure - OConstants.DIRECT_CLOSURE for direct sub-properties only or OConstants.TRANSITIVE_CLOSURE for all the sub-properties.
Returns:
a set of RDFProperty values.

getSubProperties

Set<RDFProperty> getSubProperties(OConstants.Closure closure)
Gets the set of sub-properties for this property.

Parameters:
closure - OConstants.Closure.DIRECT_CLOSURE for direct sub-properties only or OConstants.Closure.TRANSITIVE_CLOSURE for all the sub-properties.
Returns:
a set of RDFProperty values.

isSubPropertyOf

@Deprecated
boolean isSubPropertyOf(RDFProperty theProperty,
                                   byte closure)
Deprecated. 

Checks whether the property is a sub property of the given property.

Parameters:
theProperty -
closure - either OntologyConstants.DIRECT_CLOSURE or OntologyConstants.TRANSTIVE_CLOSURE
Returns:
true, if the property is a sub property of the given property, otherwise - false.

isSubPropertyOf

boolean isSubPropertyOf(RDFProperty theProperty,
                        OConstants.Closure closure)

isFunctional

boolean isFunctional()
Answers whether this property is a functional property. Functional properties are the ones that can have at most one value for any given value from the domain. Both object properties and datatype properties can be functional.

Returns:
true if this property is functional.

setFunctional

void setFunctional(boolean functional)
Sets the functional property flag on this property.

Parameters:
functional - true iff the property should be marked as functional.

isInverseFunctional

boolean isInverseFunctional()
Answers whether this property is an inverse functional property. Inverse functional properties are the ones that for any given domain value there can be at most one range value that is valid for this property. Both object properties and datatype properties can be inverse functional.

Returns:
true if this property is inverse functional.

setInverseFunctional

void setInverseFunctional(boolean inverseFunctional)
Sets the inverse functional property flag on this property.

Parameters:
inverseFunctional - true iff the property should be marked as inverse functional.

isValidRange

@Deprecated
boolean isValidRange(OResource aResource)
Deprecated. 

Checks whether the provided resource is compatible with the range restrictions on the property.

Parameters:
aResource - the Resource
Returns:
true if this resource is compatible with the range restrictions on the property. False otherwise.

isValidDomain

@Deprecated
boolean isValidDomain(OResource aResource)
Deprecated. 

Checks whether the provided resource is compatible with the domain restrictions on the property.

Parameters:
aResource - the Resource
Returns:
true if this resource is compatible with the domain restrictions on the property. False otherwise.

getDomain

@Deprecated
Set<OResource> getDomain()
Deprecated. 

Returns the set of domain restrictions for this property.


getRange

@Deprecated
Set<OResource> getRange()
Deprecated. 

Gets the set of range restrictions for this property. If no range has been set it returns an empty set.

Returns:
a set of OClass or Class objects.

getOURI

OURI getOURI()
Get the URI of the property.

Returns:
- an OURI object representing the URI of the property.