This tool converts Wikibase JSON to RDF.
On Wikimedia Toolforge, this tool runs under the wb2rdf
tool name.
Source code resides in ~/wb2rdf/
.
If the web service is not running for some reason, run the following command:
webservice start
If it’s acting up, try the same command with restart
instead of start
.
Both should pull their config from the service.template
file,
which is symlinked from the source code directory into the tool home directory.
To update the service, run the following commands after becoming the tool account:
webservice shell
cd ~/wb2rdf
git fetch
git diff @ @{u} # inspect changes
git merge --ff-only @{u}
composer update
However, the webservice shell
and composer update
parts are only necessary
when new packages are required (i. e. when composer.json
was changed).
Otherwise, you can skip them.
git clone https://github.com/lucaswerkmeister/wb2rdf.git
cd wb2rdf
composer install
Afterwards, set up some web server (e. g. Apache or Nginx) to serve the index.php
file.
The code in this repository is released under the AGPL v3,
as provided in the LICENSE
file that accompanies the code.