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.
It looks like many of the places in Germany are well matched, but other countries are sparse. 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.
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) 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 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.
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, I’ll contact help@inat to see if they are willing to provide a bulk export.
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.
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?
@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.
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
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
@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 . In case anyone wants to help out, you’ll need a wiki account first.
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
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) 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) ??
@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.
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.
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?