protected function EasyRdf_Parser_Redland::nodeTypeString in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/easyrdf/easyrdf/lib/EasyRdf/Parser/Redland.php \EasyRdf_Parser_Redland::nodeTypeString()
Convert a librdf node type into a string @ignore
2 calls to EasyRdf_Parser_Redland::nodeTypeString()
- EasyRdf_Parser_Redland::nodeToRdfPhp in vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Parser/ Redland.php - Convert a node into an associate array @ignore
- EasyRdf_Parser_Redland::nodeUriString in vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Parser/ Redland.php - Convert the URI for a node into a string @ignore
File
- vendor/
easyrdf/ easyrdf/ lib/ EasyRdf/ Parser/ Redland.php, line 73
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;
}
}