Page MenuHomePhabricator

add https://imagehash-sparql.wmcloud.org/sparql endpoint to wikidata federated query whitelists
Closed, ResolvedPublic

Description

Hi, I have been creating an image hash database for Wikimedia Commons images and I am currently setting up a SPARQL interface for it to wmflabs (T364063). SPARQL server used is Ontop. (Ontop is a SPARQL->SQL translator.)

I would like to make queries from the Wikimedia Commons query service, so I would like to request that the imagehash endpoint be added to the https://query.wikidata.org and https://commons-query.wikimedia.org federated query whitelists.

Currently endpoint is added

  • query.wikidata.org
  • commons-query.wikimedia.org

Endpoint

Data in backend database:

Software used as local SPARQL endpoint.

Details

Other Assignee
Stevemunene
Related Changes in Gerrit:

Event Timeline

Gehel triaged this task as Medium priority.May 6 2024, 3:51 PM
Gehel added a project: Data-Platform-SRE.
Gehel moved this task from Incoming to Operations/SRE on the Wikidata-Query-Service board.
Gehel moved this task from Incoming to Upcoming Essential or OKR Work on the Data-Platform-SRE board.

Change #1074199 had a related patch set uploaded (by Ryan Kemper; author: Ryan Kemper):

[operations/puppet@production] wdqs: allow 3 new federated endpoints

https://gerrit.wikimedia.org/r/1074199

Change #1074199 merged by Ryan Kemper:

[operations/puppet@production] wdqs: allow 3 new federated endpoints

https://gerrit.wikimedia.org/r/1074199

Mentioned in SAL (#wikimedia-operations) [2024-09-23T15:20:50Z] <stevemunene@deploy1003> Finished deploy [wdqs/wdqs@316bf7f]: allow 3 new endpoints T364233 T368085 T374195 (duration: 05m 51s)

Thank you @RKemper!

Confirmed that endpoint works now from WQS (query.wikidata.org)

However, it is not whitelisted in WCQS ( commons-query.wikimedia.org ) as it fails with error: Unknown error: Service URI https://imagehash-sparql.wmcloud.org/sparql is not allowed.

Do you know how it could be added to WCQS whitelist also?

Zache updated the task description. (Show Details)

@Stevemunene I reopened this because the task described in the ticket was only completed for query.wikidata.org, and it does not work yet on commons-query.wikimedia.org.

@Stevemunene I reopened this because the task described in the ticket was only completed for query.wikidata.org, and it does not work yet on commons-query.wikimedia.org.

Thanks @Zache, working on it

@Zache I ran your example query against commons-query and it appears to be giving a response. As such, I'm going to resolve this ticket. That being said: if it does not work, respond here and the ticket will re-open.