Coder Social home page Coder Social logo

categorical_data_migration's Introduction

Categorical Data Migration

Project Description

This project aims to implement the ideas introduced in Chapter 7 of Seven Sketches in Compositionality:An Invitation to Applied Category Theory by Spivak and Fong. In particular to model database schemas as categories, instances of databases as functors into the category Set, and to model database migrations through the use of pullbacks and adjunctions.

An implementation of this theory already exists through the Categorical Query Language project, implemented using Java. This project will be an exercise to replicate the same ideas and functionality using Python instead.

Installation

First install the conda environment:

conda env create -f venvs/categoricaldata.yaml

Update the environment later using

conda env update -f venvs\decisiongraphormers.yaml --prune

Next activate the environment and install the project packages in development mode:

conda activate categoricaldata
pip install -e .

Finally, install the pre-commit git hooks using:

pre-commit install

Testing

Unit tests should be run using pytest. This can either be done via the terminal with the command

pytest packages -rA

or by setting up a pytest configuration in pycharm.

(Not using yet) Sphinx documentation

If compiling for the first time, create an empty directory .\documentation\build. Then using PyCharm, set up a new run configuration and choose the Sphinx option. Set the input directory to .\documentation\source and the output directory to .\documentation\build. Then run this configuration to compile the documentation.

Alternatively, from the project root directory run

sphinx-build documentation/source documentation/build

categorical_data_migration's People

Contributors

edwardjh-si avatar

Watchers

Ted Jones-Healey avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.