这是indexloc提供的服务,不要输入任何密码
Skip to content

document geologicalTime predicates (they are unusual) #144

@MortenHofft

Description

@MortenHofft

We have a way to download via the geologicaltime field. But it isn't really documented I find. It just says it can be repeated and used as a range (same as for year and other ranges), but for geological time it is in fact an equal with a comma and not a range when provided as a predicate.

E.g. a download for http://api.gbif-uat.org/v1/occurrence/download/request/?geologicaltime=Paleogene,Ediacaran&basis_of_record=OBSERVATION&country=ES&format=SIMPLE_CSV&license=CC_BY_NC_4_0&month=4&occurrence_status=present gets transformed into this download predicate

...
{
      "type": "equals",
      "key": "GEOLOGICAL_TIME",
      "value": "Paleogene,Ediacaran",
      "matchCase": false
}
...

Is it a deliberate choice to avoid the gte,lt etc terminology that we else use for ranges? Could we add an explicit example to the documentation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions