27. Search for Annotations , Aantekeningen bij Waarnemingen

https://forum.inaturalist.org/t/data-users-what-are-your-use-cases-and-requests-for-exporting-data/2972/20

For example, here’s a search that returns data on all of your monarch observations from Ontario with life stage annotations: https://api.inaturalist.org/v1/observations?place_id=6883&taxon_id=48662&user_id=dkaposi&term_id=1&order=desc&order_by=created_at 4

Search for Annotations

&term_id= - the annotation group

  • 1 =Life Stage, 9 =Sex, 12 =Plant Phenology, 17 =Alive or Dead

&term_value_id= - the value within the group

  • Life Stage: 2 =Adult, 3 =Teneral, 4 =Pupa, 5 =Nymph, 6 =Larva, 7 =Egg, 8 =Juvenile, 16 =Subimago
  • Sex: 10 =Female, 11 =Male
  • Plant Phenology: 13 =Flowering, 14 =Fruiting, 15 =Flower Budding
  • Alive or Dead: 18 =Alive, 19 =Dead, 20 =Cannot Be Determined

Both the group parameter and value parameter should be included in the URL. And term_value_id should be able to accept a comma-separated list of more than one value.

Here are all verifiable Lepidoptera observations with a Life Stage of Larva: https://www.inaturalist.org/observations?place_id=any&taxon_id=47157&term_id=1&term_value_id=6

And here are all verifiable Lepidoptera observations with a LIfe Stage of Larva or Adult: https://www.inaturalist.org/observations?page=2&place_id=any&taxon_id=47157&term_id=1&term_value_id=2,6

To exclude observations with particular annotations, use the following similar to the above:

  • &without_term_id= the annotation group
  • &without_term_value_id= the value within the group

om the API: “Please note that we throttle API usage to a max of 100 requests per minute, though we ask that you try to keep it to 60 requests per minute or lower, and to keep under 10,000 requests per day. If we notice usage that has serious impact on our performance we may institute blocks without notification.”

@dkaposi David and I have the same problem, but using his as an example:

His traditional project, Moths of Ontario, https://www.inaturalist.org/projects/moths-of-ontario, now has 154,199 observations that are annotated. If 200 is the max per page on the API GET obs endpoint, that would be 770 calls over 15 days.

I have an even larger number of obs to deal with if I’m to use any of iNat for the North American Moth Photographers Group mapping as I delineated on August 15, 2019 in this thread.

Perhaps iNat could make exceptions for “special use” cases to allow more extensive use of the API, or, ideally, fast track an update to the old Export Observations.

https://forum.inaturalist.org/t/data-users-what-are-your-use-cases-and-requests-for-exporting-data/2972/20

https://forum.inaturalist.org/t/data-users-what-are-your-use-cases-and-requests-for-exporting-data/2972/20

to put a dataset out to data.world, but it looks like there may be technical limitations to that platform.

https://data.world/datasets/inaturalist

Publicado el 09 de noviembre de 2020 a las 08:27 PM por ahospers ahospers

Comentarios

No hay comentarios aún.

Añade un comentario

Entra o Regístrate para añadir comentarios