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

Allows the use of the Prez /sparql endpoint using POST method #169

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ashleysommer
Copy link
Contributor

@ashleysommer ashleysommer commented Jul 1, 2024

Allows the use of the Prez /sparql passthrough endpoint using the POST method rather than GET.

This supports larger SPARQL queries on Prez APIs that do not support long query args in GET requests.

Fixes an issue on Azure APIM where it cannot accept an API route where the query param (/sparql?query=...) is longer than 2048 characters. It allows unlimited payload on POST.

I don't think this implementation is the cleanest way of doing it (all users of useSparqlRequest() get both a sparqlGetRequest fn and a sparqlPostRequest fn, and can use whichever they prefer). But it is the method I used to get around the issue.

This requires corresponding PR to be merged in backend Prez-api: RDFLib/prez#239

…T method rather than GET.

This supports larger SPARQL queries on Prez APIs that do not support long query args in GET requests.
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.

1 participant