com.hp.hpl.jena.tdb
Class TDBFactory

java.lang.Object
  extended by com.hp.hpl.jena.tdb.TDBFactory

public class TDBFactory
extends Object

Public factory for creating objects datasets backed by TDB storage


Method Summary
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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

assembleDataset

public static Dataset assembleDataset(String assemblerFile)
Read the file and assembler a dataset


createDataset

public static Dataset createDataset(String dir)
Create or connect to a TDB-backed dataset


createDataset

public static Dataset createDataset(com.hp.hpl.jena.tdb.base.file.Location location)
Create or connect to a TDB-backed dataset


createDataset

public static Dataset createDataset()
Create or connect to a TDB dataset backed by an in-memory block manager. For testing.


createDatasetGraph

public static DatasetGraph createDatasetGraph(String directory)
Create or connect to a TDB-backed dataset (graph-level)


createDatasetGraph

public static DatasetGraph createDatasetGraph(com.hp.hpl.jena.tdb.base.file.Location location)
Create or connect to a TDB-backed dataset (graph-level)


createDatasetGraph

public static DatasetGraph createDatasetGraph()
Create a TDB-backed dataset (graph-level) in memory (for testing)


release

public static void release(Dataset dataset)
Create a TDB-backed Dataset directly over the storage in memory (not transactional) (testing only)


release

public static void release(DatasetGraph dataset)
Create a TDB-backed Dataset directly over the storage in memory (not transactional) (testing only)


reset

public static void reset()
Reset internal state, releasing all datasets. No checking done, do not call while TDB is execution queries or updates. Mainly for the tests to have a known clean state.


isBackedByTDB

public static boolean isBackedByTDB(Dataset dataset)
Return the location of a dataset if it is backed by TDB, else null


isBackedByTDB

public static boolean isBackedByTDB(DatasetGraph datasetGraph)
Return the location of a dataset if it is backed by TDB, else null


location

public 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


location

public 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


assembleGraph

@Deprecated
public static Graph assembleGraph(String assemblerFile)
Deprecated. Assemble a Dataset and use the default graph.

Read the file and assembler a graph, of type TDB persistent graph


assembleModel

@Deprecated
public static Model assembleModel(String assemblerFile)
Deprecated. Assemble a Dataset and use the default model.

Read the file and assembler a model, of type TDB persistent graph


createModel

@Deprecated
public static Model createModel(com.hp.hpl.jena.tdb.base.file.Location loc)
Deprecated. Create a Dataset and use the default model.

Create a model, at the given location. It is better to create a dataset and get the default model from that. This Model is not connected to the TDB transaction system.


createModel

@Deprecated
public static Model createModel(String dir)
Deprecated. Create a Dataset and get the default model.

Create a model, at the given location It is better to create a dataset and get the default model from that. This Model is not connected to the TDB transaction system.


createModel

@Deprecated
public static Model createModel()
Deprecated. 

Create a TDB model backed by an in-memory block manager. For testing.


createNamedModel

@Deprecated
public static Model createNamedModel(String name,
                                                String location)
Deprecated. Create a Dataset and get the name model.

Create a TDB model for named model It is better to create a dataset and get the named model from that. This Model is not connected to the TDB transaction system.


createNamedModel

@Deprecated
public static Model createNamedModel(String name,
                                                com.hp.hpl.jena.tdb.base.file.Location location)
Deprecated. Create a Dataset and get the name model.

Create a TDB model for named model. It is better to create a dataset and get the named model from that. This Model is not connected to the TDB transaction system.


createGraph

@Deprecated
public static Graph createGraph(com.hp.hpl.jena.tdb.base.file.Location loc)
Deprecated. Create a DatasetGraph and use the default graph.

Create a graph, at the given location


createGraph

@Deprecated
public static Graph createGraph(String dir)
Deprecated. Create a DatasetGraph and use the default graph.

Create a graph, at the given location


createGraph

@Deprecated
public static Graph createGraph()
Deprecated. 

Create a TDB graph backed by an in-memory block manager. For testing.


createNamedGraph

@Deprecated
public static Graph createNamedGraph(String name,
                                                String location)
Deprecated. Create a DatasetGraph and get the name graph from that.

Create a TDB graph for named graph


createNamedGraph

@Deprecated
public 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.

Create a TDB graph for named graph



Licenced under the Apache License, Version 2.0