Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt the portal to use the GeoTime vocabularies (UAT) #1976

Open
CecSve opened this issue Oct 2, 2024 · 0 comments
Open

Adapt the portal to use the GeoTime vocabularies (UAT) #1976

CecSve opened this issue Oct 2, 2024 · 0 comments

Comments

@CecSve
Copy link

CecSve commented Oct 2, 2024

Ranged queries are now supported for the GeoTime vocabulary.

For example, occurrence records with values in one of the GeologicalContext fields (specifically the chronostratigraphy fields) can be retrieved ('from' and 'to' does not matter):

https://api.gbif-uat.org/v1/occurrence/search?geologicaltime=Siderian,Ediacaran
https://api.gbif-uat.org/v1/occurrence/search?geologicaltime=Ediacaran,Siderian

Be aware of the following result when searching for a concept that is nested in another concept:
https://api.gbif-uat.org/v1/occurrence/search?geologicaltime=Paleogene,Cenozoic

We can also use wildcards. In these cases, the first parameter is the earliest and the second is the latest. E.g.: this goes from the earliest time till Ediacaran:

https://api.gbif-uat.org/v1/occurrence/search?geologicaltime=*,Ediacaran
and this goes from Ediacaran till now:
https://api.gbif-uat.org/v1/occurrence/search?geologicaltime=Ediacaran,*

The idea was to have one search field for geological time, however, perhaps it would be better if we could support that users could search on concepts (multivalue) in one search bar with suggestions as you type + having a range with a 'to' and 'from' search bar with suggestions as you type, but only one value allowed in each search bar.

Do this suggestion make sense, please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant