protected static function _isBlankNode($v) {
    // Note: A value is a blank node if all of these hold true:
    // 1. It is an Object.
    // 2. If it has an @id key its value begins with '_:'.
    // 3. It has no keys OR is not a @value, @set, or @list.
    $rval = false;
    if(is_object($v)) {
      if(property_exists($v, '@id')) {
        $rval = (strpos($v->{'@id'}, '_:') === 0);
      } else {
        $rval = (count(get_object_vars($v)) === 0 ||
          !(property_exists($v, '@value') ||
            property_exists($v, '@set') ||
            property_exists($v, '@list')));
      }
    }
    return $rval;
  }
protected static function _isBlankNode($v) {
    // Note: A value is a blank node if all of these hold true:
    // 1. It is an Object.
    // 2. If it has an @id key its value begins with '_:'.
    // 3. It has no keys OR is not a @value, @set, or @list.
    $rval = false;
    if(is_object($v)) {
      if(property_exists($v, '@id')) {
        $rval = (strpos($v->{'@id'}, '_:') === 0);
      } else {
        $rval = (count(get_object_vars($v)) === 0 ||
          !(property_exists($v, '@value') ||
            property_exists($v, '@set') ||
            property_exists($v, '@list')));
      }
    }
    return $rval;
  }
protected static function _isBlankNode ( $ v ) { // Note: A value is a blank node if all of these hold true: // 1. It is an Object. // 2. If it has an @id key its value begins with '_:'. // 3. It has no keys OR is not a @value, @set, or @list. $ rval = false ; if ( is_object ( $ v ) ) { if ( property_exists ( $ v , '@id' ) ) { $ rval = ( strpos ( $ v -> { '@id' } , '_:' ) === 0 ) ; } else { $ rval = ( count ( get_object_vars ( $ v ) ) === 0 || ! ( property_exists ( $ v , '@value' ) || property_exists ( $ v , '@set' ) || property_exists ( $ v , '@list' ) ) ) ; } } return $ rval ; }
Returns true if the given value is a blank node.

@param mixed $v the value to check.

@return bool true if the value is a blank node, false if not.
Returns true if the given value is a blank node .