RDF.Serialization.Encoder.encode

You're seeing just the callback encode, go back to RDF.Serialization.Encoder module for more information.

Specs

encode(RDF.Data.t(), keyword()) :: {:ok, String.t()} | {:error, any()}

Serializes a RDF data structure into a string.

It should return an {:ok, string} tuple, with string being the serialized RDF data structure, or {:error, reason} if an error occurs.