Class OntProperty

Description

Class encapsulating a property in an ontology.

Located in /ontModel/OntProperty.php (line 19)

Object
   |
   --Node
      |
      --Resource
         |
         --ResResource
            |
            --OntResource
               |
               --OntProperty
Method Summary
OntProperty OntProperty ([string $uri = null])
boolean addDomain (object ResResource $resResource)
boolean addRange (object ResResource $resResource)
boolean addSubProperty (object ResProperty $resProperty)
boolean addSuperProperty (object ResProperty $resProperty)
boolean hasDomain (object ResResource $resResource)
boolean hasRange (object ResResource $resResource)
boolean hasSubProperty (object ResResource $resProperty, [boolean $direct = true])
boolean hasSuperProperty (object ResResource $resProperty, [boolean $direct = true])
array listDomain ()
array listRange ()
array listSubProperties ([boolean $direct = true])
array listSuperProperties ([boolean $direct = true])
boolean removeDomain (object ResResource $resResource)
boolean removeRange (object ResResource $resResource)
boolean removeSubProperty (object ResProperty $resProperty)
boolean removeSuperProperty (object ResProperty $resProperty)
void setDomain (object ResResource $resResource)
void setRange (object ResResource $resResource)
void setSubProperty (object ResProperty $resProperty)
void setSuperProperty (object ResProperty $resProperty)
Methods
Constructor OntProperty (line 28)

Constructor.

You can supply a URI.

  • access: public
OntProperty OntProperty ([string $uri = null])
  • string $uri
addDomain (line 40)

Add a resource representing the domain of this property.

  • access: public
boolean addDomain (object ResResource $resResource)
  • object ResResource $resResource
addRange (line 52)

Add a resource representing the range of this property.

  • access: public
boolean addRange (object ResResource $resResource)
  • object ResResource $resResource
addSubProperty (line 64)

Add a sub-property of this property.

  • access: public
boolean addSubProperty (object ResProperty $resProperty)
  • object ResProperty $resProperty
addSuperProperty (line 76)

Add a super-property of this property.

  • access: public
boolean addSuperProperty (object ResProperty $resProperty)
  • object ResProperty $resProperty
getDomain (line 88)

Answer a OntClass that represents the domain class of this property.

If there is more than one such resource, an arbitrary selection is made.

  • access: public
object OntClass getDomain ()
getRange (line 100)

Answer a OntClass that represents the range class of this property.

If there is more than one such resource, an arbitrary selection is made.

  • access: public
object OntClass getRange ()
getSubProperty (line 112)

Answer a property that is the sub-property of this property.

If there is more than one such property, an arbitrary selection is made.

  • access: public
object OntProperty getSubProperty ()
getSuperProperty (line 128)

Answer a property that is the super-property of this property.

If there is more than one such property, an arbitrary selection is made.

  • access: public
object OntProperty getSuperProperty ()
hasDomain (line 140)

Answer true if the given resource a class specifying the domain of this property.

  • access: public
boolean hasDomain (object ResResource $resResource)
  • object ResResource $resResource
hasRange (line 152)

Answer true if the given resource a class specifying the range of this property.

  • access: public
boolean hasRange (object ResResource $resResource)
  • object ResResource $resResource
hasSubProperty (line 167)

Answer true if the given property is a sub-property of this property.

If $direct is set to true, only consider the direcly adjacent properties in the property hierarchy

  • access: public
boolean hasSubProperty (object ResResource $resProperty, [boolean $direct = true])
  • object ResResource $resProperty
  • boolean $direct
hasSuperProperty (line 186)

Answer true if the given property is a super-property of this property.

If $direct is set to true, only consider the direcly adjacent properties in the property hierarchy

  • access: public
boolean hasSuperProperty (object ResResource $resProperty, [boolean $direct = true])
  • object ResResource $resProperty
  • boolean $direct
listDomain (line 202)

Answer an array of all of the declared domain classes of this property.

Each element of the iterator will be an OntClass.

  • return: of OntClasses
  • access: public
array listDomain ()
listRange (line 214)

Answer an array of all of the declared range classes of this property.

Each element of the iterator will be an OntClass.

  • return: of OntClasses
  • access: public
array listRange ()
listSubProperties (line 230)

Answer an array of all the properties that are declared to be sub-properties of this property. Each element of the iterator will be an OntProperty.

If $direct is set to true, only consider the direcly adjacent properties in the property hierarchy

  • return: of OntProperties
  • access: public
array listSubProperties ([boolean $direct = true])
  • boolean $direct
listSuperProperties (line 266)

Answer an array of all the properties that are declared to be super-properties of this property. Each element of the iterator will be an OntProperty.

If $direct is set to true, only consider the direcly adjacent properties in the property hierarchy

  • return: of OntProperties
  • access: public
array listSuperProperties ([boolean $direct = true])
  • boolean $direct
removeDomain (line 294)

Remove the given class from the stated domain(s) of this property.

  • access: public
boolean removeDomain (object ResResource $resResource)
  • object ResResource $resResource
removeRange (line 306)

Remove the given class from the stated range(es) of this property.

  • access: public
boolean removeRange (object ResResource $resResource)
  • object ResResource $resResource
removeSubProperty (line 318)

Remove the given property from the sub-properties of this property.

  • access: public
boolean removeSubProperty (object ResProperty $resProperty)
  • object ResProperty $resProperty
removeSuperProperty (line 330)

Remove the given property from the super-properties of this property.

  • access: public
boolean removeSuperProperty (object ResProperty $resProperty)
  • object ResProperty $resProperty
setDomain (line 343)

Assert that the given resource represents the class of individuals that form the domain of this property. Any existing domain statements for this property are removed.

  • access: public
void setDomain (object ResResource $resResource)
  • object ResResource $resResource
setRange (line 356)

Assert that the given resource represents the class of individuals that form the range of this property. Any existing range statements for this property are removed.

  • access: public
void setRange (object ResResource $resResource)
  • object ResResource $resResource
setSubProperty (line 368)

Assert that this property is super-property of the given property.

Any existing statements for superPropertyOf on prop will be removed.

  • access: public
void setSubProperty (object ResProperty $resProperty)
  • object ResProperty $resProperty
setSuperProperty (line 385)

Assert that this property is sub-property of the given property.

Any existing statements for subPropertyOf on prop will be removed.

  • access: public
void setSuperProperty (object ResProperty $resProperty)
  • object ResProperty $resProperty

Inherited Methods

Inherited From OntResource

OntResource::OntResource()
OntResource::addComment()
OntResource::addIsDefinedBy()
OntResource::addLabelProperty()
OntResource::addProperty()
OntResource::addRDFType()
OntResource::addSeeAlso()
OntResource::asClass()
OntResource::asIndividual()
OntResource::asOntProperty()
OntResource::getComment()
OntResource::getInstanceRdfType()
OntResource::getIsDefinedBy()
OntResource::getLabelProperty()
OntResource::getPropertyValue()
OntResource::getRDFType()
OntResource::getSeeAlso()
OntResource::getVocabulary()
OntResource::hasComment()
OntResource::hasLabelProperty()
OntResource::hasRDFType()
OntResource::hasSeeAlso()
OntResource::isDefinedBy()
OntResource::listComments()
OntResource::listIsDefinedBy()
OntResource::listLabelProperties()
OntResource::listProperty()
OntResource::listRDFTypes()
OntResource::listSeeAlso()
OntResource::removeComment()
OntResource::removeDefinedBy()
OntResource::removeLabelProperty()
OntResource::removeProperty()
OntResource::removeRDFType()
OntResource::removeSeeAlso()
OntResource::setComment()
OntResource::setInstanceRdfType()
OntResource::setIsDefinedBy()
OntResource::setLabelProperty()
OntResource::setPropertyValue()
OntResource::setRDFType()
OntResource::setSeeAlso()
OntResource::setVocabulary()

Inherited From ResResource

ResResource::ResResource()
ResResource::addProperty()
ResResource::equals()
ResResource::getAssociatedModel()
ResResource::getIsAnon()
ResResource::getProperty()
ResResource::hasProperty()
ResResource::listProperties()
ResResource::removeAll()
ResResource::removeProperties()
ResResource::setAssociatedModel()
ResResource::setIsAnon()
ResResource::setURI()

Inherited From Resource

Resource::Resource()
Resource::equals()
Resource::getLabel()
Resource::getLocalName()
Resource::getNamespace()
Resource::getURI()
Resource::toString()

Inherited From Object

Object::toString()

Documentation generated on Fri, 1 Jun 2007 16:50:10 +0200 by phpDocumentor 1.3.2