protected function EasyRdf_GraphStore::urlForGraph

Work out the full URL for a graph store request. by checking if if it is a direct or indirect request. @ignore

3 calls to EasyRdf_GraphStore::urlForGraph()
EasyRdf_GraphStore::delete in drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/GraphStore.php
Delete a graph from the graph store
EasyRdf_GraphStore::get in drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/GraphStore.php
Fetch a named graph from the graph store
EasyRdf_GraphStore::sendGraph in drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/GraphStore.php
Send some graph data to the graph store

File

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

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

protected function urlForGraph($url) {
  if (strpos($url, $this->uri) === false) {
    $url = $this->uri . "?graph=" . urlencode($url);
  }
  return $url;
}