public function EasyRdf_Resource::hasProperty

Check to see if a property exists for this resource.

This method will return true if the property exists. If the value parameter is given, then it will only return true if the value also exists for that property.

Parameters

string $property The name of the property (e.g. foaf:name):

mixed $value An optional value of the property:

Return value

bool True if value the property exists.

File

drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Resource.php, line 507

Class

EasyRdf_Resource
Class that represents an RDF resource

Code

public function hasProperty($property, $value = null) {
  $this
    ->checkHasGraph();
  return $this->graph
    ->hasProperty($this->uri, $property, $value);
}