[openstreetmap/openstreetmap-website] use JOSM/tag2link to linkify tag values (PR #6197)
Kyℓe Hensel
notifications at github.com
Thu Jul 24 04:59:27 UTC 2025
k-yle left a comment (openstreetmap/openstreetmap-website#6197)
> [...] none of the entries have `rank=deprecated`
Tag2link [exclud](https://github.com/JOSM/tag2link/blob/eacf0ec9b5a39611f83515f2b3d7abed226187cb/tag2link.dataitem.sparql#L6)[es deprecated ranks](https://github.com/JOSM/tag2link/blob/eacf0ec9b5a39611f83515f2b3d7abed226187cb/tag2link.wikidata.sparql#L10) itself (as of https://github.com/JOSM/tag2link/issues/3), but we also explicitly exclude deprecated ranks in case the behaviour changes upstream.
> Google+ as an example is marked as deprecated on the OSM Wiki / taginfo [...]
The word "deprecated" is used for two different purposes on the wiki. A tag can have "[status](https://osm.wiki/Tag_status)=deprecated" in the OSM wiki's infobox. This is different to "[rank](https://wikidata.org/wiki/Help:Ranking)=deprecated" in wikibase. The tag [status](https://osm.wiki/Tag_status) is irrelevant here.
> So it seems that wikidata takes precedence over the wiki?
We don't prioritise based on source, only [based on rank](https://github.com/openstreetmap/openstreetmap-website/blob/981d9750bab9f9dd548103d3ab0f783cca68adf0/config/initializers/tag2link.rb#L11). For Google+:
* On the OSM wiki, [Key:contact:google_plus <sub>(Q1184)</sub>](https://osm.wiki/Item:Q1184) has no [formatter URL <sub>(P8)</sub>](https://osm.wiki/Property:P8)
* On wikidata, [Google+ ID<sub>(P2847)</sub>](https://wikidata.org/wiki/Property:P2847) does have a [formatter URL<sub>(P1630)</sub>](https://www.wikidata.org/wiki/Property:P1630), which is what tag2link [is using](https://github.com/JOSM/tag2link/blob/eacf0ec9b5a39611f83515f2b3d7abed226187cb/index.json#L176-L181).
> What would be really helpful would be some kind of documentation [...]
There's [a little bit of documentation here](https://github.com/JOSM/tag2link#osm-wiki-data), I could create an OSM Wiki page with more info (?) or were you thinking of more documentation on GitHub?
> How often is the NPM updated
seems to be [automatically updated on the 21st day](https://github.com/JOSM/tag2link/blob/eacf0ec9b5a39611f83515f2b3d7abed226187cb/.github/workflows/scheduled_update.yaml#L4) of the month.
> [...] and who should we contact if the updates somehow get stuck?
@stoecker I assume you're the current maintainer?
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/6197#issuecomment-3111965548
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/6197/c3111965548 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250723/3fb1f657/attachment.htm>
More information about the rails-dev
mailing list