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.
string A type assocated with the resource (e.g. foaf:Person)
public function type() {
$this
->checkHasGraph();
return $this->graph
->type($this->uri);
}