You are here

public function EasyRdf_Resource::isBNode in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/easyrdf/easyrdf/lib/EasyRdf/Resource.php \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::toRdfPhp in vendor/easyrdf/easyrdf/lib/EasyRdf/Resource.php
Returns the properties of the resource as an RDF/PHP associative array

File

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

Class

EasyRdf_Resource
Class that represents an RDF resource

Code

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