You are here

public function EasyRdf_Graph::allLiterals in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/easyrdf/easyrdf/lib/EasyRdf/Graph.php \EasyRdf_Graph::allLiterals()

Get all literal values for a property of a resource

This method will return an empty array if the resource does not has any literal values for that property.

Parameters

string $resource The URI of the resource (e.g. http://example.com/joe#me):

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/Graph.php, line 845

Class

EasyRdf_Graph
Container for collection of EasyRdf_Resources.

Code

public function allLiterals($resource, $property, $lang = null) {
  return $this
    ->all($resource, $property, 'literal', $lang);
}