Package com.stardog.stark.io
Class WriterOptions
java.lang.Object
com.stardog.stark.io.WriterOptions
Options to control the RDF writing process
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Michael Grove
-
Field Summary
FieldsModifier and TypeFieldDescriptionMaximum number of triples that will be buffered during printing.Declare any default namespaces to be used for writingBoolean setting for writer to determine whether pretty printing is preferred.Boolean setting for writer to determine whether pretty printing is preferred.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. -
Method Summary
Modifier and TypeMethodDescriptionstatic Optionsdefaults()Return the default options forwritingstatic Optionsnamespaces(Iterable<Namespace> theNamespaces) Return thedefault optionswith theNAMESPACESoption setstatic <T> OptionsReturn thedefault optionswith the additional specified option set
-
Field Details
-
PRETTY_PRINT
Boolean setting for writer to determine whether pretty printing is preferred.Defaults to `true`.
-
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
Boolean setting for writer to determine whether pretty printing is preferred.Defaults to `false`.
-
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.
-
NAMESPACES
Declare any default namespaces to be used for writing
-
-
Method Details
-
of
Return thedefault optionswith the additional specified option set- Parameters:
theOption- the optiontheValue- the value- Returns:
- the writer options
-
namespaces
Return thedefault optionswith theNAMESPACESoption set- Parameters:
theNamespaces- the value- Returns:
- the writer options
-
defaults
Return the default options forwriting- Returns:
- the defaults
-