con.addStatement(guernica, RDF.TYPE, painting, context1);
con.commit();
assertEquals(4, countAllElements());
con2.addStatement(RDF.NIL, RDF.TYPE, RDF.LIST);
String query = "SELECT S, P, O FROM {S} P {O}";
ParsedTupleQuery tupleQuery = QueryParserUtil.parseTupleQuery(QueryLanguage.SERQL, query, null);
assertEquals(5, countElements(con2.evaluate(tupleQuery.getTupleExpr(), null, EmptyBindingSet.getInstance(), false)));
Runnable clearer = new Runnable() {
public void run() {
try {
con.clear();
con.commit();