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

fix: resolve group_by config values for SPARQL binding aliases #162

Merged
merged 2 commits into from
Dec 5, 2024

Conversation

lu-pl
Copy link
Contributor

@lu-pl lu-pl commented Dec 5, 2024

Fixes #161

@lu-pl lu-pl requested a review from kevinstadler December 5, 2024 09:56
lu-pl added 2 commits December 5, 2024 10:57
Currently, query constructors naively inject the 'group_by' value from
the model_config into SPARQL queries.
This works until a field name does not correspond to a SPARQL binding
name, i.e. until rdfproxy.SPARQLBinding aliases are used.

So, field-based grouping obviously requires 'group_by' values to
resolve SPARQL binding aliases - which this change implements.

Note: The change introduces duplication for resolving SPARQL binding
aliases. The planned QueryConstructor class (issue #134) will get rid of
this and other design flaws.

Fixes #161
The change adapts/adds tests for group_by configs that require
rdfproxy.SPARQLBinding resolution.
@lu-pl lu-pl force-pushed the lupl/fix-group-by-binding branch from 1a1a649 to 3b9fee7 Compare December 5, 2024 09:58
Copy link

@kevinstadler kevinstadler left a comment

Choose a reason for hiding this comment

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

finally!

@kevinstadler kevinstadler merged commit 073add1 into main Dec 5, 2024
9 checks passed
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.

Query constructor for grouped models injects field name instead of SPARQL binding
2 participants