You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was testing the improvements made in #250 today using GPS spoofing. I was quite surprised how many items have question marks as icons. But the problem seems to be the data we use:
The list classifies 3600 things as "adm3rd", which is probably a artefact of some vandalism? 150 000 items are undefined. That is 75 % of the 200 000 items in the list.
Another issue is that the list gives a string for the target-item of the p31 statement. I think it would be better to use the Q-ID both in the data and in the program code (Don't compare to the English label which could change over time).
Probably the easiest way of solving this would be to switch to a query.wikidata.org request. That returns the p31 statement along with some other information (e.g. the locale of the user to fetch the right labels). With the p31 target we can then assign the icons like this:
switch(place.qid) {
case "Q4022":
icon.setImageResource(R.drawable.icon_river;
break;
case "Q355304":
icon.setImageResource(R.drawable.icon_river);
break;
Just checked things around Gdynia and those nearby places don't make any sense. There is no name nor address in the application just those Q1234 ids which had no meaning to me until I read this report.
Thanks for the feedback, guys. I agree, we will need to migrate to a different data source, especially due to the prevalence of QID items. However, there seems to already be a discussion at #260 about this, do you think this is a separate matter or can the two be merged for clarity?
I was testing the improvements made in #250 today using GPS spoofing. I was quite surprised how many items have question marks as icons. But the problem seems to be the data we use:
https://tools.wmflabs.org/wiki-needs-pictures/data/data.csv
The list classifies 3600 things as "adm3rd", which is probably a artefact of some vandalism? 150 000 items are undefined. That is 75 % of the 200 000 items in the list.
Another issue is that the list gives a string for the target-item of the p31 statement. I think it would be better to use the Q-ID both in the data and in the program code (Don't compare to the English label which could change over time).
Probably the easiest way of solving this would be to switch to a query.wikidata.org request. That returns the p31 statement along with some other information (e.g. the locale of the user to fetch the right labels). With the p31 target we can then assign the icons like this:
https://github.com/misaochan/apps-android-commons/blob/4b01f6e95f79cc507dba1ea0ff8335eef9b11521/app/src/main/java/fr/free/nrw/commons/nearby/NearbyListFragment.java#L192
Items:
Assigning the symbols is not trivial, but for a start we can just collect the most used items in p31 statements.
The text was updated successfully, but these errors were encountered: