Mnemosyne.Pipeline.Ingestion (mnemosyne v0.3.0)

Copy Markdown View Source

Validates complete trajectories and computes their stable payload identity.

Summary

Functions

Returns the version used by the current payload fingerprint.

Validates a trajectory and returns its versioned SHA-256 payload digest.

Transforms a complete trajectory into a graph changeset.

Functions

fingerprint_version()

@spec fingerprint_version() :: pos_integer()

Returns the version used by the current payload fingerprint.

prepare(trajectory)

@spec prepare(Mnemosyne.Trajectory.t()) ::
  {:ok, binary()} | {:error, Mnemosyne.Errors.Invalid.IngestionError.t()}

Validates a trajectory and returns its versioned SHA-256 payload digest.

run(trajectory, opts)

Transforms a complete trajectory into a graph changeset.