<div dir="ltr">So what is the license of this combined database and is this combined database a whole database or a collective database? Note that Wikidata is under CC0 while OSM is under ODbL.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, May 13, 2017 at 12:03 AM, Yuri Astrakhan <span dir="ltr"><<a href="mailto:yuriastrakhan@gmail.com" target="_blank">yuriastrakhan@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>TLDR: A SPARQL (rdf) database with both OSM and Wikidata data is up for testing.  Allows massive cross-referenced queries between two datasets. The service is a test, and needs a permanent home to stay alive.</div><div><br></div>Overpass Turbo is awesome, but sadly it does not have data from Wikidata, nor does it support some SQL-like conditions. I have setup a temporary RDF database that has both OSM & Wikidata. You can use SPARQL queries to find:<div><br></div><div>* All OSM objects with wikidata tag that references a Wikipedia disambiguation page. Get the name of the page in first available language ru, fr, de, en.    <span style="white-space:pre-wrap"><a href="http://tinyurl.com/mzlfb26" target="_blank">http://tinyurl.com/mzlfb26</a></span><div><div><br></div><div>* OSM relations with wikidata tag pointing to a person (also tries multiple language fallbacks).  <span style="white-space:pre-wrap"><a href="http://tinyurl.com/m6fh3wx" target="_blank">http://tinyurl.com/m6fh3wx</a> </span></div><div><br></div><div>* OSM relations with duplicate Wikidata IDs <span style="white-space:pre-wrap"><a href="http://tinyurl.com/mvhhogx" target="_blank">http://tinyurl.com/mvhhogx</a> </span></div><div><br></div><div><br></div><div>== OSM data structure ==</div><div>osmnode, osmway, osmrel - OSM object prefix, e.g.  osmnode:1234</div><div>osmt - tag, e.g.  osmt:name:en  (only has tags with latin chars, -, _, :, digits</div><div>osmm - meta data about the object -- type, isClosed, version.</div><div><br></div><div>I try to preserve OSM data without much changes. Every tag's value is stored as a string, except for wikidata and wikipedia tags which are converted to a URL, the same format as stored in Wikidata.</div><div><br></div><div>osmway:29453885<br></div><div><div>  osmt:name "Samina";</div><div>  osmt:waterway "river";</div><div>  osmt:wikidata wd:Q156065;</div><div>  osmt:wikipedia <<a href="https://de.wikipedia.org/wiki/Samina" target="_blank">https://de.wikipedia.org/<wbr>wiki/Samina</a>>;</div><div>  osmm:type "w";   #### could be "r", "w", and "n"</div><div>  osmm:isClosed false;   ####  this meta property is only for OSM ways</div><div>  osmm:version 24.</div></div><div><br></div><div>Wikidata data structure is identical to <a href="https://query.wikidata.org" target="_blank">https://query.wikidata.org</a> (<wbr>see help)</div><div><br></div><div><br></div><div>== Current limitations ==</div><div>* Only includes OSM objects with either "wikidata" or "wikipedia" tags</div><div>* The OSM data only contains tags with only Latin letters, digits and symbols - : _  <div>* OSM geometry info is not imported, e.g. no center point or bounding box, except for osmm:isClosed (true/false) property for ways. </div><div>* Does not include OSM object inheritance data - e.g. cannot query for "find a node that is part of a way which is part of a relation that has wikidata tag that ..."</div></div><div>* Wikidata is updated every second, but OSM does not yet update at all, imported from a full db dump as of a few days ago.</div></div></div></div>
<br>______________________________<wbr>_________________<br>
talk mailing list<br>
<a href="mailto:talk@openstreetmap.org">talk@openstreetmap.org</a><br>
<a href="https://lists.openstreetmap.org/listinfo/talk" rel="noreferrer" target="_blank">https://lists.openstreetmap.<wbr>org/listinfo/talk</a><br>
<br></blockquote></div><br></div>