I'm a major contributor to Openstreetmap. (Several years ago I was contributing to Wiktionary a lot). I recently became aware of Wikidata. So I started adding some wikidata properties to OSM objects.
I think they are the proper solution to the foreign key problem. (We shouldn't use OSM ids, as they are not stable enough for that)
To retrieve them we can use Overpass API as a bridge/interface/intermediary:
I'll give a few examples:
The tomb(s) for a specific person:
http://overpass-turbo.eu/?Q=%28%0Anode%5B%22subject%3Awikidata%22%3D%22Q3369...http://overpass-turbo.eu/?Q=%28%0Anode%5B%22subject%3Awikidata%22%3D%22Q336977%22%5D%5B%22historic%22%3D%22tomb%22%5D%3B%0Away%5B%22subject%3Awikidata%22%3D%22Q336977%22%5D%5B%22historic%22%3D%22tomb%22%5D%3B%3E%3B%0Arel%5B%22subject%3Awikidata%22%3D%22Q336977%22%5D%5B%22historic%22%3D%22tomb%22%5D%3B%3E%3B%0A%29%3B%0Aout%20meta%3B&C=51.1936;3.23812;18
( node["subject:wikidata"="Q336977"]["historic"="tomb"]; way["subject:wikidata"="Q336977"]["historic"="tomb"];>; rel["subject:wikidata"="Q336977"]["historic"="tomb"];>; ); out meta;
All the streets named after this person:
http://overpass-turbo.eu/?Q=%28%0Anode%5B%22name%3Aetymology%3Awikidata%22%3...
( node["name:etymology:wikidata"="Q336977"]; way["name:etymology:wikidata"="Q336977"];>; rel["name:etymology:wikidata"="Q336977"];>; ); out meta;
Press RUN, then confirm you want to continue even though there is a lot of data, then click on the magnifying glass to zoom in on Flanders and the Netherlands, where I've been busy adding such tags.
I tried to propose a property on Wikidata to store such queries, but I'm not into Wikipedia nor Wikidata enough to know how to go about it properly:
https://www.wikidata.org/wiki/Wikidata:Property_proposal/Sister_projects#tom...
You can read an explanation there about why OSM ids are not stable enough to link to directly too.
The result is a dynamic map containing highlighted objects, which can then be exported as vectors.
For some problems this is enough, for most it can probably only serve as a starting point to create a map that is actually useful to include with a Wikipedia article.
There are more possibilities. Here is a link to the proposal for making reference to wikidata from OSM:
http://wiki.openstreetmap.org/wiki/Proposed_features/Wikidata
Cheers,
Polyglot
2014-03-07 22:53 GMT+01:00 Jon Robson jdlrobson@gmail.com:
Sounds like a good idea. If there is no objections to my potentially crazy idea I will drop them a note on their mailing list... On 7 Mar 2014 13:27, "Arthur Richards" arichards@wikimedia.org wrote:
Dunno if any of the OSM-y folks are planning to attend but I bet this would be up their alley. At the very least, it would probably be good to get their input on a project like this.
On Fri, Mar 7, 2014 at 11:44 AM, Jon Robson jdlrobson@gmail.com wrote:
Dan awesome! Glad there is some interest - this should be a lot of fun! :-)
On Wed, Mar 5, 2014 at 1:20 PM, Quim Gil qgil@wikimedia.org wrote:
fyi
-------- Original Message -------- Subject: [WikimediaMobile] Zurich Hackathon: Creating a map namespace Date: Wed, 5 Mar 2014 12:54:52 -0800 From: Jon Robson jdlrobson@gmail.com To: Wikimedia developers wikitech-l@lists.wikimedia.org, mobile-l mobile-l@lists.wikimedia.org
This may be extremely ambitious, but I'm keen to kick off development around the creation of a map namespace during the Zurich hackathon.
The goal would be to setup an editable map namespace that could be used for a variety of things, one of which would be adding a map view to the Special:Nearby page provided via the mobile site. The goal is a proof of concept not necessarily anything production ready (but that would be great if we could get to that point!)
Please let me know if you would also be interested on hacking such a thing -
https://www.mediawiki.org/wiki/Z%C3%BCrich_Hackathon_2014/Geo_Namespace
- or if doing so would be a terrible idea (but if you have to go down
that route please provide constructive reasoning on what would be a less terrible idea)
Excited to hack on cool things in Zurich!
Mobile-l mailing list Mobile-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mobile-l
-- Jon Robson
Mobile-l mailing list Mobile-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mobile-l
-- Arthur Richards Software Engineer, Mobile [[User:Awjrichards]] IRC: awjr +1-415-839-6885 x6687
Maps-l mailing list Maps-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/maps-l