Skip to main content

Load from awesome-dataset into NebulaGraph

Project description

Graph Hub Banner

Graph Data in One Click

Awesome Graph Dataset

Graph Hub is an Open Source community and hub, providing a carefully selected assortment of graph datasets tailored for NebulaGraph.

You could explore Graph Query, Algorithm, Visualization, GNN, GenAI(Graph RAG) and more by copy & paste the ingestion commands from the dataset page.

How to use

Load Data within Jupyter Notebook

!pip install jupyter-nebulagraph
%load_ext ngql

Option 0(Not yet supported):

TBD for integration with Juypter-NebulaGraph.

%ng_dataset supply_chain

Option 1:

Load with %ng_load magic command to load data from registry of Graph Dataset Hub.

%ng_load --header --source https://github.com/wey-gu/awesome-graph-dataset/raw/main/datasets/supply_chain/tiny/nodes_car_model.csv --tag car_model --vid 0 --props 1:name,2:number,3:year,4:type,5:engine_type,6:size,7:seats --space supply_chain
%ng_load --header --source https://github.com/wey-gu/awesome-graph-dataset/raw/main/datasets/supply_chain/tiny/nodes_feature.csv --tag feature --vid 0 --props 1:name,2:number,3:type,4:state --space supply_chain
%ng_load --header --source https://github.com/wey-gu/awesome-graph-dataset/raw/main/datasets/supply_chain/tiny/nodes_part.csv --tag part --vid 0 --props 1:name,2:number,3:price,4:date --space supply_chain
%ng_load --header --source https://github.com/wey-gu/awesome-graph-dataset/raw/main/datasets/supply_chain/tiny/nodes_supplier.csv --tag supplier --vid 0 --props 1:name,2:address,3:contact,4:phone_number --space supply_chain
%ng_load --header --source https://github.com/wey-gu/awesome-graph-dataset/raw/main/datasets/supply_chain/tiny/with_feature.csv --edge with_feature --src 0 --dst 1 --props 2:version --space supply_chain
%ng_load --header --source https://github.com/wey-gu/awesome-graph-dataset/raw/main/datasets/supply_chain/tiny/is_composed_of.csv --edge is_composed_of --src 0 --dst 1 --props 2:version --space supply_chain
%ng_load --header --source https://github.com/wey-gu/awesome-graph-dataset/raw/main/datasets/supply_chain/tiny/is_supplied_by.csv --edge is_supplied_by --src 0 --dst 1 --props 2:version --space supply_chain

Load Data within NebulaGraph Console

TBD for integration with NebulaGraph Console

:play supply_chain

Load Data with NebulaGraph Importer

# run the importer
docker run --rm -ti \
    -v ${PWD}/data/supply_chain/:/data \
    -v ${PWD}/importer_v4_config.yaml:/root/importer_v4_config.yaml \
    vesoft/nebula-importer:v4 \
    -c /root/importer_v4_config.yaml

See more per each dataset in Graph Dataset Hub.

Contributing

Please refer to the Contribution Guide for more information on how to introduce new datasets to the Graph Dataset Hub.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nebula_loader-0.1.1.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

nebula_loader-0.1.1-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file nebula_loader-0.1.1.tar.gz.

File metadata

  • Download URL: nebula_loader-0.1.1.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for nebula_loader-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0d74dcaf581b075c220a787a316ae12774a91a4c6f1225399c4684b16c4d70b7
MD5 c497123adb3983feccee2d111b3aeb91
BLAKE2b-256 fa5e42dd3bce33cc2c00fd3e97389a990c86e1e5e9169ee658569b7faa728305

See more details on using hashes here.

File details

Details for the file nebula_loader-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for nebula_loader-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d58a9bd2cfd97047ec87e0e2dcdb86ad03fe8f2f042cc350b4571181366de931
MD5 21f61a00c82d276fcfa53ccb90e32338
BLAKE2b-256 b295fe5b19bff87d93c185fd3deca88027eeb3b85c3ba6b1341c62e2e2433805

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page