-
Notifications
You must be signed in to change notification settings - Fork 0
/
data.py
19 lines (16 loc) · 947 Bytes
/
data.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
R=["ID_Adresse","ID_Femme","ID_Enfant","ID_Contact","ID_Hebergement","Date_SP","Date_Ress","Description_Ress","Date_SM","Numero","Date_Emmenagement","Description_O","TOUT_femme","TOUT_adresse","TOUT_enfant","TOUT_hebergement","TOUT_habite","TOUT_orientation","TOUT_SP","TOUT_ress","TOUT_SM","TOUT_TP","TOUT_contact"]
DF=[
[["ID_Femme"],["TOUT_femme"]],
[["ID_Enfant"],["ID_Femme","TOUT_enfant"]],
[["ID_Adresse"],["TOUT_adresse"]],
[["ID_Femme","ID_Contact"],["TOUT_contact"]],
[["ID_Hebergement","ID_Femme"],["ID_Adresse","TOUT_hebergement"]],
[["ID_Femme","ID_Adresse","Date_Emmenagement"],["TOUT_habite"]],
[["ID_Femme","Description_O"],["TOUT_orientation"]],
[["ID_Femme","Date_SP"],["TOUT_SP"]],
[["ID_Femme","Date_Ress","Description_Ress"],["TOUT_ress"]],
[["ID_Femme","Date_SM"],["TOUT_SM"]],
[["ID_Femme","Numero"],["TOUT_TP"]]
]
from normalisation_v2 import *
print_rels_and_fds(BCNF(R,DF))