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.0.tar.gz (9.8 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.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pyexplannotator-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b5501d90414d80a9968ab1ab20283bccb4eb881d9bddda315506d27d672ebe9d
MD5 9492f5c998e7a0cb7bb84fba9e3a3f32
BLAKE2b-256 3e731a4c3bcd2e9d96a01b312db3651aeae934c724e074ecaee335f2fbbf76d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyexplannotator-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f18f3f1b73e7553490bf819f97d32bedd05265265c02736ae0b09ff60ca54f20
MD5 803d2e3cedf71506b79c786f4e77af44
BLAKE2b-256 bba0a3806b29228268182752295f5513ae48f57844adb2318704dcf427f653ba

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