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

Merged
merged 1 commit into from
Jan 17, 2025

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.
@hjohns hjohns merged commit 3387511 into main Jan 17, 2025
1 check passed
@jamiefeiss jamiefeiss deleted the pr_sparql_post_request branch January 22, 2025 08:43
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.

2 participants