sparqlite: SPARQL 1.1 inside SQLite, written in Rust

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

A single AI-generated prompt produced a working SPARQL engine nobody has the time to review, raising the question of what to do with code you can own but not understand.

Read this as

Simon Willison used Claude Code, an AI coding assistant, to build sparqlite, a software component that adds SPARQL, a query language for linked data, to SQLite, the world's most common local database. He typed one prompt containing a typo, and the AI worked for over twelve hours before he added requests for documentation. The finished tool passed 636 of 639 applicable W3C tests. Willison says he cannot realistically review the resulting code, so he is unsure how valuable it is.

This is less a product launch than an experiment in extreme AI-assisted development: one person generated a full Rust SPARQL implementation inside SQLite via a single prompt plus one follow-up, with the AI working unattended for 12+ hours. The honest takeaway for managers is the governance gap Willison flags, the code works (636/639 tests) but is not humanly reviewable. There is no pricing, support or release plan; treat it as a demonstration of agent coding scale, not a deployable product.

sparqlite is a Rust SQLite loadable extension storing RDF quads in ordinary SQLite tables, executing SPARQL 1.1 natively in-process. Architecture: integer-encoded terms, covering indexes, a cost-based planner, batched joins, and optional direct SQLite B-tree reads. Measured 3.5× speedup over SQL translation in count mode and 2.8× returning full results; 636/639 applicable W3C evaluation tests plus differential fuzzing. Built via Claude Code for web in 'Ultracode' mode generating and coordinating subagent workflows; the author states the output cannot be feasibly code-reviewed.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

sparqlite SQLite Claude Code SPARQL 1.1 RDF W3C Datasette

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading