map.put("query", query);
TupleIterator tuples = getTuples(map);
try {
if (tuples.hasNext()) {
Map<String, Node> row = tuples.next();
Literal dateLiteral = (Literal) row.get("date");
if (dateLiteral == null) {
throw new IOException("A row was returned, but it did not contain a 'date' binding");
}
return DateUtility.parseDateLoose(dateLiteral
.getLexicalForm());
} else {
throw new IOException("No rows were returned");
}
} catch (TrippiException e) {