public final class ParserConfigs extends Object
| Modifier and Type | Field and Description |
|---|---|
static Option<String> |
BASE_URI |
static Option<Set<org.openrdf.model.Namespace>> |
NAMESPACES |
static Option<Boolean> |
PRESERVE_BNODE_IDS
This option controls if the parser should preserve bnode identifiers specified in the source.
|
static Option<Boolean> |
STRICT_PARSING |
| Modifier and Type | Method and Description |
|---|---|
static org.openrdf.rio.ParserConfig |
create(Options theOptions)
Returns a parser configuration with given options.
|
static org.openrdf.rio.ParserConfig |
defaults()
Returns a parser configuration with default settings.
|
static org.openrdf.rio.ParserConfig |
lax()
Returns a parser configuration with strict parsing disabled.
|
static org.openrdf.rio.ParserConfig |
strict()
Returns a parser configuration with strict parsing enabled.
|
public static final Option<Boolean> PRESERVE_BNODE_IDS
This option controls if the parser should preserve bnode identifiers specified in the source. Preserving bnode identifiers help speed parsing and loading time but it also has an important side-effect that if two distinct files using the same bnode identifier are loaded to the same database, the bnode in different files will end up pointing to the same node in the database. If the input files do not use bnode identifiers (e.g. in Turtle syntax only [] are used for bnodes) then this configuration option has no effect since such bnodes are always assigned a unique identifier. But if input files use explicit bnode identifiers (e.g. _:bnode1 in Turtle syntax) and multiple files may use same bnode identifiers then this configuration option should be turned off.
public static org.openrdf.rio.ParserConfig strict()
public static org.openrdf.rio.ParserConfig lax()
public static org.openrdf.rio.ParserConfig defaults()
public static org.openrdf.rio.ParserConfig create(Options theOptions)
Copyright © 2010-2016 Stardog Union. All Rights Reserved.