public function EasyRdf_Resource::typeAsResource

Get a single type for a resource, as a resource.

The type will be returned as an EasyRdf_Resource. If the resource has multiple types then the type returned may be arbitrary. This method will return null if the resource has no type.

Return value

EasyRdf_Resource A type assocated with the resource.

File

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

Class

EasyRdf_Resource
Class that represents an RDF resource

Code

public function typeAsResource() {
  return $this->graph
    ->typeAsResource($this->uri);
}