Implementation of a resource iterator.
This Iterator should be used in a for-loop like: $it = $ontClass->listInstances(); for ($it->rewind(); $it->valid(); $it->next()) { $currentResource=$it->current(); };
Located in /resModel/ResIterator.php (line 29)
Holds a reference to the assoiated ResModel / OntModel
The current resource
If set, each resource will first be checked, if it's language fits.
If the resource, we're intrested in is the subject (s), predicate(p), or object (o) of the found statements
The current position
Defines the type of resource, we'd like to receive.
The object to search for.
The predicate to search for.
The subject to search for.
If the current resource is valid
Constructor.
$subject, $predicate, and $object are used like inf find(). $getSPO supports the strings 's', 'p', and 'o' to return either the subject, predicate, or object of the result statements. $returnType supports the strings 'ResProperty', 'ResLiteral', 'OntProperty', 'OntClass', and 'Individual' and returns the resources as the matching type.
Sets that only Literals with the matching language should be returned
Returns the next Resource (subject, predicate, or object of the next matching statement).
Returns the $resource as an instance of the type specified in $this->returnType.
Documentation generated on Mon, 26 Jun 2006 14:26:06 +0200 by phpDocumentor 1.3.0RC6