You are here

public function EasyRdf_GraphStore::insertIntoDefault in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/easyrdf/easyrdf/lib/EasyRdf/GraphStore.php \EasyRdf_GraphStore::insertIntoDefault()

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.

Parameters

EasyRdf_Graph|string $graph Data:

string $format The format of the data to send to the graph store:

Return value

object EasyRdf_Http_Response The response from the graph store

File

vendor/easyrdf/easyrdf/lib/EasyRdf/GraphStore.php, line 233

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 insertIntoDefault($graph, $format = 'ntriples') {
  return $this
    ->insert($graph, self::DEFAULT_GRAPH, $format);
}