Stream: general

Topic: Wikidata/Wikipedia tagi


view this post on Zulip Rihards Olups (Jan 02 2023 at 21:50):

Tagad Latvijā visas atrastās Wikidata/Wikipedia tagu problēmas atrisinātas.
Izskatās, ka vismaz @HellMap arī šos laboja :)
https://matkoniecz.github.io/OSM-wikipedia-tag-validator-reports/Latvija%20(Latvia,%20%C5%81otwa).html

Daudziem objektiem vēl trūkst, bet vismaz esošie tagi tagad visi labi.

view this post on Zulip Colby (Jan 03 2023 at 21:07):

LVM ceļu importa wiki tagi
image.png

view this post on Zulip HellMap (Jan 04 2023 at 11:48):

Varētu autoram vēl paparasīt vai var kā kļūdu, ja ir norādīta Vikipēdijas lapa ne latviešu valodā, bet tāda eksistē. wikipedia=* - "Only provide, in normal circumstances, a link to a single Wikipedia article, which should be to the article in the primary (local) language for the subject." Piemēram, kāpēc Ogrei links uz angļu WP - https://www.openstreetmap.org/node/29532673

OpenStreetMap is a map of the world, created by people like you and free to use under an open license.

view this post on Zulip i-ky (Jan 04 2023 at 11:52):

HellMap said:

Varētu autoram vēl paparasīt vai var kā kļūdu, ja ir norādīta Vikipēdijas lapa ne latviešu valodā, bet tāda eksistē. wikipedia=* - "Only provide, in normal circumstances, a link to a single Wikipedia article, which should be to the article in the primary (local) language for the subject." Piemēram, kāpēc Ogrei links uz angļu WP - https://www.openstreetmap.org/node/29532673

https://github.com/matkoniecz/OSM-wikipedia-tag-validator/issues/new

GitHub is where people build software. More than 94 million people use GitHub to discover, fork, and contribute to over 330 million projects.

view this post on Zulip HellMap (Jan 04 2023 at 11:52):

Jā, es lai neaizmirstu to pierakstīju. May be later ;)

view this post on Zulip Rihards Olups (Jan 05 2023 at 18:50):

Colby said:

LVM ceļu importa wiki tagi
image.png

Tiem ceļiem ir wiki lapas?

view this post on Zulip markalex2209 (Jun 07 2024 at 09:20):

Today I was editing this street, and after I added a wikidata (with a dropdown, not manually) wikipedia was also added. I've never seen this before (at least hasn't noticed), but this was not the problem.
Problem is that wikipedia link was to ru wikipedia. Does anybody know why that is?
Wikidata entry has two pages linked: lv and ru. I don't see any prioritization for those.
I checked a couple times: cleared wikipedia and wikidata (trash bin icon in editor, not manually) and selected wikidata entry again. And it selected same ru page again.

I'd expect iD to select default language of the country. Can somebody check if they got the same?

In theory lang preferences might play a role here, but I changed them (and refreshed everything with ctrl-F5) and no effect.

OpenStreetMap is a map of the world, created by people like you and free to use under an open license.

view this post on Zulip HellMap (Jun 07 2024 at 09:59):

I have never seen this behaviour in iD (adding wikidata adds wikipedia) and I cannot reproduce it from any combination of original tags. You already changed the element's tags, so I cannot really check with exact original tags.

view this post on Zulip markalex2209 (Jun 07 2024 at 10:06):

HellMap said:

I have never seen this behaviour in iD (adding wikidata adds wikipedia) and I cannot reproduce it from any combination of original tags. You already changed the element's tags, so I cannot really check with exact original tags.

As far as I can remember, there was neither wikidata, nor wikipedia tag on that street before.

Regarding testing: if I delete both of them and re-add wikidata (without saving) it adds ru link.

view this post on Zulip markalex2209 (Jun 07 2024 at 10:11):

Can you repeat that?

view this post on Zulip HellMap (Jun 07 2024 at 10:17):

markalex2209 said:

Can you repeat that?

I cannot. I am in en locale. What locale are you in?

view this post on Zulip Rihards Olups (Jun 07 2024 at 10:27):

Browser might affect this as well.
Worth trying:

OpenStreetMap is a map of the world, created by people like you and free to use under an open license.

view this post on Zulip markalex2209 (Jun 07 2024 at 10:35):

My preferred languages in the Account > Preferences: en-GB en ru lv. Tried also changing to en-GB en lv ru

view this post on Zulip markalex2209 (Jun 07 2024 at 10:37):

Same in private window and in a different browser.

view this post on Zulip markalex2209 (Jun 07 2024 at 10:40):

Preferred languages in browser: en-gb, en, ru.

view this post on Zulip markalex2209 (Jun 07 2024 at 10:43):

Yep, languages of browser (preferred language for displaying pages) were at play: after adding lv and putting it higher, automatic selection of the wiki page started using lv version.

view this post on Zulip markalex2209 (Jun 07 2024 at 10:56):

While I was at it, noticed that a couple more objects have link to ru wikipedia instead of lv one, possibly for same reason. Will edit them.
Also will go through objects that have wikipedia:xx tags - seems unnecessary.

One question: what is a policy for using wikipedia tag on the transborder objects, like rivers? Since there is no single "language of the area", should there be two lang-specific wikipedia tags and no defaultwikipedia? Or should such objects be split at the border?

view this post on Zulip markalex2209 (Jun 07 2024 at 10:58):

Example: https://www.openstreetmap.org/relation/8534004
As a bonus it stretches over 3 countries.

OpenStreetMap is a map of the world, created by people like you and free to use under an open license.

view this post on Zulip HellMap (Jun 07 2024 at 11:08):

Firstly, I've personally never really looked into more details for this, so this is just from what I have seen before. As you say, I would probably put multiple wikipedia:xx and no default value for relation object like this. May be if there was a clear one, but here it's kind of split among multiple and "default" is not really useful. You should not split relations, it should cover the whole object (unless it's some meta-relation, but I am not sure rivers do that). After all, rivers don't care about country borders and it's the same object on the ground. It is weird though, I never really thought about how the same object gains different "properties" based on its location. But I guess that's why there are locale-specific values on individual ways like https://www.openstreetmap.org/way/228504519

OpenStreetMap is a map of the world, created by people like you and free to use under an open license.

view this post on Zulip markalex2209 (Jun 07 2024 at 11:17):

Ah, right, missed the meaning of Relation here.
Thanks for explanation, will retag accordingly.

view this post on Zulip Rihards Olups (Jun 07 2024 at 13:05):

wikipedia:xx was the old syntax, manually fixing those would be great.

view this post on Zulip markalex2209 (Jun 07 2024 at 13:16):

Rihards Olups said:

wikipedia:xx was the old syntax, manually fixing those would be great.

What do you mean old? As I understand it is still acceptable, as in described cases of trans-border objects.
I mean I will delete wikipedia:xx only for objects that are solely inside Latvia. For those crossing border I'll probably add them, if missing.

view this post on Zulip Rihards Olups (Jun 07 2024 at 13:31):

Splitting also won't work for objects like rivers that determine (or used to determine...) the border.

Hah, looks like :xx syntax has been retained for secondary languages. Also from https://wiki.openstreetmap.org/wiki/Key:wikipedia :

In the past, the name of the attribute was put after the key (e.g. wikipedia:operator), but this was deprecated because it creates a conflict with the way secondary languages are linked.

Whether here any language can be classified as a secondary is doubtful, but just skipping the "primary" might work.

view this post on Zulip HellMap (Jun 07 2024 at 13:33):

From what I remember, the problem with wikipedia:xx was that people would have to use wikipedia:lv=whatever for explicit default language and consumer apps would have to know about each language code AND the current region and its languages to actually suggest the link. So it got swapped to just wikipedia=xx:whatver so consumer can instantly know what the best link is. But that didn't mean other languages are not accepted, just that they aren't default/best case.

view this post on Zulip markalex2209 (Jun 08 2024 at 18:48):

I added wikipedia tag to all those object that had wikipedia:lv or wikipedia:ru, and remove those from elements (except for one on border where I left wikipedia:lv in addition to wikipedia). At least to those that left: I feel like somebody has also done same, as I think number ob objects for edit decrease since last time I looked.
Also, updated a couple items that had wikipedia linked to ru articles. A couple still left, where no lv pages exist.

What I haven't done: there is like 17 items having both wikipedia and wikepedia:xx (mainly en). Doubt that they do something, but since I don't have a clear reason, didn't touch them.

view this post on Zulip markalex2209 (Jun 08 2024 at 18:51):

Additionally, I noticed that there are a lot of item currently linking to en wikipedia. Since there are really a lot of them, (and the fact that OrganicMap doesn't care for original's link lang and shows excerpt in a preferred one), I don't plan to do anything. But AFAIK, this is against declared use of tag.

view this post on Zulip Rihards Olups (Jun 08 2024 at 21:10):

markalex2209 said:

Additionally, I noticed that there are a lot of item currently linking to en wikipedia. Since there are really a lot of them, (and the fact that OrganicMap doesn't care for original's link lang and shows excerpt in a preferred one), I don't plan to do anything. But AFAIK, this is against declared use of tag.

Could be historic, could be editors being a bit careless.
Long term definitely worth improving.


Last updated: Dec 22 2024 at 03:37 UTC