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

Document data model, tables and structure #17

Open
3 tasks
duncandewhurst opened this issue Apr 22, 2021 · 0 comments · May be fixed by #48
Open
3 tasks

Document data model, tables and structure #17

duncandewhurst opened this issue Apr 22, 2021 · 0 comments · May be fixed by #48
Labels
documentation Improvements or additions to documentation

Comments

@duncandewhurst
Copy link
Contributor

duncandewhurst commented Apr 22, 2021

Some rough notes:


The structure is similar to Kingfisher Process, but a bit simpler. The main table is the projects table, which has one project per row in jsonb format in the data column. You can use the collection table to identify the collection you want to work with and then filter the projects table using the collection_id column.

you can find the data review results for each collection in collection_check , the coverage for each collection in field_counts (same format as field_counts in Kingfisher Summarize) and the coverage for each project in project_fields (same format as the new field_list columns in Kingfisher Summarize).

There is also a tabular copy of the OC4IDS schema in oc4ids_schema

  • `collection` - equivalent to the collection table in Kingfisher Process with one row per collection.
    
  • `projects` - equivalent to the join of the release and data tables in Kingfisher Process with one row per project.
    
  • `collection_check` - similar to release_check in Kingfisher Process, but with one row per collection.
    
  • `field_counts` - equivalent to field_counts in Kingfisher Views
    
  • `oc4ids_schema` - a flattened version of the OC4IDS schema, for use in coverage queries
    
@duncandewhurst duncandewhurst added the documentation Improvements or additions to documentation label Apr 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant