Convert the URI for a node into a string @ignore
protected function nodeUriString($node) {
$type = EasyRdf_Parser_Redland::nodeTypeString($node);
if ($type == 'uri') {
$uri = librdf_node_get_uri($node);
if (!$uri) {
throw new EasyRdf_Exception("Failed to get URI of node");
}
$str = librdf_uri_to_string($uri);
if (!$str) {
throw new EasyRdf_Exception("Failed to convert librdf_uri to string");
}
return $str;
}
elseif ($type == 'bnode') {
return $this
->remapBnode(librdf_node_get_blank_identifier($node));
}
else {
throw new EasyRdf_Exception("Unsupported type: " . $type);
}
}