-
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 ungrouped SPARQLModelAdapter.query_paginate
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.
- Loading branch information
Showing
2 changed files
with
61 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
"""SPARQL Query templates for RDFProxy paginations.""" | ||
|
||
from string import Template | ||
|
||
|
||
ungrouped_pagination_base_query = Template(""" | ||
$query | ||
limit $limit | ||
offset $offset | ||
""") |