Problem:
Currently when someone running a 3rd-party Wikibase instance sets up their own query service then the examples dialog still points to Wikidata's examples. They should be able to collect their own examples as these are highly dependent on the topic and existing properties/items in that particular installation.
Acceptance criteria:
- A 3rd-party Wikibase instance can have their own page with query examples that populate the examples dialog in their query service.
The parameters @ https://github.com/wikimedia/wikidata-query-gui/blob/321b9030c5656ea8c48974e0156b8c79f1a72d49/wikibase/queryService/api/QuerySamples.js#L20-L23 should be configurable.
Note: this change will only have an effect for installations that have RESTbase and Parsoid installed and available.
Approach
- Add constructor parameters to the QuerySamples class for all related options.
- Add configuration to config.js for the options
- init.js needs to then pass this config from config.js to QuerySamples