Skip to content

Conversation

@joka921
Copy link
Member

@joka921 joka921 commented Oct 14, 2025

This commit refactors the VocabularyMerger implementation to properly handle duplicate word occurrences during vocabulary merging:

  • Introduced EqualWords struct to collect multiple occurrences of the same iriOrLiteral across partial vocabularies
  • Changed from lastTripleComponent_ to currentWord_ tracking
  • Updated WordCallback concept (removed inTextIndex parameter)
  • Modified EqualWords constructor to remove inTextIndex parameter
  • Improved duplicate handling logic to merge isExternal flags
  • Updated writePartialVocabularyToFile to remove inTextIndex serialization
  • Fixed TripleComponentWithIndex constructor calls

The key improvement is that when the same word appears multiple times with different isExternal values, they are properly merged with the OR logic applied to isExternal.

🤖 Generated with Claude Code

This commit refactors the VocabularyMerger implementation to properly
handle duplicate word occurrences during vocabulary merging:

- Introduced EqualWords struct to collect multiple occurrences of the
  same iriOrLiteral across partial vocabularies
- Changed from lastTripleComponent_ to currentWord_ tracking
- Updated WordCallback concept (removed inTextIndex parameter)
- Modified EqualWords constructor to remove inTextIndex parameter
- Improved duplicate handling logic to merge isExternal flags
- Updated writePartialVocabularyToFile to remove inTextIndex serialization
- Fixed TripleComponentWithIndex constructor calls

The key improvement is that when the same word appears multiple times
with different isExternal values, they are properly merged with the
OR logic applied to isExternal.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@sparql-conformance
Copy link

Overview

Number of Tests Passed ✅ Failed ❌ Intended ⚠️ Not tested
522 439 16 67 0

Conformance check passed ✅

No test result changes.

Details: https://qlever.dev/sparql-conformance-ui?cur=42ab95fa8866e291ce444c40ab948bfd33a397ec&prev=463d9abae67b6487905e853a0124405f7a990b66

@codecov
Copy link

codecov bot commented Oct 14, 2025

Codecov Report

❌ Patch coverage is 91.93548% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 91.45%. Comparing base (463d9ab) to head (42ab95f).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
src/index/VocabularyMergerImpl.h 91.07% 1 Missing and 4 partials ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2433   +/-   ##
=======================================
  Coverage   91.44%   91.45%           
=======================================
  Files         462      462           
  Lines       46907    46933   +26     
  Branches     5240     5241    +1     
=======================================
+ Hits        42896    42923   +27     
- Misses       2511     2513    +2     
+ Partials     1500     1497    -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sonarqubecloud
Copy link

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