ad-freiburg / qlever

Very fast SPARQL Engine, which can handle very large knowledge graphs like the complete Wikidata, offers context-sensitive autocompletion for SPARQL queries, and allows combination with text search. It's faster than engines like Blazegraph or Virtuoso, especially for queries involving large result sets.
Apache License 2.0
424 stars 52 forks source link

Get `PrefilterExpression` from `SparqlExpression` #1613

Closed realHannes closed 1 week ago

realHannes commented 1 week ago

The SparqlExpression base class has been extended with the method getPrefilterExpressionForMetadata. This method constructs for suitable (logical) expressions which are used inside a FILTER a corresponding PrefilterExpression (see PR #1503). These PrefilterExpressions can be used to prefilter the blocks of an IndexScan by only looking at their metadata. At the moment, the following expressions provide an overriden implementation of getPrefilterExpressionForMetadata: strstarts (preliminary), logical-or and logical-and (binary), logical-not (unary) and the standard RelationalExpressions (<, ==, >, <=, >=).

codecov[bot] commented 1 week ago

Codecov Report

Attention: Patch coverage is 90.61372% with 26 lines in your changes missing coverage. Please review.

Project coverage is 89.25%. Comparing base (6fba76f) to head (0280d90). Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
...ine/sparqlExpressions/PrefilterExpressionIndex.cpp 88.07% 3 Missing and 10 partials :warning:
...engine/sparqlExpressions/RelationalExpressions.cpp 80.43% 1 Missing and 8 partials :warning:
...engine/sparqlExpressions/SparqlExpressionPimpl.cpp 0.00% 3 Missing :warning:
...ine/sparqlExpressions/NumericBinaryExpressions.cpp 98.30% 0 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1613 +/- ## ========================================== - Coverage 89.25% 89.25% -0.01% ========================================== Files 372 372 Lines 34818 35089 +271 Branches 3931 3971 +40 ========================================== + Hits 31076 31317 +241 - Misses 2470 2482 +12 - Partials 1272 1290 +18 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

sparql-conformance[bot] commented 1 week ago

Conformance check passed ✅

No test result changes.

Details: https://qlever.cs.uni-freiburg.de/sparql-conformance-ui?cur=0280d90040b0740561ab883a76befd773bffd1d0&prev=6fba76ffbac97f8f5d7f7a716910e63b3dbbac12

sonarcloud[bot] commented 1 week ago

Quality Gate Passed Quality Gate passed

Issues
1 New issue
2 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarQube Cloud