English

Relational Foundations For Functorial Data Migration

Databases 2015-07-28 v7 Category Theory Logic

Abstract

We study the data transformation capabilities associated with schemas that are presented by directed multi-graphs and path equations. Unlike most approaches which treat graph-based schemas as abbreviations for relational schemas, we treat graph-based schemas as categories. A schema SS is a finitely-presented category, and the collection of all SS-instances forms a category, SS-inst. A functor FF between schemas SS and TT, which can be generated from a visual mapping between graphs, induces three adjoint data migration functors, ΣF:S\Sigma_F:S-instT\to T-inst, ΠF:S\Pi_F: S-inst T\to T-inst, and ΔF:T\Delta_F:T-inst S\to S-inst. We present an algebraic query language FQL based on these functors, prove that FQL is closed under composition, prove that FQL can be implemented with the select-project-product-union relational algebra (SPCU) extended with a key-generation operation, and prove that SPCU can be implemented with FQL.

Keywords

Cite

@article{arxiv.1212.5303,
  title  = {Relational Foundations For Functorial Data Migration},
  author = {David I. Spivak and Ryan Wisnesky},
  journal= {arXiv preprint arXiv:1212.5303},
  year   = {2015}
}
R2 v1 2026-06-21T22:58:33.032Z