Skip to content

occ_search() with recordedByID misses records where the field contains multiple IDs #835

@stevenpbachman

Description

@stevenpbachman

Not sure if this is an rgbif or GBIF issue. occ_search() with recordedByID seems to miss records where the field contains multiple IDs

occ_search(recordedByID = "https://www.wikidata.org/wiki/Q6525437") returns only records where that URI is the only value in the recordedByID field. Records where the field contains multiple identifiers (e.g. a Wikidata URI, a Harvard UUID, and a VIAF URI concatenated together) seem silently excluded from results, even though the queried ID is present.

Returns ~1 record:
occ_search(recordedByID = "https://www.wikidata.org/wiki/Q6525437", limit = 20)

But this record (GBIF key 3028984454) has Q6525437 in its recordedByID field alongside other IDs, and is NOT returned by the search occ_get(key = 3028984454, fields = "all")

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