The repository or configuration that created this release differ from a previous release. View details.
rdfdiff
rdfdiff reads an RDF file's Git history as changes to its vocabulary,
rather than as changed characters. It reports classes, properties, individuals,
Equivalent RDF serializations produce no semantic change, so reformatting, prefix changes, reordered triples, and blank-node relabeling do not hide actual ontology evolution.
Install
uv tool install rdfdiff
Or run the current checkout:
uv run semanticdiff log --repo /path/to/ontology-repository
Use
Summarize every commit that changed an RDF file:
semanticdiff log v0.1..v0.2 --repo /path/to/ontology-repository --file ontology.ttl
Trace one entity through a revision range:
semanticdiff show ex:Product v0.1..HEAD --repo /path/to/ontology-repository --file ontology.ttl
When a repository has exactly one tracked RDF file, --file is optional. Use
--text with log to append Git's raw hunks after the semantic report.
Library API
from rdflib import Graph
from semanticdiff import compare
changes = compare(before_graph, after_graph)
read_history(repo, revision_range, path) pairs each commit touching path
with its semantic change set. The public vocabulary is exported from the package
root: Change, ChangeKind, ChangeSet, CommitChanges, and EntityKind.
Development
bash scripts/ci.sh
The local gate runs the same checks on Python 3.12 and 3.13 as GitHub Actions.
Pass one version, for example bash scripts/ci.sh 3.13, for faster iteration.
The distribution is named rdfdiff; its Python import and command-line command
remain semanticdiff. The project deliberately has no dependency on Ster. Ster
can consume it as an optional integration, but the diff engine and command-line
tool remain usable with any RDF repository.
The test suite includes pure graph comparisons, Git-history and CLI tests, and BDD scenarios for semantic change reporting. The throw-away Git repositories in the tests exercise real Git plumbing rather than mocks.
Releases
Releases are published to PyPI by the pypi-publish.yml GitHub Actions workflow
when a v* tag is pushed. PyPI trusted publishing must be configured for the
gbelbe/rdfdiff repository, the pypi-publish.yml workflow, and the pypi
environment before the first release tag is created. The pending PyPI publisher
must use the rdfdiff project name.
Metadata
Release files for rdfdiff 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Change of provenance
The repository or configuration that created these release files differ from that of a previous release.
We recommend inspecting the repository and configuration before proceeding. View details.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rdfdiff-0.1.1.tar.gz | 102.4 kB | With provenance | Details for rdfdiff-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rdfdiff-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for rdfdiff-0.1.1-py3-none-any.whl |
Total release size: 122.6 kB
Release files / rdfdiff-0.1.1.tar.gz
Change of provenance
This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.
We recommend inspecting the repository and configuration before proceeding. View details.
| Download URL | rdfdiff-0.1.1.tar.gz |
|---|---|
| Size | 102.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3d50a1316305c1fcbc723c31807b588490de27f605fb7b1a87781382f5a2142c
|
|
BLAKE2b-256 checksum How to use checksums |
b916b207e1283a7c4e2a7b9babbc2fbf9a08dac538b731b68e52b6ab934b5520
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.
Transparency logRelease files / rdfdiff-0.1.1-py3-none-any.whl
Change of provenance
This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.
We recommend inspecting the repository and configuration before proceeding. View details.
| Download URL | rdfdiff-0.1.1-py3-none-any.whl |
|---|---|
| Size | 20.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9563582a292a86288435f17f3df5ae13591c8f4fa56419626c6e183c05c34639
|
|
BLAKE2b-256 checksum How to use checksums |
63d5fce3d45f7bca9935493b62de566cd89e65c3f85ac5439638724c97305496
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.
Transparency logSecurity for rdfdiff 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Change of provenance
The repository and configuration that created this release differ from a previous release.
While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.
Repository
- Removed 0.1.0 github.com/gbelbe/semanticdiff
- Added 0.1.1 github.com/gbelbe/rdfdiff
Attestation for rdfdiff-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.