Class TDBDriver

All Implemented Interfaces:

public class TDBDriver extends JenaDriver

A Jena JDBC driver which creates connections to TDB datasets

Connection URL

This driver expects a URL of the following form:


The location parameter is used to refer to a folder containing the TDB dataset you wish to load. The must-exist parameter indicates whether the TDB dataset must already exist, if false then the driver will create a new empty TDB dataset in that location if a TDB dataset does not already exist.

Connections to TDB always support transactions and operate in auto-commit mode by default.

  • Field Details


      public static final String TDB_DRIVER_PREFIX
      Constant for the TDB driver prefix, this is appended to the base JenaDriver.DRIVER_PREFIX to form the URL prefix for JDBC Connection URLs for this driver
      See Also:

      public static final String PARAM_LOCATION
      Constant for driver parameter that sets the location of the TDB dataset
      See Also:

      public static final String LOCATION_MEM
      Constant for special value which may be used as the value of the location parameter (PARAM_LOCATION) to indicate that a pure in-memory dataset is desired, this should not be used for anything other than trivial testing
      See Also:

      public static final String PARAM_MUST_EXIST
      Constant for driver parameter that sets whether the TDB dataset must already exist
      See Also:
  • Constructor Details

    • TDBDriver

      public TDBDriver()
      Creates a new TDB driver
  • Method Details