inStream.setCharacterStream(new StringReader(queryResults[j]));
Document queryResult = db.parse(inStream);
StringBuffer linkText = new StringBuffer();
linkText.append("http://tdb.mc.manchester.ac.uk/tamino/beacon_XML/experiments/Experiment/@");
String titleID=databaseOperations.getValue(queryResult,"titleID");
ExperimentDescription newDescription = new ExperimentDescription(titleID);
StringBuffer person = new StringBuffer();
person.append(databaseOperations.getValue(queryResult,"firstName"));
person.append(" ");
if (databaseOperations.getValue(queryResult,"midInitials").length()>0){
person.append(databaseOperations.getValue(queryResult,"midInitials"));
person.append(". ");
}
person.append(databaseOperations.getValue(queryResult,"lastName"));
linkText.append(databaseOperations.getValue(queryResult,"docID"));
newDescription.setLink(linkText.toString());
newDescription.setPerson(person.toString());
newDescription.setStartDate(databaseOperations.getValue(queryResult,"start_date"));
tempTuples.add(newDescription.getTuple());
}
} catch (Exception e) {
e.printStackTrace();
}