/** Load the contents of URL into a graph */ public static void load(GraphTDB graph, List<String> urls) { load(graph, urls, false) ; }
/** Load a dataset from an input stream which must be in N-Quads form */ public void loadDataset(DatasetGraphTDB dataset, InputStream input) { // Triples languages are quads languages so no test for quad-ness needed. loadDataset$(dataset, input, showProgress, generateStats) ; }
/** * Load the contents of URL into a dataset. */ public static void load(DatasetGraphTDB dataset, List<String> urls, boolean showProgress, boolean generateStats) { TDBLoader loader = new TDBLoader() ; loader.setShowProgress(showProgress) ; loader.setGenerateStats(generateStats); loader.loadDataset(dataset, urls) ; }
@Override protected Dataset createDataset() { return TDBFactory.createDataset() ; }
/** * Release any and all system resources held by TDB. This does NOT close or * release datasets or graphs held by client code. */ public static void closedown() { StoreConnection.reset() ; }
@Override protected StoreConnection getStoreConnection() { return StoreConnection.make(DIR) ; } }
/** Load a dataset from a URL - assumes URL names a quads format */ public void loadDataset(DatasetGraphTDB dataset, String url) { loadDataset(dataset, asList(url)) ; }
@Override public void stop() { // This is savage and does not take account of in-flight transactions. TDB.closedown() ; }
/** * Release a {@code Location}. * Do not use a {@code Dataset} at this location without * remaking it via {@link TDBFactory}. */ public static void releaseLocation(Location location) { StoreConnection.release(location) ; }
/** Load the contents of URL into a model - may not be as efficient as bulk loading into a TDB graph */ public static void loadModel(Model model, String url, boolean showProgress) { loadAnything(model, url, showProgress) ; }
/** * Internal operation - to get a dataset for application use, call a * {@link TDBFactory} function. Do not use the base dataset without knowing how the * transaction system uses it. */ public DatasetGraphTDB getBaseDataset() { checkValid(); return baseDSG; }
/** Load the contents of URL into a model - may not be as efficient as bulk loading into a TDB graph */ public static void loadModel(Model model, String url) { loadModel(model, url, false) ; }
/** Load a graph from a list of URL - assumes the URLs name triples format documents */ public void loadGraph(GraphTDB graph, InputStream in) { loadGraph$(graph, in, showProgress, generateStats) ; }
@Override public void finishUpdate() { throw new TDBException("Read-only") ; }
public static final String getTestingDir() { init() ; return testingDir ; }
@Override protected Dataset createDataset() { return TDBFactory.createDataset() ; }
/** Load the contents of URL into a dataset. */ public static void load(DatasetGraphTDB dataset, String url) { load(dataset, url, false) ; }
/** Load the contents of URL into a graph */ public static void load(GraphTDB graph, String url) { load(graph, url, false) ; }