public function EasyRdf_Resource::addType in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/easyrdf/easyrdf/lib/EasyRdf/Resource.php \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
- vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Resource.php, line 599
Class
- EasyRdf_Resource
- Class that represents an RDF resource
Code
public function addType($types) {
$this
->checkHasGraph();
return $this->graph
->addType($this->uri, $types);
}