fix(next/query): support SPARQL 1.1 update terms, construct where, and projection scoping - #574
Merged
remiceres merged 1 commit intoSep 7, 2026
Conversation
…d projection scoping
- Resolve prologue prefixes, datatypes, and blank nodes in INSERT/DELETE DATA (CoreseUpdate)
- Fix LiteralAst record pattern ordering (lexical, lang, datatype) and support multiline/single quotes
- Support short-form CONSTRUCT WHERE { ... } in ConstructQueryAstListener
- Align SelectProjectionScopeValidationRule with W3C SPARQL 1.1 (§18.2.1) by allowing unbound variables and rejecting in-scope alias reuse
- Factorize unit and validation tests into clean parameterized tests
- Fix SonarLint cognitive complexity, unused imports, and lambda exceptions
Refs #572
|
Test Results 439 files 439 suites 21s ⏱️ Results for commit 43a9276. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Implements SPARQL 1.1 Quick Wins identified in #572 to improve W3C test suite conformance:
• Resolve prologue prefixes, datatypes, and blank nodes in INSERT DATA / DELETE DATA (CoreseUpdate)
• Fix inverted record pattern parameters in LiteralAst(lexical, lang, datatype) and support multiline and single-quoted literals in SparqlAstToExpression.unquoteLexical
• Support short-form CONSTRUCT WHERE { ... } in ConstructQueryAstListener (SPARQL 1.1 §10.2.2)
• Align SelectProjectionScopeValidationRule with W3C SPARQL 1.1 (§18.2.1) by allowing unbound variables in SELECT projections/expressions and rejecting in-scope alias reuse
• Factorize unit and validation test suites into parameterized tests with @MethodSource
• Ensure 0 SonarLint warnings (cognitive complexity < 15, single invocation in assertThrows, clean imports)
Conformance Impact
• W3C SPARQL 1.1 Test Suite: +35 newly passing tests (from 149 to 184 passing tests)
• W3C SPARQL 1.0 Test Suite: +4 newly passing tests (from 253 to 257 passing tests)
• Zero regressions across the entire corese-core test suite (100% BUILD SUCCESSFUL)
Fixes #572