Create a new EasyRdf_Resource or EasyRdf_Literal depending on the type of data passed in.
@ignore
protected function newTerm($data) {
switch ($data['type']) {
case 'bnode':
return new EasyRdf_Resource('_:' . $data['value']);
case 'uri':
return new EasyRdf_Resource($data['value']);
case 'literal':
case 'typed-literal':
return EasyRdf_Literal::create($data);
default:
throw new EasyRdf_Exception("Failed to parse SPARQL Query Results format, unknown term type: " . $data['type']);
}
}