RDF.FragmentGraph.CSexp (CPub v0.3.0) View Source
Implements the serialization of RDF.FragmentGraph
based on Canonical
S-expressions.
See https://openengiadina.net/papers/content-addressable-rdf.html for details on the serialization.
Link to this section Summary
Functions
Decode a RDF.FragmentGraph
from a binary CSexp.
Link to this section Functions
Specs
decode(String.t(), RDF.Statement.coercible_subject()) :: RDF.FragmentGraph.t()
Decode a RDF.FragmentGraph
from a binary CSexp.
Specs
encode(RDF.FragmentGraph.t()) :: String.t()
Specs
encode_term( RDF.IRI.t() | RDF.Literal.t() | RDF.FragmentGraph.FragmentReference.t() ) :: CSexp.t() | String.t()