How to load data in Virtuoso?

Photo by Charles Deluvio on Unsplash
  • Open the console and run the following command: cd /usr/local/virtuoso-opensource/share/virtuoso/vad
  • Next, run the following command to download the ontology:
    sudo wget
  • Then, unzip the downloaded file with the following file:
    sudo bzip2 -d dbpedia_2014.owl.bz2
  • Next, create the .graph file necessary for the batch load to Virtuoso with the following command:
    sudo touch dbpedia_2014.owl.graph
  • Next, open the file and add http://localhost:8890/dbpedia. This can be performed with the following command:
    sudo nano dbpedia_2014.owl.graph
    (In case you are not familiar with the nano text editor on Linux, after running the nano command, you should add the specified line, press the buttons ‘Ctrl’ and ‘x’ at the same time, then press ‘y’, and finally press ‘enter’.)
sudo wget 
sudo bzip2 -d instance_types_en.nt.bz2
sudo touch instance_types_en.nt.graph
sudo nano instance_types_en.nt.graph
ld_dir (‘/usr/local/virtuoso-opensource/share/virtuoso/vad’, ‘*.owl’, ‘http://localhost:8890/dbpedia') ; rdf_loader_run(); ld_dir (‘/usr/local/virtuoso-opensource/share/virtuoso/vad’, ‘*.nt’, ‘http://localhost:8890/dbpedia') ; rdf_loader_run();
SELECT COUNT (*) WHERE { ?a ?b ?c }



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Kashif Rabbani

Kashif Rabbani

I am a data science PhD researcher who loves to write!