The aim is to setup and host a local standalone instance of the Wikidata query interface. The online instance is available at: https://query.wikidata.org/
The main limitation of the online instance concerns the restrictive request timeout policy. Thus, the online instance makes it impossible to be used for OpenTapioca in case of large entity data queries.
The steps are based on the official guide from the following webpage: https://www.mediawiki.org/wiki/Wikidata_Query_Service/User_Manual#Standalone_service.
Note: This approach is deprecated!
Use the dockerized approach instead!
Given a Ubuntu 18.04 instance, you need to run the script main_create_instance.sh in single_script:
cd single_script
./main_create_instance.shLookup dockerized/README.md
Old:
Details
Start the server using Docker: ```bash cd dockerized # Start the Blazegraph service docker-compose up -d # Now, the Blazegraph service should be running... ```We can run the loading scripts in a prepared environment (the wikidata-loader container)
cd dockerized
docker-compose run wikidata-loader bash
# Entering Docker container...
./01-04_runAll.shimport_file="./wikidata.jnl"
wikidata_container="wikidata_query-service_1"
# Copy file
docker cp $import_file ${wikidata_container}:/wikidata/service/wikidata.jnl
# Restart container
docker restart $wikidata_containerexport_path="./wikidata.jnl"
wikidata_container="wikidata_query-service_1"
# Copy file
docker cp ${wikidata_container}:/wikidata/service/wikidata.jnl $export_path