public class BasicWriterSettings extends Object
|Modifier and Type||Field and Description|
Boolean setting for writer to determine whether pretty printing is preferred.
Boolean setting for writer to determine whether it should omit the rdf:langString datatype from language literals when serialising them.
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.
public static final RioSetting<Boolean> PRETTY_PRINT
Defaults to false because it isn't always scalable.
public static final RioSetting<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.
public static final RioSetting<Boolean> RDF_LANGSTRING_TO_LANG_LITERAL
In RDF-1.1, all RDF-1.0 Language Literals are typed using rdf:langString in the abstract model, but this datatype is not necessary for concrete syntaxes.
In most concrete syntaxes it is either syntactically invalid or semantically ambiguous to have a language tagged literal with an explicit datatype. In those cases this setting will not be used, and the rdf:langString datatype will not be attached to language tagged literals.
In particular, in RDF/XML, if rdf:langString is serialised, the language tag may not be retained when the document is parsed due to the precedence rule in RDF/XML for datatype over language.
Defaults to true as rdf:langString was not previously used, and should not be commonly required.
Copyright © 2015-2017 Eclipse Foundation. All Rights Reserved.