I really hope I’m not overlooking something simple, but I’m facing an issue trying to get non-chordate records using the occurrence download request API.
My real request is more complex, but I’ve narrowed my issue down to my “not” predicate. When I use this request, I am returned 0 results:
Ah, I’ve found my own mistake. It has to do with my usage of TAXON_KEY, which I was using in place of CLASS_KEY and KINGDOM_KEY. Is it that each occurrence only has one TAXON_KEY, but has individual keys for each level of their taxonomic tree?
In any case, using PHYLUM_KEY and KINGDOM_KEY instead of TAXON_KEY works well. Here’s the updated (and functional) query: