-
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: use query parameter model for SPARQLModelAdapter.query
Using a query parameter model for SPARQLModelAdapter.query has many advantages, e.g. enhanced OpenAPI/Swagger definitions for FastAPI code and runtime validation for query parameters. Also, the query parameter model defines a single extension interface for query parameters. Closes #150.
- Loading branch information
Showing
3 changed files
with
25 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
from rdfproxy.adapter import SPARQLModelAdapter # noqa: F401 | ||
from rdfproxy.mapper import ModelBindingsMapper # noqa: F401 | ||
from rdfproxy.utils._types import SPARQLBinding # noqa: F401 | ||
from rdfproxy.utils.models import Page # noqa: F401 | ||
from rdfproxy.utils.models import Page, QueryParameters # noqa: F401 |
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