Skip to content

fix(fullmap): retain tied CURIE matches - #145

Merged
SkyeAv merged 1 commit into
mainfrom
fix/fullmap-tie-dedup
Sep 9, 2026
Merged

fix(fullmap): retain tied CURIE matches#145
SkyeAv merged 1 commit into
mainfrom
fix/fullmap-tie-dedup

Conversation

@SkyeAv

@SkyeAv SkyeAv commented Sep 9, 2026

Copy link
Copy Markdown
Owner

Summary

  • retain every distinct CURIE in the best fullmap ranking tier
  • collapse duplicate rows for the same (term, CURIE)
  • propagate tied matches through resolve() and join_matches() as separate rows
  • document and test the new behavior

Verification

  • uv run pytest tests/test_fullmap.py tests/test_fullmap_golden.py
  • uv run pytest -n0 (1246 passed, 3 skipped)
  • make lint
  • make fmt-check
  • make typecheck

@coderabbitai

coderabbitai Bot commented Sep 9, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 09b0aa40-d1d0-4f84-ba04-6ff4125f5153


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@SkyeAv
SkyeAv merged commit 6f40a35 into main Sep 9, 2026
5 checks passed
SkyeAv added a commit that referenced this pull request Sep 9, 2026
Cut 17.0.1 and bump the package version in pyproject.toml, CITATION.cff,
and uv.lock.

Patch: the fullmap resolver now retains every CURIE tied on a term's best
ranking tier (#145) — `distinct` used to keep one arbitrary sort-first row
per term, silently discarding distinct CURIEs tied across the entire
ranking tuple; tied CURIEs now propagate through `resolve`,
`resolve_batch`, and `join_matches` as separate output rows, collapsed
only by `(term, CURIE)`. Also on main since 17.0.0: a CI-only GitHub
Actions runtime bump (#144), no user-facing change.

Changelog:
- Versioned the release as 17.0.1 - 2026-09-09 with one Fixed entry for
  the tied-CURIE retention (#145); no Unreleased section existed to
  rename, and the CI-only bump (#144) gets no entry per repo convention.

Docs: none needed here — #145 shipped its docs updates
(docs/api/fullmap.md) with the fix.

Testing:
- make lint -> "All checks passed!" (ruff check)
- make fmt-check -> 84 files already formatted; cargo fmt clean
- make typecheck -> 0 errors, 0 warnings, 0 informations (pyright)
- make test -> 1246 passed, 3 skipped in 37.52s (pytest, 96% coverage)
- make test-rust -> all test binaries ok (cargo test)
- cargo clippy --manifest-path rust/Cargo.toml --all-targets -- -D warnings
  -> clean
- uv lock --check -> in sync pre-bump; re-locked post-bump, self-entry only
SkyeAv added a commit to glusman-team/dakp that referenced this pull request Sep 9, 2026
17.0.1 makes the fullmap resolver retain every CURIE tied on a term's best
ranking tier instead of keeping one arbitrary winner
(SkyeAv/Tablassert#145): `distinct` sorted by term/PR/NLP_LEVEL and kept only
the first row per term, so CURIEs tied across the whole ranking tuple were
discarded before `resolve` saw them. A DAKP mention that maps equally well to
several CURIEs now expands to one edge per tied CURIE (level-one still beats
level-two). Nothing in the emitted config changes — only resolved KG content —
so the pin, the version-history docs, and the package version move.

The version bump regenerates tables/graph.yaml, which embeds the DAKP package
version via graph_config(version=...), and carries CITATION.cff along.

Verified against the installed 17.0.1: `make check` (ruff check + format
check, pyright 0 errors, uv run pytest = 1066 passed at 100.00% branch
coverage including the real tablassert build-kg KGX end-to-end, merge-on-
collision and nullable-qualifier integration tests, go test ./..., go vet).
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