You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(graph): cover label_preferences threading and definition language preference
Codecov flagged 81% patch coverage on PR #104; the gap was concentrated
in build_entity_graph where the label_preferences plumbing and the
new language-aware _get_definition branches had no tests.
Adds six cases:
- label_preferences reaches select_preferred_label so graph node labels
resolve in the project's preferred language.
- _get_definition prefers preferred-language literals when both en and
es are present.
- _get_definition falls back to any literal when no preferred-language
literal exists for the same predicate.
- SKOS definition still wins over rdfs:comment in the same language.
- An unparseable label_preferences entry (no matching property) is
ignored — definition behavior degrades to first-literal-wins, which
is the no-preference default.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
0 commit comments