# Use Wikidata for place names and Wikipedia descriptions

**URL:** <https://forum.inaturalist.org/t/use-wikidata-for-place-names-and-wikipedia-descriptions/7702>\
**Category:** Feature Requests\
**Tags:** wikipedia\
**Created:** [November 2, 2019, 2:49pm UTC](https://forum.inaturalist.org/t/use-wikidata-for-place-names-and-wikipedia-descriptions/7702 "2019-11-02T14:49:02Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![christiansw](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.inaturalist.org/christiansw/32/12838_2.png) [@christiansw](https://forum.inaturalist.org/u/christiansw)\
**Post date:** [November 2, 2019, 2:49pm UTC](https://forum.inaturalist.org/t/use-wikidata-for-place-names-and-wikipedia-descriptions/7702/1 "2019-11-02T14:49:02Z")

</div>

iNat place IDs can now be stored in Wikidata:

[https://www.wikidata.org/wiki/Property:P7471](https://www.wikidata.org/wiki/Property:P7471)

This can be used to create links from iNat to Wikipedia articles in different languages - and to other related websites, information and media, for place names, widgets and other contexts.

---

<div class="post-metadata">

**Author:** ![christiansw](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.inaturalist.org/christiansw/32/12838_2.png) [@christiansw](https://forum.inaturalist.org/u/christiansw)\
**Post date:** [December 20, 2019, 6:51am UTC](https://forum.inaturalist.org/t/use-wikidata-for-place-names-and-wikipedia-descriptions/7702/2 "2019-12-20T06:51:27Z")

</div>

A small Wikidata query [https://w.wiki/EAz](https://w.wiki/EAz)

to show German states on a map with iNat search URLs: [https://w.wiki/BMa](https://w.wiki/BMa)

---

<div class="post-metadata">

**Author:** ![tobyyy](https://avatars.discourse-cdn.com/v4/letter/t/b9e5f3/32.png) [@tobyyy](https://forum.inaturalist.org/u/tobyyy)\
**Post date:** [October 13, 2020, 2:32am UTC](https://forum.inaturalist.org/t/use-wikidata-for-place-names-and-wikipedia-descriptions/7702/3 "2020-10-13T02:32:33Z")

</div>

It looks like many of the places in Germany are well matched, but other countries are sparse. [https://w.wiki/gcZ](https://w.wiki/gcZ)

Can someone point me to a list of iNat places, with IDs and names? If so, I can make a Mix’n’Match set to enable place name matching on a much wider scale.

---

<div class="post-metadata">

**Author:** ![astra\_the\_dragon](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.inaturalist.org/astra_the_dragon/32/37251_2.png) [@astra\_the\_dragon](https://forum.inaturalist.org/u/astra_the_dragon)\
**Post date:** [October 13, 2020, 2:42am UTC](https://forum.inaturalist.org/t/use-wikidata-for-place-names-and-wikipedia-descriptions/7702/4 "2020-10-13T02:42:58Z")

</div>

maybe something could be done with the API? maybe @pisum or @bouteloua can help you

welcome to the Forum.

---

<div class="post-metadata">

**Author:** ![pisum](https://avatars.discourse-cdn.com/v4/letter/p/91b2a8/32.png) [@pisum](https://forum.inaturalist.org/u/pisum)\
**Post date:** [October 13, 2020, 4:31am UTC](https://forum.inaturalist.org/t/use-wikidata-for-place-names-and-wikipedia-descriptions/7702/5 "2020-10-13T04:31:54Z")

</div>

> [@tobyyy](#):
>
> Can someone point me to a list of iNat places, with IDs and names?

as far as i know, there’s not an easy way for regular folks to get a list of iNat place ids and names. the closest thing is that you can use the old API (see [https://www.inaturalist.org/pages/api+reference#get-places](https://www.inaturalist.org/pages/api+reference#get-places)) to get a list of places based on a parent place ID.

but it’s imperfect. for example, you can go to [https://www.inaturalist.org/places.json?ancestor\_id=1&place\_type=state&per\_page=100&page=1](https://www.inaturalist.org/places.json?ancestor_id=1&place_type=state&per_page=100&page=1) to get a list of states in the United States, but then that returns a few additional places that aren’t actually states, except that someone set up a non-state place as a state. so you’ll have to separately filter on admin\_level=1 to get just the real states. (the API itself won’t actually allow you to filter on admin\_level, but it does provide admin\_level in the results.)

i made something a while back that pulls back a list of countries in iNaturalist. so you could use that as a starting point for countries, and you could even adapt it to pull back states, etc.

page: [https://jumear.github.io/stirfry/iNat\_countries.html](https://jumear.github.io/stirfry/iNat_countries.html)  
code: [https://github.com/jumear/stirfry/blob/gh-pages/iNat\_countries.html](https://github.com/jumear/stirfry/blob/gh-pages/iNat_countries.html)

---

<div class="post-metadata">

**Author:** ![tobyyy](https://avatars.discourse-cdn.com/v4/letter/t/b9e5f3/32.png) [@tobyyy](https://forum.inaturalist.org/u/tobyyy)\
**Post date:** [October 13, 2020, 5:16am UTC](https://forum.inaturalist.org/t/use-wikidata-for-place-names-and-wikipedia-descriptions/7702/6 "2020-10-13T05:16:46Z")

</div>

Thanks for the reply. So it looks like the API cannot provide the full list without a lot of coaxing. Per [https://www.inaturalist.org/pages/api+recommended+practices](https://www.inaturalist.org/pages/api+recommended+practices), I’ll contact help@inat to see if they are willing to provide a bulk export.

---

<div class="post-metadata">

**Author:** ![lawnranger](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.inaturalist.org/lawnranger/32/34961_2.png) [@lawnranger](https://forum.inaturalist.org/u/lawnranger)\
**Post date:** [October 13, 2020, 8:06pm UTC](https://forum.inaturalist.org/t/use-wikidata-for-place-names-and-wikipedia-descriptions/7702/7 "2020-10-13T20:06:39Z")

</div>

There are currently nearly 50,000 places on iNat, not sure how many would find a meaningful match to a place on wikidata. Extracting the continent\>country\>state\>county info in manageable chunks with the API is certainly doable.

---

<div class="post-metadata">

**Author:** ![kueda](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.inaturalist.org/kueda/32/20_2.png) [@kueda](https://forum.inaturalist.org/u/kueda)\
**Post date:** [October 13, 2020, 11:38pm UTC](https://forum.inaturalist.org/t/use-wikidata-for-place-names-and-wikipedia-descriptions/7702/8 "2020-10-13T23:38:22Z")

</div>

Hi folks, just going to reply to @tobyyy here. We don’t have a good way to get all the iNat place IDs using the API, but we could publish a regularly updated archive of this data. We could just dump relevant data out of the database into a CSV file sans boundaries (~118,700 lines) if that would work. Or, if there’s some kind of standard format for publishing place data like this akin to DarwinCore, we could publish something like that. What would you prefer?

---

<div class="post-metadata">

**Author:** ![tobyyy](https://avatars.discourse-cdn.com/v4/letter/t/b9e5f3/32.png) [@tobyyy](https://forum.inaturalist.org/u/tobyyy)\
**Post date:** [October 13, 2020, 11:52pm UTC](https://forum.inaturalist.org/t/use-wikidata-for-place-names-and-wikipedia-descriptions/7702/9 "2020-10-13T23:52:12Z")

</div>

@kueda the CSV would be awesome. There’s no need for boundaries (for my purposes) since with the ID I can point to your place page to enable matching.

@lawnranger There are way more than 50,000 places on Wikidata. I expect that over half of the iNat ones have a direct match. Having matched a number of sets with tens of thousands of entries, I’m confident that it’s best to do the matching all in one place.

---

<div class="post-metadata">

**Author:** ![tobyyy](https://avatars.discourse-cdn.com/v4/letter/t/b9e5f3/32.png) [@tobyyy](https://forum.inaturalist.org/u/tobyyy)\
**Post date:** [October 14, 2020, 3:05am UTC](https://forum.inaturalist.org/t/use-wikidata-for-place-names-and-wikipedia-descriptions/7702/10 "2020-10-14T03:05:54Z")

</div>

For comparison, the taxon matching has nearly reconciled 600k items. That task was easier because of systematic nomenclature, but gives a good sense of what can be done: [https://mix-n-match.toolforge.org/#/catalog/238](https://mix-n-match.toolforge.org/#/catalog/238)

---

<div class="post-metadata">

**Author:** ![optilete](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.inaturalist.org/optilete/32/1908_2.png) [@optilete](https://forum.inaturalist.org/u/optilete)\
**Post date:** [October 14, 2020, 6:48pm UTC](https://forum.inaturalist.org/t/use-wikidata-for-place-names-and-wikipedia-descriptions/7702/11 "2020-10-14T18:48:25Z")

</div>

Three days ago I created redirect pages on Wikipedia. Is this the wrong way?

[https://www.inaturalist.org/places/nieuwegein-park-oudegein#abouttab](https://www.inaturalist.org/places/nieuwegein-park-oudegein#abouttab)  
[https://www.inaturalist.org/places/nieuwegein-ijsselbos#abouttab](https://www.inaturalist.org/places/nieuwegein-ijsselbos#abouttab)

---

<div class="post-metadata">

**Author:** ![ahospers](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.inaturalist.org/ahospers/32/1483_2.png) [@ahospers](https://forum.inaturalist.org/u/ahospers)\
**Post date:** [October 14, 2020, 6:58pm UTC](https://forum.inaturalist.org/t/use-wikidata-for-place-names-and-wikipedia-descriptions/7702/12 "2020-10-14T18:58:52Z")

</div>

I want to connect

[https://nl.wikipedia.org/wiki/Westpark\_(Groningen)](https://nl.wikipedia.org/wiki/Westpark_(Groningen))  
About [https://www.inaturalist.org/places/groningen-deheld-westpark](https://www.inaturalist.org/places/groningen-deheld-westpark) (tab blad)  
[https://commons.wikimedia.org/wiki/Category:Westpark\_(Groningen)](https://commons.wikimedia.org/wiki/Category:Westpark_(Groningen)) Q100256456

[https://nl.wikipedia.org/wiki/Eelderbaan](https://nl.wikipedia.org/wiki/Eelderbaan)  
[https://www.inaturalist.org/places/groningen-vinkhuizen-eelderbaan](https://www.inaturalist.org/places/groningen-vinkhuizen-eelderbaan)  
[https://commons.wikimedia.org/wiki/Category:Eelderbaan](https://commons.wikimedia.org/wiki/Category:Eelderbaan) Q100257347

[https://nl.wikipedia.org/wiki/Roege\_Bos](https://nl.wikipedia.org/wiki/Roege_Bos) Q100257307  
About [https://www.inaturalist.org/places/groningen-deheld-roege-bos-eelderbaan](https://www.inaturalist.org/places/groningen-deheld-roege-bos-eelderbaan) (tabblad)  
[https://commons.wikimedia.org/wiki/Category:Roege\_Bos](https://commons.wikimedia.org/wiki/Category:Roege_Bos) Q100257307

 ![image](https://us1.discourse-cdn.com/flex016/uploads/inaturalist/original/2X/e/e6572c4dfbfb099a154b2e2eb93bfcb52352527d.png)

---

<div class="post-metadata">

**Author:** ![kueda](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.inaturalist.org/kueda/32/20_2.png) [@kueda](https://forum.inaturalist.org/u/kueda)\
**Post date:** [October 14, 2020, 7:53pm UTC](https://forum.inaturalist.org/t/use-wikidata-for-place-names-and-wikipedia-descriptions/7702/13 "2020-10-14T19:53:28Z")

</div>

Let me know if this works for you: [http://www.inaturalist.org/places/inaturalist-places.csv.zip](http://www.inaturalist.org/places/inaturalist-places.csv.zip)

Some of the columns need some explaining, so maybe this needs a metadata file in the zip, but for now it should provide you with a list of iNat place IDs. You can use the `slug` column to link to the place page on iNat, e.g. [https://www.inaturalist.org/places/lonsdale-camp-bush](https://www.inaturalist.org/places/lonsdale-camp-bush)

---

<div class="post-metadata">

**Author:** ![tobyyy](https://avatars.discourse-cdn.com/v4/letter/t/b9e5f3/32.png) [@tobyyy](https://forum.inaturalist.org/u/tobyyy)\
**Post date:** [October 14, 2020, 11:22pm UTC](https://forum.inaturalist.org/t/use-wikidata-for-place-names-and-wikipedia-descriptions/7702/14 "2020-10-14T23:22:24Z")

</div>

@ahospers here’s how to do it on Wikidata: [https://www.wikidata.org/w/index.php?title=Q100256456&type=revision&diff=1291798322&oldid=1289730848](https://www.wikidata.org/w/index.php?title=Q100256456&type=revision&diff=1291798322&oldid=1289730848) . That’s what I’m trying to do in bulk. Whether iNat can draw down that info yet for the “Wikipedia description” panel is the next step for others to say.

---

<div class="post-metadata">

**Author:** ![tobyyy](https://avatars.discourse-cdn.com/v4/letter/t/b9e5f3/32.png) [@tobyyy](https://forum.inaturalist.org/u/tobyyy)\
**Post date:** [October 14, 2020, 11:25pm UTC](https://forum.inaturalist.org/t/use-wikidata-for-place-names-and-wikipedia-descriptions/7702/15 "2020-10-14T23:25:47Z")

</div>

@ahospers actually it’s even better to use the id: [https://www.wikidata.org/w/index.php?title=Q100256456&type=revision&diff=1291800427&oldid=1291798322](https://www.wikidata.org/w/index.php?title=Q100256456&type=revision&diff=1291800427&oldid=1291798322)

---

<div class="post-metadata">

**Author:** ![tobyyy](https://avatars.discourse-cdn.com/v4/letter/t/b9e5f3/32.png) [@tobyyy](https://forum.inaturalist.org/u/tobyyy)\
**Post date:** [October 15, 2020, 1:58am UTC](https://forum.inaturalist.org/t/use-wikidata-for-place-names-and-wikipedia-descriptions/7702/16 "2020-10-15T01:58:08Z")

</div>

@kueda Brilliant. The property was set up to use the IDs rather than the slugs, but I see that both work fine. I’ve now set up the Mix’n’Match set: [https://mix-n-match.toolforge.org/#/catalog/3900](https://mix-n-match.toolforge.org/#/catalog/3900) . In case anyone wants to help out, you’ll need a wiki account first.

---

<div class="post-metadata">

**Author:** ![ahospers](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.inaturalist.org/ahospers/32/1483_2.png) [@ahospers](https://forum.inaturalist.org/u/ahospers)\
**Post date:** [October 15, 2020, 1:07pm UTC](https://forum.inaturalist.org/t/use-wikidata-for-place-names-and-wikipedia-descriptions/7702/17 "2020-10-15T13:07:52Z")

</div>

Thank you…i will read and wait till ti happens automatically i hope. I have been there and did not understood wahat to do  
What is a “Slug” ???  
And “Mix’n’Match " ?  
I do not know anything but i thought  
Give “Eelderbaan” a “Q100257347” number (works for all languages i hope, use in WikiMedia??)  
Give “Roege Bos” a " Q100257307)” number (works for all languages i hope)  
"Westpark " has “Q100256456” number (works for all languages i hope, use in WikiMedia??)

It seems you know what to do. I know I need a number like Q100256456

[https://www.wikidata.org/w/index.php?title=Q100256456&type=revision&diff=1291798322&oldid=1289730848](https://www.wikidata.org/w/index.php?title=Q100256456&type=revision&diff=1291798322&oldid=1289730848) I need 3 red dots in stead of one ![image](https://us1.discourse-cdn.com/flex016/uploads/inaturalist/original/2X/2/2f4e55c3c30c4c184b24e58086fdda0f5c666dfc.png)

 ![image](https://us1.discourse-cdn.com/flex016/uploads/inaturalist/original/2X/1/133a1dbc37ac4011cffc2979247cc61cdc0a8345.png)

SLUG: [https://forum.inaturalist.org/t/creating-inaturalist-places-and-linking-to-wikidata-using-geojson/12220/17?u=ahospers](https://forum.inaturalist.org/t/creating-inaturalist-places-and-linking-to-wikidata-using-geojson/12220/17) It might be an idea to use WikiMedia photos of places in stead of Flickr files as Flicker is less popular nowadays i think

---

<div class="post-metadata">

**Author:** ![ahospers](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.inaturalist.org/ahospers/32/1483_2.png) [@ahospers](https://forum.inaturalist.org/u/ahospers)\
**Post date:** [October 15, 2020, 2:07pm UTC](https://forum.inaturalist.org/t/use-wikidata-for-place-names-and-wikipedia-descriptions/7702/18 "2020-10-15T14:07:40Z")

</div>

Now i am lost. I thought i had to add “Q100256456” to the photos to make them visible in any language. But know it seems there is a category  
[https://commons.wikimedia.org/wiki/Category:Westpark\_(Groningen)](https://commons.wikimedia.org/wiki/Category:Westpark_(Groningen)) Q100256456  
without “Q100256456”  
How does this work in multiplie languages, espacially Dutch and English (and German)

Can somebody tell me how this works ?  
I did not know the parks itself where a seperate category (one week ago) ??

[https://commons.wikimedia.org/wiki/Category:Eelderbaan](https://commons.wikimedia.org/wiki/Category:Eelderbaan) Q100257347  
[https://commons.wikimedia.org/wiki/Category:Roege\_Bos](https://commons.wikimedia.org/wiki/Category:Roege_Bos) Q100257307

 ![image](https://us1.discourse-cdn.com/flex016/uploads/inaturalist/original/2X/c/c6966378f0cc250311d895083b41f028f9ab0475.png)

SLUG: [https://forum.inaturalist.org/t/creating-inaturalist-places-and-linking-to-wikidata-using-geojson/](https://forum.inaturalist.org/t/creating-inaturalist-places-and-linking-to-wikidata-using-geojson/)  
It might be an idea to use WikiMedia photos of places in stead of Flickr files as Flicker is less popular nowadays i think

---

<div class="post-metadata">

**Author:** ![pisum](https://avatars.discourse-cdn.com/v4/letter/p/91b2a8/32.png) [@pisum](https://forum.inaturalist.org/u/pisum)\
**Post date:** [October 15, 2020, 3:21pm UTC](https://forum.inaturalist.org/t/use-wikidata-for-place-names-and-wikipedia-descriptions/7702/20 "2020-10-15T15:21:35Z")

</div>

@ahospers Wikidata currently doesn’t affect the Wikipedia descriptions for places in iNaturalist, as far as i know. there’s been some talk here and in other discussions about using Wikidata as way to link iNaturalist places, but i’m not aware of any serious steps toward thinking through pros and cons and what that would actually look like if implemented.

> [@optilete](#):
>
> I created redirect pages on Wikipedia. Is this the wrong way?

this is currently the right way to do it in iNaturalist, along with the option of changing the place name in iNaturalist to match an existing entry in Wikipedia.

it should be noted however, that there could be a lag of up to 30 days for changes in Wikipedia to be reflected in iNaturalist (see discussion starting from [https://forum.inaturalist.org/t/creating-inaturalist-places-and-linking-to-wikidata-using-geojson/12220/16](https://forum.inaturalist.org/t/creating-inaturalist-places-and-linking-to-wikidata-using-geojson/12220/16)), although this may or may not be improved after this: [https://forum.inaturalist.org/t/adding-wikipedia-links-when-an-article-is-created-about-a-taxon/9084/12](https://forum.inaturalist.org/t/adding-wikipedia-links-when-an-article-is-created-about-a-taxon/9084/12).

---

<div class="post-metadata">

**Author:** ![kueda](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.inaturalist.org/kueda/32/20_2.png) [@kueda](https://forum.inaturalist.org/u/kueda)\
**Post date:** [October 15, 2020, 3:40pm UTC](https://forum.inaturalist.org/t/use-wikidata-for-place-names-and-wikipedia-descriptions/7702/21 "2020-10-15T15:40:16Z")

</div>

> [@pisum](#):
>
> there’s been some talk here and in other discussions about using Wikidata as way to link iNaturalist places, but i’m not aware of any serious steps toward thinking through pros and cons and what that would actually look like if implemented.

FWIW, one impediment is that I personally find the Wikidata SPARQL API pretty mystifying. If someone could provide a working example of how one uses it to, say, retrieve a Wikipedia page URL for a taxon given an iNat taxon ID (or s/taxon/place/ to keep it on-topic), that would help me out a lot. @tobyyy, maybe you could provide an example?

[Next page](https://forum.inaturalist.org/t/use-wikidata-for-place-names-and-wikipedia-descriptions/7702.md?page=2)
