Class LibRDF_GraphQueryResults

Description

A specialized librdf_query_results wrapper for graph results.

Graph results are returned by queries that construct a graph based on triples that meet certain conditions such as those using the "CONSTRUCT" or "DESCRIBE" SPARQL keywords.

Iterating over this class will result in a stream of LibRDF_Statement objects, similar to the result of iterating over a LibRDF_Model.

Located in /QueryResults.php (line 327)

LibRDF_QueryResults
   |
   --LibRDF_GraphQueryResults
Method Summary
void __construct (resource $query_results)
integer key ()
void next ()
void rewind ()
boolean valid ()
Variables

Inherited Variables

Inherited from LibRDF_QueryResults

LibRDF_QueryResults::$query_results
Methods
Constructor __construct (line 345)

Create a new graph query result object.

  • access: public
  • throws: LibRDF_Error If unable to wrap the query results
void __construct (resource $query_results)
  • resource $query_results: The query results to wrap
current (line 385)

Fetch the current statement on the iterator.

  • return: The current statement
  • access: public
LibRDF_Statement current ()
key (line 397)

Fetch the iterator's current key.

  • return: The current key
  • access: public
integer key ()
next (line 409)

Advance the iterator to the next statement.

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

Rewind the iterator.

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

Return whether the iterator is still valid.

  • return: Whether the iterator is valid
  • access: public
boolean valid ()

Inherited Methods

Inherited From LibRDF_QueryResults

LibRDF_QueryResults::makeQueryResults()
LibRDF_QueryResults::to_string()
LibRDF_QueryResults::__clone()
LibRDF_QueryResults::__destruct()
LibRDF_QueryResults::__toString()

Documentation generated on Thu, 15 Jun 2006 19:25:13 -0400 by phpDocumentor 1.3.0