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

Implement SPARQLModelAdapter.query_paginate for ungrouped pagination #43

Closed
lu-pl opened this issue Aug 4, 2024 · 0 comments
Closed
Assignees

Comments

@lu-pl
Copy link
Contributor

lu-pl commented Aug 4, 2024

Implement SPARQLModelAdapter.query_paginate for ungrouped pagination.

This needs to dynamically modify a SPARQL query already, but is less complicated than grouped pagination.

The implementation requires to

  1. calculate offsets based on page and size parameters
  2. substitute a query template dynamically with values for page (offset) and size (limit)
  3. run a query with page/size parameters
lu-pl added a commit that referenced this issue Aug 4, 2024
Implement SPARQLModelAdapter.query_paginate for ungrouped pagination.
For ungrouped pagination the internal query is temporarily modified
with page/offset and size/limit according to the page and size
parameters.

For FastAPI and pagination see https://lewoudar.medium.com/fastapi-and-pagination-d27ad52983a.

Closes #43.
@lu-pl lu-pl self-assigned this Aug 4, 2024
@lu-pl lu-pl closed this as completed Aug 15, 2024
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 a pull request may close this issue.

1 participant