A specialized librdf_query_results wrapper for boolean results.
Boolean results are returned when using an "ASK" query form to test whether triples exist that satisfy certain conditions. For example,
PREFIX dc: <http://purl.org/dc/elements/1.1/><br> ASK WHERE { ?book dc:creator ?author }
in SPARQL will return a boolean result representing whether there is any triple with the http://purl.org/dc/elements/1.1/creator predicate.
In addition to iteration (which will iterate over a single boolean element), a function getValue is provided to simply retrieve the result the query.
Located in /QueryResults.php (line 201)
LibRDF_QueryResults | --LibRDF_BooleanQueryResults
Create a new boolean query result object.
Return the current (and only) boolean value.
Return the boolean value of the result.
Return the iterator key (always 0).
Advance the iterator.
Since boolean results have only one result, this function renders the iterator invalid.
Rewind the iterator.
Test whether the iterator is still valid.
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