CPub.DB.Set (CPub v0.3.0) View Source

A set in the CPub database.

Link to this section Summary

Functions

Insert an element into set with given id.

Returns the identifier of a new Set.

Remove an element from the set with given id.

Returns the Set with given id as MapSet.

Link to this section Functions

Specs

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

Insert an element into set with given id.

Specs

new() :: RDF.IRI.t()

Returns the identifier of a new Set.

Specs

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

Remove an element from the set with given id.

Specs

state(RDF.IRI.t()) :: {:ok, MapSet.t()} | {:error, any()}

Returns the Set with given id as MapSet.