for(Object o : bindings) {
if(o instanceof Map) {
Map<String,RDFNode> row = new HashMap<String, RDFNode>();
for(Map.Entry<String,?> entry : ((Map<String,?>)o).entrySet()) {
Map<String,String> nodeDef = (Map<String,String>) entry.getValue();
RDFNode node = null;
if("uri".equalsIgnoreCase(nodeDef.get("type"))) {
node = new URI(nodeDef.get("value"));
} else if("literal".equalsIgnoreCase(nodeDef.get("type")) ||
"typed-literal".equalsIgnoreCase(nodeDef.get("type"))) {
String lang = nodeDef.get("xml:lang");