open-contracting / cardinal-rs

Measure red flags and procurement indicators using OCDS data
https://cardinal.readthedocs.io
MIT License
9 stars 3 forks source link

Add support for lots #14

Open jpmckinney opened 1 year ago

jpmckinney commented 1 year ago

Most publishers do not implement lots, so for now the indicator calculations are simpler / naive.

TBD whether to include lot IDs in the output (probably), re: #25.

jpmckinney commented 6 months ago

Not MVP as DR has no lots and Ecuador has lots in 9% of procedures (and multiple lots in at most 0.02% of procedures). Ecuador furthermore only relates to lots from tender/items.

rg '"lots"' t/ecuador_sercop_bulk_full.jsonl | jaq 'reduce (inputs | .tender?.procurementMethodDetails?) as $s ({}; .[$s] += 1)'
rg '"lots"' t/ecuador_sercop_bulk_full.jsonl | rg '"bids"' | jaq 'reduce (inputs | .tender?.procurementMethodDetails?) as $s ({}; .[$s] += 1)'