Code Monkey home page Code Monkey logo

covid19_knowledge_graph's Introduction

Covid 19 Knowledge Graph with Neo4j

Building a Knowledge graph of covid19 on neo4j, from the data of Wikipedia data, Wikidata, by SPARQL querying

If you are working on similar projects, I am happy to help. Contact me by [email protected]

installation

installation of Neo4j

wget http://neo4j.com/artifact.php?name=neo4j-community-3.5.12-unix.tar.gz
tar -xf 'artifact.php?name=neo4j-community-3.5.12-unix.tar.gz'
cd neo4j-community-3.5.12
bin/neo4j start

go to url

http://localhost:7474/

bolt://localhost:7687
user name:neo4j
password neo4j

reset new password to

neo4j1

installation of pyspark and neo4j package

pip3 install pyspark
pip3 install neo4j

download this package

git clone https://github.com/gaoyuanliang/covid19_knowledge_graph.git
cd covid19_knowledge_graph

data collection

collect the entities and relationships of covid 19 from wikibase by SPARQL queries at https://query.wikidata.org/

SELECT ?s ?sLabel ?sAltLabel ?st ?stLabel 
?rp ?rpLabel 
?o ?oLabel ?oAltLabel ?ot ?otLabel 
WHERE
{
?s wdt:P361 wd:Q83741704 .
?s ?r ?o .
?s wdt:P31 ?st .
?o wdt:P31 ?ot .
?rp wikibase:directClaim ?r . 
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}

SELECT ?s ?sLabel ?sAltLabel ?st ?stLabel 
?rp ?rpLabel 
?o ?oLabel ?oAltLabel ?ot ?otLabel 
WHERE
{
?o wdt:P361 wd:Q83741704 .
?s ?r ?o .
?s wdt:P31 ?st .
?o wdt:P31 ?ot .
?rp wikibase:directClaim ?r . 
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}

building knowledge graph at neo4j

ingest the data into neo4j

python3 jessica_covid_knowledge_graph.py

check the kowledge graph

go to http://localhost:7474/ to see the results

build use cases from neo4j

ongoing

TODO list

Contact

I am actively looking for a data science/AI related job. If you have such an opportunity, thank you so much for contacting me. I am ready for an interview at any time. My email is [email protected]

covid19_knowledge_graph's People

Contributors

gaoyuanliang avatar

Stargazers

Ali Muhammad Asad avatar ss3b3 avatar  avatar  avatar zzj avatar  avatar

Watchers

 avatar

Forkers

wang-rq

covid19_knowledge_graph's Issues

Import Error

Hi Jessica
Thank you very much for your helpful repository.
When I run the jessica_covid_knowledge_graph.py module, I get the below error:

from jessica_local_spark_building import *
ModuleNotFoundError: No module named 'jessica_local_spark_building'

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.