IF Commons GitHub

integrations/pure/provenance

The provenance of an import in PROV-O (commons 0019-mizan-integrations FR-009): the generated module is a prov:Entity generated by an import, a prov:Activity that used the pinned source, itself an entity named by its SHA-256, so that what a module rests on can be read by any PROV tool.

It is Turtle, written deterministically from the record: no date, no host, so the same import gives the same text.

import { provenanceTurtle } from "./provenance.ts";
// provenanceTurtle(record, "schema.auto.ts") // @prefix prov: ... <urn:ifc:mizan:module:schema-org> a prov:Entity ...

Source: commons/mizan/src/integrations/pure/provenance.ts

1 of 2 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.

integrations.provenanceTurtlefunctionno test imports it
function provenanceTurtle(r: ImportRecordData, moduleFile: string): string

The record as PROV-O Turtle: the module, the import that made it, the source it used and where the source is from.

provenanceTurtlefunction
function provenanceTurtle(r: ImportRecordData, moduleFile: string): string

The record as PROV-O Turtle: the module, the import that made it, the source it used and where the source is from.

Imported by 18 tests of the run (18 passed, 0 failed): the library's results

Titles, headings, exports, tables, columns and requirements. Esc closes.