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

Add support for FROM and GRAPH with fixed IRI #1445

Merged
merged 99 commits into from
Sep 27, 2024

Conversation

joka921
Copy link
Member

@joka921 joka921 commented Aug 16, 2024

This continues work from #1337 (add a column with the graph name to the index), #1444 (add parser for N-Quads), and #1482 (add graph info to block metadata). Queries with FROM and/or GRAPH with a fixed IRI can now be processed. Processing queries with FROM NAME or GRAPH with a variable will be implemented in a future PR.

joka921 added 28 commits May 2, 2024 17:25
This is yet very hacky, and we have to integrate all the other things.
TODO<joka921>

integrate and test it.
Figure out the constantness of the result...
# Conflicts:
#	src/index/IndexFormatVersion.h
#	src/index/IndexImpl.cpp
#	src/index/PatternCreator.cpp
#	src/index/PatternCreator.h
#	src/parser/TripleComponent.h
fix the whole stuff....
Copy link

codecov bot commented Aug 16, 2024

Codecov Report

Attention: Patch coverage is 88.07339% with 13 lines in your changes missing coverage. Please review.

Project coverage is 88.21%. Comparing base (4c203e2) to head (0394bba).
Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
src/engine/Join.cpp 0.00% 3 Missing and 2 partials ⚠️
src/engine/GroupBy.cpp 72.72% 0 Missing and 3 partials ⚠️
src/engine/QueryPlanner.cpp 91.66% 0 Missing and 3 partials ⚠️
src/engine/CountAvailablePredicates.cpp 66.66% 0 Missing and 1 partial ⚠️
src/engine/IndexScan.cpp 88.88% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1445      +/-   ##
==========================================
- Coverage   92.55%   88.21%   -4.35%     
==========================================
  Files         355      355              
  Lines       26631    26639       +8     
  Branches     3575     3583       +8     
==========================================
- Hits        24649    23499    -1150     
+ Misses       1940     1909      -31     
- Partials       42     1231    +1189     

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

Hannah Bast and others added 11 commits September 24, 2024 19:30
Signed-off-by: Johannes Kalmbach <[email protected]>
Signed-off-by: Johannes Kalmbach <[email protected]>
# Conflicts:
#	src/index/CompressedRelation.cpp
#	src/index/CompressedRelation.h
#	test/CompressedRelationsTest.cpp
Signed-off-by: Johannes Kalmbach <[email protected]>
Signed-off-by: Johannes Kalmbach <[email protected]>
Signed-off-by: Johannes Kalmbach <[email protected]>
Signed-off-by: Johannes Kalmbach <[email protected]>
@hannahbast hannahbast changed the title Actually use the named graphs Add basic support for named graphs Sep 25, 2024
Copy link
Member

@hannahbast hannahbast left a comment

Choose a reason for hiding this comment

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

First round of reviewing of diff to #1482, looks great already

Check whether the change in SparqlExpressionTypes.h is necessary
Dito for LiteralExpression.h
Dito for Result.cpp
Dito for Bind.cpp

Copy link
Member

@hannahbast hannahbast left a comment

Choose a reason for hiding this comment

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

Looks great and complete now, a few minor changes left

@hannahbast hannahbast marked this pull request as ready for review September 26, 2024 19:07
Signed-off-by: Johannes Kalmbach <[email protected]>
@hannahbast hannahbast changed the title Add basic support for named graphs Add support for FROM and GRAPH with fixed IRI Sep 26, 2024
Copy link
Member

@hannahbast hannahbast left a comment

Choose a reason for hiding this comment

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

Awesome, another important milestone taken!

Copy link

@hannahbast hannahbast merged commit 6384041 into ad-freiburg:master Sep 27, 2024
18 of 20 checks passed
@hannahbast hannahbast mentioned this pull request Oct 1, 2024
hannahbast pushed a commit that referenced this pull request Oct 1, 2024
This continues work from #1445. QLever now supports SPARQL queries with `FROM NAMED` and `GRAPH` with a variable.
@joka921 joka921 deleted the use-named-graph branch December 18, 2024 09:44
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.

2 participants