-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement grouping by model field
Currently, the group_by model_config parameter expects the name of a SPARQLBinding; the rationale for this behavior was, that grouping should theoretically also be possible for bindings that are not part of the model. Grouping is however primarily concerded with the model i.e. shapes definition, grouping by a model field is therefore more intuitive and conceptually more consistent. Grouping by bindings should not be part of the model is still possible by using pydantic.Field(exclude=True). This also forces backend implementers to be explicit about 'external' grouping keys. Closes #146.
- Loading branch information
Showing
3 changed files
with
25 additions
and
12 deletions.
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