Set a value for a property
The new value will replace the existing values for the property.
string $resource The resource to set the property on:
string $property The name of the property (e.g. foaf:name):
mixed $value The value for the property:
integer The number of values added (1 or 0)
public function set($resource, $property, $value) {
$this
->checkResourceParam($resource);
$this
->checkSinglePropertyParam($property, $inverse);
$this
->checkValueParam($value);
// Delete the old values
$this
->delete($resource, $property);
// Add the new values
return $this
->add($resource, $property, $value);
}