How to Import PrimeKG Data into Neo4j Desktop

Краткое содержание

This Neo4j community discussion provides guidance on importing the PrimeKG knowledge graph dataset into Neo4j Desktop. It outlines various strategies based on data volume, including the use of the import tool, Cypher LOAD CSV, and admin import. These resources help users effectively model and load complex biological datasets into their graph databases.

sunnykernel-89 OP

I'm trying to build the PrimeKG knowledge graph in Neo4j Desktop (v2.x) on Ubuntu for my research project.

I downloaded the latest PrimeKG dataset. The kg.csv file has the following columns:

relation, display_relation, x_index, x_id, x_type, x_name, x_source,
y_index, y_id, y_type, y_name, y_source

For example:

protein_protein,ppi,0,9796,gene/protein,PHYHIP,NCBI,8889,56992,gene/protein,KIF15,NCBI

I am confused about the recommended way to import this dataset into Neo4j Desktop.

goldenquartz-17

Hi I have escalated this and we will keep you posted. Thank you for sharing.

sunnykernel-89 OP

i don‘t know how to construct the model

goldenquartz-17

Here is some advice from the team:

It depends on the size of data they are working with, typically they can use the import tool to connect their csv, map the data and import: https://neo4j.com/docs/desktop/current/import/
If they prefer to work with commands they can use Cyphers LOAD CSV https://neo4j.com/docs/cypher-manual/current/clauses/load-csv/
And if they're working with a larger amount of data there's admin import. https://neo4j.com/docs/operations-manual/current/tutorial/neo4j-admin-import/

To figure out what types of import work for them there's a handy flow chart here: https://neo4j.com/docs/getting-started/data-import/

Последнее от Neo4j