Introduction

A library for W3C Provenance Data Model supporting PROV-O (RDF), PROV-XML, PROV-JSON import/export

Features

  • An implementation of the W3C PROV Data Model in Python.

  • In-memory classes for PROV assertions, which can then be output as PROV-N

  • Serialization and deserialization support: PROV-O (RDF), PROV-XML and PROV-JSON.

  • Exporting PROV documents into various graphical formats (e.g. PDF, PNG, SVG).

  • Convert a PROV document to a Networkx MultiDiGraph and back.

Uses

See a short tutorial for using this package.

This package is used extensively by ProvStore, a free online repository for provenance documents.

Roadmap

The library is undergoing a staged modernisation (tooling, type hints, tests, documentation, standards conformance), a batch of bug fixes, and new format support. See ROADMAP.md for the plan and the 2.x API-stability promise. Feedback is welcome on the issue tracker.

Supported versions

The latest 3.x release receives all fixes. This 2.x line receives security fixes, plus bug fixes back-ported from 3.x up to and including 2.6.0, after which it reverts to security fixes only; 1.x and earlier no longer receive fixes. See SECURITY.md for the full support table and how to report a vulnerability.