protected function EasyRdf_Parser_Redland::nodeTypeString

Convert a librdf node type into a string @ignore

2 calls to EasyRdf_Parser_Redland::nodeTypeString()
EasyRdf_Parser_Redland::nodeToArray in drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Redland.php
Convert a node into an associate array @ignore
EasyRdf_Parser_Redland::nodeUriString in drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Redland.php
Convert the URI for a node into a string @ignore

File

drupal/core/vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Redland.php, line 74

Class

EasyRdf_Parser_Redland
Class to parse RDF using Redland (librdf) C library.

Code

protected function nodeTypeString($node) {
  switch (librdf_node_get_type($node)) {
    case 1:
      return 'uri';
      break;
    case 2:
      return 'literal';
      break;
    case 4:
      return 'bnode';
      break;
    default:
      return 'unknown';
      break;
  }
}