Giter Club home page Giter Club logo

cogat's Introduction

Cogat-Docker

CircleCI

Django application and containers for Spark and Neo4j to serve the Cognitive Atlas and manage development.

Caveats regarding the ASSERTS relationship and use of the Assertion node:

The ASSERTS relationship was created for the special situation where a task has no contrasts but still asserts a concept.

In the old database theories would refer to a relationship between a task, contrast, and concept. Neo4j can't make a relationship from a node to another relationship so a new node type was created so that theories could relate to these assertions. These types of assertion nodes are automatically generated for every group of task-contrast-concept applicable on import. Outside of that migration assertion nodes are only generated when a assertion relationship is added to a theory. The caveat being queries against assertion nodes do not necessarily cover all implied assertions. The correct way to figure all assertions is to look directly at the task - hascontrast -> contrast <- measuredby - concept relationships.

Getting started

This project uses docker and docker-compose:

Docker: https://docs.docker.com/installation/
Docker Compose: https://docs.docker.com/compose/install/

Docker file for neo4j taken from https://github.com/kbastani/docker-neo4j and modified to do some data imports.

Create default user

Add MAKE_DEFAULT_USER=True to the .env file in the root of the project. The user specificed in scripts/create_superuser.py will then be created on startup of the uwsgi container.

Old users

The import contianer looks for an environment variable named MYSQL_DUMP and uses its value as the sql dump file to import into mysql. This variable should be defined in .env. The users will be imported when the import container is started. It should be started with docker-compose using the docker-compose-import.yml config file.

cogat's People

Contributors

rwblair avatar vsoch avatar dependabot[bot] 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.