public function EasyRdf_Resource::getNodeId

Get the identifier for a blank node

Returns null if the resource is not a blank node.

Return value

string The identifer for the bnode

File

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

Class

EasyRdf_Resource
Class that represents an RDF resource

Code

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