View Source RDF.BlankNode.Generator.Increment (RDF.ex v2.0.1)

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

Summary

Functions

Creates a struct with the state of the algorithm.

Types

@type t() :: %RDF.BlankNode.Generator.Increment{
  counter: pos_integer(),
  map: map(),
  prefix: String.t()
}

Functions

Creates a struct with the state of the algorithm.

Options

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