You are here

protected function EasyRdf_GraphStore::urlForGraph in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/easyrdf/easyrdf/lib/EasyRdf/GraphStore.php \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 vendor/easyrdf/easyrdf/lib/EasyRdf/GraphStore.php
Delete named graph content from the graph store
EasyRdf_GraphStore::get in vendor/easyrdf/easyrdf/lib/EasyRdf/GraphStore.php
Fetch a named graph from the graph store
EasyRdf_GraphStore::sendGraph in vendor/easyrdf/easyrdf/lib/EasyRdf/GraphStore.php
Send some graph data to the graph store

File

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

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 ($url === self::DEFAULT_GRAPH) {
    $url = $this->uri . '?default';
  }
  elseif (strpos($url, $this->uri) === false) {
    $url = $this->uri . "?graph=" . urlencode($url);
  }
  return $url;
}