public function EasyRdf_Resource::__get

Magic method to get a property of a resource

Note that only properties in the default namespace can be accessed in this way.

Example: $value = $resource->title;

Parameters

string $name The name of the property:

Return value

string A single value for the named property

See also

EasyRdf_Namespace::setDefault()

File

drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Resource.php, line 642

Class

EasyRdf_Resource
Class that represents an RDF resource

Code

public function __get($name) {
  return $this->graph
    ->get($this->uri, $name);
}