Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't apply language filter if no matching triple pattern exists #1868

Merged
merged 8 commits into from
Mar 18, 2025

Conversation

RobinTF
Copy link
Collaborator

@RobinTF RobinTF commented Mar 11, 2025

QLever has two efficient ways of applying language filter: One using the tagged predicates like @en@rdfs:label and one that joins with the ql:langtag predicate. The latter one can only be safely applied, if the filtered variable appears somewhere in a triple, otherwise entities with a language tag that are created by the query (e.g. in a VALUES clause) are filtered out even if they have the correct language tag. This last restriction was missing so far and is introduced via this PR.

Fixes #1312

Copy link

codecov bot commented Mar 11, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.52%. Comparing base (e135714) to head (4d4f253).
Report is 4 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1868      +/-   ##
==========================================
- Coverage   90.52%   90.52%   -0.01%     
==========================================
  Files         403      403              
  Lines       39308    39316       +8     
  Branches     4429     4433       +4     
==========================================
+ Hits        35585    35591       +6     
- Misses       2401     2403       +2     
  Partials     1322     1322              

☔ 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.

Copy link
Member

@joka921 joka921 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some small suggestions.

@sparql-conformance
Copy link

Copy link

@joka921 joka921 merged commit f932920 into ad-freiburg:master Mar 18, 2025
24 checks passed
@RobinTF RobinTF deleted the fix-lang-filter-without-pattern branch March 18, 2025 13:25
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.

LANG support or work-around
2 participants