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.
LVM ceļu importa wiki tagi
image.png
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
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
Jā, es lai neaizmirstu to pierakstīju. May be later ;)
Colby said:
LVM ceļu importa wiki tagi
image.png
Tiem ceļiem ir wiki lapas?
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.
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.
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.
Can you repeat that?
markalex2209 said:
Can you repeat that?
I cannot. I am in en locale. What locale are you in?
Browser might affect this as well.
Worth trying:
My preferred languages in the Account > Preferences: en-GB en ru lv
. Tried also changing to en-GB en lv ru
Same in private window and in a different browser.
Preferred languages in browser: en-gb, en, ru.
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.
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?
Example: https://www.openstreetmap.org/relation/8534004
As a bonus it stretches over 3 countries.
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
Ah, right, missed the meaning of Relation here.
Thanks for explanation, will retag accordingly.
wikipedia:xx
was the old syntax, manually fixing those would be great.
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.
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.
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.
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.
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.
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