Here's a list of annotated changes Rhizome did to the query service to customize, among other things, the prefixes:

https://github.com/rhizomedotorg/artbase-query-gui/commit/29ce17b225a3fb9d9bcd16896778f94495fdf9c9?diff=split#diff-a9cd85f33efd6ec23d9b1a8bfc86fdc19bccde0646bdab4e1afdfff5c6c6060a

On Fri, Mar 6, 2026 at 1:47 AM Michael Lindsey via Wikibase Community User Group <wikibaseug@lists.wikimedia.org> wrote:
Hi all,
Berkeley Law is also very curious about this...
Michael Lindsey


On Thu, Mar 5, 2026 at 2:05 PM Raphael Wimmer via Wikibase Community User Group <wikibaseug@lists.wikimedia.org> wrote:
Hi Aidan, all,

On Thu, 2026-03-05 at 15:07 -0300, Aidan Hogan via Wikibase Community
User Group wrote:
[...]
> Would appreciate it a lot if anyone can provide pointers on how to
> configure the prefixes used in the WDQS front end (and back end if
> necessary)?

This is a topic where I would appreciate an answer, too.
For the old, pre-Wikibase-Deploy Docker images, we forked the WDQS
frontend so that we could use "wd" prefixes with our instance (because
that seems/seemed to be the most robust way to achieve syntax
completion, etc. in the query editor).

We modified this file:
https://github.com/wikimedia/wikidata-query-gui/blob/master/wikibase/queryService/RdfNamespaces.js

Here's the diff:
https://github.com/wikimedia/wikidata-query-gui/compare/master...PDA-UR:wikidata-query-gui-graphIT:master#diff-f9f77fb16c8abe9c7aa0abfa9cb44e95e72a2c23e71e98d23b10c73f8aa4aeb5

IIRC, we imitated the way, the Rhizome Artbase did it:
https://github.com/rhizomedotorg/artbase-query-gui/blob/master/wikibase/queryService/RdfNamespaces.js

(To be clear: I'm not sure if this information does apply to the most
recent version, and this certainly is an ugly hack.)

If there is an easier way, I'd really appreciate a guide.


Cheers,
Raphael
_______________________________________________
Wikibase Community User Group mailing list -- wikibaseug@lists.wikimedia.org
To unsubscribe send an email to wikibaseug-leave@lists.wikimedia.org
_______________________________________________
Wikibase Community User Group mailing list -- wikibaseug@lists.wikimedia.org
To unsubscribe send an email to wikibaseug-leave@lists.wikimedia.org


--
Dragan Espenschied
Preservation Director
Rhizome at the New Museum
ORCID 0000-0003-1968-6172