Skip to content

Instantly share code, notes, and snippets.

Avatar

Debbie Paul debpaul

View GitHub Profile
@debpaul
debpaul / findingSpecimenPreparationInformation.txt
Last active Jul 11, 2019
query iDigBio for preparationType information
View findingSpecimenPreparationInformation.txt
Need: search of data where specimen "preparation" information exists.
Possibilities:
https://search.idigbio.org/v2/search/records/?rq={"data.dwc:dynamicProperties":["preparationType","preparation"]}
returns hits where the strings _preparationType_ or _preparation_ are found in the dynamicProperties data
currently returns over 200 records
note with this query - you could also search for strings like "alcohol" or similar
https://search.idigbio.org/v2/search/records/?rq={"data.dwc:preparations":{"type":"exists"}}
returns over 53M records where the field dwc:preparations is present
https://search.idigbio.org/v2/search/records/?rq={"family":["cyprinidae","ictaluridae"],"data.dwc:preparations":{"type":"exists"}}
returns now limited by family, returning records that have dwc:preparations for specimens with
@debpaul
debpaul / IndianaSpecimensSearchByInstitution.txt
Last active Feb 27, 2019
Search state=Indiana, group by institution code
View IndianaSpecimensSearchByInstitution.txt
https://search.idigbio.org/v2/summary/top/records/?top_fields=["institutioncode"]&rq={"stateprovince":"indiana"}&count=5000
This search request returns all specimens in the ADBC iDigBio portal where the state is "Indiana" and uses the Institution Code
as the anchor for the search. Output is in JSON.
You can’t perform that action at this time.