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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b5501d90414d80a9968ab1ab20283bccb4eb881d9bddda315506d27d672ebe9d
|
|
| MD5 |
9492f5c998e7a0cb7bb84fba9e3a3f32
|
|
| BLAKE2b-256 |
3e731a4c3bcd2e9d96a01b312db3651aeae934c724e074ecaee335f2fbbf76d1
|
File details
Details for the file pyexplannotator-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pyexplannotator-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f18f3f1b73e7553490bf819f97d32bedd05265265c02736ae0b09ff60ca54f20
|
|
| MD5 |
803d2e3cedf71506b79c786f4e77af44
|
|
| BLAKE2b-256 |
bba0a3806b29228268182752295f5513ae48f57844adb2318704dcf427f653ba
|