tickets icon indicating copy to clipboard operation
tickets copied to clipboard

get images for public bodies

Open jfilter opened this issue 7 years ago • 3 comments

On FragDenStaat are details about public bodies but not images. It would be cool to have for each public body an image.

You can get public body information here: https://fragdenstaat.de/api/v1/publicbody/

One idea, use the search on https://commons.wikimedia.org/wiki/Main_Page. Or use either https://www.wikidata.org/wiki/Wikidata:Main_Page or dbpedia-lookup to first get the item and then an image.

It would be cool to have an npm module, that gives me an image url to an public body name. Then it could be included in the frontend of FragDenStaat and also into the mobile app. But having a separate registry/database would also be fine. One could also think about somehow adding/merging all the public bodies into wikidata.

Contact person: @jfilter

jfilter avatar Apr 17 '18 13:04 jfilter

I think this can probably be done with Wikidata directly. Here is a query that gets the logos of all public transport providers and federal ministries. One could probably build on top of this to find other classes of entities (state ministries etc.) that should also be included. Or am I misunderstanding the goal of this task?

k-nut avatar May 02 '18 06:05 k-nut

Yes it’s a rather small project, but I still want to encapsulate the functionality in a module to use it for the app as well as the website.

And I think you have to do some serious data wrangling. It’s not only about the logo but also an image of the building. But some public bodies have several buildings. And for the important bodies such as federal ministries, you may want to choose the best pictures by manually selecting them.

jfilter avatar May 11 '18 17:05 jfilter

Wikidata actually also has an image property on items. See this query. The results are far from perfect though. So maybe it would be nice that once someone found a matching image for you use case they also add it to Wikidata so that everyone can profit from it :) I'm happy to help with that part!

k-nut avatar May 12 '18 16:05 k-nut