AshR2RML.Mapping.Provenance (AshR2RML v26.8.22)

Copy Markdown View Source

Pure semantic plumbing helper for W3C PROV-O provenance assertions.

Attaches deterministic W3C PROV-O provenance predicate-object mappings (prov:wasGeneratedBy, prov:generatedAtTime, prov:wasDerivedFrom) to normalized AshR2RML.Mapping.Resource structs without runtime execution overhead.

Summary

Functions

Attaches generated_at_time provenance mapping to an AshR2RML.Mapping.Resource

Attaches was_derived_from provenance predicate mapping referencing a parent entity IRI template

Functions

attach_generated_at_time(resource, column_or_attr)

@spec attach_generated_at_time(AshR2RML.Mapping.Resource.t(), String.t() | atom()) ::
  AshR2RML.Mapping.Resource.t()

Attaches generated_at_time provenance mapping to an AshR2RML.Mapping.Resource

attach_was_derived_from(resource, parent_template)

@spec attach_was_derived_from(AshR2RML.Mapping.Resource.t(), String.t()) ::
  AshR2RML.Mapping.Resource.t()

Attaches was_derived_from provenance predicate mapping referencing a parent entity IRI template