public function EasyRdf_Resource::addType

Add one or more rdf:type properties to the resource

Parameters

string $types One or more types to add (e.g. foaf:Person):

Return value

integer The number of types added

File

drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Resource.php, line 571

Class

EasyRdf_Resource
Class that represents an RDF resource

Code

public function addType($types) {
  $this
    ->checkHasGraph();
  return $this->graph
    ->addType($this->uri, $types);
}