Skip to content

v2.2.0

Latest

Choose a tag to compare

@github-actions github-actions released this 21 Apr 09:18

2.2.0 (2026-04-21)

Features

  • adding retracting CLI option (f9caecd)
  • fdo: import handle-record URL/handle values as IRIs (ef7140e)
  • nanopub: add signature verification to is_valid method for signed nanopubs (a90c54d)
  • nanopub: add trusty check to assert that a trusty nanopub is a valid one (7bb477f)

Dependency updates

  • core-deps: update rdflib to >=6.3.2 and pyshacl to >=0.28.1 (37ef706)
  • deps: add setuptools to dependencies used by pyshacl (a114626)
  • deps: update dependencies for docs group (edc55a9)

Bug Fixes

  • adding genrated pubinfo time by default (4c4ac9d)
  • nanopub: add local time zone to creation time (5950bba)
  • nanopub: add validation for named graphs to ensure distinct URIs and correct namespace (d225ce2)
  • Nanopub: avoid mutable default arguments in constructor (76a9932)
  • Nanopub: ensure valid source URI handling for trusty nanopubs and set it correctly after fetching (3ce983b)
  • Nanopub: improve bnode handling and ensure deep copy of RDF graphs on initialization with Dataset (60e8bf4)
  • nanopub: read source_uri from head graph when a trusty nanopub is loaded (9d9dda3)
  • nanopub: the NanopubConf is only considered during init when the nanopub was not provided as trig/nquads (6e302dc)
  • nanopub: use UTC timezone for creation time in constructor (219226b)
  • RdfUtils, utils: improve separator handling for nanopub URIs (bcfb024)
  • RdfUtils: update get_trustyuri to handle correctly trustyuri passed as baseuri parameter (c13f42b)
  • RdfUtils: when URIs are trusty but externals were not rewritten and when trusty base is passed trusty code wasn't extract (5e13b35)
  • sign_utils: update to ensure that a signed nanopub has the triple in the publication info graph (22abc56)
  • sign_utils: update signature verification to use local nanopub metadata and ensure the signature targets the correct nanopub (907ca3a)
  • TestVerifyTrusty: update tests to use has_valid_trusty and ensure named graph context is preserved in quads (bfe21a6)
  • utils: extract_np_metadata takes into account if nanopub is using both # and / (8135018)

Documentation

  • nanopubs: update link to nanopub.net (9bee7ee)
  • update development and README to use uv (0cd4679)

Tests

  • deps: add nanopub-testsuite-connector dependency to v1.0.0 (0bd98d8)
  • deps: move setuptools to test dependencies group (dcaaaee)
  • deps: update nanopub-testsuite-connector test dependency (a2a458d)
  • deps: update nanopub-testsuite-connector test library dependency to v1.0.3 (b98f0d6)
  • deps: update nanopub-testsuite-connector test library to v1.0.4 (9a2f3a1)
  • nanopub: add extensive unit tests for nanopub creation (77677f7)
  • nanopub: add validity checks for trusty nanopub instances (891cc2f)
  • nanopub: enable test_metadata_matches_graph and use NanopubTestSuite (0d34bdf)
  • nanopub: refactor and enhance signing tests (44c1722)
  • nanopub: refactor tests to add granularity (c2d4225)
  • nanopub: remove java_wrap checks (5ab2047)
  • nanopub: update test_invalid_fetching with Exception raise check (8b0d97a)
  • RdfUtils: add test for trustyuri with hash char as separator (2ab4e44)
  • RdfUtils: add TestGetTrustyUri unit tests (a028c23)
  • RdfUtils: add tests for get_trustyuri to verify trustyuri as baseuri handling (377c332)
  • RdfUtils: add tests for temporary base URI handling in get_trustyuri (066dca0)
  • RdfUtils: add unit tests (c6981fc)
  • replace test files with testsuite project (6681b8c)
  • sign_utils: add unit test for verify_trusty function with real URI (8918bca)
  • sign_utils: add unit test to test the add_signature method (92ad213)
  • sign_utils: update test for verify_trusty with a new real URI and remove unused tests (4a975b2)
  • update nanopub-java to v1.86.1 (1b954d5)

Build and continuous integration

  • add submodule fetch to git checkout command (948d16c)
  • autorelease: update workflow for publishing to PyPI using semantic-release (2b718bd)
  • disable fail-fast in test strategy for testing with both rdflib versions (97a5204)
  • migrate from Poetry to UV for dependency management and CI setup (16bed0b)
  • test: update rdflib version to v6.3.2 (a402496)
  • update actions/checkout action to v6.0.2 (e1cd994)
  • update actions/setup-python action to v6.2.0 (13e8f8b)
  • update poetry install command to install main, test and dev dependencies for testing in CI (dce623c)
  • update Poetry to v2.3.2 (cc50ddd)
  • update Poetry to v2.3.2 (b941417)

General maintenance

  • gitignore: add examples/*.trig files (ea5559b)
  • RdfUtils, utils: improve separator handling for nanopub URIs (3c5bc85)
  • README: add semantic-release badge and improve formatting (d77d34a)
  • README: update broken DOI badge link (550113a)
  • readme: update test badge workflow link (7347463)
  • remove JavaWrapper and nanopub-java references (98326e1)
  • remove redundant parhenteses (140cf29)
  • remove testsuite submodule (c02fbeb)
  • remove unnecessary parameter from test_nanopub_fetch function (8bbe81a)
  • remove unused imports (8468f26)
  • replace poetry with uv (a56ef65)
  • sem-release: add configuration (91e2c1f)
  • sem-release: add dependencies (a2ae24b)
  • sem-release: update tag format in configuration (5ec1223)
  • update docs annotations (90c0553)
  • update documentation to remove references to nanopub-java (4e706b7)
  • update homepage URL (b414e09)
  • update poetry.lock (e0c5df0)
  • update testsuite submodule reference (263ffff)

Refactoring

  • clean up imports and formatting in test files (06833fb)
  • namespaces: remove PROV namespace definition and use the one provided by rdflib (b960e2d)
  • RdfUtils: move trusty uri checker to TrustyUriUtils class (6367cc8)
  • test_cli: use NanopubTestSuite fixture instead of local testsuite files (7e02527)
  • test_nanopub: improve readability of test_metadata_matches_graph and remove redundant test_source_uri_resolved_from_trusty_fetch (292918f)
  • test_nanopub: integrate TestSuiteSubfolder for fixture management (c787cda)
  • test_profile: replace local keys with signing keys from NanopubTestSuite (498e781)
  • test_testsuite: update tests to use parameterized fixtures (0e80ee6)