public function EasyRdf_Resource::type in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/easyrdf/easyrdf/lib/EasyRdf/Resource.php \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
- vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Resource.php, line 550
Class
- EasyRdf_Resource
- Class that represents an RDF resource
Code
public function type() {
$this
->checkHasGraph();
return $this->graph
->type($this->uri);
}