Functorial data migration

From MaRDI portal
Publication:714735

DOI10.1016/J.IC.2012.05.001zbMATH Open1251.68092DBLPjournals/iandc/Spivak12arXiv1009.1166OpenAlexW1620763508WikidataQ64385911 ScholiaQ64385911MaRDI QIDQ714735FDOQ714735

David I. Spivak

Publication date: 11 October 2012

Published in: Information and Computation (Search for Journal in Brave)

Abstract: In this paper we present a simple database definition language: that of categories and functors. A database schema is a small category and an instance is a set-valued functor on it. We show that morphisms of schemas induce three "data migration functors", which translate instances from one schema to the other in canonical ways. These functors parameterize projections, unions, and joins over all tables simultaneously and can be used in place of conjunctive and disjunctive queries. We also show how to connect a database and a functional programming language by introducing a functorial connection between the schema and the category of types for that language. We begin the paper with a multitude of examples to motivate the definitions, and near the end we provide a dictionary whereby one can translate database concepts into category-theoretic concepts and vice-versa.


Full work available at URL: https://arxiv.org/abs/1009.1166




Recommendations




Cites Work


Cited In (14)





This page was built for publication: Functorial data migration

Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q714735)