Skip to content

Upgrade to koza 2.x and restore kgx RDF output#9

Open
kevinschaper wants to merge 6 commits intomainfrom
template-migration
Open

Upgrade to koza 2.x and restore kgx RDF output#9
kevinschaper wants to merge 6 commits intomainfrom
template-migration

Conversation

@kevinschaper
Copy link
Member

Summary

  • Migrate from cookiecutter template to koza-ingest-template (hatchling/uv)
  • Upgrade transform config and code for koza 2.2.0 compatibility
  • Restore RDF N-Triples output via kgx in the postprocess step
  • Fix download command in justfile
  • Update all dependencies to latest versions

Changes

  • pyproject.toml — new hatchling build system, added kgx dependency
  • justfile — full pipeline with download, transform, postprocess (taxon split + RDF)
  • src/transform.yaml — koza 2.x config (removed deprecated fields, fixed paths/headers)
  • src/transform.py — fixed module import for koza 2.x loader
  • .github/workflows/release.yaml — includes .nt.gz in release artifacts
  • uv.lock — new lockfile

Test plan

  • just run completes successfully (2.7M nodes, 113 taxa, 119M RDF output)
  • uv run pytest passes

🤖 Generated with Claude Code

kevinschaper and others added 6 commits February 4, 2026 17:41
- Migrate transform.yaml config for koza 2.2.0 (remove deprecated name
  fields, fix header_mode, add header_prefix, fix data path)
- Fix sibling module import in transform.py for koza 2.x loader
- Fix download command in justfile (koza download -> downloader)
- Add kgx dependency and RDF generation step to postprocess
- Include .nt.gz files in release artifacts
- Update all dependencies to latest versions

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The downloader CLI is provided by kghub-downloader, which was missing
from project dependencies (only available globally on dev machines).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant