public function EasyRdf_Resource::types in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/easyrdf/easyrdf/lib/EasyRdf/Resource.php \EasyRdf_Resource::types()
Get a list of types for a resource.
The types will each be a shortened URI as a string. This method will return an empty array if the resource has no types.
Return value
array All types assocated with the resource (e.g. foaf:Person)
File
- vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Resource.php, line 535
Class
- EasyRdf_Resource
- Class that represents an RDF resource
Code
public function types() {
$this
->checkHasGraph();
return $this->graph
->types($this->uri);
}