Coder Social home page Coder Social logo

covid19-graph's Introduction

COVID-19 Graph

Using a forked copy of Johns Hopkins data to load trends on COVID-19 infections into Neo4j.

This repo contains cypher scripts and shell scripts to import the data into Neo4j, which is a very small dataset at this point.

The original forked JHU data in raw CSV form can be found here

Resulting Graph Shape

Simplified representation of what kind of data you end up with:

(:Region)<-[:IN]-(:Province)-[:REPORTED]->(:Report { confirmed, deaths, recovered, latitude, longitude, lastUpdate, reportDate }),
(:Report)-[:NEARBY]->(:City)-[:IN]->(:Country),
(:Region)-[:IS]->(:Country)
(:Province)-[:IS]->(:City)

Requirements to Use This

  • This repo assumes Neo4j 4.0! There were some subtle changes to cypher, things like toInt -> toInteger, and the load scripts probably won't run on 3.5
  • You need APOC installed.

Nothing else

Usage

Check the import-all.sh script. Adjust particulars for your situation, and then run it to re-create a database from scratch.

./import-all.sh

This is a fast moving situation.

I've pointed this at a forked copy of the JHU data so that it can't go missing, but this necessitates keeping the fork in sync.

See "files-to-load.list" for a list of dated report files that will be loaded. This must be maintained to some extent as new data comes in.

covid19-graph's People

Contributors

moxious avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

covid19-graph's Issues

Covid19 KG collaborations

Hi David,

I just noticed your repo.

We are working on integrating heterogeneous COVID-19 data into a Neo4j graph.

An older (obsolete) version is here:
https://github.com/sbl-sdsc/coronavirus-knowledge-graph

I just heard about the graphs4good initiative and opened a new repo for that purpose:
https://github.com/covid-19-net/covid-19-community

If you'd like to discuss a potential collaboration, please contact me at [email protected]

Peter Rose, Ph.D.
Director, Structural Bioinformatics Laboratory
Lead Bioinformatics and Biomedical Applications, Data Science Hub
Faculty Affiliate, Halıcıoğlu Data Science Institute
San Diego Supercomputer Center
UC San Diego

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.