public function EasyRdf_Resource::allLiterals in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/easyrdf/easyrdf/lib/EasyRdf/Resource.php \EasyRdf_Resource::allLiterals()
Get all literal values for a property of the resource
This method will return an empty array if the resource does not has any literal values for that property.
Parameters
string $property The name of the property (e.g. foaf:name):
string $lang The language to filter by (e.g. en):
Return value
array An array of values associated with the property
File
- vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Resource.php, line 427
Class
- EasyRdf_Resource
- Class that represents an RDF resource
Code
public function allLiterals($property, $lang = null) {
$this
->checkHasGraph();
return $this->graph
->all($this->uri, $property, 'literal', $lang);
}