for (int i = 1; i <= rsmd.getColumnCount(); i++) {
String col = rsmd.getColumnName(i);
if (names.indexOf(col) < 0)
names.add(col); // no duplicates
}
return new TupleResultImpl(names, new CursorBindingSet(rs));
}
catch (SQLException e) {
throw new StoreException(": SPARQL execute failed:["+query+"] \n Exception:"+e);
}
}