-
Notifications
You must be signed in to change notification settings - Fork 2
Graph generation
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
-
conda activate /mnt/envs/kglids_env/
-
edit the configuration files /mnt/projects/kglids/data_items/profiler/config/config.yml
-
To run profiler, go to: /mnt/projects/kglids/data_items/profiler/src/ and then run python main.py
-
To run KGbuilder, go to: /mnt/projects/kglids/data_items/knowledge_graph/src/ and then run python knowledge_graph_builder.py
-
to delete the previously generated graph: cd /mnt/projects/kglids/data_items/knowledge_graph/src/out/ rm kglids_data_items_graph.nq
-
In Stradog, create a database with the same name as the graph
-
Upload this graph to stardog: `stardog data add --format turtle DatabaseName GraphName.nq