Skip to main content

Build RDF/PROV-One knowledge graphs from provenance execution traces.

Project description

PyExplAnnotator

PyExplAnnotator builds RDF/PROV-One knowledge graphs from provenance execution traces of AI and workflow applications.

The PyPI package name is pyexplannotator; the Python import package is expl_annotator.

Installation

From PyPI, after the package is published:

pip install pyexplannotator

For local development from this directory:

pip install -e ".[dev]"

Usage

from expl_annotator import ProvOneManager

manager = ProvOneManager("config.yaml")

A minimal config file should define the program name and RDF prefixes used by the graph:

program:
  name: my_workflow

ttl:
  save_path: provenance.ttl
  metadata_path: metadata.json
  prefixes:
    - name: my_workflow
      uri: https://example.org/my-workflow/
    - name: prov
      uri: http://www.w3.org/ns/prov#
    - name: provone
      uri: http://purl.org/provone#
    - name: sio
      uri: http://semanticscience.org/resource/
    - name: eo
      uri: https://purl.org/heals/eo#
    - name: xsd
      uri: http://www.w3.org/2001/XMLSchema#

Publishing Checklist

Before publishing, make sure the version in pyproject.toml is unique and the package name pyexplannotator is available on PyPI.

Build the source distribution and wheel:

python -m build

Validate the generated distributions:

python -m twine check dist/*

Upload to TestPyPI first:

python -m twine upload --repository testpypi dist/*

Install from TestPyPI in a clean environment:

pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple pyexplannotator

When the TestPyPI package looks correct, upload to PyPI:

python -m twine upload dist/*

Use PyPI API tokens for uploads. This repository already ignores .pypirc, so local credentials will not be committed.

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

pyexplannotator-0.1.1.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyexplannotator-0.1.1-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file pyexplannotator-0.1.1.tar.gz.

File metadata

  • Download URL: pyexplannotator-0.1.1.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for pyexplannotator-0.1.1.tar.gz
Algorithm Hash digest
SHA256 10e8cd5c79d30d5c21231414e0b9eb618a5890a0e28a7ad9eb89620e13554533
MD5 aff17078d2b03a2dd017977b056ca750
BLAKE2b-256 a1db91a11ba0a6a06a2bdd9c5bc149b413bcad2957588b313c6aec8f44d4cf6b

See more details on using hashes here.

File details

Details for the file pyexplannotator-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pyexplannotator-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 99b982004824598c505e4b72c5a8b35cf47ea9cb1aef0bbb1f986a0d8af59e0f
MD5 b993b74d4a09abb7a9eb65acddc5114c
BLAKE2b-256 98a670d8d537dd32216f07b2f3a85d99c8598313d0f77576f3489f86c5234971

See more details on using hashes here.

Supported by

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