Class ResContainer

Description

An RDF Container.

This Class defines methods for accessing RDF container resources. These methods operate on the RDF statements contained in a model.

Located in /resModel/ResContainer.php (line 18)

Object
   |
   --Node
      |
      --Resource
         |
         --ResResource
            |
            --ResContainer
Direct descendents
Class Description
ResAlt This interface defines methods for accessing RDF Alternative resources.
ResBag This interface defines methods for accessing RDF Bag resources.
ResSeq This interface defines methods for accessing RDF Sequence resources.
Variable Summary
ResResource $containerType
Method Summary
ResContainer ResContainer ([string $uri = null])
void add (object ResResource/ResLiteral $object)
boolean contains (mixed $resResource)
array getMembers ()
boolean isAlt ()
boolean isBag ()
boolean isSeq ()
void remove (mixed $object)
integer size ()
integer _getMemberIndexNrFromMembershipPropertyLabel (string $predicateLabel)
string _getMembershipPropertyWithIndex (intger $int)
boolean _predicateLabelMatchesMembershipProperty (string $predicateLabel)
Variables
ResResource $containerType (line 25)

Holds a ResResource of this container type rdf:Seq, rdf:Alt, or rdf:Bag

  • access: private

Inherited Variables

Inherited from ResResource

ResResource::$isAnon
ResResource::$model

Inherited from Resource

Resource::$uri
Methods
Constructor ResContainer (line 35)

Constructor You can supply a URI

  • access: public
ResContainer ResContainer ([string $uri = null])
  • string $uri
add (line 47)

Add a new value to a container.

The new value is added as the last element of the container.

  • access: public
void add (object ResResource/ResLiteral $object)
  • object ResResource/ResLiteral $object
contains (line 65)

Determine whether the container contains a value

  • access: public
boolean contains (mixed $resResource)
getMembers (line 120)

Get an array of all resources that are values of this container

  • access: public
array getMembers ()
isAlt (line 87)

Returns true, if this resource is a container from type rdf:Alt

  • access: public
boolean isAlt ()
isBag (line 98)

Returns true, if this resource is a container from type rdf:Bag

  • access: public
boolean isBag ()
isSeq (line 109)

Returns true, if this resource is a container from type rdf:Seq

  • access: public
boolean isSeq ()
remove (line 143)

Remove a value from the container.

Once removed, the values in the container with a higher ordinal value are renumbered. The renumbering algorithm depends on the type of container.

  • access: public
void remove (mixed $object)
size (line 178)

Returns the number values in the container.

  • access: public
integer size ()
_getMemberIndexNrFromMembershipPropertyLabel (line 202)

Get the ordinal number from a membership property rdf:_n

  • access: private
integer _getMemberIndexNrFromMembershipPropertyLabel (string $predicateLabel)
  • string $predicateLabel
_getMembershipPropertyWithIndex (line 214)

Get a membership property rdf:_n with index $int

  • access: private
string _getMembershipPropertyWithIndex (intger $int)
  • intger $int
_predicateLabelMatchesMembershipProperty (line 190)

Checks, if a predicate label fits a container membership property rdf:_n

  • access: private
boolean _predicateLabelMatchesMembershipProperty (string $predicateLabel)
  • string $predicateLabel

Inherited Methods

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 Mon, 26 Jun 2006 14:26:05 +0200 by phpDocumentor 1.3.0RC6