Am I correct that there is no opposite of ident_taxon_id= ? I tried not_ident_taxon_id= and without_ident_taxon_id= and neither work so I assume it does not exist.
i scanned the code for variants of ident_taxon_id, and the only thing i saw was ident_taxon_id_exclusive, which is different from a without_ or not_.
Thanks all. If youāre wondering why I asked, I made a pretty complex ID URL for this post and then thought to myself, actually, if I were to use this URL for identifying I would prefer to see the reverse result.
I agree this would be very useful for clearing out āstate of matter: lifeā observations; there is absolutely no way I can help with any of the 100s of pages of microscope images of things where people who know about that stuff have disagreed about the kingdom. I can also imagine other kinds of applications, like filtering for just 1 of 2 common mis-IDs about a species, for example if the mis-IDs occur at different life stages and therefore requires a different mental frame for deciding.
Hi there!
Iām trying to get all my observations except those annotated as dead (field 17, value 19). Hereās what I tried:
However, this excludes not only observations annotated as dead (field 17, value 19), but all observations with any annotation in field 17, including alive (value 18). In practice, it returns the same observations as if I omit without_term_value_id:
https://www.inaturalist.org/observations?place_id=any&user_id=jocateme&without_term_id=17
Based on this example:
I also tried this:
But it returns all observations that have any annotation in field 17, regardless of value (i.e., without_term_value_id makes no difference again).
(By the way, the same is true for the quoted example. The link does not exclude observations with plant phenology annotation āfloweringā, but rather returns all observations with any plant phenology annotation.)
Any idea on how I can get all my observations except those annotated as dead?
Thank you!
EDIT:
Omitting without_term_id and keeping without_term_value_id doesnāt work either:
https://www.inaturalist.org/observations?place_id=any&user_id=jocateme&without_term_value_id=19
It returns all observations.
i donāt think itās possible in the Explore pageā¦
you could export all your observations and then manually exclude the ones with a dead annotation.
another thing i can think of is to leverage the API. since you donāt have that many observations of dead things, you could get a list of those observation ids:
https://api.inaturalist.org/v1/observations?user_id=jocateme&term_id=17&term_value_id=19&per_page=100&only_id=true
or
https://jumear.github.io/stirfry/iNatAPIv1_observations.html?user_id=jocateme&term_id=17&term_value_id=19&per_page=100
I think the first solution will work great. I am using these search terms via API as part of a shiny app (https://jocateme.shinyapps.io/manaca/), so I think it will be pretty straightforward to identify and delete observations with a dead annotation.
The second solution might not work that well because anyone can use the shinyapp, so I have no control over how many observations of dead organisms the user has (might be too many to fit in the URL).
Thatās very helpful. Thanks, @pisum!
EDIT
Actually, on a second thought I think Iām more inclined to give the second solution a try, because it would be easier to integrate the shiny app with the iNaturalist species view. Do you by any chance know if thereās a limit to how many observations I can exclude using the ānot_id=ā term? Is there maybe a character limit for the URL?
just based on a cursory search for not_id in the iNat repo in Github, it looks like maybe 750 obs. i did a quick test to exclude 600 obs via not_id, and it worked as expected.
if youāre doing things at a user level, i think that would cover 99.9% of users, since i wouldnāt expect most people to have more than 750 observations of dead stuff.
maybe by the time there are people who have accumulated that many observations, the API will have been updated so that the exclusion filters parameters for annotations work better.
I think youāre absolutely right! This should definitely do the trick for now. Iāve already updated the codes in the shiny app and itās working like a charm. Thank you!
In the ID-modul, filtering for an umbrella project, is it possible to exclude observations from a certain project?
E.g.: global/national CNC-results, but w/o one specific CNC-region? (it is working when using not_in_place
, but some CNC-regions consist of several iNat-places, which makes it more difficult)
yes, you can use not_in_project
, e.g. this is observations in the CNC 2021 project, excluding the CNC 2021 Cape Town project: https://www.inaturalist.org/observations/identify?project_id=82727¬_in_project=92187
Thanks Jane,
I had used without_project_id
and not_project_id
to no avail, so I thought it was not possible. Just tested and it works as it should
It would have been much better for us if staff had thought to go with a consistent format for search by exclusion URL terms. For example the opposite of place_id= should unquestionably be without_place_id= rather than ¬_in_place=.
I often find myself doing what you did, trying and failing to guess what the correct term might be, and then having to come back here to look it up on the tutorial.
The plurals are also a problem. Itās super silly taxon_id= becomes taxon_ids= if you want to list more than one, but user_id= and place_id= remain unchanged.
Is there a way to find the taxa that iNaturalist automatically marks as ācaptiveā? I notice a lot of people who post non-captive observations of those species donāt realize itās been made casual, and itād be nice to have an easy way to look through them without having to go through all the user-marked captive things.
not that I know of, but thereās a feature request: https://forum.inaturalist.org/t/find-observations-the-system-voted-as-not-wild/5070/
Another search question! So I made a very nice, detailed search URL and Iād like to download the results as a CSV, but the download ends up not being filtered to just the things that come up in my search. Am I doing something wrong here?
It should have 2938 observations of 719 species, but when I try to download it it has 120,215 observations that donāt appear to be filtered at all.
Export doesnāt handle all the parameters that Explore does. In this case, it looks like itās throwing out unobserved_by_user_id
and three of your four without_taxon_id
s.
When I use ¬_user_id= with my username it only excludes my observations after I changed the name, if I use id number, it excludes everything, I donāt know if itās a bug or feature?
I see URL search strings as having an important and useful utility. Unfortunately, I lack the basic programming knowledge to use that utility. Writing project note, I wanted to highlight a number of observations with a subset of observation field values. The search URL āhttps://www.inaturalist.org/observations?place_id=any&taxon_id=68632&verifiable=any&field:Elevation%20(ft)=ā was written with the intent to specify observations at the highest elevations. The field is a numeric value field and should be governed by numeric rules. The command ā&field:Elevation%20(ft)=ā returns all observations with that field. I was unable to modify the command to return observations that exceeded a certain value. Can any one suggest a syntax that modifies the command?