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.Formats, 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@basedirective. 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.PrefixMapor anything from which aRDF.PrefixMapcan 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]),:triplesor a list with any combination of these values.