public function EasyRdf_Sparql_Client::query in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/easyrdf/easyrdf/lib/EasyRdf/Sparql/Client.php \EasyRdf_Sparql_Client::query()
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.
Parameters
string $query The query string to be executed:
Return value
object EasyRdf_Sparql_Result|EasyRdf_Graph Result of the query.
2 calls to EasyRdf_Sparql_Client::query()
- EasyRdf_Sparql_Client::countTriples in vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Sparql/ Client.php - Count the number of triples in a SPARQL 1.1 endpoint
- EasyRdf_Sparql_Client::listNamedGraphs in vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Sparql/ Client.php - Get a list of named graphs from a SPARQL 1.1 endpoint
File
- vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Sparql/ Client.php, line 118
Class
- EasyRdf_Sparql_Client
- Class for making SPARQL queries using the SPARQL 1.1 Protocol
Code
public function query($query) {
return $this
->request('query', $query);
}