public final class WriterOptions extends Object
Options to control the RDF writing process
Modifier and Type | Field and Description |
---|---|
static Option<Integer> |
BUFFER_SIZE
Maximum number of triples that will be buffered during printing.
|
static Option<Iterable<Namespace>> |
NAMESPACES
Declare any default namespaces to be used for writing
|
static Option<Boolean> |
NORMALIZE_DATATYPES
Boolean setting for writer to determine whether pretty printing is
preferred.
|
static Option<Boolean> |
PRETTY_PRINT
Boolean setting for writer to determine whether pretty printing is
preferred.
|
static Option<Boolean> |
XSD_STRING_TO_PLAIN_LITERAL
Boolean setting for writer to determine whether it should remove the
xsd:string datatype from literals and represent them as RDF-1.0 Plain
Literals.
|
Modifier and Type | Method and Description |
---|---|
static Options |
defaults()
Return the default options for
writing |
static Options |
namespaces(Iterable<Namespace> theNamespaces)
Return the
default options with the NAMESPACES option set |
static <T> Options |
of(Option<T> theOption,
T theValue)
Return the
default options with the additional specified option set |
public static final Option<Boolean> PRETTY_PRINT
Defaults to `true`.
public static final Option<Integer> BUFFER_SIZE
Defaults to 10K.
public static final Option<Boolean> NORMALIZE_DATATYPES
Defaults to `false`.
public static final Option<Boolean> XSD_STRING_TO_PLAIN_LITERAL
In RDF-1.1, all literals that would have been Plain Literals in RDF-1.0 will be typed as xsd:string internally.
Defaults to `true` to allow for backwards compatibility without enforcing it.
@Nonnull public static <T> Options of(@Nonnull Option<T> theOption, @Nonnull T theValue)
default options
with the additional specified option settheOption
- the optiontheValue
- the value@Nonnull public static Options namespaces(@Nonnull Iterable<Namespace> theNamespaces)
default options
with the NAMESPACES
option settheNamespaces
- the valueCopyright © 2010-2016 Stardog Union. All Rights Reserved.