test(explorer): add coverage for SPARQL route (#773)

sparql.py handles direct SPARQL query execution against the live graph with no test coverage anywhere in the repo. Adds coverage for the read-only allowlist (the actual security boundary here), row/timeout limits, error handling, and RDF projection fidelity.
This commit is contained in:
Sameer6305
2026-07-27 15:00:47 +05:30
parent 86db4f923d
commit dd7b090aec
3 changed files with 275 additions and 1 deletions
+1 -1
View File
@@ -262,7 +262,7 @@ Full interactive docs at `http://localhost:8000/docs`. All endpoints accept and
| Endpoint | Method | Description |
| :-------- | :------ | :----------- |
| `/api/sparql` | `POST` | Execute a SPARQL SELECT or ASK query |
| `/api/sparql` | `POST` | Execute a read-only SPARQL query (`SELECT`, `ASK`, `CONSTRUCT`, or `DESCRIBE`) |
</Accordion>
<Accordion title="Decisions, Provenance, Annotations & Export">