public function EasyRdf_Resource::isA

Check if a resource is of the specified type

Parameters

string $type The type to check (e.g. foaf:Person):

Return value

boolean True if resource is of specified type.

File

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

Class

EasyRdf_Resource
Class that represents an RDF resource

Code

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