You are here

public function EasyRdf_Resource::dump in Zircon Profile 8

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

Return a human readable view of the resource and its properties

This method is intended to be a debugging aid and will print a resource and its properties.

Parameters

string $format Either 'html' or 'text':

Return value

string

File

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

Class

EasyRdf_Resource
Class that represents an RDF resource

Code

public function dump($format = 'html') {
  $this
    ->checkHasGraph();
  return $this->graph
    ->dumpResource($this->uri, $format);
}