Hi all, just in case anybody else is interested: I've created a short tampermonkey script here: http://bjohas.de//wiki/Maps/Linking_wikipedia_to_OSM
It extracts coordinates and wikidata from a wikipedia page, and adds various direct links near the "Coordinates" bit on the wikipedia page, which link to OSM/iD/JOSM / http://osm.wikidata.link/ / etc. It's of course simple to do, but I still fiddled with it for a bit until it worked, so thought I'd share it. In putting this together and testing it, I also added some POIs for wikipedia objects that weren't on OSM (but clearly visible in bing/mapbox) - so it's been helpful to me. Final question: (Also, the OSM search doesn't return anything for the wikidata object > http://www.openstreetmap.org/search?query=Q925624 - would be great if it > did.) Should this be addressed? Thanks! Bjoern On 27 April 2017 at 13:11, Bjoern Hassler <bjohas...@gmail.com> wrote: > Hi Imre, > > that's very interesting - thanks for pointing this out! I'll follow up > with the developer! > > Thanks! > Bjoern > > > On 26 April 2017 at 19:54, Imre Samu <pella.s...@gmail.com> wrote: > >> >I'm interested in working across Wikipedia and OSM, e.g. fixing Wikidata >> tags in OSM, and coordinates in Wikipedia, etc. >> > I've also found this very useful in terms of ensuring that data is >> correct on both. >> >Does anybody have suggestions for faster linking from Wikipedia to OSM? >> >> I have found an interesting project: >> * "Match OSM entities with Wikidata items": http://osm.wikidata.link/ >> * source: https://github.com/EdwardBetts/osm-wikidata >> >> example: >> >> Sassari ( Italy ) : https://osm.wikidata.link/matcher/40683 : view >> match candidates : 16 items found >> Link for "view match candidates" ; And you will find the matches .. >> * 7 candidates found >> * Items with no match found in OSM : 9 items >> >> Best, >> Imre >> >> >> 2017-04-26 17:03 GMT+02:00 Bjoern Hassler <bjohas...@gmail.com>: >> >>> Hello all, >>> >>> I'm interested in working across Wikipedia and OSM, e.g. fixing Wikidata >>> tags in OSM, and coordinates in Wikipedia, etc. I've also found this very >>> useful in terms of ensuring that data is correct on both. >>> >>> Does anybody have suggestions for faster linking from Wikipedia to OSM? >>> >>> To explain: >>> >>> The wikipedia coordinates link (on a wikipedia page) is something like: >>> https://tools.wmflabs.org/geohack/geohack.php?pagename=Nurag >>> he_Santu_Antine¶ms=40.4865_N_8.7698_E_ >>> which then lets you go to OSM (by coordinates) - but obviously, you have >>> to click that link first, then pick OSM from the list on that page. On OSM, >>> you then have to click edit to identify the object referred to in OSM (if >>> there is one). So it's not too bad, but if you do this regularly, it's a >>> bit tedious. >>> >>> A better way would be if the wmflabs url could be rewritten (clientside, >>> e.g. greasemonkey/tampermonkey), to have a direct link from the wikipedia >>> page to OSM. >>> >>> Even better would be if the url contained the wikidata item >>> https://tools.wmflabs.org/geohack/geohack.php?pagename=Nurag >>> he_Santu_Antine¶ms=40.4865_N_8.7698_E_&wikidata=Q925624 >>> (could be done on the wmflabs side, or also with greasmonkey, as it's >>> embedded on the wikipedia page). >>> >>> Greasemonkey could add a link from the wikipedia page to a resolving >>> service, say >>> https://WikidataToOSM/?pagename=Nuraghe_Santu_Antine¶ms= >>> 40.4865_N_8.7698_E_&wikidata=Q925624 >>> which would allow redirect to the actual object on OSM: >>> http://www.openstreetmap.org/way/258094245 >>> >>> That would mean that with one click on a Wikipedia page, you'd see the >>> corresponding object in OSM. >>> >>> The other way is straight forward: Because that listing on OSM rewrites >>> wikidata/wikipedia tags to URLs, it's just one click to go back from there >>> to wikidata/wikipedia, so that's straight forward. >>> >>> (Ideally, Greasemonkey would also add a direct link to remote control.) >>> >>> (Also, the OSM search doesn't return anything for the wikidata object >>> http://www.openstreetmap.org/search?query=Q925624 - would be great if >>> it did.) >>> >>> Does anybody have any thoughts on this, know of a tool, or coded >>> something in the past? >>> >>> Many thanks, >>> Bjoern >>> >>> _______________________________________________ >>> dev mailing list >>> dev@openstreetmap.org >>> https://lists.openstreetmap.org/listinfo/dev >>> >>> >> >
_______________________________________________ dev mailing list dev@openstreetmap.org https://lists.openstreetmap.org/listinfo/dev