[OSM-talk] OSM Wikidata SPARQL service updated

Yuri Astrakhan yuriastrakhan at gmail.com
Sun Sep 3 20:05:45 UTC 2017

OSM+WD service updates:  new examples interface contains just the OSM-related
examples, and they are user-contributable. The osmm:loc (centroid) is now
stored with all objects including relations, so it is now easy to see how
far Wikidata's coordinates are from OSM's - http://tinyurl.com/yd97qtp2 Also,
if a query outputs geo location, it can be shown on an interactive map,
e.g. a map of educational places near Jersey City, with different colors by
type: http://tinyurl.com/y82w6my8 .

Relation members are now stored as  "osmm:has" predicates, linking to the
member object.  Example:   "osmrel:123  osmm:has  osmway:456" -- relation
#123 contains way #456.  The role (inner, outer, ...) of that member is now
stored as   osmrel:123  osmway:456  "inner"   -- meaning relation #123 has
an "inner" way #456 member.  This way you can quickly search for all
relation members of an object -- { ?osmid  osmm:has  ?member . }, or you
can examine the actual role of those members.

Developers, please help with integrating this new engine into MapRoulette
and JOSM.  Also, the service is still looking for a new permanent home, but
there is hope!

Sarah, thanks for your help! I'm now able to calculate centroids for almost
all of the objects. There are still a few broken way objects out there -
they are not stored as linestrings, so i cannot access them via python's
bindings, but there are very few of them.  The data will soon regenerate
with most of the osmm:loc populated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20170903/aadea143/attachment.html>

More information about the talk mailing list