RDF.Turtle.Encoder (RDF.ex v0.9.2) View Source
An encoder for Turtle serializations of RDF.ex data structures.
As for all encoders of RDF.Serialization.Format
s, you normally won't use these
functions directly, but via one of the write_
functions on the RDF.Turtle
format module or the generic RDF.Serialization
module.
Options
:base
: : Allows to specify the base URI to be used for a@base
directive. If not specified the one from the given graph is used or if there is also none specified for the graph theRDF.default_base_iri/0
.:prefixes
: Allows to specify the prefixes to be used as aRDF.PrefixMap
or anything from which aRDF.PrefixMap
can be created withRDF.PrefixMap.new/1
. If not specified the ones from the given graph are used or if these are also not present theRDF.default_prefixes/0
.:only
: Allows to specify which parts of a Turtle document should be generated. Possible values::base
,:prefixes
,:directives
(means the same as[:base, :prefixes]
),:triples
or a list with any combination of these values.