public function EasyRdf_Graph::deleteLiteral in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/easyrdf/easyrdf/lib/EasyRdf/Graph.php \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
- vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Graph.php, line 1141
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);
}