Page MenuHomePhabricator

Install query service UI on FactGrid
Closed, ResolvedPublic

Event Timeline

Lucas_Werkmeister_WMDE created this task.

Currently installed in ~factgrid/wdqs-0.3.1-SNAPSHOT/gui, symlinked into /var/www/mediawiki/query to run at https://database.factgrid.de/query/. Custom patches:

diff --git a/wikibase/config.js b/wikibase/config.js
index 666879c..139f281 100644
--- a/wikibase/config.js
+++ b/wikibase/config.js
@@ -14,16 +14,16 @@ var CONFIG = ( function ( window, $ ) {
                return null;
        }

-       var root = 'https://query.wikidata.org/';
+       var root = 'https://database.factgrid.de/query';

        var configDeploy = {
-               language: getUserLanguage() || 'en',
+               language: getUserLanguage() || 'de',
                api: {
                        sparql: {
                                uri: '/sparql'
                        },
                        wikibase: {
-                               uri: 'https://www.wikidata.org/w/api.php'
+                               uri: 'https://database.factgrid.de/api.php'
                        }
                },
                i18nLoad: function( lang ) {
@@ -39,7 +39,7 @@ var CONFIG = ( function ( window, $ ) {
                },
                brand: {
                        logo: 'logo.svg',
-                       title: 'Wikidata Query'
+                       title: 'FactGrid Query'
                },
                location: {
                        root: root,

Done. Custom patches are somewhat longer now (but mostly just stuff in copyright.html), the most important part is that the API path is now /w/api.php instead of just /api.php. The build (npm run build) is copied into /var/www/query.