public function EasyRdf_Resource::isBnode

Check to see if a resource is a blank node.

Return value

bool True if this resource is a blank node.

1 call to EasyRdf_Resource::isBnode()
EasyRdf_Resource::toArray in drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Resource.php
Returns the properties of the resource as an associative array

File

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

Class

EasyRdf_Resource
Class that represents an RDF resource

Code

public function isBnode() {
  if (substr($this->uri, 0, 2) == '_:') {
    return true;
  }
  else {
    return false;
  }
}