lucaswerkmeister / wb2rdf

converts Wikibase JSON to RDF

Home Page:https://tools.wmflabs.org/wb2rdf/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wikibase to RDF

This tool converts Wikibase JSON to RDF.

Toolforge setup

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.

Local development setup

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.

License

The code in this repository is released under the AGPL v3, as provided in the LICENSE file that accompanies the code.

About

converts Wikibase JSON to RDF

https://tools.wmflabs.org/wb2rdf/

License:GNU Affero General Public License v3.0


Languages

Language:PHP 68.1%Language:HTML 31.9%