- Download virtuoso-opensource
-> Extract and put the folder in the
./virtuoso_db - Download and virtuoso_db file
-> unzip and put the folder in the
./virtuoso_db/virtuoso_db
Read more in this link
It requires a terminal multiplexer, might use vim or tmux/smux (preferred).
- Change the working dir:
cd ./virtuoso_db python3 virtuoso.py start 3001 -d virtuoso_db
To stop:python3 virtuoso.py stop 3001
Obtain a raw-subgraph via SPARQL and CONSTRUCT query and
subgraph from the raw-subgraph by skipping unnamed entities:h,r1,*,*,r2,t ->h,r1/r2,t
- Handle CWQ:
python ./preprocess_data/cwq_graph.py - Handle GrailQA:
python ./preprocess_data/grailqa_graph.py