Skip to main content

Construct PROV-O compliant provenance graphs.

Project description

The package supports the creation of PROV-O compliant provenance graphs.

The package requires Python 3.11.

Installation

You can install the package from the Python Package Index (PyPI):

pip install provo

Contents

The package implements the PROV-O starting point classes Entity, Activity and Agent as Python classes with methods to establish starting point properties between instances of these classes.

Features

The package’s objective is it to support the programmatical creation of provenance graphs that are compliant with the W3C Recommendation PROV-O: The PROV Ontology. Users of the package shall be enabled to tightly couple the generation of data with the generation of their provenance. As the package implements PROV-O, the created graph is exportable as an RDF document. Finally, the graph can be exported as a mermaid flowchart with some configuration options to adjust the style of the resulting chart.

Compliance

  • The PROV-O classes Entity, Activity, and Agent are implemented as Python classes.

  • The PROV-O properties wasGeneratedBy, wasDerivedFrom, wasAttributedTo, startedAtTime, used, wasInformedBy, endedAtTime, wasAssociatedWith, and actedOnBehalfOf are implemented as instance methods of their according classes.

  • Attributes that are passed to these methods are type-checked to enforce compliance with PROV-O.

  • Node Ids are checked for validity.

  • (Accidental) use of the same ID for different objects throws an error.

Ease of Use

  • The package implements full type hint support, thus enabling rich support from the IDE.

  • The classes Provence_Ontology_Graph, Entity, Activity, and Agent can be printed to terminal in a user-friendly, readable way with the default print() command.

  • For some quick testing, objects of the classes Entity, Activity, and Agent can be instantiated with auto-generated Ids (although it’s not recommended using this for production).

  • Export as mermaid flowchart to review the graph visually.

Interface to RDF via the rdflib package

  • The graph’s contents can be converted to an rdflib.Graph object.

  • The graph can be exported in various RDF serializations.

Manual

https://github.com/rue-a/provo#manual

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

provo-1.0.5.tar.gz (17.7 kB view details)

Uploaded Source

Built Distribution

provo-1.0.5-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file provo-1.0.5.tar.gz.

File metadata

  • Download URL: provo-1.0.5.tar.gz
  • Upload date:
  • Size: 17.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for provo-1.0.5.tar.gz
Algorithm Hash digest
SHA256 997b58a739bb1a59f4490c03aaff481ba3cc40d85ba9cb844b6c010c748c87b0
MD5 7842a7d438b40c4fbff36c006471f0e2
BLAKE2b-256 aeedd5def05ea02e42fff877fbc0f76cfd22ca86c9d31a0df15b90919a7b4a7e

See more details on using hashes here.

File details

Details for the file provo-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: provo-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 13.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for provo-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 2e1a552a1310057020d1f9aabbe340def280cbc16778627a1962a652d3e4e9c9
MD5 76f60f0ca8bc9c57a04ff4edce785916
BLAKE2b-256 daca375722c4a3d7f5455afc94e0957ddc4862683b160125b8e39df4fe4f8a94

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page