-
Notifications
You must be signed in to change notification settings - Fork 37
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
SparqlExpressions! And a properParser! (both at least partially, but with a general, extendable framework) #405
Closed
Closed
Changes from 67 commits
Commits
Show all changes
72 commits
Select commit
Hold shift + click to select a range
d63aa76
Removed a lot of redundancy in the SparqlLexer to start with.
joka921 30e6c9f
Added the antlr4 Runtime and a generated Parser/Visitor.
joka921 05503d5
Parsing of numeric Literals works like a charm.
joka921 5689116
merged current Master
joka921 8b4d6a8
Renamed the file to SparqlQleverVisitor.cpp
joka921 ccd22fd
Working: Added the iriref rule
joka921 20df6f5
also working: rule for pnameLN
joka921 2cdbcb3
Still working, next step: prefixes test.
joka921 afcd3c0
NOW it is working...
joka921 faef545
ok, prefix stuff passes simple tests.
joka921 9db440e
Closer to getting all iris parsed.
joka921 aaa69af
Added the EXCLUDE_FROM_ALL to all submodules, to avoid unnecessary bu…
joka921 ea5805b
Created a separate struct called SelectClause in the ParsedQuery.cpp
joka921 86a9101
Added the SPARQL-style @en@rdfs:label IRIs to the ANTLR-grammar.
joka921 b45a4ab
Added a README for ANTLR and split the automatically generated and th…
joka921 bfab0f4
Renamed the Automatically generated Parser files to avoid name clutte…
joka921 463fb84
Added two helper functions to delegate the Prefix+Iri handling to the…
joka921 8c92823
Stopping work for now to first refactor elsewehere.
joka921 d2f477c
We have a compiling OrExpression.
joka921 f035b11
Partially working OR, before refactoring out a general binary operation.
joka921 6cac959
Generic BinaryOperations, which seem to work.
joka921 d0d7c16
trying to integrate variables into these shenanigans.
joka921 b6124ee
Working, before starting n-ary operation.
joka921 a585a38
Generic implementation of the lifting for Unary, Ternary, Quarternary…
joka921 c92d72f
We now have literals!
joka921 8964a22
Compiling integration into the BIND class and the ParsedQuery.
joka921 127a493
Fixed compilation after including the Expression library into the new…
joka921 706250b
Add the Automatically generated SparqlAutomatic grammar files to git.
joka921 7768162
Not compiling, make it compile.
joka921 d8b9648
At least some of the expressions are compiling
joka921 01ff2d5
Working stub. Next step: Make the visitor strongly typed.
joka921 e4aa710
Working Tagged dispatch.
joka921 9f5fd3f
Working version of the new "tagged" Binary Expression.
joka921 91d364d
Removed the old unused version of the dispatcher.
joka921 3801776
Created a (hopefully working) ExpressionHelper for the SparqlParser.
joka921 4ca0d3a
These are working Sparql Expressions!
joka921 91233af
Working including BIND CONSTANTS again..
joka921 97e7fc9
Started cleaning up and fixing bugs.
joka921 67af7fb
This is working and a lot of stuff has been moved to separate files. …
joka921 1d383a0
Cleaned up the interface, it is still working.
joka921 8dc9b13
Working CALL_FIXED_SIZE optimization, next step: get Rid of the bool …
joka921 51101db
Removed unused Parameters.
joka921 e8bed82
A commented draft of SparqlExpressions which partially works for nume…
joka921 7fa1d3a
Added the missing files, why were they missing?
joka921 8001613
Merge branch 'master' into f.escapingInSparqlParser
joka921 0ee054e
Update dependencies from antlr.
joka921 1c7ad03
Fixed a bug.
joka921 c93725f
Fixed the compilation after merge.
joka921 4f005d6
RUN ergänzt.
joka921 248abe7
Added many more dependencies
joka921 50a21bb
Fixed the tests.
joka921 d8f827d
Made it compile with clang.
joka921 60c15d4
Use clang-12 on github actions.
joka921 6e64c9b
Put the comments in sync again.
joka921 0062752
Fixed a missing include for clang-12.
joka921 3996739
Removed the (unused) ranges header, it makes trouble with clang12 on …
joka921 d2edfae
Implemented = and COUNT as examples for relational expressions and ag…
joka921 fa1670a
Added LimitedAllocation to the SparqlExpressions.
joka921 61c7737
Refactored many lambdas out, it seems to be working.
joka921 5f99b35
Support for all the aggregates is complete. We can start integrating …
joka921 336fee9
The group by seems to work for many cases.
joka921 e47afd5
clang-format.
joka921 0c593b7
Fix build error in GCC
joka921 dcc2145
Clang-Format.
joka921 f8ff91b
Added some initial unit tests for the expressions on sets.
joka921 d266edb
Unit tests for SetExpressions are done.
joka921 b2a312d
easier framework for testing OR, TODO: more unit tests.
joka921 a1237be
Merge branch 'master' into f.escapingInSparqlParser
joka921 2361388
Debugging for wrong prefixedIris which make the unescaping fail.
joka921 43a66c7
fixed Wrong resultTypes in columns.
joka921 c3835d3
temporary fix for wrong result types in joins with empty subresults.
joka921 4edac10
Also correctly set the groupedBy variables in the last Block.
joka921 File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -844,22 +844,22 @@ queries: | |
- contains_row: [ "<Albert_Einstein>", "<Mileva_Marić>", 42 ] | ||
- order_string: { "dir": "ASC", "var": "?x" } | ||
|
||
- query: bind-entity-constant | ||
type: no-text | ||
sparql: | | ||
SELECT ?x ?y ?z WHERE { | ||
?x <is-a> <Scientist> . | ||
?x <Spouse_(or_domestic_partner)> ?y . | ||
?y <is-a> <Scientist> . | ||
FILTER(?x < ?y) . | ||
BIND(<Al_Gore> AS ?z) | ||
} ORDER BY ASC(?x) | ||
checks: | ||
- num_cols: 3 | ||
- num_rows: 97 | ||
- selected: [ "?x", "?y", "?z" ] | ||
- contains_row: [ "<Albert_Einstein>", "<Mileva_Marić>", "<Al_Gore>" ] | ||
- order_string: { "dir": "ASC", "var": "?x" } | ||
# - query: bind-entity-constant | ||
# type: no-text | ||
# sparql: | | ||
# SELECT ?x ?y ?z WHERE { | ||
# ?x <is-a> <Scientist> . | ||
# ?x <Spouse_(or_domestic_partner)> ?y . | ||
# ?y <is-a> <Scientist> . | ||
# FILTER(?x < ?y) . | ||
# BIND(<Al_Gore> AS ?z) | ||
# } ORDER BY ASC(?x) | ||
# checks: | ||
# - num_cols: 3 | ||
# - num_rows: 97 | ||
# - selected: [ "?x", "?y", "?z" ] | ||
# - contains_row: [ "<Albert_Einstein>", "<Mileva_Marić>", "<Al_Gore>" ] | ||
# - order_string: { "dir": "ASC", "var": "?x" } | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What about this query? |
||
- query: bind-entity-constant | ||
type: no-text | ||
sparql: | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Uncomment