This week we enabled geo-shapes service (non-production only). Given Wikidata ID(s), maps service can give you associated geoshapes (as topojson). Moreover, you can actually give it a Wikidata SPARQL query, and as long as each ID is unique, it will get geoshapes for each one, and keep other values as TopoJSON properties.
What this means is that once its in production, you can do this: http://data.wmflabs.org/wiki/Regional_maps
It's a bunch of maps (using graph extension), that are dynamically generated by a template! You just give it a country and a few more optional parameters, and it draws the regions, and can show images from Commons if you hover over the state capitals (black dots).
Next step - adding some interesting data on top of those maps, like election results or rates of air pollution. That data will hopefully be stored in a central repository, together with non-OSM geoshapes (like historical country outlines, bird migration paths, etc).
Hi Yuri, thanks for the effort.
where do the shapes come from? are they sourced from the WMF instance of OSM data?
I am wondering if adding P402 (OpenStreetMap Relation identifier) to wikidata is worth doing. I've been doing it on some italian municipalities: https://www.wikidata.org/wiki/Q103049
-Simone
On Fri, Jul 1, 2016 at 5:38 AM, Yuri Astrakhan yastrakhan@wikimedia.org wrote:
This week we enabled geo-shapes service (non-production only). Given Wikidata ID(s), maps service can give you associated geoshapes (as topojson). Moreover, you can actually give it a Wikidata SPARQL query, and as long as each ID is unique, it will get geoshapes for each one, and keep other values as TopoJSON properties.
What this means is that once its in production, you can do this: http://data.wmflabs.org/wiki/Regional_maps
It's a bunch of maps (using graph extension), that are dynamically generated by a template! You just give it a country and a few more optional parameters, and it draws the regions, and can show images from Commons if you hover over the state capitals (black dots).
Next step - adding some interesting data on top of those maps, like election results or rates of air pollution. That data will hopefully be stored in a central repository, together with non-OSM geoshapes (like historical country outlines, bird migration paths, etc).
Maps-l mailing list Maps-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/maps-l
Simone, I think it was a mistake to add P402 to wikidata. From what I have been told, OSM IDs change too frequently to be reliable, e.g when user edits a road and splits some part of it with a different subset of tags. (Haven't tested it myself)
The reverse tagging is by far more valuable, but at the moment OSM editor does not make it easy -- there is no lookup or autocomplete when entering wikidata ID, and when entered, it shows as a number, not as text from wikidata label. On Jul 1, 2016 11:15, "Simone Cortesi" simone@cortesi.com wrote:
Hi Yuri, thanks for the effort.
where do the shapes come from? are they sourced from the WMF instance of OSM data?
I am wondering if adding P402 (OpenStreetMap Relation identifier) to wikidata is worth doing. I've been doing it on some italian municipalities: https://www.wikidata.org/wiki/Q103049
-Simone
On Fri, Jul 1, 2016 at 5:38 AM, Yuri Astrakhan yastrakhan@wikimedia.org wrote:
This week we enabled geo-shapes service (non-production only). Given Wikidata ID(s), maps service can give you associated geoshapes (as topojson). Moreover, you can actually give it a Wikidata SPARQL query,
and
as long as each ID is unique, it will get geoshapes for each one, and
keep
other values as TopoJSON properties.
What this means is that once its in production, you can do this: http://data.wmflabs.org/wiki/Regional_maps
It's a bunch of maps (using graph extension), that are dynamically
generated
by a template! You just give it a country and a few more optional parameters, and it draws the regions, and can show images from Commons if you hover over the state capitals (black dots).
Next step - adding some interesting data on top of those maps, like
election
results or rates of air pollution. That data will hopefully be stored
in a
central repository, together with non-OSM geoshapes (like historical
country
outlines, bird migration paths, etc).
Maps-l mailing list Maps-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/maps-l
-- -S
On Fri, Jul 1, 2016 at 1:22 PM, Yuri Astrakhan yastrakhan@wikimedia.org wrote:
Simone, I think it was a mistake to add P402 to wikidata. From what I have been told, OSM IDs change too frequently to be reliable, e.g when user edits a road and splits some part of it with a different subset of tags. (Haven't tested it myself)
what you are referring to can be applied to roads and POIs, relations tend to differ (from a real world usage point-of-view)
as far as border (administrative) relations are concerned, they tend to stick around longer. 95% ot the borders in OSM (in Italy at least) have been around since when I uploaded them 7 years ago, they have been updated, but they kept the original ID.
as a representative example, have a look at the one for Pavia: https://www.openstreetmap.org/relation/44383
The reverse tagging is by far more valuable, but at the moment OSM editor does not make it easy -- there is no lookup or autocomplete when entering wikidata ID, and when entered, it shows as a number, not as text from wikidata label.
iD has been enabled for wikidata lookup and I would like to go forward and do a mass import of wikidata items references to OSM (in italy).
Le 2016-07-01, Yuri Astrakhan a écrit :
Simone, I think it was a mistake to add P402 to wikidata. From what I have been told, OSM IDs change too frequently to be reliable, e.g when user edits a road and splits some part of it with a different subset of tags. (Haven't tested it myself)
The reverse tagging is by far more valuable, but at the moment OSM editor does not make it easy -- there is no lookup or autocomplete when entering wikidata ID, and when entered, it shows as a number, not as text from wikidata label.
Well, this changed a little bit : in JOSM, for the tag wikidata=* there is no autocompletion for now, BUT when entered, the item has the both displays : the Q-number and its label.
That's a great news! I hope the online viewer and editor can get that too -- casual editors might not use JOSM. And of course there is an enormous potential for automated and semiautomated tools On Jul 1, 2016 15:49, "Guillaume Allegre" allegre.guillaume@free.fr wrote:
Le 2016-07-01, Yuri Astrakhan a écrit :
Simone, I think it was a mistake to add P402 to wikidata. From what I
have
been told, OSM IDs change too frequently to be reliable, e.g when user edits a road and splits some part of it with a different subset of tags. (Haven't tested it myself)
The reverse tagging is by far more valuable, but at the moment OSM editor does not make it easy -- there is no lookup or autocomplete when entering wikidata ID, and when entered, it shows as a number, not as text from wikidata label.
Well, this changed a little bit : in JOSM, for the tag wikidata=* there is no autocompletion for now, BUT when entered, the item has the both displays : the Q-number and its label.
-- ° /\ Guillaume Allègre OpenStreetMap France http://www.openstreetmap.fr /~~/\ Allegre.Guillaume@free.fr Wikimedia France http://www.wikimedia.fr / /~~\ tél. 04.76.63.26.99 Des contenus partagés libres et collaboratifs
Maps-l mailing list Maps-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/maps-l
Hi,
On Fri, Jul 1, 2016 at 2:49 PM, Guillaume Allegre allegre.guillaume@free.fr wrote:
Well, this changed a little bit : in JOSM, for the tag wikidata=* there is no autocompletion for now, BUT when entered, the item has the both displays : the Q-number and its label.
This requires installing the wikipedia plugin. Over the weekend I added a few features to this plugin:
* Query Wikidata by name then add id to selected object, see https://josm.openstreetmap.de/ticket/12039 * Fetch Wikidata items in current view (before this only worked for Wikipedia items), see https://josm.openstreetmap.de/ticket/13122
Have fun! Simon
Thanks Simon!
On Mon, Jul 11, 2016 at 10:16 AM, Simon Legner simon.legner@gmail.com wrote:
Hi,
On Fri, Jul 1, 2016 at 2:49 PM, Guillaume Allegre allegre.guillaume@free.fr wrote:
Well, this changed a little bit : in JOSM, for the tag wikidata=* there is no autocompletion for now, BUT when entered, the item has the both displays : the Q-number and its label.
This requires installing the wikipedia plugin. Over the weekend I added a few features to this plugin:
- Query Wikidata by name then add id to selected object, see
https://josm.openstreetmap.de/ticket/12039
- Fetch Wikidata items in current view (before this only worked for
Wikipedia items), see https://josm.openstreetmap.de/ticket/13122
Have fun! Simon
Maps-l mailing list Maps-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/maps-l