You are here

public function EasyRdf_Resource::isA in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/easyrdf/easyrdf/lib/EasyRdf/Resource.php \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

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

Class

EasyRdf_Resource
Class that represents an RDF resource

Code

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