đ Announcing: human-readable wikidata browser plugins for openstreetmap.org - General talk - OpenStreetMap Community Forum
đ Announcing: human-readable wikidata browser plugins for openstreetmap.org
General talk
tagging
website
wikidata
browser-addon
wikipedia
ZeLonewolf
(Brian M Sperlongano)
January 17, 2024, 2:26pm
Hi everyone,
Iâve developed browser extensions to automatically change those cryptic wikidata QID values into a human-readable form on the
openstreetmap.org
website. The iD editor has had a really good wikidata widget for quite some time and I felt that it was lacking that the main website does not. Iâve published plugins for both Chrome and Firefox.
Once installed, the plugin will convert all
wikidata
tags as well as all
*:wikidata
tags to a more human readable format, for example:
The wikidata tag value will still link to the relevant wikidata entry, but it will show the wikidata entry's label in larger text instead of the raw QID. The raw QID continues to be displayed in small text underneath. Below the wikidata tag entry, a new row containing a link to the associated wikipedia entry as well as the item's description.
If your browser is set to a language other than English, you should see browser-configured language values appear, with a fallback to English.
Additionally, if wikidata has a logo entry associated with the wikidata item, it will be shown in the info box as well. The link will still go to the itemâs wikipedia page, but Iâve suppressed the wikipedia icon in these cases because it just doesnât look as nice with both icons. The clip below shows a McDonaldâs poi with my browser localized to Dutch.
image
328Ă720 101 KB
The source code for these extensions can be found in GitHub
here
. Feel free to submit a ticket if you find a bug.
You can download the Chrome and Firefox versions of this plugin here:
Chrome extension:
OSM.org Human-readable Wikidata
Add human-readable information related to wikidata QIDs inline in osm.org
Firefox extension:
OpenStreetMap Human-readable Wikidata â Get this Extension for đŠ Firefox (en-US)
Download OpenStreetMap Human-readable Wikidata for Firefox. Add human-readable information related to wikidata QIDs inline in openstreetmap.org
45 Likes
Bulk edit announcement - addition of wikipedia:en/he values
Bulk edit announcement - fill missing wikipedia tag from wikipedia:* tags
Openstreetmap.org - gnis:feature_id links
Convention for tagging independent cities, consolidated city-counties, and notable exceptions
Do we want to keep brand:wikipedia?
Whatâs new on the OpenStreetMap website?
Why are we creating a design system for OSM?
US National Monument Boundaries
starsep
(Filip Czaplicki)
January 17, 2024, 4:27pm
Thanks
I have to say thatâs should be a feature of openstreetmap-website, not a browser extension.
Have you considered contributing it there?
15 Likes
ZeLonewolf
(Brian M Sperlongano)
January 17, 2024, 6:56pm
starsep:
I have to say thatâs should be a feature of openstreetmap-website, not a browser extension.
Have you considered contributing it there?
I feel that I lack the technical expertise to do it (Iâve never contributed to the rails port) and Iâm not willing to do the work to post an issue, gain consensus on the design, walk it through the PR process, etc., etc. By building this as a browser plugin, I can give people this functionality quickly within the amount of effort Iâm willing to give it.
Also, there is an
existing PR
related to wikidata integration which has been stalled since 2020. Some comments on that PR include:
@mmd
wrote
The issue I see with this kind of code is that it doesnât really scale. Next week another groups wants to have their special tag du jour linked on
osm.org
, and we end up with more and more code.
@TomH
wrote
We certainly donât want to be querying anything like that âliveâ
This plugin does in fact query wikidata live and there does not seem to be a lot of support for integration with third party sites. So for those reasons and my lack of having the right technical experience, I do not intend to contribute this to openstreetmap-website. Anyone who feels a wikidata integration is valuable can install these plugins and have the functionality immediately.
However, I deliberately made this code CC0 so that if anyone in the community felt they had the skill and inclination to turn it into a full-blown capability and get the support to add it to the openstreetmap website, they would have this work as prior art they could leverage as one approach on how to do it.
21 Likes
SekeRob
January 17, 2024, 7:24pm
Did battle today finding the ârightâ wikidata code for Michaelangelo, there are like a dozen, probably more. Decided on Q5592 which lists all that he did in his 89 years, but opening ID get nothing under name:etymology:wikidata. Using wikidata=Q5592 does work.
image
478Ă539 9.61 KB
jxpsert
(Jasper)
January 19, 2024, 9:55pm
Doesnât seem to be working on this one- can anyone reproduce?
Node: âȘAlbert Heijn XL⏠(âȘ34044567âŹ) | OpenStreetMap
ZeLonewolf
(Brian M Sperlongano)
January 19, 2024, 10:05pm
jxpsert:
Doesnât seem to be working on this one- can anyone reproduce?
That is an expected output. Itâs showing the brand name and wikidata in small text, and thereâs no wikipedia link associated with that wikidata item as well as no description in the wikidata item. So that would indicate that the linked wikidata item has a problem. And in fact, it should be linked to Q1653985 instead, and the one thatâs linked should be merged in. Then everything will be good
So consider this a QA tool.
3 Likes
jxpsert
(Jasper)
January 19, 2024, 10:16pm
Shouldnât the blueish bar be gone, then?
ZeLonewolf
(Brian M Sperlongano)
January 19, 2024, 10:18pm
Yes, the blue bar should be gone â itâs gone for me in the latest plugin version (1.0.3)
Edit: Once I release it
6 Likes
ivanbranco
(ivanbranco)
December 12, 2024, 1:12pm
I tried the dark mode after the last âPreferencesâ update but is now difficult to read the text, is there a way to fix it?
Better-osm-org: a script that adds useful little things to osm.org
ZeLonewolf
(Brian M Sperlongano)
December 12, 2024, 1:37pm
10
I assume thatâs possible, please open an issue ticket.
US