View Source RDF.NQuads.Encoder behaviour (RDF.ex v1.0.0)
An encoder for N-Quads 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.NQuads
format module or the generic RDF.Serialization module.
options
Options
:default_graph_name: The graph name to be used as the default for triples from aRDF.GraphorRDF.Description. When the input to be encoded is aRDF.Descriptionthe default isnilfor the default graph. In case of aRDF.Graphthe default is theRDF.Graph.name/1. The option doesn't have any effect at all when the input to be encoded is aRDF.Dataset.
Link to this section Summary
Link to this section Callbacks
@callback encode( RDF.Data.t(), keyword() ) :: {:ok, String.t()} | {:error, any()}
Link to this section Functions
@spec iolist_statement(RDF.Statement.t(), RDF.Statement.graph_name()) :: iolist()
@spec statement(RDF.Statement.t(), RDF.Statement.graph_name()) :: String.t()