public class MemDriver extends JenaDriver
A Jena JDBC driver which creates connections to in-memory datasets
This driver expects a URL of the following form:
jdbc:jena:mem:dataset=file.nq
The dataset parameter is used to refer to a file containing the
dataset you wish to load. Note that if you are creating the connection in
code you may alternatively opt to provide a Dataset instance directly
as a property named dataset to the
JenaDriver.connect(String, Properties) method instead.
If you simply want to start with an empty dataset you may instead set the
empty parameter to be true e.g.
jdbc:jena:mem:empty=true
| Modifier and Type | Field and Description |
|---|---|
static String |
MEM_DRIVER_PREFIX
Constant for the memory driver prefix, this is appended to the base
JenaDriver.DRIVER_PREFIX to form the URL prefix for JDBC
Connection URLs for this driver |
static String |
PARAM_DATASET
Constant for the connection URL parameter used to specify a dataset
file/instance to use
|
static String |
PARAM_EMPTY
Constant for the connection URL parameter used to specify that an empty
dataset should be used.
|
DRIVER_PREFIX, NO_AUTO_LOGGING_CONFIGURATION, PARAM_CONFIG, PARAM_JDBC_COMPATIBILITY, PARAM_LOGGING, PARAM_PASSWORD, PARAM_POST_PROCESSOR, PARAM_PRE_PROCESSOR, PARAM_USERNAME| Constructor and Description |
|---|
MemDriver()
Creates a new driver
|
| Modifier and Type | Method and Description |
|---|---|
static void |
register()
Registers the driver with the JDBC
DriverManager |
acceptsURL, connect, getMajorVersion, getMinorVersion, getParentLogger, getPropertyInfo, jdbcCompliantpublic static final String MEM_DRIVER_PREFIX
JenaDriver.DRIVER_PREFIX to form the URL prefix for JDBC
Connection URLs for this driverpublic static final String PARAM_DATASET
public static final String PARAM_EMPTY
PARAM_DATASET is present then that
parameter has precedence.public static void register()
throws SQLException
DriverManagerSQLException - Thrown if the driver cannot be registeredLicensed under the Apache License, Version 2.0