Docs For Class EasyRdf_Sparql_Client

## Class EasyRdf_Sparql_Client

Description

Class for making SPARQL queries using the SPARQL 1.1 Protocol

- copyright: Copyright (c) 2009-2011 Nicholas J Humfrey
- license: http://www.opensource.org/licenses/bsd-license.php

Located in /EasyRdf/Sparql/Client.php (line 46)

Method Summary
EasyRdf_Sparql_Client __construct (string $uri)
string getUri ()
object EasyRdf_Sparql_Result|EasyRdf_Graph query (string $query)
string __toString ()
Methods
Constructor __construct (line 59)

Create a new SPARQL endpoint client

- access: public

EasyRdf_Sparql_Client __construct (string $uri)

- string $uri: The address of the SPARQL Endpoint

getUri (line 68)

Get the URI of the SPARQL endpoint

- return: The URI of the SPARQL endpoint
- access: public

string getUri ()
query (line 84)

Make a query to the SPARQL endpoint

SELECT and ASK queries will return an object of type EasyRdf_Sparql_Result.

CONSTRUCT and DESCRIBE queries will return an object of type EasyRdf_Graph.

- return: Result of the query.
- access: public

object EasyRdf_Sparql_Result|EasyRdf_Graph query (string $query)

- string $query: The query string to be executed

__toString (line 128)

Magic method to return URI of the SPARQL endpoint when casted to string

- return: The URI of the SPARQL endpoint
- access: public

string __toString ()

Documentation generated on Wed, 20 Jul 2011 19:54:03 +0100 by phpDocumentor 1.4.3