Skip to content

Graph generation

nikimonjazeb edited this page Jul 6, 2022 · 2 revisions

to move files from discovery VM to KGFarm you can simply do the following: scp -r /data/shubham/MovieLens kgfarm:/mnt/data_lake

ssh kgfarm

Here, you can run the script ./Graph_Gen.sh graphName or do the below steps manually

  • You still need to manually create a new database with the same name as the graph in stardog
  1. conda activate /mnt/envs/kglids_env/

  2. edit the configuration files /mnt/projects/kglids/data_items/profiler/config/config.yml

  3. To run profiler, go to: /mnt/projects/kglids/data_items/profiler/src/ and then run python main.py

  4. To run KGbuilder, go to: /mnt/projects/kglids/data_items/knowledge_graph/src/ and then run python knowledge_graph_builder.py

  5. to delete the previously generated graph: cd /mnt/projects/kglids/data_items/knowledge_graph/src/out/ rm kglids_data_items_graph.nq

  6. In Stradog, create a database with the same name as the graph

  7. Upload this graph to stardog: `stardog data add --format turtle DatabaseName GraphName.nq

Clone this wiki locally