bio-guoda / preston

a biodiversity dataset tracker
MIT License
24 stars 1 forks source link

extend wiki commons with a list of registered media wiki installations #271

Open jhpoelen opened 9 months ago

jhpoelen commented 9 months ago

@daniel-mietchen suggested to look into extending the #239 to include wikimedia instances beyond wikimedia commons.

E.g.,

Try this image on English wikipedia https://en.wikipedia.org/wiki/File:TodamericaRecord.jpg

curl --silent "https://upload.wikimedia.org/wikipedia/en/7/72/TodamericaRecord.jpg" | sha1sum 4f2e5ab9b81db957c8cbe064d1134a495f03cd5b -

https://en.wikipedia.org/w/api.php?action=query&aisha1=4f2e5ab9b81db957c8cbe064d1134a495f03cd5b&list=allimages&format=json

jhpoelen commented 9 months ago

For possible ways to list registered wikimedia instances -

https://www.mediawiki.org/wiki/Sites_using_MediaWiki/en https://wikiapiary.com/wiki/Main_Page https://www.mediawiki.org/wiki/InstantCommons

jhpoelen commented 9 months ago

@Daniel-Mietchen could you help provide a query to get a list of endpoints of media commons instances ?

Daniel-Mietchen commented 9 months ago

@jhpoelen Not sure what you mean here. Perhaps https://commons.wikimedia.org/wiki/Commons:SPARQL_query_service#API_endpoint ?