View Source RDF.Turtle.Encoder (RDF.ex v1.0.0)
An encoder for Turtle serializations of RDF.ex data structures.
As for all encoders of
RDF.Serialization.Formats, you normally won't use these
functions directly, but via one of the
write_ functions on the
format module or the generic
:prefixes: Allows to specify the prefixes to be used as a
RDF.PrefixMapor anything from which a
RDF.PrefixMapcan be created with
RDF.PrefixMap.new/1. If not specified the ones from the given graph are used or if these are also not present the
:base: : Allows to specify the base URI to be used for a
@basedirective. If not specified the one from the given graph is used or if there is also none specified for the graph the
:implicit_base: This boolean flag allows to use a base URI to get relative IRIs without embedding it explicitly in the content with a
@basedirective, so that the URIs will be resolved according to the remaining strategy specified in section 5.1 of RFC3986 (default:
:base_description: Allows to provide a description of the resource denoted by the base URI. This option is especially useful when the base URI is actually not specified, eg. in the common use case of wanting to describe the Turtle document itself, which should be denoted by the URL where it is hosted as the implicit base URI.
:only: Allows to specify which parts of a Turtle document should be generated. Possible values:
:directives(means the same as
:triplesor a list with any combination of these values.
:indent: Allows to specify the number of spaces the output should be indented.
Link to this section Summary
Link to this section Functions
Link to this function