Class DefaultRDFSInstance

(line 11)

Description

Resource
   |
   --DefaultRDFSResource
      |
      --RDFSResource
         |
         --DefaultRDFSInstance

Located in File: /rdfsapi/instance.php

RDFSInstance


Classes extended from DefaultRDFSInstance:
RDFSInstance

Class Variables

Summary:

Class Constants

Summary:

Method Detail

Summary:
void addPropertyValue (RDFSProperty $prop, $value $value)
value getPropertyValuePlain (mixed $prop)
array listProperties ()
array listPropertyValuesPlain ([mixed $prop = ''])
void removePropertyValues (RDFSProperty $prop, [mixed $value = ''])
void setPropertyValue ( $prop, $value $value, RDFSProperty $prop,)

Method addPropertyValue (line 95)

void addPropertyValue( RDFSProperty $prop, $value $value)

Adds a value for a property. RDFSProperties might have more than one value.

Parameters

  • RDFSProperty $prop: The property the value should be added to.
  • $value $value: Value for the property

Info

Method getPropertyValuePlain (line 31)

value getPropertyValuePlain( mixed $prop)

Returns the value (label) of a property.

Parameters

  • mixed $prop: Property

Info

  • return - of the property. the data type depends on the given widget

Method listAllPropertyValuesPlain (line 60)

array listAllPropertyValuesPlain( )

Returns an array of the values (labels) of all properties of the instance.

Info

  • return - Values of the all properties of the instance.

Method listProperties (line 17)

array listProperties( )

Returns an array of all properties defined for classes which this instance is instance of.

Info

  • return - Array of all properties.

Method listPropertyValuesPlain (line 49)

array listPropertyValuesPlain( [mixed $prop = ''])

Returns an array of the values (labels) of a property.

TODO Depreciated!!!

Parameters

  • mixed $prop: Property

Info

  • return - Values of the property.

Method removePropertyValues (line 110)

void removePropertyValues( RDFSProperty $prop, [mixed $value = ''])

Overrides : DefaultRDFSResource::removePropertyValues() parent method not documented

Removes all property values of the given property.

Parameters

Info

Method setPropertyValue (line 74)

void setPropertyValue( $prop, $value $value, RDFSProperty $prop,)

Overrides : DefaultRDFSResource::setPropertyValue() Removes all property values of $property which do not have the value $value. If a property value with value $value does not already exist it will be added.

Sets a value for a property.

Parameters

  • RDFSProperty $prop,:
  • $value $value: Value for the property.
  • $prop:

Info

Inherited Variables

Inherited Class Variable Summary

Inherited From Class DefaultRDFSResource

DefaultRDFSResource::$model - A reference to the RDFSModel this resource belongs to.

Inherited Methods

Inherited Method Summary

Inherited From Class DefaultRDFSResource

DefaultRDFSResource::DefaultRDFSResource() - Constructor

DefaultRDFSResource::addLabel() - Adds a label to this resource

DefaultRDFSResource::definingModels() -

DefaultRDFSResource::equals() - Checks if the resource equals another resource.

DefaultRDFSResource::getClass() - Returns an RDFSClass this instance is an instance of.

DefaultRDFSResource::getComment() -

DefaultRDFSResource::getDBId() -

DefaultRDFSResource::getDefiningModel() -

DefaultRDFSResource::getLabel() -

DefaultRDFSResource::getLabelForLanguage() - Returns the label for a language. If no label is available for the language in this resource return NULL.

DefaultRDFSResource::getLiteralPropertyValue() -

DefaultRDFSResource::getLocalName() -

DefaultRDFSResource::getLocalNameFast() -

DefaultRDFSResource::getModel() - Get the model which the resource belongs to.

DefaultRDFSResource::getPropertyValue() -

DefaultRDFSResource::getType() -

DefaultRDFSResource::hasPropertyValue() -

DefaultRDFSResource::hasPropertyValueTransitive() -

DefaultRDFSResource::isBlankNode() -

DefaultRDFSResource::isImported() -

DefaultRDFSResource::isOfType() - Checks if this resource is of a specific type.

DefaultRDFSResource::listClasses() - Returns an array of all classes for the given instance.

DefaultRDFSResource::listComments() - Returns an array of comments of this resource indexed by their language

DefaultRDFSResource::listDifferentFrom() - Returns an array of RDFSResources declared to be "owl:differentFrom" this resource.

DefaultRDFSResource::listLabels() - Returns the labels of this resource

DefaultRDFSResource::listLabelsPlain() - TODO: Beschreibung

DefaultRDFSResource::listLists() - Returns a list of nodes representing lists the resource is part of

DefaultRDFSResource::listLiteralPropertyValues() - Returns literal property values of this resource and property $property which macht the given language and datatype (NULL matches arbitrary ones).

DefaultRDFSResource::listLiteralPropertyValuesPlain() -

DefaultRDFSResource::listPropertyValues() - Returns an array of nodes (resources or literals) which are values of the property $property for this resource.

DefaultRDFSResource::listPropertyValuesObject() -

DefaultRDFSResource::listPropertyValuesSymmetric() -

DefaultRDFSResource::listPropertyValuesTransitive() -

DefaultRDFSResource::listSameAs() - Returns an array of RDFSResources declared to be "owl:sameAs" this resource.

DefaultRDFSResource::remove() - Removes this resource from the ontology by deleting any statements that refer to it. If this resource is a property, this method will not remove instances of the property from the model.

DefaultRDFSResource::removePropertyValues() -

DefaultRDFSResource::removeType() - Removes the type of this resource.

DefaultRDFSResource::rename() - Renames this resource.

DefaultRDFSResource::setClass() - Sets this instance to be an instance of $class.

DefaultRDFSResource::setComment() - Sets the comment for this resource

DefaultRDFSResource::setDifferentFrom() - Declares the RDFSResources in $values to be "owl:differentFrom" as this resource.

DefaultRDFSResource::setLabel() - Sets the label of this resource in specified language

DefaultRDFSResource::setPropertyValue() - Removes all property values of $property which do not have the value $value. If a property value with value $value does not already exist it will be added.

DefaultRDFSResource::setPropertyValues() - Removes all property values of $property which do not have a value included in $values. If a value included in $values does not already exist (as property value) it will be added.

DefaultRDFSResource::setPropertyValuesObject() -

DefaultRDFSResource::setPropertyValuesSymmetric() -

DefaultRDFSResource::setSameAs() - Declares the RDFSResources in $values to be "owl:sameAs" as this resource.

DefaultRDFSResource::setType() - Sets the type of this resource.

DefaultRDFSResource::type() - Sets or unsets the type of this resource. If only one parameter is given the present type of this resource will be returned.



Documentation generated on Tue, 07 Nov 2006 13:07:00 +0100 by phpDocumentor 1.3.0