English

Database queries and constraints via lifting problems

Category Theory 2019-02-20 v3 Databases Algebraic Topology

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 π\pi we can associate a certain derived database \Qry(π)\Qry(\pi) of queries on π\pi. As an application, we explain how giving users access to certain parts of \Qry(π)\Qry(\pi), rather than direct access to π\pi, improves ones ability to manage the impact of schema evolution.

Cite

@article{arxiv.1202.2591,
  title  = {Database queries and constraints via lifting problems},
  author = {David I. Spivak},
  journal= {arXiv preprint arXiv:1202.2591},
  year   = {2019}
}
R2 v1 2026-06-21T20:18:20.707Z