GraphStore
class GraphStore
A class for fetching, saving and deleting graphs to a Graph Store.
Implementation of the SPARQL 1.1 Graph Store HTTP Protocol.
Constants
| DEFAULT_GRAPH |
Use to reference default graph of triplestore |
Methods
Create a new SPARQL Graph Store client
Get the URI of the graph store
Fetch a named graph from the graph store
Fetch default graph from the graph store
Send some graph data to the graph store
Replace the contents of a graph in the graph store with new data
Replace the contents of default graph in the graph store with new data
Add data to a graph in the graph store
Add data to default graph of the graph store
Delete named graph content from the graph store
Delete default graph content from the graph store
Work out the full URL for a graph store request.
Magic method to return URI of the graph store when casted to string
Details
at line 63
__construct(string $uri)
Create a new SPARQL Graph Store client
at line 73
string
getUri()
Get the URI of the graph store
at line 87
Graph
get(string $uriRef)
Fetch a named graph from the graph store
The URI can either be a full absolute URI or a URI relative to the URI of the graph store.
at line 108
Graph
getDefault()
Fetch default graph from the graph store
at line 119
protected
sendGraph($method, $graph, $uriRef, $format)
Send some graph data to the graph store
This method is used by insert() and replace()
at line 179
Response
replace(Graph|string $graph, string $uriRef = null, string $format = 'ntriples')
Replace the contents of a graph in the graph store with new data
The $graph parameter is the EasyRdf\Graph object to be sent to the graph store. Alternatively it can be a string, already serialised.
The URI can either be a full absolute URI or a URI relative to the URI of the graph store.
The $format parameter can be given to specify the serialisation used to send the graph data to the graph store.
at line 198
Response
replaceDefault(Graph|string $graph, string $format = 'ntriples')
Replace the contents of default graph in the graph store with new data
The $graph parameter is the EasyRdf\Graph object to be sent to the graph store. Alternatively it can be a string, already serialised.
The $format parameter can be given to specify the serialisation used to send the graph data to the graph store.
at line 220
Response
insert(Graph|string $graph, string $uriRef = null, string $format = 'ntriples')
Add data to a graph in the graph store
The $graph parameter is the EasyRdf\Graph object to be sent to the graph store. Alternatively it can be a string, already serialised.
The URI can either be a full absolute URI or a URI relative to the URI of the graph store.
The $format parameter can be given to specify the serialisation used to send the graph data to the graph store.
at line 239
Response
insertIntoDefault(Graph|string $graph, string $format = 'ntriples')
Add data to default graph of the graph store
The $graph parameter is the EasyRdf\Graph object to be sent to the graph store. Alternatively it can be a string, already serialised.
The $format parameter can be given to specify the serialisation used to send the graph data to the graph store.
at line 254
Response
delete(string $uriRef)
Delete named graph content from the graph store
The URI can either be a full absolute URI or a URI relative to the URI of the graph store.
at line 284
Response
deleteDefault()
Delete default graph content from the graph store
at line 293
protected
urlForGraph($url)
Work out the full URL for a graph store request.
by checking if if it is a direct or indirect request.
at line 308
string
__toString()
Magic method to return URI of the graph store when casted to string