public function EasyRdf_Resource::add

Add values to for a property of the resource

Example: $resource->add('prefix:property', 'value');

Parameters

mixed $property The property name:

mixed $value The value for the property:

Return value

integer The number of values added (1 or 0)

File

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

Class

EasyRdf_Resource
Class that represents an RDF resource

Code

public function add($property, $value) {
  $this
    ->checkHasGraph();
  return $this->graph
    ->add($this->uri, $property, $value);
}