In the following we assume that you want to run Virtuoso on the
knowledge base Fbeasy
. To run on one of the other knowledge bases,
replace fbeasy
by freebase
or wikidata
in
all the commands below.
wget https://qlever.cs.uni-freiburg.de/cikm2022/virtuoso-fbeasy-index.tar
Extract the index files
tar xvf virtuoso-fbeasy-index.tar
Make the folder read- and writeable for everyone (you need at least read and write permissions for the Docker user) and enter it.
chmod a+rwx virtuoso-fbeasy-index
chmod a+rw virtuoso-fbeasy-index/*
cd virtuoso-fbeasy-index
Pull the Virtuoso Docker Image and run it.
This assumes that the ports 1111
and 8890
are free on your machine.
Otherwise, change the outgoing ports to available ports
(replace the corresponding number before the colon in the following command).
docker pull openlink/virtuoso-opensource-7
docker run -dt -e DBA_PASSWORD=dba -p 1111:1111 -p 8890:8890 -v $(pwd):/database --name virtuoso openlink/virtuoso-opensource-7
To check the startup process of Virtuoso you can use docker logs
docker logs -f virtuoso
After a few seconds the server should be ready (the log says 'Server Started').
You can check this by entering http://localhost:8890/sparql
(adapt to your changed port if necessary).
You should see a simple Sparql interface. You can enter the following query:
SELECT COUNT(*) WHERE { ?s ?p ?o }
It should report over 300 Million triples (Virtuoso always adds some internal triples, so the exact number might slightly vary). For Freebase and Wikidata the number of Triples should be 1.9 Billion (Freebase) and 6.9 Billion (Wikidata).
If this doesn't work, also try 172.17.0.1 (Docker's virtual network bridge) instead of localhost, depending on your Docker configuration.
The Virtuoso-Fbeasy instance is now ready. You can run the evaluation script as described in the respective tutorial.