prov

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2026 License: MIT Imports: 1 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package prov records where a value came from, in W3C PROV-O terms: an Entity was generated by an Activity, which was run by an Agent. Keeping the vocabulary means the record joins other PROV data without translation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Activity

type Activity struct {
	ID    string
	Kind  string
	Agent string // Agent.ID
	Start time.Time
	End   time.Time
	Used  []string // Entity.ID
}

Activity is something that happened over an interval and produced entities: an ingest, an extraction, a merge. Used lists what it read.

type Agent

type Agent struct {
	ID   string
	Kind string // person, software, organization
}

Agent is whoever bears responsibility for an activity — a person, a program, or the organization either acts for.

type Entity

type Entity struct {
	ID          string
	GeneratedBy string // Activity.ID
	DerivedFrom []string
}

Entity is a thing whose origin is being recorded: a document, a chunk, a triple, a graph. It names the activity that produced it and the entities it was derived from, so a claim can be walked back to its sources.

type Log

type Log interface {
	Entity(Entity) error
	Activity(Activity) error
	Agent(Agent) error
	Trace(id string) ([]Activity, error)
}

Log is the append-only record the three types are written to.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL