gbif / occurrence

Occurrence store, download, search
Apache License 2.0
22 stars 15 forks source link

GeoTime - range query for contained concepts #352

Closed CecSve closed 1 month ago

CecSve commented 1 month ago

Would it be possible to change the result of the query to match the order of the concepts? For example;

https://api.gbif-uat.org/v1/occurrence/search?geologicaltime=LowerPennsylvanian,Bashkirian and https://api.gbif-uat.org/v1/occurrence/search?geologicaltime=Bashkirian,LowerPennsylvanian

gives the message Bashkirian contains LowerPennsylvanian and LowerPennsylvanian contains Bashkirian, however technically, it is only LowerPennsylvanian that contains Bashkirian. Could the message for https://api.gbif-uat.org/v1/occurrence/search?geologicaltime=Bashkirian,LowerPennsylvanian instead be something like: Bashkirian is contained within LowerPennsylvanian?

marcos-lg commented 1 month ago

In this case both concepts have the same start and end ages and I don't check the rank. Would it be enough if I just show a more generic message such as "One of the concepts is contained by the other"?

CecSve commented 1 month ago

Yes, that seems like a good solution!

marcos-lg commented 1 month ago

Deployed to UAT.