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

How to insert correspondences between classifications? #18

Open
stefanpauliuk opened this issue Jan 22, 2019 · 0 comments
Open

How to insert correspondences between classifications? #18

stefanpauliuk opened this issue Jan 22, 2019 · 0 comments

Comments

@stefanpauliuk
Copy link
Member

Correspondence tables contain info about which classification items correspond to which ones in another classification. There can be 1:1, n:1, and 1:n correspondences and a mix thereof.

In the IEDC, they could be stored in two new correspondence_definition and correspondence_items tables, or a new data type 7_CT (correspondence table), with a simple data model: aspect1: First classification, aspect2: second classification.

Additional correspondence properties are:

symmetric | Can be used in both directions
class1_all | All classification 1 items are covered
class2_all | All classification 2 items are covered
one_to_one | Not 1:1 correspondence between classifications
one_to_n | Not 1:n correspondence between classifications (disaggregation from class1 to class2)
n_to_one | n:1 correspondence between classifications (aggregation from class 1 to class 2)

Those can be stored in a Python dictionary under reserve1 in datasets, if we go for the 7_CT_option, else as separate columns in correspondence.definitions.

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

1 participant