Task
This ticket is to expose the content of the Allowlist of the Query Service running alongside Wikidata via Blazegraph API.
The format is up to the implementer.
The ways the API is going to be used are described in T381641 and T400806.
@Tarrow 's assumption is we need to do this here: https://gerrit.wikimedia.org/r/plugins/gitiles/wikidata/query/rdf/
We previously received confirmation from the Search Platform team that we can go ahead and do this: T391383#10863436
Wikidata vs. Wikibase Query Service
The ticket will be considered done when the API is exposed for the Query Service running alongside Wikidata, but the solution should be potentially scalable to Cloud and Suite instances as well.
How to handle internal federation endpoints
Except for the endpoints that are explicitly on the Allowlist, the WD Query Service allows federation to some internal endpoints.
- When hitting WD main (query.wikidata.org), those are the internal_federation_endpoints that can be found here.
- When hitting WD scholarly (query-scholarly.wikidata.org), those are the ones that can be found here
We need to make sure that the API reflects the internal federation endpoints and returns them in a separate block.
The internal federation endpoint's public aliases should also be separate.
On main
Return:
- internal: https://wdqs-scholarly.discovery.wmnet/sparql
- public:
On scholarly
Return: