Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Joined tables (for OCDS Lite) #300

Open
sorenabell opened this issue Jul 15, 2021 · 2 comments
Open

Joined tables (for OCDS Lite) #300

sorenabell opened this issue Jul 15, 2021 · 2 comments

Comments

@sorenabell
Copy link
Contributor

Based on the OCDS Lite spreadsheet, there are going to be only 4 tables for OCDS Lite: Tenders, Awards, Awards Suppliers, Contracts.

  • We need to join columns from the "root tables", i.e. to include columns from the Tenders table into the Contracts table.
  • [AFTER JOIN FUNCTIONALITY IS ADDED] If we split the Contracts table we will receive the same table as Awards Suppliers (that we already have). So our proposal for this case would be to throw out ["/awards/suppliers/id", "/awards/suppliers/name"] columns from the Contracts table (especially since this is a list).
    If we do not split the Contracts table, then these "suppliers" will generate columns like /awards/suppliers/0/id, /awards/suppliers/1/id, etc.
    Our proposal would be to remove all the columns related to the Awards table from the Contracts table.

We want to make the Lite version of the data as easy to analyse by non-experienced data users as much as possible.

@jpmckinney
Copy link
Member

jpmckinney commented Jul 15, 2021

cc @sabahfromlondon

I think it is important to have awards information in the contracts table. In some datasets, the number of suppliers per award is bounded (e.g. maximum 1 or 2). In such cases, it is fine to have the suppliers in the same table.

For datasets where there can be a large number of suppliers: In most cases, there is still only 1, with a small percentage having more than 1. In that case, we had discussed the possibility of filling in awards/suppliers/id, etc. if there is only 1 supplier. If there is more than 1, then leave it empty and add those suppliers to the separate suppliers table.

@jpmckinney
Copy link
Member

Related issue in Spoonbill library: open-contracting/spoonbill#36

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants