public function EasyRdf_GraphStore::replace in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/easyrdf/easyrdf/lib/EasyRdf/GraphStore.php \EasyRdf_GraphStore::replace()
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.
Parameters
EasyRdf_Graph|string $graph Data:
string $uriRef The URI of graph to be replaced:
string $format The format of the data to send to the graph store:
Return value
EasyRdf_Http_Response The response from the graph store
1 call to EasyRdf_GraphStore::replace()
- EasyRdf_GraphStore::replaceDefault in vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ GraphStore.php - Replace the contents of default graph in the graph store with new data
File
- vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ GraphStore.php, line 176
Class
- EasyRdf_GraphStore
- A class for fetching, saving and deleting graphs to a Graph Store. Implementation of the SPARQL 1.1 Graph Store HTTP Protocol.
Code
public function replace($graph, $uriRef = null, $format = 'ntriples') {
return $this
->sendGraph('PUT', $graph, $uriRef, $format);
}