Title: bug:sparql.method = "POST" silently ignored — SPARQL queries always use GET · Issue #69 · dbpedia/databus-python-client · GitHub
Open Graph Title: bug:sparql.method = "POST" silently ignored — SPARQL queries always use GET · Issue #69 · dbpedia/databus-python-client
X Title: bug:sparql.method = "POST" silently ignored — SPARQL queries always use GET · Issue #69 · dbpedia/databus-python-client
Description: Bug Report **Describe the bug** `_query_sparql_endpoint()` in `download.py` attempts to force HTTP POST for SPARQL queries by directly assigning to the attribute: ```python sparql.method = "POST" However, SPARQLWrapper does not expose .m...
Open Graph Description: Bug Report **Describe the bug** `_query_sparql_endpoint()` in `download.py` attempts to force HTTP POST for SPARQL queries by directly assigning to the attribute: ```python sparql.method = "POST" H...
X Description: Bug Report **Describe the bug** `_query_sparql_endpoint()` in `download.py` attempts to force HTTP POST for SPARQL queries by directly assigning to the attribute: ```python sparql.method = "PO...
Opengraph URL: https://github.com/dbpedia/databus-python-client/issues/69
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bug:sparql.method = \"POST\" silently ignored — SPARQL queries always use GET ","articleBody":"# Bug Report \n \n **Describe the bug** \n `_query_sparql_endpoint()` in `download.py` attempts to force HTTP POST for SPARQL \n queries by directly assigning to the attribute: \n \n ```python \n sparql.method = \"POST\" \n \n However, SPARQLWrapper does not expose .method as a settable public attribute. \n This assignment is silently ignored and the wrapper defaults to GET for all queries. \n \n As a result, large SPARQL queries (e.g. those returned by collection endpoints) are \n sent as GET requests, causing failures due to URL length limits on the server side. \n \n To Reproduce \n \n 1. Install the client: pip install databusclient \n 2. Download a large collection: \n databusclient download https://databus.dbpedia.org/dbpedia/collections/dbpedia-snapshot-2022-12 \n \n 3. Observe that the underlying SPARQL query is sent via GET, which may fail for large \n collection queries that exceed server-side URL length limits. \n \n Expected behavior \n The SPARQL query should be sent via HTTP POST. SPARQLWrapper provides the correct \n API for this: \n \n sparql.setMethod(\"POST\") # correct ✅ \n # NOT: sparql.method = \"POST\" (silently ignored ❌) \n \n Root Cause \n File: databusclient/api/download.py , function _query_sparql_endpoint() , line 593. \n \n # current (broken) \n sparql = SPARQLWrapper(endpoint_url) \n sparql.method = \"POST\" # ← has no effect \n \n # fix \n sparql = SPARQLWrapper(endpoint_url) \n sparql.setMethod(\"POST\") # ← correct SPARQLWrapper API \n \n Additional context \n \n • SPARQLWrapper version in use: ^2.0.0 (see pyproject.toml ) \n • The setMethod API has been available since SPARQLWrapper 1.x \n • This affects any download that goes through a SPARQL query path: collections, \n custom --databus queries, and group/artifact resolution. \n \n ","author":{"url":"https://github.com/Prakhar54-byte","@type":"Person","name":"Prakhar54-byte"},"datePublished":"2026-07-05T20:07:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/69/databus-python-client/issues/69"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4adadb91-3352-e1df-e29b-e42cd8993563 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E3DC:B5247:1052AEC:1616824:6A4C6E27 |
| html-safe-nonce | f3aa1fae252df89aff8661a4fae85a8dbba870fa5276536f1d05593ee11c36b0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFM0RDOkI1MjQ3OjEwNTJBRUM6MTYxNjgyNDo2QTRDNkUyNyIsInZpc2l0b3JfaWQiOiI3MTAwOTc0OTI1MjQ2OTE4MTgzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 2d87c1523db7bb01bcbbcd0c9fd24454f8e73d020755511dd8c69d3755fb5369 |
| hovercard-subject-tag | issue:4814267018 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/dbpedia/databus-python-client/69/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bb1c0023862ce3adccac4450800857d19657473efad54e008c4b6e6a906ba394/dbpedia/databus-python-client/issues/69 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bb1c0023862ce3adccac4450800857d19657473efad54e008c4b6e6a906ba394/dbpedia/databus-python-client/issues/69 |
| og:image:alt | Bug Report **Describe the bug** `_query_sparql_endpoint()` in `download.py` attempts to force HTTP POST for SPARQL queries by directly assigning to the attribute: ```python sparql.method = "POST" H... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Prakhar54-byte |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-preview |
| go-import | github.com/dbpedia/databus-python-client git https://github.com/dbpedia/databus-python-client.git |
| octolytics-dimension-user_id | 2864602 |
| octolytics-dimension-user_login | dbpedia |
| octolytics-dimension-repository_id | 605605041 |
| octolytics-dimension-repository_nwo | dbpedia/databus-python-client |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 605605041 |
| octolytics-dimension-repository_network_root_nwo | dbpedia/databus-python-client |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 14099438da5379150f15a2892474c7c7e6c0e55e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width