public function EasyRdf_GraphStore::get

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.

Parameters

string $uriRef The URI of graph desired:

Return value

object EasyRdf_Graph The graph requested

File

drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/GraphStore.php, line 81

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 get($uriRef) {
  $graphUri = $this->parsedUri
    ->resolve($uriRef)
    ->toString();
  $dataUrl = $this
    ->urlForGraph($graphUri);
  $graph = new EasyRdf_Graph($graphUri);
  $graph
    ->load($dataUrl);
  return $graph;
}