Page MenuHomePhabricator

OSM map layers other than the default should be displayable in the Wikidata Query Service
Open, Needs TriagePublic

Description

A recent tweet (http://archive.is/dzr2v) had to be taken down because [an image of] the query result attached to the tweet displayed certain political borders unacceptable to the majority of the tweet's audience, these borders being derived from the default Wikimedia tile layer. There is at least one OSM/Mapbox-based service (https://openstreetmap.in/) whose layers depict boundaries acceptable to the tweet's audience, and being able to readily use these layers with the SPARQL output would immediately rectify the problem with the tweet.

It thus would be helpful if an alternate map layer could be specified, perhaps in the #defaultView:Map line of a query, when outputting the results of a query in the Wikidata Query Service in map form.

Event Timeline

Mahir256 created this task.Feb 1 2019, 5:19 PM
Restricted Application added a project: Wikidata. · View Herald TranscriptFeb 1 2019, 5:19 PM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Jim_Carter triaged this task as Unbreak Now! priority.Feb 1 2019, 5:49 PM
Jim_Carter added a subscriber: Jim_Carter.

It has been subject to criticism from the audience of twitter because it is currently in violation of a law in Indian Penal Code and any cartographer making such inaccurate map is accountable for their action and is subject to a fine not less than 15 Million US Dollars https://www.washingtonpost.com/news/worldviews/wp/2016/05/06/cartographers-beware-india-warns-of-15-million-fine-for-maps-it-doesnt-like/?noredirect=on

Incidents such as this has been taken very seriously in the past by Indian media and legal outlets and can be easily escalate into something worse, like site ban.

Restricted Application added subscribers: Liuxinyu970226, Mholloway, TerraCodes. · View Herald TranscriptFeb 1 2019, 5:49 PM
Lydia_Pintscher lowered the priority of this task from Unbreak Now! to Needs Triage.Feb 1 2019, 6:00 PM
Lydia_Pintscher added a subscriber: Lydia_Pintscher.

I'm sorry but this is not unbreak now.
How is the current situation different from how things are on Wikipedia?

Jim_Carter added a comment.EditedFeb 1 2019, 6:20 PM

I'm sorry but this is not unbreak now.
How is the current situation different from how things are on Wikipedia?

Please look at the map of India from the website of Indian Government http://www.surveyofindia.gov.in/pages/display/235-political-map-of-india

And compare it to the result this SPARQL is giving out:

https://query.wikidata.org/embed.html#%23defaultView%3AMap%7B%22hide%22%3A[%22%3Fcoordinates%22%2C%20%22%3Fline%22%2C%20%22%3Frgb%22]%7D%0A%23%20Adapted%20from%20https%3A%2F%2Fwww.wikidata.org%2Fwiki%2FWikidata%3ARequest_a_query%2FArchive%2F2018%2F10%23Good_example_query_with_LINESTRING%0ASELECT%20DISTINCT%20%3Fcoordinates%20%3Fline%20%3Fitem%20%3FitemLabel%20%3FconnectLabel%20%3Fimage%20%3Fcode%20%3Frgb%0A%0AWITH%20%7B%0A%20%20SELECT%20%3Fitem%20%28SAMPLE%28%3Fcoordinates%29%20AS%20%3Fcoordinates%29%20%28SAMPLE%28%3Fimage%29%20AS%20%3Fimage%29%20%28sample%28%3Flat1%29%20as%20%3Flat1%29%20%28sample%28%3Flon1%29%20as%20%3Flon1%29%20%28sample%28%3Fcode%29%20as%20%3Fcode%29%20WHERE%20%7B%0A%20%20%20%20%3Fitem%20wdt%3AP31%20wd%3AQ55488.%0A%20%20%20%20%3Fitem%20wdt%3AP17%20wd%3AQ668%20.%0A%20%20%20%20%3Fitem%20wdt%3AP625%20%3Fcoordinates%20%20.%0A%20%20%20%20%3Fitem%20p%3AP625%20%2F%20psv%3AP625%20%2F%20wikibase%3AgeoLatitude%20%3Flat1%20.%0A%20%20%20%20%3Fitem%20p%3AP625%20%2F%20psv%3AP625%20%2F%20wikibase%3AgeoLongitude%20%3Flon1%20.%0A%20%20%20%20OPTIONAL%20%7B%20%3Fitem%20wdt%3AP18%20%3Fimage%20%7D.%0A%20%20%20%20OPTIONAL%20%7B%20%3Fitem%20wdt%3AP5696%20%3Fcode%20%7D.%0A%20%20%7D%20GROUP%20BY%20%3Fitem%0A%7D%20AS%20%25stations%0A%0AWITH%20%7B%0A%20%20SELECT%20%3Fnextstation%20%28sample%28%3Flat2%29%20as%20%3Flat2%29%20%28sample%28%3Flon2%29%20as%20%3Flon2%29%20WHERE%20%7B%0A%20%20%20%20%3Fnextstation%20wdt%3AP31%20wd%3AQ55488%20.%0A%20%20%20%20%3Fnextstation%20wdt%3AP17%20wd%3AQ668%20.%0A%20%20%20%20%3Fnextstation%20p%3AP625%20%2F%20psv%3AP625%20%2F%20wikibase%3AgeoLatitude%20%3Flat2%20.%0A%20%20%20%20%3Fnextstation%20p%3AP625%20%2F%20psv%3AP625%20%2F%20wikibase%3AgeoLongitude%20%3Flon2%20.%0A%20%20%7D%20GROUP%20BY%20%3Fnextstation%0A%7D%20AS%20%25nextstations%0A%0AWITH%20%7B%0A%20%20SELECT%20%3Fline%20%3Fconnect%20%28%229B0058%22%20as%20%3Frgb%29%20WHERE%20%7B%0A%20%20%20%20INCLUDE%20%25stations%20.%0A%20%20%20%20INCLUDE%20%25nextstations%20.%0A%20%20%20%20%3Fitem%20p%3AP197%20%3Fnextstationstatement%20.%0A%20%20%20%20%3Fnextstationstatement%20ps%3AP197%20%3Fnextstation%20.%0A%20%20%20%20%3Fnextstationstatement%20pq%3AP81%20%3Fconnect%20.%20%3Fconnect%20wdt%3AP127%20wd%3AQ819425%20%20.%20%0A%20%20%20%20FILTER%28STR%28%3Fitem%29%20%3C%20STR%28%3Fnextstation%29%29%20.%20%20%20%20%0A%20%20%20%20BIND%28CONCAT%28'LINESTRING%20%28'%2C%20STR%28%3Flon1%29%2C%20'%20'%2C%20STR%28%3Flat1%29%2C%20'%2C'%2C%20STR%28%3Flon2%29%2C%20'%20'%2C%20STR%28%3Flat2%29%2C%20'%29'%29%20AS%20%3Fstr%29%20.%0A%20%20%20%20BIND%28STRDT%28%3Fstr%2C%20geo%3AwktLiteral%29%20AS%20%3Fline%29%20%0A%20%20%7D%0A%7D%20AS%20%25lines%20%0A%20%0AWHERE%20%7B%0A%20%20%7B%20INCLUDE%20%25stations%20%7D%20%20UNION%20%7B%20INCLUDE%20%25lines%20%20%7D%20.%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22[AUTO_LANGUAGE]%2Cen%22.%20%7D%0A%7D

This may not be an high priority change technically but it is an extremely high priority change to evade legal actions against Wikimedia Foundation from the Indian government.

Smalyshev added a subscriber: Smalyshev.

We do not have editorial control over the data in Wikidata, yet less on maps provided by the third party. We also are not subject neither to Indian law nor the Twitter audience "law". The situation where some governing body has objection to some content in the open sources or wide Internet, whether on Wikimedia or not, is completely routine and happens all the time. It would certainly be unfortunate if somebody overreacts and makes some unfortunate moves due to any particular situation, however whatever happens does not change these basic facts. We show what OSM maps provide.

We may certainly consider implementing different layers or different providers (I have no idea how hard or easy that is), but this decision I think should be driven by technical merits and community needs, not by whether some Twitter users like or dislike certain content.

Yurik added a subscriber: Yurik.Feb 1 2019, 7:40 PM

FYI, there has been a number of discussions at OSM on how to document disputed territories. See the latest proposal.

We do not have editorial control over the data in Wikidata, yet less on maps provided by the third party. We also are not subject neither to Indian law nor the Twitter audience "law". The situation where some governing body has objection to some content in the open sources or wide Internet, whether on Wikimedia or not, is completely routine and happens all the time. It would certainly be unfortunate if somebody overreacts and makes some unfortunate moves due to any particular situation, however whatever happens does not change these basic facts. We show what OSM maps provide.
We may certainly consider implementing different layers or different providers (I have no idea how hard or easy that is), but this decision I think should be driven by technical merits and community needs, not by whether some Twitter users like or dislike certain content.

It is very irresponsible if the reliability of the map is questioned, yet it is been implicatied that "we will use the map because its free". In fact, the map that has been provided (OSM) is very different https://openstreetmap.in/#4/25.32/77.17 and accurate than the one rendered by Wikimedia, it is an act of intentional vandalism, then. If Wikimedia use what OSM provide then please restore it to that version instead of creating a new coined version.

Yurik added a subscriber: Pnorman.EditedFeb 1 2019, 10:00 PM

It is very irresponsible if the reliability of the map is questioned, yet it is been implicatied that "we will use the map because its free". In fact, the map that has been provided (OSM) is very different https://openstreetmap.in/#4/25.32/77.17 and accurate than the one rendered by Wikimedia, it is an act of intentional vandalism, then. If Wikimedia use what OSM provide then please restore it to that version instead of creating a new coined version.

Jim, the main OpenStreetMap map - https://www.openstreetmap.org/#map=4/25.32/77.17 shows a different border than the one you linked to. I understand it is a touchy subject (similar to Crimea and several other disputed territories). Unfortunately WMF is not currently investing into maps in any significant fashion, and moreover, a developer (@Pnorman) was hired to work on better display of the disputed territories, and after over a year of work, after it essentially being 90% complete, WMF decided to stop the project without any explanation to the community.

Change 490951 had a related patch set uploaded (by Mahir256; owner: Mahir256):
[wikidata/query/gui@master] added tiles parameter to defaultView params of CoordinateResultBrowser

https://gerrit.wikimedia.org/r/490951