public class TDBFactory extends Object
Modifier and Type | Method and Description |
---|---|
static Dataset |
assembleDataset(String assemblerFile)
Read the file and assembler a dataset
|
static Graph |
assembleGraph(String assemblerFile)
Deprecated.
Assemble a Dataset and use the default graph.
|
static Model |
assembleModel(String assemblerFile)
Deprecated.
Assemble a Dataset and use the default model.
|
static Dataset |
createDataset()
Create or connect to a TDB dataset backed by an in-memory block manager.
|
static Dataset |
createDataset(com.hp.hpl.jena.tdb.base.file.Location location)
Create or connect to a TDB-backed dataset
|
static Dataset |
createDataset(String dir)
Create or connect to a TDB-backed dataset
|
static DatasetGraph |
createDatasetGraph()
Create a TDB-backed dataset (graph-level) in memory (for testing)
|
static DatasetGraph |
createDatasetGraph(com.hp.hpl.jena.tdb.base.file.Location location)
Create or connect to a TDB-backed dataset (graph-level)
|
static DatasetGraph |
createDatasetGraph(String directory)
Create or connect to a TDB-backed dataset (graph-level)
|
static Graph |
createGraph()
Deprecated.
|
static Graph |
createGraph(com.hp.hpl.jena.tdb.base.file.Location loc)
Deprecated.
Create a DatasetGraph and use the default graph.
|
static Graph |
createGraph(String dir)
Deprecated.
Create a DatasetGraph and use the default graph.
|
static Model |
createModel()
Deprecated.
|
static Model |
createModel(com.hp.hpl.jena.tdb.base.file.Location loc)
Deprecated.
Create a Dataset and use the default model.
|
static Model |
createModel(String dir)
Deprecated.
Create a Dataset and get the default model.
|
static Graph |
createNamedGraph(String name,
com.hp.hpl.jena.tdb.base.file.Location location)
Deprecated.
Create a DatasetGraph and get the name graph from that.
|
static Graph |
createNamedGraph(String name,
String location)
Deprecated.
Create a DatasetGraph and get the name graph from that.
|
static Model |
createNamedModel(String name,
com.hp.hpl.jena.tdb.base.file.Location location)
Deprecated.
Create a Dataset and get the name model.
|
static Model |
createNamedModel(String name,
String location)
Deprecated.
Create a Dataset and get the name model.
|
static boolean |
isBackedByTDB(Dataset dataset)
Return the location of a dataset if it is backed by TDB, else null
|
static boolean |
isBackedByTDB(DatasetGraph datasetGraph)
Return the location of a dataset if it is backed by TDB, else null
|
static com.hp.hpl.jena.tdb.base.file.Location |
location(Dataset dataset)
Return the location of a dataset if it is backed by TDB, else null
|
static com.hp.hpl.jena.tdb.base.file.Location |
location(DatasetGraph datasetGraph)
Return the location of a DatasetGraph if it is backed by TDB, else null
|
static void |
release(Dataset dataset)
Create a TDB-backed Dataset directly over the storage in memory (not transactional) (testing only)
|
static void |
release(DatasetGraph dataset)
Create a TDB-backed Dataset directly over the storage in memory (not transactional) (testing only)
|
static void |
reset()
Reset internal state, releasing all datasets.
|
public static Dataset assembleDataset(String assemblerFile)
public static Dataset createDataset(String dir)
public static Dataset createDataset(com.hp.hpl.jena.tdb.base.file.Location location)
public static Dataset createDataset()
public static DatasetGraph createDatasetGraph(String directory)
public static DatasetGraph createDatasetGraph(com.hp.hpl.jena.tdb.base.file.Location location)
public static DatasetGraph createDatasetGraph()
public static void release(Dataset dataset)
public static void release(DatasetGraph dataset)
public static void reset()
public static boolean isBackedByTDB(Dataset dataset)
public static boolean isBackedByTDB(DatasetGraph datasetGraph)
public static com.hp.hpl.jena.tdb.base.file.Location location(Dataset dataset)
public static com.hp.hpl.jena.tdb.base.file.Location location(DatasetGraph datasetGraph)
@Deprecated public static Graph assembleGraph(String assemblerFile)
@Deprecated public static Model assembleModel(String assemblerFile)
@Deprecated public static Model createModel(com.hp.hpl.jena.tdb.base.file.Location loc)
@Deprecated public static Model createModel(String dir)
@Deprecated public static Model createModel()
@Deprecated public static Model createNamedModel(String name, String location)
@Deprecated public static Model createNamedModel(String name, com.hp.hpl.jena.tdb.base.file.Location location)
@Deprecated public static Graph createGraph(com.hp.hpl.jena.tdb.base.file.Location loc)
@Deprecated public static Graph createGraph(String dir)
@Deprecated public static Graph createGraph()
@Deprecated public static Graph createNamedGraph(String name, String location)
@Deprecated public static Graph createNamedGraph(String name, com.hp.hpl.jena.tdb.base.file.Location location)
Licenced under the Apache License, Version 2.0