You are here

public function EasyRdf_Resource::load in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/easyrdf/easyrdf/lib/EasyRdf/Resource.php \EasyRdf_Resource::load()

Perform a load (download of remote URI) of the resource into the graph

The document type is optional but should be specified if it can't be guessed or got from the HTTP headers.

Parameters

string $format Optional format of the data (eg. rdfxml):

File

vendor/easyrdf/easyrdf/lib/EasyRdf/Resource.php, line 264

Class

EasyRdf_Resource
Class that represents an RDF resource

Code

public function load($format = null) {
  $this
    ->checkHasGraph();
  return $this->graph
    ->load($this->uri, $format);
}