<div dir="ltr">Hi all,<div><br></div><div>just in case anybody else is interested: I've created a short tampermonkey script here:</div><div><a href="http://bjohas.de//wiki/Maps/Linking_wikipedia_to_OSM">http://bjohas.de//wiki/Maps/Linking_wikipedia_to_OSM</a><br></div><div><br></div><div>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 / <a href="http://osm.wikidata.link/" target="_blank" style="font-size:12.8px">http://osm.wikidata.link/</a> / 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.</div><div><br></div><div>Final question:</div><div><br></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">(Also, the OSM search doesn't return anything for the wikidata object<br><a href="http://www.openstreetmap.org/search?query=Q925624" target="_blank">http://www.openstreetmap.org/<wbr>search?query=Q925624</a> - would be great if it did.)</blockquote><div><br></div><div>Should this be addressed?</div><div><br></div><div>Thanks! </div><div>Bjoern</div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On 27 April 2017 at 13:11, Bjoern Hassler <span dir="ltr"><<a href="mailto:bjohas+mw@gmail.com" target="_blank">bjohas+mw@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Imre,<div><br></div><div>that's very interesting - thanks for pointing this out! I'll follow up with the developer!</div><div><br></div><div>Thanks!</div><div><span class="HOEnZb"><font color="#888888">Bjoern</font></span><div><div class="h5"><br><div class="gmail_extra"><br><div class="gmail_quote">On 26 April 2017 at 19:54, Imre Samu <span dir="ltr"><<a href="mailto:pella.samu@gmail.com" target="_blank">pella.samu@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><span><span style="font-size:12.8px">>I'm interested in working across Wikipedia and OSM, e.g. fixing Wikidata tags in OSM, and coordinates in Wikipedia, etc. <br>> I've also found this very useful in terms of ensuring that data is correct on both.<br></span>><span style="font-size:12.8px">Does anybody have suggestions for faster linking from Wikipedia to OSM?<br></span><br></span>I have found an interesting project: </div><div>*  "Match OSM entities with Wikidata items":  <a href="http://osm.wikidata.link/" target="_blank">http://osm.wikidata.link/</a><br>*   source:  <a href="https://github.com/EdwardBetts/osm-wikidata" target="_blank">https://github.com/EdwardBett<wbr>s/osm-wikidata</a></div><div></div><br>example:<br><br><div>Sassari ( Italy ) :  <a href="https://osm.wikidata.link/matcher/40683" target="_blank">https://osm.wikidata.link/mat<wbr>cher/40683</a>    :  view match candidates :  16 items found<br>Link for "view match candidates"   ;  And you will find the matches ..<br>*  7 candidates found<br>*  Items with no match found in OSM :  9 items<div><br></div><div>Best,</div><div> Imre</div><div><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_-5010916974800545793h5">2017-04-26 17:03 GMT+02:00 Bjoern Hassler <span dir="ltr"><<a href="mailto:bjohas+mw@gmail.com" target="_blank">bjohas+mw@gmail.com</a>></span>:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-5010916974800545793h5"><div dir="ltr">Hello all,<div><br></div><div>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.</div><div><br></div><div>Does anybody have suggestions for faster linking from Wikipedia to OSM?</div><div><br></div><div>To explain:</div><div><br></div><div>The wikipedia coordinates link (on a wikipedia page) is something like:</div><div><a href="https://tools.wmflabs.org/geohack/geohack.php?pagename=Nuraghe_Santu_Antine&params=40.4865_N_8.7698_E_" target="_blank">https://tools.wmflabs.org/geoh<wbr>ack/geohack.php?pagename=Nurag<wbr>he_Santu_Antine&params=40.4865<wbr>_N_8.7698_E_</a><br></div><div>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.</div><div><br></div><div>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.</div><div><br></div><div>Even better would be if the url contained the wikidata item</div><div><a href="https://tools.wmflabs.org/geohack/geohack.php?pagename=Nuraghe_Santu_Antine&params=40.4865_N_8.7698_E_&wikidata=Q925624" target="_blank">https://tools.wmflabs.org/geoh<wbr>ack/geohack.php?pagename=Nurag<wbr>he_Santu_Antine&params=40.4865<wbr>_N_8.7698_E_&wikidata=Q925624</a></div><div>(could be done on the wmflabs side, or also with greasmonkey, as it's embedded on the wikipedia page).</div><div><br></div><div>Greasemonkey could add a link from the wikipedia page to a resolving service, say</div><div><a href="https://WikidataToOSM/?pagename=Nuraghe_Santu_Antine&params=40.4865_N_8.7698_E_&wikidata=Q925624" target="_blank">https://WikidataToOSM/?pagenam<wbr>e=Nuraghe_Santu_Antine&params=<wbr>40.4865_N_8.7698_E_&wikidata=Q<wbr>925624</a><br></div><div>which would allow redirect to the actual object on OSM:</div><div><a href="http://www.openstreetmap.org/way/258094245" target="_blank">http://www.openstreetmap.org/w<wbr>ay/258094245</a><br></div><div><br></div><div>That would mean that with one click on a Wikipedia page, you'd see the corresponding object in OSM. </div><div><br></div><div>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.</div><div><br></div><div>(Ideally, Greasemonkey would also add a direct link to remote control.)</div><div><br></div><div>(Also, the OSM search doesn't return anything for the wikidata object</div><div><a href="http://www.openstreetmap.org/search?query=Q925624" target="_blank">http://www.openstreetmap.org/s<wbr>earch?query=Q925624</a> - would be great if it did.)<br></div><div><br></div><div>Does anybody have any thoughts on this, know of a tool, or coded something in the past? </div><div><br></div><div>Many thanks,</div><div>Bjoern</div></div>
<br></div></div>______________________________<wbr>_________________<br>
dev mailing list<br>
<a href="mailto:dev@openstreetmap.org" target="_blank">dev@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/dev" rel="noreferrer" target="_blank">https://lists.openstreetmap.or<wbr>g/listinfo/dev</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div></div></div></div></div>
</blockquote></div><br></div></div>