public function EasyRdf_Resource::type

Get a single type for a resource.

The type will be a shortened URI as a string. 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

string A type assocated with the resource (e.g. foaf:Person)

File

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

Class

EasyRdf_Resource
Class that represents an RDF resource

Code

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