Class EasyRdf_Sparql_Client

Description

Class for making SPARQL queries using the SPARQL 1.1 Protocol

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


	
			
Method Summary
EasyRdf_Sparql_Client __construct (string $uri)
string getUri ()
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
  • string $query: The query string to be executed
__toString (line 130)

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, 16 Jan 2013 19:16:37 +0000 by phpDocumentor 1.4.4