Example #1
0
 /**
  * Cleans up the given store.
  *
  * @param crdf could be a triple or a quad store.
  * @throws CumulusStoreException in case the cleanup fails.
  */
 public static void clean(final Store crdf) throws CumulusStoreException {
   crdf.clear();
   assertEquals(
       "Store seems not empty after issuing a delete * command.",
       0,
       numOfRes(
           crdf.query(
               crdf instanceof TripleStore
                   ? SELECT_ALL_TRIPLES_PATTERN
                   : SELECT_ALL_QUADS_PATTERN)));
 }