EndpointSparql HTTP Client for 4store Endpoint around basic php function.
You can send a query to any endpoint sparql and read the result in an array.
Example : send a simple query to DBpedia
With a query ASK, you can use the parameter 'raw' in the function query and read directly the result true or false.
Example : send a query ASK with the parameter raw
You can insert data also with SPARQL and the function query. If the graph doesn't exist, 4store will create the graph.
Example : send a query Insert
You can delete data also with SPARQL and the function query.
Example : send a query Delete
You can create or replace a graph with the function set.
Example :
You can add data (Turtle format) in a graph with the function add.
Example :
You can delete a graph with the function delete.
Example :
Located in /php4store/Endpoint.php (line 189)
Endpoint
__construct
(string $endpoint, [boolean $readOnly = true], [boolean $debug = false], [string $proxy_host = null], [string $proxy_port = null])
Constructor of Graph
Add new data in a graph.
Count the number of triples in a graph or in the endpoint.
Delete a graph with its data.
This function parse a SPARQL query, send the query and parse the SPARQL result in a array.
You can custom the result with the parameter $result_format :
Send a request SPARQL of type select or ask to endpoint directly and output the response of server. If you want parse the result of this function, it's better and simpler to use the function query().
if you want use another format, you can use directly the function queryReadJSON and queryReadTabSeparated
Send a request SPARQL of type select or ask to endpoint directly and output the response
of server in the format JSON
Send a request SPARQL of type select or ask to endpoint directly and output the response
of server in the format TabSeparated
Send a request SPARQL of type insert data or delete data to endpoint directly.
If you want check the query before to send, it's better to use the function query() in the class StorePlus.
Create or replace the data in a graph.
Documentation generated on Sat, 20 Aug 2011 18:46:06 +0200 by phpDocumentor 1.4.3