Skip to content

Shareholding Dataset

Author License Homepage Contributor

Tags: shareholding, company

A Generated Shareholding Dataset, which contains the shareholding information of companies and individuals. The dataset was introduced for open source project: corp-rel-search, a company information search engine with Shareholding Graph. Download

Data Showcase

Screen Capture

Schema

CREATE TAG person(name string);
CREATE TAG corp(name string);

CREATE EDGE role_as(role string);
CREATE EDGE is_branch_of();
CREATE EDGE hold_share(share float);
CREATE EDGE reletive_with(degree int);
Download DDL

graph TD
  A[person]
  B[corp]

  A -->|hold_share| B
  A -->|as_role| B
  A -->|relateive_with| A
  B -->|hold_share| B
  B -->|is_branch_of| B

  style A fill:#f9d,stroke:#333,stroke-width:2px;
  style B fill:#fcc,stroke:#333,stroke-width:2px;

classDiagram
  class person {
      string name
  }
  class corp {
      string name
  }

  person --> corp : as_role(role string)
  person --> person : relateive_with(degree int)
  corp --> corp : is_branch_of()
  person --> corp : hold_share(share float)

  style person fill:#f9d,stroke:#333,stroke-width:2px;
  style corp fill:#fcc,stroke:#333,stroke-width:2px;

Sample Data

p_0 Kimberly Fuller
p_1 Yvette Hughes
p_2 Shannon Hughes
p_3 Andrea Marks
p_4 Elizabeth Archer
p_4857 c_439 Phytotherapist
p_3400 c_348 Paediatric nurse
p_4566 c_976 Magazine features editor
p_2460 c_362 'Designer;jewellery'
p_8396 c_443 Chemical engineer
c_783 c_482 8
c_711 c_882 2
c_216 c_978 15
c_732 c_19 11
c_426 c_457 15
p_3423 c_871 3
p_4528 c_324 14
p_5065 c_922 5
p_9888 c_605 0
p_7334 c_793 8
p_3979 p_9750 46
p_4363 p_6608 75
p_6542 p_3706 80
p_7649 p_394 92
p_7361 p_1290 50
c_0 Everett, Lucero and Harrington
c_1 Best-Webster
c_2 Bennett-Davis
c_3 Hood, Montgomery and Murray
c_4 Le-Jones
c_848 c_736
c_843 c_840
c_934 c_422
c_22 c_923
c_397 c_36

Download

Download Gephi Lite File

Gephi Lite is an OSS tool for Graph Visualization and In Canvas Graph Exploration and Computational Analysis.

Download this sample Gephi Lite file to visualize the sampled graph data from here.

💡: You can generate gephi file from any graph query with NebulaGraph-Gephi.

Install the Jupyter-NebulaGraph extension, refer to the documentation for more information.

!pip install jupyter-nebulagraph
%load_ext ngql
%ngql --address 127.0.0.1 --port 9669 --user root --password nebula

Create Graph Space and Schema.

%ngql CREATE SPACE shareholding(partition_num=1, replica_factor=1, vid_type=fixed_string(128));
# wait for a while
%ngql USE shareholding;
# DDL with `%%ngql` magic for multi-line execution
%%ngql
CREATE TAG person(name string);
CREATE TAG corp(name string);

CREATE EDGE role_as(role string);
CREATE EDGE is_branch_of();
CREATE EDGE hold_share(share float);
CREATE EDGE reletive_with(degree int);

Refer to jupyter-nebulagraph for more information.

%ng_load  --source https://github.com/wey-gu/awesome-graph-dataset/raw/main/datasets/shareholding/tiny/person.csv --tag person --vid 0 --props 1:name --space shareholding
%ng_load  --source https://github.com/wey-gu/awesome-graph-dataset/raw/main/datasets/shareholding/tiny/corp.csv --tag corp --vid 0 --props 1:name --space shareholding
%ng_load  --source https://github.com/wey-gu/awesome-graph-dataset/raw/main/datasets/shareholding/tiny/person_corp_role.csv --edge role_as --src 0 --dst 1 --props 2:role  --space shareholding
%ng_load  --source https://github.com/wey-gu/awesome-graph-dataset/raw/main/datasets/shareholding/tiny/corp_rel.csv --edge is_branch_of --src 0 --dst 1   --space shareholding
%ng_load  --source https://github.com/wey-gu/awesome-graph-dataset/raw/main/datasets/shareholding/tiny/corp_share.csv --edge hold_share --src 0 --dst 1 --props 2:share  --space shareholding
%ng_load  --source https://github.com/wey-gu/awesome-graph-dataset/raw/main/datasets/shareholding/tiny/person_corp_share.csv --edge hold_share --src 0 --dst 1 --props 2:share  --space shareholding
%ng_load  --source https://github.com/wey-gu/awesome-graph-dataset/raw/main/datasets/shareholding/tiny/person_rel.csv --edge reletive_with --src 0 --dst 1 --props 2:degree  --space shareholding

The Nebula Importer is a tool for importing data from various data sources into NebulaGraph.

We provide a configuration file for the Nebula Importer(version: v3) to import the dataset.

Reference call command, assuming the configuration file is named nebula-importer.yaml in your current directory:

# get the configuration file
# modify the configuration file according to your environment

# ls -l ./data/shareholding/

# ls -l nebula-importer.yaml

# run the importer
docker run --rm -ti \
    -v ${PWD}/data/shareholding/:/data \
    -v ${PWD}/nebula-importer.yaml:/root/importer_v3_config.yaml \
    vesoft/nebula-importer:v3 \
    -c /root/importer_v3_config.yaml