This repository contains the code of a Wikimedia Toolforge tool allowing to query Wikimedia Wikis SQL database using SPARQL:
This service depends on Java 11 and some maven dependencies.
To compile it as a fat .jar that could be deployed on Tools Labs you should run
mvn clean package
To run it requires to have in the same directory as the .jar file a file called config.properties
with the following entries:
app.http.baseURI
with the base URI of the service likehttp://mw2sparql.toolforge.org:8000/
app.db.hostPattern
the SQL database host (with port when required) like{siteId}.labsdb
.{siteId}
is replaced on runtime by the id of the target wiki (likeenwiki
).app.db.user
the database user to use. Stored in thereplica.my.cnf
file on Tools Labsapp.db.password
the database user password. Stored in thereplica.my.cnf
file on Tools Labs