Get the resource type of the graph as a EasyRdf_Resource
If the graph has multiple types then the type returned may be arbitrary. This method will return null if the resource has no type.
object EasyRdf_Resource A type assocated with the resource
public function typeAsResource($resource = null) {
$this
->checkResourceParam($resource, true);
if ($resource) {
return $this
->get($resource, 'rdf:type', 'resource');
}
return null;
}