Skip to content

Commit ced6ebd

Browse files
author
transformap
committed
new : README, Docker Compose
1 parent f8c8b9f commit ced6ebd

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-0
lines changed

README.md

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# docker-wikibase-query-service
2+
3+
This repository contains a dockerified instance of [wikimedia/wikidata-query-rdf](https://github.com/wikimedia/wikidata-query-rdf).
4+
5+
# Installation
6+
7+
Instructions are based on the [Wikidata Query Service, User Manual, Standalone Service](https://www.mediawiki.org/wiki/Wikidata_query_service/User_Manual#Standalone_service).
8+
9+
1. Start Blazegraph and the Wikidata Query Service with `docker-compose up`.
10+
11+
2. Retrieve an RDF dump of your Wikibase
12+
We are using the TransforMap Docker stack, and as such execute the following:
13+
```
14+
docker run -it --rm --env-file /srv/wikibase/mediawiki.env -v /srv/docker-state/wikibase/mediawiki
15+
/rootfs/data:/data -v /srv/docker-state/wikibase/mediawiki/rootfs/conf:/conf -v /srv/wikibase/LocalSettings.php:/data/LocalSet
16+
tings.php --link="wikibase_database_1:database" --net="wikibase_backend" wikibase_mediawiki /usr/bin/php /var/www/html/extens
17+
ions/Wikibase/repo/maintenance/dumpRdf.php | gzip -c > 20160928_1846_wikibase_dump.ttl.gz
18+
```
19+
20+
* Alternate path is with the [Wikidata Toolkit](https://github.com/Wikidata/Wikidata-Toolkit) via utilising the [Wikidata Toolkit Client](https://www.mediawiki.org/wiki/Wikidata_Toolkit/Client).
21+
22+
23+

docker-compose.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
version: '2'
2+
3+
services:
4+
wqs-blazegraph:
5+
build: .
6+
expose: ["80"]
7+
env_file: ["./frontend.env"]
8+
networks: ["frontend"]
9+
10+
networks:
11+
frontend:
12+
external:
13+
name: nginx_default
14+

frontend.env

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
VIRTUAL_HOST=query.base.transformap.co
2+
VIRTUAL_PORT=8000
3+
LETSENCRYPT_HOST=query.base.transformap.co
4+
LETSENCRYPT_EMAIL=[email protected]
5+

0 commit comments

Comments
 (0)