Database queries and constraints via lifting problems
David I. Spivak

TL;DR
This paper models database queries and constraints using category theory and lifting problems, providing a formal framework that enhances understanding and management of schema evolution.
Contribution
It introduces a novel category-theoretic approach to represent queries and constraints as lifting problems, linking algebraic topology concepts with database theory.
Findings
Queries correspond to lifting problems with solutions as lifts
Constraints are formalized within the same lifting framework
Accessing derived query databases aids schema evolution management
Abstract
Previous work has demonstrated that categories are useful and expressive models for databases. In the present paper we build on that model, showing that certain queries and constraints correspond to lifting problems, as found in modern approaches to algebraic topology. In our formulation, each so-called SPARQL graph pattern query corresponds to a category-theoretic lifting problem, whereby the set of solutions to the query is precisely the set of lifts. We interpret constraints within the same formalism and then investigate some basic properties of queries and constraints. In particular, to any database we can associate a certain derived database of queries on . As an application, we explain how giving users access to certain parts of , rather than direct access to , improves ones ability to manage the impact of schema evolution.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
