public function EasyRdf_Resource::isA in Zircon Profile 8.0
Same name and namespace in other branches
- 8 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);
}