Database queries and constraints via lifting problems
arXiv:1202.2591 · doi:10.1017/S0960129513000479
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 $\Qry(π)$ of queries on . As an application, we explain how giving users access to certain parts of $\Qry(π)$, rather than direct access to , improves ones ability to manage the impact of schema evolution.
References in corpus (4)
Cited by in corpus (6)
- Algebraic Model Management: A Survey
- A diagrammatic view of differential equations in physics
- A Formal Category Theoretical Framework for Multi-model Data Transformations
- Learning Functors using Gradient Descent
- Compositional Separation of Control Flow and Data Flow
- A category-theoretic approach to modeling John Cage's Silent piece