Skip to content

Dataset & tags filtering DSL #199

@pudo

Description

@pudo

Goal: we want to be able to filter datasets and collections in a way that is less confusing than the current yente API endpoints offer.

Idea: let's implement a DSL for defining subsets of the data collection using logical operators and #tag filters. A typical pattern may be: take this collection and remove a,b,c - or: just add 1, 2, 3.

Sketches:

datasets=(#issuer.eu|#list.sanction)-lt_fiu_sanctions
datasets=(#issuer.west|#list.sanction|#list.debarment)-lt_fiu_sanctions-#issuer.ru

This could be used:

  • In yente for /match and /search.
  • In zavod for scoped CLI commands like zavod xref, or even as a way to dynamically define collections.
  • To dynamically generate custom-scoped exports for customers:
https://delivery.opensanctions.com/entities.ftm.json?datasets=(#issuer.west&#list.sanction&#list.debarment)-lt_fiu_sanctions-#issuer.ru

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