public function EasyRdf_Graph::deleteLiteral

Delete a literal value from a property of a resource

Example: $graph->delete("http://www.example.com", 'dc:title', 'Title of Page');

Parameters

mixed $resource The resource to add data to:

mixed $property The property name:

mixed $value The value of the property:

string $lang The language of the literal:

File

drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Graph.php, line 1117

Class

EasyRdf_Graph
Container for collection of EasyRdf_Resources.

Code

public function deleteLiteral($resource, $property, $value, $lang = null) {
  $this
    ->checkResourceParam($resource);
  $this
    ->checkSinglePropertyParam($property, $inverse);
  $this
    ->checkValueParam($value);
  if ($lang) {
    $value['lang'] = $lang;
  }
  return $this
    ->delete($resource, $property, $value);
}