java.lang.Object
org.apache.jena.tdb2.TDB2Factory
Public factory for connecting to and creating datasets backed by TDB2 storage.
-
Method Summary
Modifier and TypeMethodDescriptionstatic DatasetassembleDataset(String assemblerFile) Read the file and assemble a datasetstatic DatasetconnectDataset(String location) Create or connect to a TDB2-backed datasetstatic DatasetconnectDataset(org.apache.jena.dboe.base.file.Location location) Create or connect to a TDB2-backed datasetstatic DatasetCreate an in-memory TDB2-backed dataset (for testing).static booleanTest whether a dataset is backed by TDB or not.static org.apache.jena.dboe.base.file.LocationReturn the location of a dataset if it is backed by TDB, else null
-
Method Details
-
connectDataset
Create or connect to a TDB2-backed dataset -
connectDataset
Create or connect to a TDB2-backed dataset -
createDataset
Create an in-memory TDB2-backed dataset (for testing). In-memory TDB2 datasets are use a simple simulation of disk I/O to give exact semantics, which is useful to create tests that run fast where setup and teardown of datasets can be the major cost.In-memory TDB2 datasets are not designed to scale, nor provide efficient execution for applications for long-term use.
-
assembleDataset
Read the file and assemble a dataset -
isTDB2
Test whether a dataset is backed by TDB or not. -
location
Return the location of a dataset if it is backed by TDB, else null
-