RDF.UUID (CPub v0.3.0) View Source

Generate UUID URNs.

See RFC 4122 (https://tools.ietf.org/html/rfc4122).

Link to this section Summary

Functions

Generate a version 4 (random) UUID as a RDF.IRI.

Link to this section Functions

Specs

cast(String.t()) :: {:ok, RDF.IRI.t()} | {:error, any()}

Specs

cast!(String.t()) :: RDF.IRI.t()

Specs

generate() :: RDF.IRI.t()

Generate a version 4 (random) UUID as a RDF.IRI.

Specs

to_string(RDF.IRI.t()) :: {:ok, String.t()} | {:error, atom()}