Change the rdf:type property for the resource
Note that the PHP class of the resource will not change.
string $type The new type (e.g. foaf:Person):
integer The number of types added
public function setType($type) {
$this
->checkHasGraph();
return $this->graph
->setType($this->uri, $type);
}