SPARQL.ex v0.1.0 SPARQL.Query.Result.Format.Decoder behaviour View Source
A behaviour for decoders of strings encoded in a specific SPARQL.Query.Result.Format
.
Link to this section Summary
Callbacks
Decodes a serialized SPARQL.Query.ResultSet
from the given string
Decodes a serialized SPARQL.Query.ResultSet
from the given string
Link to this section Callbacks
Link to this callback
decode(arg0, keyword)
View Source
decode(String.t(), keyword()) :: {:ok, SPARQL.Query.ResultSet.t()} | {:error, any()}
Decodes a serialized SPARQL.Query.ResultSet
from the given string.
It returns an {:ok, result_set}
tuple or {:error, reason}
if an error occurs.
Link to this callback
decode!(arg0, keyword)
View Source
decode!(String.t(), keyword()) :: SPARQL.Query.ResultSet.t()
Decodes a serialized SPARQL.Query.ResultSet
from the given string.
As opposed to decode
, it raises an exception if an error occurs.
Note: The __using__
macro automatically provides an overridable default
implementation based on the non-bang decode
function.