You are here

public function EasyRdf_Resource::getBNodeId in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/easyrdf/easyrdf/lib/EasyRdf/Resource.php \EasyRdf_Resource::getBNodeId()

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

vendor/easyrdf/easyrdf/lib/EasyRdf/Resource.php, line 120

Class

EasyRdf_Resource
Class that represents an RDF resource

Code

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