Class LibRDF_Query

Description

A wrapper around the librdf_query datatype.

A query is created independent of any context and is then executed, using execute, against a particular model. A query can be executed multiple times and against multiple models. Results are represented as a LibRDF_QueryResults object.

Located in /Query.php (line 54)


	
			
Method Summary
void __construct (string $query_string, [string $base_uri = NULL], [string $query_language = "rdql"], [string $query_uri = NULL])
void __destruct ()
void __clone ()
Methods
Constructor __construct (line 80)

Create a new query.

Query language is any language supported by rasqal, including "rdql", "sparql" and "triples".

The syntax of the query is not checked until it is executed.

  • access: public
  • throws: LibRDF_Error If unable to create a new query
void __construct (string $query_string, [string $base_uri = NULL], [string $query_language = "rdql"], [string $query_uri = NULL])
  • string $query_string: The contents of the query
  • string $base_uri: The base URI to use
  • string $query_language: The language of the query (default rdql)
  • string $query_uri: The URI of the query language or NULL
Destructor __destruct (line 106)

Free the query resources.

  • access: public
void __destruct ()
execute (line 139)

Run the query against a model.

  • return: The result of the query
  • access: public
  • throws: LibRDF_Error If unable to execute the query
LibRDF_QueryResults execute (LibRDF_Model $model)
__clone (line 122)

Clone the query.

Cloning may not be supported for all query types.

  • access: public
  • throws: LibRDF_Error If unable to clone the query
void __clone ()

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