View Source RDF.BlankNode.Generator.Increment (RDF.ex v1.2.0)

An implementation of a RDF.BlankNode.Generator.Algorithm which returns RDF.BlankNodes with incremented identifiers.

The following options are supported when starting a RDF.BlankNode.Generator with this algorithm:

  • prefix: a string prepended to the generated blank node identifier
  • start_value: the number from which the incremented counter starts

Summary

Types

@type state() :: %{
  optional(:prefix) => String.t(),
  map: map(),
  counter: pos_integer()
}