com.hp.hpl.jena.tdb
Class TDBFactory

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

public class TDBFactory
extends java.lang.Object

Public factory for creating objects (graphs, datasest) associated with TDB


Nested Class Summary
static interface TDBFactory.ImplFactory
          Interface to maker of the actual implementations of TDB graphs and datasets
 
Field Summary
static TDBFactory.ImplFactory pgraphFactory
           
static TDBFactory.ImplFactory stdFactory
           
 
Constructor Summary
TDBFactory()
           
 
Method Summary
static com.hp.hpl.jena.query.Dataset assembleDataset(java.lang.String assemblerFile)
          Read the file and assembler a dataset
static com.hp.hpl.jena.graph.Graph assembleGraph(java.lang.String assemblerFile)
          Read the file and assembler a graph, of type TDB persistent graph
static com.hp.hpl.jena.rdf.model.Model assembleModel(java.lang.String assemblerFile)
          Read the file and assembler a model, of type TDB persistent graph
static com.hp.hpl.jena.query.Dataset createDataset()
          Create or connect to a TDB dataset backed by an in-memory block manager.
static com.hp.hpl.jena.query.Dataset createDataset(com.hp.hpl.jena.tdb.base.file.Location location)
          Create or connect to a TDB-backed dataset
static com.hp.hpl.jena.query.Dataset createDataset(java.lang.String dir)
          Create or connect to a TDB-backed dataset
static com.hp.hpl.jena.graph.Graph createGraph()
          Create a TDB graph backed by an in-memory block manager.
static com.hp.hpl.jena.graph.Graph createGraph(com.hp.hpl.jena.tdb.base.file.Location loc)
          Create a graph, at the given location
static com.hp.hpl.jena.graph.Graph createGraph(java.lang.String dir)
          Create a graph, at the given location
static com.hp.hpl.jena.rdf.model.Model createModel()
          Create a TDB model backed by an in-memory block manager.
static com.hp.hpl.jena.rdf.model.Model createModel(com.hp.hpl.jena.tdb.base.file.Location loc)
          Create a model, at the given location
static com.hp.hpl.jena.rdf.model.Model createModel(java.lang.String dir)
          Create a model, at the given location
static void setImplFactory(TDBFactory.ImplFactory f)
          Set the implementation factory.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

pgraphFactory

public static final TDBFactory.ImplFactory pgraphFactory

stdFactory

public static final TDBFactory.ImplFactory stdFactory
Constructor Detail

TDBFactory

public TDBFactory()
Method Detail

assembleModel

public static com.hp.hpl.jena.rdf.model.Model assembleModel(java.lang.String assemblerFile)
Read the file and assembler a model, of type TDB persistent graph


assembleGraph

public static com.hp.hpl.jena.graph.Graph assembleGraph(java.lang.String assemblerFile)
Read the file and assembler a graph, of type TDB persistent graph


assembleDataset

public static com.hp.hpl.jena.query.Dataset assembleDataset(java.lang.String assemblerFile)
Read the file and assembler a dataset


createModel

public static com.hp.hpl.jena.rdf.model.Model createModel(com.hp.hpl.jena.tdb.base.file.Location loc)
Create a model, at the given location


createModel

public static com.hp.hpl.jena.rdf.model.Model createModel(java.lang.String dir)
Create a model, at the given location


createGraph

public static com.hp.hpl.jena.graph.Graph createGraph(com.hp.hpl.jena.tdb.base.file.Location loc)
Create a graph, at the given location


createGraph

public static com.hp.hpl.jena.graph.Graph createGraph(java.lang.String dir)
Create a graph, at the given location


createModel

public static com.hp.hpl.jena.rdf.model.Model createModel()
Create a TDB model backed by an in-memory block manager. For testing.


createGraph

public static com.hp.hpl.jena.graph.Graph createGraph()
Create a TDB graph backed by an in-memory block manager. For testing.


createDataset

public static com.hp.hpl.jena.query.Dataset createDataset(java.lang.String dir)
Create or connect to a TDB-backed dataset


createDataset

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


createDataset

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


setImplFactory

public static void setImplFactory(TDBFactory.ImplFactory f)
Set the implementation factory. Not normally needed - only systems that wish to create usually combinations of indexes and ndoe tables need to use this call. A detailed knowledge of how TDB works, and internal assumptions, is needed to create full functional TDB graphs or datasets. Beware



Copyright © 2007, 2008, 2009 Hewlett-Packard Development Company, LP