public function EasyRdf_Graph::count

Count all values for a property of a resource

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 $type The type of value to filter by (e.g. literal):

string $lang The language to filter by (e.g. en):

Return value

integer The number of values for this property

File

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

Class

EasyRdf_Graph
Container for collection of EasyRdf_Resources.

Code

public function count($resource, $property, $type = null, $lang = null) {
  return count($this
    ->all($resource, $property, $type, $lang));
}