Package com.stardog.stark.io
Class WriterOptions
- java.lang.Object
-
- com.stardog.stark.io.WriterOptions
-
public final class WriterOptions extends java.lang.ObjectOptions to control the
RDF writing process- Since:
- 1.0
- Version:
- 1.0
- Author:
- Michael Grove
-
-
Field Summary
Fields Modifier and Type Field Description static Option<java.lang.Integer>BUFFER_SIZEMaximum number of triples that will be buffered during printing.static Option<java.lang.Iterable<Namespace>>NAMESPACESDeclare any default namespaces to be used for writingstatic Option<java.lang.Boolean>NORMALIZE_DATATYPESBoolean setting for writer to determine whether pretty printing is preferred.static Option<java.lang.Boolean>PRETTY_PRINTBoolean setting for writer to determine whether pretty printing is preferred.static Option<java.lang.Boolean>XSD_STRING_TO_PLAIN_LITERALBoolean setting for writer to determine whether it should remove the xsd:string datatype from literals and represent them as RDF-1.0 Plain Literals.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Optionsdefaults()Return the default options forwritingstatic Optionsnamespaces(java.lang.Iterable<Namespace> theNamespaces)Return thedefault optionswith theNAMESPACESoption setstatic <T> Optionsof(Option<T> theOption, T theValue)Return thedefault optionswith the additional specified option set
-
-
-
Field Detail
-
PRETTY_PRINT
public static final Option<java.lang.Boolean> PRETTY_PRINT
Boolean setting for writer to determine whether pretty printing is preferred.Defaults to `true`.
-
BUFFER_SIZE
public static final Option<java.lang.Integer> BUFFER_SIZE
Maximum number of triples that will be buffered during printing. Writers might buffer triples to group triples by subject, predicate or named graph but the nature of buffering depends on the RDF format and the writer.Defaults to 10K.
-
NORMALIZE_DATATYPES
public static final Option<java.lang.Boolean> NORMALIZE_DATATYPES
Boolean setting for writer to determine whether pretty printing is preferred.Defaults to `false`.
-
XSD_STRING_TO_PLAIN_LITERAL
public static final Option<java.lang.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.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.
-
-
Method Detail
-
of
@Nonnull public static <T> Options of(@Nonnull Option<T> theOption, @Nonnull T theValue)
Return thedefault optionswith the additional specified option set- Parameters:
theOption- the optiontheValue- the value- Returns:
- the writer options
-
namespaces
@Nonnull public static Options namespaces(@Nonnull java.lang.Iterable<Namespace> theNamespaces)
Return thedefault optionswith theNAMESPACESoption set- Parameters:
theNamespaces- the value- Returns:
- the writer options
-
-