TDBFactory { public static DatasetGraph createDatasetGraph(String directory) { return createDatasetGraph(Location.create(directory)) ; } private  TDBFactory(); static Dataset assembleDataset(String assemblerFile); static Dataset createDataset(String dir); static Dataset createDataset(Location location); static Dataset createDataset(); static DatasetGraph createDatasetGraph(String directory); static DatasetGraph createDatasetGraph(Location location); static DatasetGraph createDatasetGraph(); static void release(Dataset dataset); static void release(DatasetGraph dataset); @Deprecated static boolean isBackedByTDB(Dataset dataset); @Deprecated static boolean isBackedByTDB(DatasetGraph datasetGraph); static boolean isTDB1(Dataset dataset); static boolean isTDB1(DatasetGraph datasetGraph); static Location location(Dataset dataset); static Location location(DatasetGraph datasetGraph); static boolean inUseLocation(String directory); static boolean inUseLocation(Location location); static void setup(Location location, StoreParams params);  }
@Test public void testTDBFactory1() { DatasetGraph dg1 = TDBFactory.createDatasetGraph(Location.mem("FOO")); DatasetGraph dg2 = TDBFactory.createDatasetGraph(Location.mem("FOO")); dg1.add(quad1); assertTrue(dg2.contains(quad1)); }
@Test public void testTDBFactory2() { DatasetGraph dg1 = TDBFactory.createDatasetGraph(Location.mem()); DatasetGraph dg2 = TDBFactory.createDatasetGraph(Location.mem()); dg1.add(quad1); assertFalse(dg2.contains(quad1)); }