Class IteratorFindQuadsMem

Description

Implementation of a quad iterator.

This Iterator should be used like: for($iterator = $dataset->findInNamedGraphs(null,null,null,null); $iterator->valid(); $iterator->next()) { $currentQuad=$it->current(); };

  • access: public
  • author: Daniel Westphal (http://d-westphal.de)
  • version: $Id: IteratorFindQuadsMem.html,v 1.10 2006/06/26 12:34:19 tgauss Exp $

Located in /dataset/IteratorFindQuadsMem.php (line 24)


	
			
Variable Summary
NamedGraph $current
string $findObject
string $findSubject
dataset $graphKey
integer $key
boolean $valid
Method Summary
IteratorFindQuadsMem IteratorFindQuadsMem (mixed $subject, mixed $predicate, mixed $object, mixed &$graphIterator, [mixed $returnAsTriples = false])
mixed current ()
integer key ()
void next ()
void rewind ()
boolean valid ()
Variables
NamedGraph $current (line 64)

The current NamedGraph.

  • access: private
string $findGraphName (line 72)

The graphName Resource to search for.

  • access: private
string $findObject (line 96)

The object Resource to search for.

  • access: private
string $findPredicate (line 88)

The predicate Resource to search for.

  • access: private
string $findSubject (line 80)

The subject Resource to search for.

  • access: private
string $graphIterator (line 104)

Iterator over all graphs of the RDF dataset.

  • access: private
dataset $graphKey (line 32)

key value in the current graph.

  • access: private
integer $key (line 48)

The current position.

  • access: private
boolean $returnAsTriples (line 40)

boolean value, if the results should be returned as triples.

  • access: private
boolean $valid (line 56)

If the current resource is valid.

  • access: private
Methods
Constructor IteratorFindQuadsMem (line 122)

Constructor.

$subject, $predicate, and $object are used like find(). $getSPO supports the strings 's', 'p', and 'o' to return either the subject, predicate, or object of the result statements.

  • access: public
IteratorFindQuadsMem IteratorFindQuadsMem (mixed $subject, mixed $predicate, mixed $object, mixed &$graphIterator, [mixed $returnAsTriples = false])
current (line 197)

Returns the current item.

  • access: public
mixed current ()
key (line 211)

Returns the key of the current item.

  • access: public
integer key ()
next (line 161)

Moves Iterator to the next item in the list.

  • access: public
void next ()
rewind (line 137)

Resets iterator list to start.

  • access: public
void rewind ()
valid (line 151)

Says if there are additional items left in the list.

  • access: public
boolean valid ()

Documentation generated on Mon, 26 Jun 2006 14:25:34 +0200 by phpDocumentor 1.3.0RC6