public final class DatabaseOptions extends Object implements MetaPropertyProvider
Non-structural database options. These options, unlike IndexOptions, are not
relevant to reading or creating the database. This set of options is for controlling behavior of the database as it
lives within a Stardog DBMS.
| Modifier and Type | Class and Description |
|---|---|
static class |
DatabaseOptions.TransactionIsolation
Different types of transaction isolation supported by Stardog.
|
| Modifier and Type | Field and Description |
|---|---|
static ConfigProperty<Collection<String>> |
ARCHETYPES |
static ConfigProperty<Duration> |
CONNECTION_TIMEOUT |
static InfoProperty<DateTime> |
CREATION_TIME
Creation time of the database.
|
static InfoProperty<String> |
CREATOR
Creator of the database.
|
static long |
DEFAULT_OFFLINE_TIMEOUT
Default offline timeout (in ms)
|
static ConfigProperty<Boolean> |
EXTENDED_COMPARISON
Controls whether querye evaluation will uses extended literal comparison (
true, the default). |
static ConfigProperty<Boolean> |
IGNORE_BULK_LOAD_FILE_ERRORS
Ignore file errors while doing a bulk load
|
static ConfigProperty<Boolean> |
LUCENE_MMAP
Option to enable memory-mapping in lucene indices (e.g., search, spatial).
|
static InfoProperty<DateTime> |
MODIFICATION_TIME
Last modification time for the database.
|
static ConfigProperty<String> |
NAME
Name of the database.
|
static ConfigProperty<Collection<org.openrdf.model.Namespace>> |
NAMESPACES |
static ConfigProperty<Boolean> |
ONLINE
Option for whether or not the database is online.
|
static String |
PARSER_OPTION_PREFIX
Any metadata property whose name starts with this prefix will be propagated to the parser.
|
static Map<MetaProperty<?>,Option<?>> |
PARSER_OPTIONS
Mapping of database options to corresponding
parser options. |
static ConfigProperty<Boolean> |
PRESERVE_BNODE_IDS
This option controls if the parser should preserve bnode identifiers specified in the source.
|
static ConfigProperty<Boolean> |
PROGRESS_MONITOR_ENABLED |
static ConfigProperty<Boolean> |
PROPERTY_PATH_CONTEXTS
Option for whether the query engine should check named graph boundaries during property path evaluation.
|
static ConfigProperty<Boolean> |
QUERY_ALL_GRAPHS
This option controls the behavior for answering queries that don't specify a dataset (FROM or FROM NAMED) in
the query.
|
static ConfigProperty<String> |
QUERY_DESCRIBE_STRATEGY
Option to set the default DESCRIBE query strategy for the database.
|
static ConfigProperty<QueryPlanReuse> |
QUERY_PLAN_REUSE
This option determines how Stardog will reuse cached query plans.
|
static ConfigProperty<Duration> |
QUERY_TIMEOUT |
static ConfigProperty<Boolean> |
STRICT_PARSING
Controls whether Stardog parses RDF strictly (true, the default) or loosely (false)
|
static ConfigProperty<DatabaseOptions.TransactionIsolation> |
TRANSACTION_ISOLATION
Configuration option for setting the isolation level for transactions.
|
static ConfigProperty<Boolean> |
TRANSACTION_LOGGING
Option for whether or not the database logs all transactions events to disk.
|
static ConfigProperty<Boolean> |
TRANSACTION_LOGGING_IGNORE_STARTUP_ERRORS
When
TRANSACTION_LOGGING is true, this option is for whether errors at startup originated from
reading the transaction logs should be ignored. |
static ConfigProperty<Boolean> |
TRANSACTION_LOGGING_LINUX_DIRECT_IO_DISABLED
When
TRANSACTION_LOGGING is true, this option is for whether Direct IO (bypassing file cache) should
be used on Linux or not white writing into the log. |
static ConfigProperty<Boolean> |
TRANSACTION_LOGGING_ROTATION_REMOVE
When
TRANSACTION_LOGGING is true, this option is for whether the rotated log will be kept or removed. |
static ConfigProperty<Long> |
TRANSACTION_LOGGING_ROTATION_SIZE
Option for the max size for logged transactions on disk.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> void |
copyOption(Metadata theMetadata,
MetaProperty<T> theProp,
Options theOptions,
Option<T> theOption)
Copies one option from the metadata to the options if it already does not exist in the options.
|
static void |
copyParserOptions(Metadata theMetadata,
Options theOptions)
Copies parser properties from the metadata to the options.
|
static Metadata |
defaults(String theName) |
static org.openrdf.rio.ParserConfig |
getParserConfig(Metadata theMetadata)
Creates a
parser config with the given options. |
static Options |
getParserOptions(Metadata theMetadata)
Extracts the
parser options from the metadata. |
public static final ConfigProperty<Boolean> STRICT_PARSING
public static final ConfigProperty<Boolean> EXTENDED_COMPARISON
Controls whether querye evaluation will uses extended literal comparison (true, the default). The SPARQL
spec does not define an ordering relationship between literals of different types
(Section 15.1 ORDER BY) and equality check between
two literals will produce a type error if the literals are not same
(Section 17.4.1.7 RDFterm-equal). This results
in unintuitive results such as the expression "123"^^xsd:int != "ABC" evaluating to false. Stardog
extends the '<' operator (17.3.1 Operator Extensibility)
such that literals of different datatypes are first compared based on their string values and then based on the
string value of their datatypes. If this option is disabled literal comparison will be done as to produce type
errors.
public static final ConfigProperty<Boolean> PRESERVE_BNODE_IDS
Default value: true
public static final ConfigProperty<String> NAME
public static final InfoProperty<String> CREATOR
public static final ConfigProperty<Boolean> IGNORE_BULK_LOAD_FILE_ERRORS
public static final InfoProperty<DateTime> CREATION_TIME
public static final InfoProperty<DateTime> MODIFICATION_TIME
public static final ConfigProperty<Boolean> TRANSACTION_LOGGING
public static final ConfigProperty<Boolean> PROPERTY_PATH_CONTEXTS
public static final ConfigProperty<Long> TRANSACTION_LOGGING_ROTATION_SIZE
TRANSACTION_LOGGING.TRANSACTION_LOGGINGpublic static final ConfigProperty<Boolean> TRANSACTION_LOGGING_ROTATION_REMOVE
TRANSACTION_LOGGING is true, this option is for whether the rotated log will be kept or removed.public static final ConfigProperty<Boolean> TRANSACTION_LOGGING_LINUX_DIRECT_IO_DISABLED
TRANSACTION_LOGGING is true, this option is for whether Direct IO (bypassing file cache) should
be used on Linux or not white writing into the log. On systems other than Linux, this option has no effect.TRANSACTION_LOGGINGpublic static final ConfigProperty<Boolean> TRANSACTION_LOGGING_IGNORE_STARTUP_ERRORS
TRANSACTION_LOGGING is true, this option is for whether errors at startup originated from
reading the transaction logs should be ignored.public static final ConfigProperty<Boolean> ONLINE
public static final ConfigProperty<Boolean> QUERY_ALL_GRAPHS
This option controls the behavior for answering queries that don't specify a dataset (FROM or FROM NAMED) in the query. In such cases, the SPARQL specification says that the query should be answered only using the information in default graph (no context). However, sometimes it is desirable to answer such queries using all the information in the database including the default graph and all named graphs. Setting this option to true changes the behavior of Stardog to do this. The queries that specify a dataset are not affected by this option.
public static final ConfigProperty<QueryPlanReuse> QUERY_PLAN_REUSE
This option determines how Stardog will reuse cached query plans. See QueryPlanReuse for more details.
public static final ConfigProperty<Collection<org.openrdf.model.Namespace>> NAMESPACES
public static final ConfigProperty<Duration> CONNECTION_TIMEOUT
public static final ConfigProperty<Duration> QUERY_TIMEOUT
public static final ConfigProperty<Collection<String>> ARCHETYPES
public static final ConfigProperty<Boolean> LUCENE_MMAP
public static final ConfigProperty<String> QUERY_DESCRIBE_STRATEGY
public static final ConfigProperty<DatabaseOptions.TransactionIsolation> TRANSACTION_ISOLATION
public static final ConfigProperty<Boolean> PROGRESS_MONITOR_ENABLED
public static final long DEFAULT_OFFLINE_TIMEOUT
public static final String PARSER_OPTION_PREFIX
public static final Map<MetaProperty<?>,Option<?>> PARSER_OPTIONS
parser options.public static Options getParserOptions(Metadata theMetadata)
parser options from the metadata.public static void copyParserOptions(Metadata theMetadata, Options theOptions)
explicitly enumerated as well as those whose
name starts with PARSER_OPTION_PREFIX.
Options that already exist will not be overwritten.public static <T> void copyOption(Metadata theMetadata, MetaProperty<T> theProp, Options theOptions, Option<T> theOption)
public static org.openrdf.rio.ParserConfig getParserConfig(Metadata theMetadata)
parser config with the given options.Copyright © 2010-2016 Stardog Union. All Rights Reserved.