MocodoScripts/mocodo_notebook.ipynb
Djalim Simaila 0a7a29268b 🔤 refactor(mcd_mocodo.py): replace French accentuated characters with non-accentuated ones for better compatibility
🔧 fix(mcd_mocodo.py): rename 'fiche_activite' to 'fiche_pedagogique' and update its attributes for better clarity
🔧 fix(mcd_mocodo.py): update 'activite' attributes to include 'consigne' and 'duree'
🔧 fix(mcd_mocodo.py): update 'historique_activite' attributes to include 'note_difficulte', 'note_plaisir', 'note_concentration', 'note_duree'
🔧 fix(mcd_mocodo.py): add 'date_debloquement' attribute to 'debloquer' relation
🔧 fix(mcd_mocodo.py): update 'test_de_positionnement' and 'historique_test' attributes to include more detailed information
🔧 fix(mcd_mocodo.py): add 'historique_test_medical' entity with detailed attributes
🔧 fix(mcd_mocodo.py): add 'posseder3' relation to link 'historique_test_medical' with 'apprenant'
🔧 fix(mcd_mocodo.py): rename 'entités' to 'entites' for consistency with non-accentuated naming
2024-04-10 16:29:10 +02:00

1249 lines
90 KiB
Plaintext
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Mocodo 4.2.4 loaded.\n"
]
}
],
"source": [
"%reload_ext mocodo\n",
"from mocodo.magic import mocodo\n",
"import mcd_mocodo as mcd"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
"def generer_mcd(domaine:str, ga:bool=False,seed:float=1):\n",
" \"\"\"\n",
" Genère un graphe MCD à partir d'un domaine exprimé en MCD mocodo\n",
"\n",
" :param domaine: Le domaine exprimé en MCD mocodo\n",
" :type domaine: str\n",
" :param ga: Utiliser l'algorithme génétique pour arranger les entités, par défaut False\n",
" :type ga: bool, optional\n",
" :param seed: La graine pour le réarangement des entités, par défaut 1\n",
" :type seed: float, optional\n",
"\n",
" \"\"\"\n",
" return mocodo(f\"\"\"\n",
" %mocodo --colors ocean -t arrange{\":algo=ga\" if ga else \"\"} --seed {seed} --detect_overlaps --select mcd\n",
" {domaine}\n",
" \"\"\")\n"
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [
{
"data": {
"image/svg+xml": [
"<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"1217\" height=\"771\" viewBox=\"0 0 1217 771\">\n",
"<rect x=\"0\" y=\"0\" width=\"1217\" height=\"771\" fill=\"none\" stroke=\"none\" stroke-width=\"0\"/>\n",
"\n",
"<!-- Association POSSEDER2 -->\n",
"<g>\n",
"\t<line x1=\"133\" y1=\"53\" x2=\"133\" y2=\"166\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"361\" y1=\"166\" x2=\"133\" y2=\"166\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"133\" y1=\"395\" x2=\"133\" y2=\"166\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M160 140 a14 14 90 0 1 14 14 V166 h-82 V154 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M174 166 v12 a14 14 90 0 1 -14 14 H106 a14 14 90 0 1 -14 -14 V166 H82\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"92\" y=\"140\" width=\"82\" height=\"52\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"92\" y1=\"166\" x2=\"174\" y2=\"166\" stroke=\"#85956b\" stroke-width=\"1\"/>\n",
"\t\t<text x=\"99\" y=\"158.6\" fill=\"#27360c\" font-family=\"Courier New\" font-size=\"14\">posseder</text>\n",
"\t</g>\n",
"\t<text x=\"138\" y=\"113\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">0,1</text>\n",
"\t<text x=\"235\" y=\"182\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">0,N</text>\n",
"\t<text x=\"138\" y=\"280\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">0,N</text>\n",
"</g>\n",
"\n",
"<!-- Association CREER -->\n",
"<g>\n",
"\t<line x1=\"554\" y1=\"395\" x2=\"554\" y2=\"166\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"361\" y1=\"166\" x2=\"554\" y2=\"166\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M602 140 a14 14 90 0 1 14 14 V166 h-124 V154 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M616 166 v12 a14 14 90 0 1 -14 14 H506 a14 14 90 0 1 -14 -14 V166 H124\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"492\" y=\"140\" width=\"124\" height=\"52\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"492\" y1=\"166\" x2=\"616\" y2=\"166\" stroke=\"#85956b\" stroke-width=\"1\"/>\n",
"\t\t<text x=\"533\" y=\"158.6\" fill=\"#27360c\" font-family=\"Courier New\" font-size=\"14\">creer</text>\n",
"\t\t<text x=\"499\" y=\"184.6\" fill=\"#607734\" font-family=\"Courier New\" font-size=\"14\">date_creation</text>\n",
"\t</g>\n",
"\t<text x=\"526\" y=\"271\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">0,N</text>\n",
"\t<text x=\"464\" y=\"182\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">0,N</text>\n",
"</g>\n",
"\n",
"<!-- Association POSER1 -->\n",
"<g>\n",
"\t<line x1=\"895\" y1=\"166\" x2=\"714\" y2=\"166\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"554\" y1=\"395\" x2=\"714\" y2=\"166\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M729 140 a14 14 90 0 1 14 14 V166 h-58 V154 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M743 166 v12 a14 14 90 0 1 -14 14 H699 a14 14 90 0 1 -14 -14 V166 H58\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"685\" y=\"140\" width=\"58\" height=\"52\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"685\" y1=\"166\" x2=\"743\" y2=\"166\" stroke=\"#85956b\" stroke-width=\"1\"/>\n",
"\t\t<text x=\"693\" y=\"158.6\" fill=\"#27360c\" font-family=\"Courier New\" font-size=\"14\">poser</text>\n",
"\t</g>\n",
"\t<text x=\"802\" y=\"182\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">1,1</text>\n",
"\t<text x=\"612.37\" y=\"271\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">0,N</text>\n",
"</g>\n",
"\n",
"<!-- Association POSER -->\n",
"<g>\n",
"\t<line x1=\"895\" y1=\"166\" x2=\"1076\" y2=\"166\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"1173\" y1=\"166\" x2=\"1076\" y2=\"166\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M1091 140 a14 14 90 0 1 14 14 V166 h-58 V154 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M1105 166 v12 a14 14 90 0 1 -14 14 H1061 a14 14 90 0 1 -14 -14 V166 H58\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"1047\" y=\"140\" width=\"58\" height=\"52\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"1047\" y1=\"166\" x2=\"1105\" y2=\"166\" stroke=\"#85956b\" stroke-width=\"1\"/>\n",
"\t\t<text x=\"1055\" y=\"158.6\" fill=\"#27360c\" font-family=\"Courier New\" font-size=\"14\">poser</text>\n",
"\t</g>\n",
"\t<text x=\"965\" y=\"182\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">1,1</text>\n",
"\t<text x=\"1110\" y=\"158\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">0,N</text>\n",
"</g>\n",
"\n",
"<!-- Association INVITER -->\n",
"<g>\n",
"\t<path d=\"M554 395 C481.67 427 417.33 427 361 395\" fill=\"none\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<path d=\"M554 395 C481.67 363 417.33 363 361 395\" fill=\"none\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"361\" y1=\"166\" x2=\"361\" y2=\"395\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"133\" y1=\"395\" x2=\"361\" y2=\"395\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"361\" y1=\"561\" x2=\"361\" y2=\"395\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M418 360 a14 14 90 0 1 14 14 V386 h-142 V374 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M432 386 v30 a14 14 90 0 1 -14 14 H304 a14 14 90 0 1 -14 -14 V386 H142\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"290\" y=\"360\" width=\"142\" height=\"70\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"290\" y1=\"386\" x2=\"432\" y2=\"386\" stroke=\"#85956b\" stroke-width=\"1\"/>\n",
"\t\t<text x=\"331\" y=\"378.6\" fill=\"#27360c\" font-family=\"Courier New\" font-size=\"14\">inviter</text>\n",
"\t\t<text x=\"297\" y=\"404.6\" fill=\"#607734\" font-family=\"Courier New\" font-size=\"14\">date_invitation</text>\n",
"\t</g>\n",
"\t<text x=\"440\" y=\"410\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">0,N</text>\n",
"\t<text x=\"440\" y=\"388\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">0,N</text>\n",
"\t<text x=\"366\" y=\"271\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">0,N</text>\n",
"\t<text x=\"262\" y=\"411\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">0,N</text>\n",
"\t<text x=\"366\" y=\"518\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">0,N</text>\n",
"</g>\n",
"\n",
"<!-- Association SIGNALER1 -->\n",
"<g>\n",
"\t<line x1=\"895\" y1=\"395\" x2=\"714\" y2=\"395\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"554\" y1=\"395\" x2=\"714\" y2=\"395\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M741 369 a14 14 90 0 1 14 14 V395 h-82 V383 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M755 395 v12 a14 14 90 0 1 -14 14 H687 a14 14 90 0 1 -14 -14 V395 H82\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"673\" y=\"369\" width=\"82\" height=\"52\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"673\" y1=\"395\" x2=\"755\" y2=\"395\" stroke=\"#85956b\" stroke-width=\"1\"/>\n",
"\t\t<text x=\"680\" y=\"387.6\" fill=\"#27360c\" font-family=\"Courier New\" font-size=\"14\">signaler</text>\n",
"\t</g>\n",
"\t<text x=\"760\" y=\"411\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">1,1</text>\n",
"\t<text x=\"645\" y=\"411\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">0,N</text>\n",
"</g>\n",
"\n",
"<!-- Association SIGNALER -->\n",
"<g>\n",
"\t<line x1=\"895\" y1=\"395\" x2=\"1076\" y2=\"395\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"1173\" y1=\"166\" x2=\"1076\" y2=\"395\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M1103 369 a14 14 90 0 1 14 14 V395 h-82 V383 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M1117 395 v12 a14 14 90 0 1 -14 14 H1049 a14 14 90 0 1 -14 -14 V395 H82\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"1035\" y=\"369\" width=\"82\" height=\"52\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"1035\" y1=\"395\" x2=\"1117\" y2=\"395\" stroke=\"#85956b\" stroke-width=\"1\"/>\n",
"\t\t<text x=\"1042\" y=\"387.6\" fill=\"#27360c\" font-family=\"Courier New\" font-size=\"14\">signaler</text>\n",
"\t</g>\n",
"\t<text x=\"1007\" y=\"411\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">1,1</text>\n",
"\t<text x=\"1159.86\" y=\"217\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">0,N</text>\n",
"</g>\n",
"\n",
"<!-- Association ASSIGNER -->\n",
"<g>\n",
"\t<line x1=\"133\" y1=\"700\" x2=\"133\" y2=\"561\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"133\" y1=\"395\" x2=\"133\" y2=\"561\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M160 535 a14 14 90 0 1 14 14 V561 h-82 V549 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M174 561 v12 a14 14 90 0 1 -14 14 H106 a14 14 90 0 1 -14 -14 V561 H82\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"92\" y=\"535\" width=\"82\" height=\"52\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"92\" y1=\"561\" x2=\"174\" y2=\"561\" stroke=\"#85956b\" stroke-width=\"1\"/>\n",
"\t\t<text x=\"99\" y=\"553.6\" fill=\"#27360c\" font-family=\"Courier New\" font-size=\"14\">assigner</text>\n",
"\t</g>\n",
"\t<text x=\"138\" y=\"639\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">1,1</text>\n",
"\t<text x=\"138\" y=\"518\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">0,N</text>\n",
"</g>\n",
"\n",
"<!-- Association UTILISER -->\n",
"<g>\n",
"\t<line x1=\"554\" y1=\"395\" x2=\"554\" y2=\"561\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"361\" y1=\"561\" x2=\"554\" y2=\"561\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M615 535 a14 14 90 0 1 14 14 V561 h-150 V549 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M629 561 v12 a14 14 90 0 1 -14 14 H493 a14 14 90 0 1 -14 -14 V561 H150\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"479\" y=\"535\" width=\"150\" height=\"52\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"479\" y1=\"561\" x2=\"629\" y2=\"561\" stroke=\"#85956b\" stroke-width=\"1\"/>\n",
"\t\t<text x=\"520\" y=\"553.6\" fill=\"#27360c\" font-family=\"Courier New\" font-size=\"14\">utiliser</text>\n",
"\t\t<text x=\"486\" y=\"579.6\" fill=\"#607734\" font-family=\"Courier New\" font-size=\"14\">date_utilisation</text>\n",
"\t</g>\n",
"\t<text x=\"526\" y=\"527\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">0,1</text>\n",
"\t<text x=\"439\" y=\"553\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">0,N</text>\n",
"</g>\n",
"\n",
"<!-- Association REPONDRE -->\n",
"<g>\n",
"\t<line x1=\"554\" y1=\"395\" x2=\"714\" y2=\"561\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"895\" y1=\"561\" x2=\"714\" y2=\"561\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M741 535 a14 14 90 0 1 14 14 V561 h-82 V549 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M755 561 v12 a14 14 90 0 1 -14 14 H687 a14 14 90 0 1 -14 -14 V561 H82\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"673\" y=\"535\" width=\"82\" height=\"52\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"673\" y1=\"561\" x2=\"755\" y2=\"561\" stroke=\"#85956b\" stroke-width=\"1\"/>\n",
"\t\t<text x=\"680\" y=\"553.6\" fill=\"#27360c\" font-family=\"Courier New\" font-size=\"14\">repondre</text>\n",
"\t</g>\n",
"\t<text x=\"645\" y=\"483.11\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">0,1</text>\n",
"\t<text x=\"769\" y=\"577\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">0,N</text>\n",
"</g>\n",
"\n",
"<!-- Association ACHETER -->\n",
"<g>\n",
"\t<line x1=\"554\" y1=\"395\" x2=\"714\" y2=\"700\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"895\" y1=\"700\" x2=\"714\" y2=\"700\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"361\" y1=\"561\" x2=\"714\" y2=\"700\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"133\" y1=\"700\" x2=\"714\" y2=\"700\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M758 674 a14 14 90 0 1 14 14 V700 h-116 V688 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M772 700 v12 a14 14 90 0 1 -14 14 H670 a14 14 90 0 1 -14 -14 V700 H116\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"656\" y=\"674\" width=\"116\" height=\"52\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"656\" y1=\"700\" x2=\"772\" y2=\"700\" stroke=\"#85956b\" stroke-width=\"1\"/>\n",
"\t\t<text x=\"684\" y=\"692.6\" fill=\"#27360c\" font-family=\"Courier New\" font-size=\"14\">acheter</text>\n",
"\t\t<text x=\"663\" y=\"718.6\" fill=\"#607734\" font-family=\"Courier New\" font-size=\"14\">date_d_achat</text>\n",
"\t</g>\n",
"\t<text x=\"590.95\" y=\"527\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">0,N</text>\n",
"\t<text x=\"794\" y=\"716\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">0,N</text>\n",
"\t<text x=\"439\" y=\"584.83\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">0,N</text>\n",
"\t<text x=\"203\" y=\"716\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">0,N</text>\n",
"</g>\n",
"\n",
"<!-- Entity LICENCE_MEDICALE -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"60\" y=\"9\" width=\"146\" height=\"26\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"60\" y=\"35\" width=\"146\" height=\"62\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"60\" y=\"9\" width=\"146\" height=\"88\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"60\" y1=\"35\" x2=\"206\" y2=\"35\" stroke=\"#578dff\" stroke-width=\"1\"/>\n",
"\t</g>\n",
"\t<text x=\"65\" y=\"27.6\" fill=\"#131114\" font-family=\"Courier New\" font-size=\"14\">licence_medicale</text>\n",
"\t<text x=\"65\" y=\"53.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">cle_medicale</text>\n",
"\t<line x1=\"65\" y1=\"56\" x2=\"167\" y2=\"56\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"65\" y=\"71.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">date_utilisation</text>\n",
"</g>\n",
"\n",
"<!-- Entity APPRENANT -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"263\" y=\"77\" width=\"196\" height=\"26\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"263\" y=\"103\" width=\"196\" height=\"152\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"263\" y=\"77\" width=\"196\" height=\"178\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"263\" y1=\"103\" x2=\"459\" y2=\"103\" stroke=\"#578dff\" stroke-width=\"1\"/>\n",
"\t</g>\n",
"\t<text x=\"323\" y=\"95.6\" fill=\"#131114\" font-family=\"Courier New\" font-size=\"14\">apprenant</text>\n",
"\t<text x=\"268\" y=\"121.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">id_apprenant</text>\n",
"\t<line x1=\"268\" y1=\"124\" x2=\"370\" y2=\"124\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"268\" y=\"139.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">nom</text>\n",
"\t<text x=\"268\" y=\"157.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">prenom</text>\n",
"\t<text x=\"268\" y=\"175.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">date_de_naissance</text>\n",
"\t<text x=\"268\" y=\"193.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">classe</text>\n",
"\t<text x=\"268\" y=\"211.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">est_actif</text>\n",
"\t<text x=\"268\" y=\"229.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">peut_faire_test</text>\n",
"\t<text x=\"268\" y=\"247.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">reponses_questionnaire</text>\n",
"</g>\n",
"\n",
"<!-- Entity QUESTION_POSEE -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"830\" y=\"131\" width=\"130\" height=\"26\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"830\" y=\"157\" width=\"130\" height=\"44\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"830\" y=\"131\" width=\"130\" height=\"70\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"830\" y1=\"157\" x2=\"960\" y2=\"157\" stroke=\"#578dff\" stroke-width=\"1\"/>\n",
"\t</g>\n",
"\t<text x=\"836\" y=\"149.6\" fill=\"#131114\" font-family=\"Courier New\" font-size=\"14\">question_posee</text>\n",
"\t<text x=\"835\" y=\"175.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">id_quest</text>\n",
"\t<line x1=\"835\" y1=\"178\" x2=\"903\" y2=\"178\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"835\" y=\"193.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">question</text>\n",
"</g>\n",
"\n",
"<!-- Entity ANONYME -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"1138\" y=\"131\" width=\"70\" height=\"26\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"1138\" y=\"157\" width=\"70\" height=\"44\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"1138\" y=\"131\" width=\"70\" height=\"70\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"1138\" y1=\"157\" x2=\"1208\" y2=\"157\" stroke=\"#578dff\" stroke-width=\"1\"/>\n",
"\t</g>\n",
"\t<text x=\"1143\" y=\"149.6\" fill=\"#131114\" font-family=\"Courier New\" font-size=\"14\">anonyme</text>\n",
"\t<text x=\"1143\" y=\"175.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">id</text>\n",
"\t<line x1=\"1143\" y1=\"178\" x2=\"1161\" y2=\"178\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"1143\" y=\"193.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">email</text>\n",
"</g>\n",
"\n",
"<!-- Entity DROIT -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"9\" y=\"288\" width=\"248\" height=\"26\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"9\" y=\"314\" width=\"248\" height=\"188\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"9\" y=\"288\" width=\"248\" height=\"214\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"9\" y1=\"314\" x2=\"257\" y2=\"314\" stroke=\"#578dff\" stroke-width=\"1\"/>\n",
"\t</g>\n",
"\t<text x=\"112\" y=\"306.6\" fill=\"#131114\" font-family=\"Courier New\" font-size=\"14\">droit</text>\n",
"\t<text x=\"14\" y=\"332.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">id_droit</text>\n",
"\t<line x1=\"14\" y1=\"335\" x2=\"82\" y2=\"335\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"14\" y=\"350.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">niveau_d_access</text>\n",
"\t<text x=\"14\" y=\"368.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">nb_profil_cree</text>\n",
"\t<text x=\"14\" y=\"386.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">nb_user_invite</text>\n",
"\t<text x=\"14\" y=\"404.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">peut_modifier_profil</text>\n",
"\t<text x=\"14\" y=\"422.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">peut_supprimer_profil</text>\n",
"\t<text x=\"14\" y=\"440.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">peut_faire_activite</text>\n",
"\t<text x=\"14\" y=\"458.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">peut_faire_test</text>\n",
"\t<text x=\"14\" y=\"476.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">peut_consulter_hist_activite</text>\n",
"\t<text x=\"14\" y=\"494.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">peut_consulter_hist_test</text>\n",
"</g>\n",
"\n",
"<!-- Entity COMPTE -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"468\" y=\"279\" width=\"172\" height=\"26\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"468\" y=\"305\" width=\"172\" height=\"206\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"468\" y=\"279\" width=\"172\" height=\"232\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"468\" y1=\"305\" x2=\"640\" y2=\"305\" stroke=\"#578dff\" stroke-width=\"1\"/>\n",
"\t</g>\n",
"\t<text x=\"528\" y=\"297.6\" fill=\"#131114\" font-family=\"Courier New\" font-size=\"14\">compte</text>\n",
"\t<text x=\"473\" y=\"323.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">login</text>\n",
"\t<line x1=\"473\" y1=\"326\" x2=\"516\" y2=\"326\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"473\" y=\"341.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">email</text>\n",
"\t<text x=\"473\" y=\"359.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">password</text>\n",
"\t<text x=\"473\" y=\"377.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">etat</text>\n",
"\t<text x=\"473\" y=\"395.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">date_de_derniere_co</text>\n",
"\t<text x=\"473\" y=\"413.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">nom</text>\n",
"\t<text x=\"473\" y=\"431.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">prenom</text>\n",
"\t<text x=\"473\" y=\"449.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">mobile</text>\n",
"\t<text x=\"473\" y=\"467.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">date_de_creation</text>\n",
"\t<text x=\"473\" y=\"485.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">moyen_paiement</text>\n",
"\t<text x=\"473\" y=\"503.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">est_connecte</text>\n",
"</g>\n",
"\n",
"<!-- Entity PROBLEME_SIGNALE -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"788\" y=\"333\" width=\"214\" height=\"26\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"788\" y=\"359\" width=\"214\" height=\"98\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"788\" y=\"333\" width=\"214\" height=\"124\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"788\" y1=\"359\" x2=\"1002\" y2=\"359\" stroke=\"#578dff\" stroke-width=\"1\"/>\n",
"\t</g>\n",
"\t<text x=\"827\" y=\"351.6\" fill=\"#131114\" font-family=\"Courier New\" font-size=\"14\">probleme_signale</text>\n",
"\t<text x=\"793\" y=\"377.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">id_prob</text>\n",
"\t<line x1=\"793\" y1=\"380\" x2=\"853\" y2=\"380\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"793\" y=\"395.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">version de lapplication</text>\n",
"\t<text x=\"793\" y=\"413.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">support</text>\n",
"\t<text x=\"793\" y=\"431.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">date du signalement</text>\n",
"\t<text x=\"793\" y=\"449.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">commentaire</text>\n",
"</g>\n",
"\n",
"<!-- Entity LICENCE -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"288\" y=\"526\" width=\"146\" height=\"26\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"288\" y=\"552\" width=\"146\" height=\"44\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"288\" y=\"526\" width=\"146\" height=\"70\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"288\" y1=\"552\" x2=\"434\" y2=\"552\" stroke=\"#578dff\" stroke-width=\"1\"/>\n",
"\t</g>\n",
"\t<text x=\"331\" y=\"544.6\" fill=\"#131114\" font-family=\"Courier New\" font-size=\"14\">licence</text>\n",
"\t<text x=\"293\" y=\"570.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">cle</text>\n",
"\t<line x1=\"293\" y1=\"573\" x2=\"319\" y2=\"573\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"293\" y=\"588.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">date_utilisation</text>\n",
"</g>\n",
"\n",
"<!-- Entity QUESTIONNAIRE -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"797\" y=\"508\" width=\"196\" height=\"26\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"797\" y=\"534\" width=\"196\" height=\"80\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"797\" y=\"508\" width=\"196\" height=\"106\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"797\" y1=\"534\" x2=\"993\" y2=\"534\" stroke=\"#578dff\" stroke-width=\"1\"/>\n",
"\t</g>\n",
"\t<text x=\"840\" y=\"526.6\" fill=\"#131114\" font-family=\"Courier New\" font-size=\"14\">questionnaire</text>\n",
"\t<text x=\"802\" y=\"552.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">id_questionnaire</text>\n",
"\t<line x1=\"802\" y1=\"555\" x2=\"938\" y2=\"555\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"802\" y=\"570.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">forme_rappel</text>\n",
"\t<text x=\"802\" y=\"588.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">disponibilite</text>\n",
"\t<text x=\"802\" y=\"606.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">reponses_questionnaire</text>\n",
"</g>\n",
"\n",
"<!-- Entity ABONNEMENT -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"68\" y=\"647\" width=\"130\" height=\"26\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"68\" y=\"673\" width=\"130\" height=\"80\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"68\" y=\"647\" width=\"130\" height=\"106\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"68\" y1=\"673\" x2=\"198\" y2=\"673\" stroke=\"#578dff\" stroke-width=\"1\"/>\n",
"\t</g>\n",
"\t<text x=\"91\" y=\"665.6\" fill=\"#131114\" font-family=\"Courier New\" font-size=\"14\">abonnement</text>\n",
"\t<text x=\"73\" y=\"691.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">nom_abonnement</text>\n",
"\t<line x1=\"73\" y1=\"694\" x2=\"192\" y2=\"694\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"73\" y=\"709.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">prix</text>\n",
"\t<text x=\"73\" y=\"727.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">date_de_debut</text>\n",
"\t<text x=\"73\" y=\"745.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">date_de_fin</text>\n",
"</g>\n",
"\n",
"<!-- Entity PROMOTION -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"822\" y=\"638\" width=\"146\" height=\"26\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"822\" y=\"664\" width=\"146\" height=\"98\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"822\" y=\"638\" width=\"146\" height=\"124\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"822\" y1=\"664\" x2=\"968\" y2=\"664\" stroke=\"#578dff\" stroke-width=\"1\"/>\n",
"\t</g>\n",
"\t<text x=\"857\" y=\"656.6\" fill=\"#131114\" font-family=\"Courier New\" font-size=\"14\">promotion</text>\n",
"\t<text x=\"827\" y=\"682.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">code</text>\n",
"\t<line x1=\"827\" y1=\"685\" x2=\"862\" y2=\"685\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"827\" y=\"700.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">date_de_creation</text>\n",
"\t<text x=\"827\" y=\"718.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">duree_reduction</text>\n",
"\t<text x=\"827\" y=\"736.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">reduction</text>\n",
"\t<text x=\"827\" y=\"754.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">conditions</text>\n",
"</g>\n",
"</svg>"
],
"text/plain": [
"<IPython.core.display.SVG object>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"generer_mcd(mcd.auth,seed=4)"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [
{
"data": {
"image/svg+xml": [
"<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"786\" height=\"654\" viewBox=\"0 0 786 654\">\n",
"<rect x=\"0\" y=\"0\" width=\"786\" height=\"654\" fill=\"none\" stroke=\"none\" stroke-width=\"0\"/>\n",
"\n",
"<!-- Association DECRIRE -->\n",
"<g>\n",
"\t<line x1=\"86\" y1=\"125\" x2=\"233\" y2=\"125\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"233\" y1=\"354\" x2=\"233\" y2=\"125\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M256 99 a14 14 90 0 1 14 14 V125 h-74 V113 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M270 125 v12 a14 14 90 0 1 -14 14 H210 a14 14 90 0 1 -14 -14 V125 H74\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"196\" y=\"99\" width=\"74\" height=\"52\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"196\" y1=\"125\" x2=\"270\" y2=\"125\" stroke=\"#85956b\" stroke-width=\"1\"/>\n",
"\t\t<text x=\"203\" y=\"117.6\" fill=\"#27360c\" font-family=\"Courier New\" font-size=\"14\">decrire</text>\n",
"\t</g>\n",
"\t<text x=\"168\" y=\"141\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">0,N</text>\n",
"\t<text x=\"238\" y=\"293\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">1,1</text>\n",
"</g>\n",
"\n",
"<!-- Association REALISER -->\n",
"<g>\n",
"\t<line x1=\"443\" y1=\"125\" x2=\"443\" y2=\"354\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"233\" y1=\"354\" x2=\"443\" y2=\"354\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"662\" y1=\"354\" x2=\"443\" y2=\"354\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"443\" y1=\"556\" x2=\"443\" y2=\"354\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M500 328 a14 14 90 0 1 14 14 V354 h-142 V342 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M514 354 v12 a14 14 90 0 1 -14 14 H386 a14 14 90 0 1 -14 -14 V354 H142\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"372\" y=\"328\" width=\"142\" height=\"52\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"372\" y1=\"354\" x2=\"514\" y2=\"354\" stroke=\"#85956b\" stroke-width=\"1\"/>\n",
"\t\t<text x=\"409\" y=\"346.6\" fill=\"#27360c\" font-family=\"Courier New\" font-size=\"14\">realiser</text>\n",
"\t\t<text x=\"379\" y=\"372.6\" fill=\"#607734\" font-family=\"Courier New\" font-size=\"14\">points_accordes</text>\n",
"\t</g>\n",
"\t<text x=\"448\" y=\"257\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">0,N</text>\n",
"\t<text x=\"324\" y=\"370\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">0,N</text>\n",
"\t<text x=\"519\" y=\"370\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">1,1</text>\n",
"\t<text x=\"448\" y=\"459\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">0,N</text>\n",
"</g>\n",
"\n",
"<!-- Association DEBLOQUER -->\n",
"<g>\n",
"\t<line x1=\"233\" y1=\"354\" x2=\"233\" y2=\"556\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"443\" y1=\"556\" x2=\"233\" y2=\"556\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M298 530 a14 14 90 0 1 14 14 V556 h-158 V544 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M312 556 v12 a14 14 90 0 1 -14 14 H168 a14 14 90 0 1 -14 -14 V556 H158\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"154\" y=\"530\" width=\"158\" height=\"52\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"154\" y1=\"556\" x2=\"312\" y2=\"556\" stroke=\"#85956b\" stroke-width=\"1\"/>\n",
"\t\t<text x=\"195\" y=\"548.6\" fill=\"#27360c\" font-family=\"Courier New\" font-size=\"14\">debloquer</text>\n",
"\t\t<text x=\"161\" y=\"574.6\" fill=\"#607734\" font-family=\"Courier New\" font-size=\"14\">date_debloquement</text>\n",
"\t</g>\n",
"\t<text x=\"238\" y=\"423\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">0,N</text>\n",
"\t<text x=\"317\" y=\"572\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">0,N</text>\n",
"</g>\n",
"\n",
"<!-- Association POSSEDER -->\n",
"<g>\n",
"\t<line x1=\"662\" y1=\"354\" x2=\"662\" y2=\"556\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"443\" y1=\"556\" x2=\"662\" y2=\"556\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M689 530 a14 14 90 0 1 14 14 V556 h-82 V544 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M703 556 v12 a14 14 90 0 1 -14 14 H635 a14 14 90 0 1 -14 -14 V556 H82\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"621\" y=\"530\" width=\"82\" height=\"52\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"621\" y1=\"556\" x2=\"703\" y2=\"556\" stroke=\"#85956b\" stroke-width=\"1\"/>\n",
"\t\t<text x=\"628\" y=\"548.6\" fill=\"#27360c\" font-family=\"Courier New\" font-size=\"14\">posseder</text>\n",
"\t</g>\n",
"\t<text x=\"667\" y=\"459\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">1,1</text>\n",
"\t<text x=\"546\" y=\"572\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">0,N</text>\n",
"</g>\n",
"\n",
"<!-- Entity FICHE_PEDAGOGIQUE -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"9\" y=\"90\" width=\"154\" height=\"26\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"9\" y=\"116\" width=\"154\" height=\"44\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"9\" y=\"90\" width=\"154\" height=\"70\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"9\" y1=\"116\" x2=\"163\" y2=\"116\" stroke=\"#578dff\" stroke-width=\"1\"/>\n",
"\t</g>\n",
"\t<text x=\"14\" y=\"108.6\" fill=\"#131114\" font-family=\"Courier New\" font-size=\"14\">fiche_pedagogique</text>\n",
"\t<text x=\"14\" y=\"134.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">id_fiche</text>\n",
"\t<line x1=\"14\" y1=\"137\" x2=\"82\" y2=\"137\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"14\" y=\"152.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">contenu</text>\n",
"</g>\n",
"\n",
"<!-- Entity COMPTE -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"357\" y=\"9\" width=\"172\" height=\"26\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"357\" y=\"35\" width=\"172\" height=\"206\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"357\" y=\"9\" width=\"172\" height=\"232\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"357\" y1=\"35\" x2=\"529\" y2=\"35\" stroke=\"#578dff\" stroke-width=\"1\"/>\n",
"\t</g>\n",
"\t<text x=\"417\" y=\"27.6\" fill=\"#131114\" font-family=\"Courier New\" font-size=\"14\">compte</text>\n",
"\t<text x=\"362\" y=\"53.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">login</text>\n",
"\t<line x1=\"362\" y1=\"56\" x2=\"405\" y2=\"56\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"362\" y=\"71.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">email</text>\n",
"\t<text x=\"362\" y=\"89.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">password</text>\n",
"\t<text x=\"362\" y=\"107.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">etat</text>\n",
"\t<text x=\"362\" y=\"125.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">date_de_derniere_co</text>\n",
"\t<text x=\"362\" y=\"143.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">nom</text>\n",
"\t<text x=\"362\" y=\"161.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">prenom</text>\n",
"\t<text x=\"362\" y=\"179.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">mobile</text>\n",
"\t<text x=\"362\" y=\"197.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">date_de_creation</text>\n",
"\t<text x=\"362\" y=\"215.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">moyen_paiement</text>\n",
"\t<text x=\"362\" y=\"233.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">est_connecte</text>\n",
"</g>\n",
"\n",
"<!-- Entity ACTIVITE -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"147\" y=\"301\" width=\"172\" height=\"26\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"147\" y=\"327\" width=\"172\" height=\"80\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"147\" y=\"301\" width=\"172\" height=\"106\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"147\" y1=\"327\" x2=\"319\" y2=\"327\" stroke=\"#578dff\" stroke-width=\"1\"/>\n",
"\t</g>\n",
"\t<text x=\"199\" y=\"319.6\" fill=\"#131114\" font-family=\"Courier New\" font-size=\"14\">activite</text>\n",
"\t<text x=\"152\" y=\"345.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">id_activite</text>\n",
"\t<line x1=\"152\" y1=\"348\" x2=\"246\" y2=\"348\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"152\" y=\"363.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">consigne</text>\n",
"\t<text x=\"152\" y=\"381.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">durée</text>\n",
"\t<text x=\"152\" y=\"399.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">caracteristiques ia</text>\n",
"</g>\n",
"\n",
"<!-- Entity HISTORIQUE_ACTIVITE -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"547\" y=\"265\" width=\"230\" height=\"26\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"547\" y=\"291\" width=\"230\" height=\"152\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"547\" y=\"265\" width=\"230\" height=\"178\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"547\" y1=\"291\" x2=\"777\" y2=\"291\" stroke=\"#578dff\" stroke-width=\"1\"/>\n",
"\t</g>\n",
"\t<text x=\"582\" y=\"283.6\" fill=\"#131114\" font-family=\"Courier New\" font-size=\"14\">historique_activite</text>\n",
"\t<text x=\"552\" y=\"309.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">id</text>\n",
"\t<line x1=\"552\" y1=\"312\" x2=\"570\" y2=\"312\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"552\" y=\"327.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">duree</text>\n",
"\t<text x=\"552\" y=\"345.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">date_de_realisation</text>\n",
"\t<text x=\"552\" y=\"363.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">note_difficulte</text>\n",
"\t<text x=\"552\" y=\"381.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">note_plaisir</text>\n",
"\t<text x=\"552\" y=\"399.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">note_concentration</text>\n",
"\t<text x=\"552\" y=\"417.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">note_duree</text>\n",
"\t<text x=\"552\" y=\"435.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">activite_proposee_par_algo</text>\n",
"</g>\n",
"\n",
"<!-- Entity APPRENANT -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"345\" y=\"467\" width=\"196\" height=\"26\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"345\" y=\"493\" width=\"196\" height=\"152\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"345\" y=\"467\" width=\"196\" height=\"178\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"345\" y1=\"493\" x2=\"541\" y2=\"493\" stroke=\"#578dff\" stroke-width=\"1\"/>\n",
"\t</g>\n",
"\t<text x=\"405\" y=\"485.6\" fill=\"#131114\" font-family=\"Courier New\" font-size=\"14\">apprenant</text>\n",
"\t<text x=\"350\" y=\"511.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">id_apprenant</text>\n",
"\t<line x1=\"350\" y1=\"514\" x2=\"452\" y2=\"514\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"350\" y=\"529.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">nom</text>\n",
"\t<text x=\"350\" y=\"547.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">prenom</text>\n",
"\t<text x=\"350\" y=\"565.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">date_de_naissance</text>\n",
"\t<text x=\"350\" y=\"583.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">classe</text>\n",
"\t<text x=\"350\" y=\"601.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">est_actif</text>\n",
"\t<text x=\"350\" y=\"619.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">peut_faire_test</text>\n",
"\t<text x=\"350\" y=\"637.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">reponses_questionnaire</text>\n",
"</g>\n",
"</svg>"
],
"text/plain": [
"<IPython.core.display.SVG object>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"generer_mcd(mcd.activites,seed=2)"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [
{
"data": {
"image/svg+xml": [
"<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"598\" height=\"348\" viewBox=\"0 0 598 348\">\n",
"<rect x=\"0\" y=\"0\" width=\"598\" height=\"348\" fill=\"none\" stroke=\"none\" stroke-width=\"0\"/>\n",
"\n",
"<!-- Association ETRE3 -->\n",
"<g>\n",
"\t<line x1=\"263\" y1=\"174\" x2=\"263\" y2=\"44\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"423\" y1=\"44\" x2=\"263\" y2=\"44\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M274 18 a14 14 90 0 1 14 14 V44 h-50 V32 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M288 44 v12 a14 14 90 0 1 -14 14 H252 a14 14 90 0 1 -14 -14 V44 H50\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"238\" y=\"18\" width=\"50\" height=\"52\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"238\" y1=\"44\" x2=\"288\" y2=\"44\" stroke=\"#85956b\" stroke-width=\"1\"/>\n",
"\t\t<text x=\"246\" y=\"36.6\" fill=\"#27360c\" font-family=\"Courier New\" font-size=\"14\">etre</text>\n",
"\t</g>\n",
"\t<text x=\"268\" y=\"95\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">0,N</text>\n",
"\t<text x=\"318\" y=\"60\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">1,1</text>\n",
"</g>\n",
"\n",
"<!-- Association ETRE2 -->\n",
"<g>\n",
"\t<line x1=\"263\" y1=\"174\" x2=\"107\" y2=\"174\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"107\" y1=\"304\" x2=\"107\" y2=\"174\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M118 148 a14 14 90 0 1 14 14 V174 h-50 V162 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M132 174 v12 a14 14 90 0 1 -14 14 H96 a14 14 90 0 1 -14 -14 V174 H50\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"82\" y=\"148\" width=\"50\" height=\"52\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"82\" y1=\"174\" x2=\"132\" y2=\"174\" stroke=\"#85956b\" stroke-width=\"1\"/>\n",
"\t\t<text x=\"90\" y=\"166.6\" fill=\"#27360c\" font-family=\"Courier New\" font-size=\"14\">etre</text>\n",
"\t</g>\n",
"\t<text x=\"149\" y=\"190\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">0,N</text>\n",
"\t<text x=\"112\" y=\"261\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">1,1</text>\n",
"</g>\n",
"\n",
"<!-- Association CONTENIR -->\n",
"<g>\n",
"\t<line x1=\"554\" y1=\"174\" x2=\"423\" y2=\"174\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"263\" y1=\"174\" x2=\"423\" y2=\"174\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M450 148 a14 14 90 0 1 14 14 V174 h-82 V162 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M464 174 v12 a14 14 90 0 1 -14 14 H396 a14 14 90 0 1 -14 -14 V174 H82\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"382\" y=\"148\" width=\"82\" height=\"52\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"382\" y1=\"174\" x2=\"464\" y2=\"174\" stroke=\"#85956b\" stroke-width=\"1\"/>\n",
"\t\t<text x=\"389\" y=\"166.6\" fill=\"#27360c\" font-family=\"Courier New\" font-size=\"14\">contenir</text>\n",
"\t</g>\n",
"\t<text x=\"491\" y=\"190\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">0,N</text>\n",
"\t<text x=\"354\" y=\"190\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">0,N</text>\n",
"</g>\n",
"\n",
"<!-- Association ETRE1 -->\n",
"<g>\n",
"\t<line x1=\"263\" y1=\"174\" x2=\"263\" y2=\"304\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"423\" y1=\"304\" x2=\"263\" y2=\"304\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M274 278 a14 14 90 0 1 14 14 V304 h-50 V292 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M288 304 v12 a14 14 90 0 1 -14 14 H252 a14 14 90 0 1 -14 -14 V304 H50\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"238\" y=\"278\" width=\"50\" height=\"52\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"238\" y1=\"304\" x2=\"288\" y2=\"304\" stroke=\"#85956b\" stroke-width=\"1\"/>\n",
"\t\t<text x=\"246\" y=\"296.6\" fill=\"#27360c\" font-family=\"Courier New\" font-size=\"14\">etre</text>\n",
"\t</g>\n",
"\t<text x=\"268\" y=\"261\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">0,N</text>\n",
"\t<text x=\"297\" y=\"320\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">1,1</text>\n",
"</g>\n",
"\n",
"<!-- Entity FICHE_PEDAGOGIQUE -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"346\" y=\"9\" width=\"154\" height=\"26\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"346\" y=\"35\" width=\"154\" height=\"44\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"346\" y=\"9\" width=\"154\" height=\"70\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"346\" y1=\"35\" x2=\"500\" y2=\"35\" stroke=\"#578dff\" stroke-width=\"1\"/>\n",
"\t</g>\n",
"\t<text x=\"351\" y=\"27.6\" fill=\"#131114\" font-family=\"Courier New\" font-size=\"14\">fiche_pedagogique</text>\n",
"\t<text x=\"351\" y=\"53.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">id_fiche</text>\n",
"\t<line x1=\"351\" y1=\"56\" x2=\"419\" y2=\"56\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"351\" y=\"71.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">contenu</text>\n",
"</g>\n",
"\n",
"<!-- Entity RESSOURCE -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"177\" y=\"103\" width=\"172\" height=\"26\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"177\" y=\"129\" width=\"172\" height=\"116\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"177\" y=\"103\" width=\"172\" height=\"142\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"177\" y1=\"129\" x2=\"349\" y2=\"129\" stroke=\"#578dff\" stroke-width=\"1\"/>\n",
"\t</g>\n",
"\t<text x=\"225\" y=\"121.6\" fill=\"#131114\" font-family=\"Courier New\" font-size=\"14\">Ressource</text>\n",
"\t<text x=\"182\" y=\"147.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">id_ress</text>\n",
"\t<line x1=\"182\" y1=\"150\" x2=\"242\" y2=\"150\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"182\" y=\"165.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">titre</text>\n",
"\t<text x=\"182\" y=\"183.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">description</text>\n",
"\t<text x=\"182\" y=\"201.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">date_de_publication</text>\n",
"\t<text x=\"182\" y=\"219.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">type</text>\n",
"\t<text x=\"182\" y=\"237.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">niveau_d_access</text>\n",
"</g>\n",
"\n",
"<!-- Entity MOT_CLE -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"519\" y=\"148\" width=\"70\" height=\"26\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"519\" y=\"174\" width=\"70\" height=\"26\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"519\" y=\"148\" width=\"70\" height=\"52\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"519\" y1=\"174\" x2=\"589\" y2=\"174\" stroke=\"#578dff\" stroke-width=\"1\"/>\n",
"\t</g>\n",
"\t<text x=\"524\" y=\"166.6\" fill=\"#131114\" font-family=\"Courier New\" font-size=\"14\">mot_cle</text>\n",
"\t<text x=\"524\" y=\"192.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">mot</text>\n",
"\t<line x1=\"524\" y1=\"195\" x2=\"550\" y2=\"195\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"</g>\n",
"\n",
"<!-- Entity ARTICLE -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"9\" y=\"269\" width=\"196\" height=\"26\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"9\" y=\"295\" width=\"196\" height=\"44\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"9\" y=\"269\" width=\"196\" height=\"70\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"9\" y1=\"295\" x2=\"205\" y2=\"295\" stroke=\"#578dff\" stroke-width=\"1\"/>\n",
"\t</g>\n",
"\t<text x=\"77\" y=\"287.6\" fill=\"#131114\" font-family=\"Courier New\" font-size=\"14\">article</text>\n",
"\t<text x=\"14\" y=\"313.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">id_article</text>\n",
"\t<line x1=\"14\" y1=\"316\" x2=\"99\" y2=\"316\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"14\" y=\"331.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">lien_vers_site_externe</text>\n",
"</g>\n",
"\n",
"<!-- Entity VIDEO -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"325\" y=\"269\" width=\"196\" height=\"26\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"325\" y=\"295\" width=\"196\" height=\"44\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"325\" y=\"269\" width=\"196\" height=\"70\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"325\" y1=\"295\" x2=\"521\" y2=\"295\" stroke=\"#578dff\" stroke-width=\"1\"/>\n",
"\t</g>\n",
"\t<text x=\"402\" y=\"287.6\" fill=\"#131114\" font-family=\"Courier New\" font-size=\"14\">video</text>\n",
"\t<text x=\"330\" y=\"313.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">id_video</text>\n",
"\t<line x1=\"330\" y1=\"316\" x2=\"398\" y2=\"316\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"330\" y=\"331.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">lien_vers_site_externe</text>\n",
"</g>\n",
"</svg>"
],
"text/plain": [
"<IPython.core.display.SVG object>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"generer_mcd(mcd.ressources,seed=2)"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"outputs": [
{
"data": {
"image/svg+xml": [
"<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"787\" height=\"627\" viewBox=\"0 0 787 627\">\n",
"<rect x=\"0\" y=\"0\" width=\"787\" height=\"627\" fill=\"none\" stroke=\"none\" stroke-width=\"0\"/>\n",
"\n",
"<!-- Association POSSEDER1 -->\n",
"<g>\n",
"\t<line x1=\"532\" y1=\"80\" x2=\"355\" y2=\"80\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"355\" y1=\"291\" x2=\"355\" y2=\"80\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M382 54 a14 14 90 0 1 14 14 V80 h-82 V68 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M396 80 v12 a14 14 90 0 1 -14 14 H328 a14 14 90 0 1 -14 -14 V80 H82\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"314\" y=\"54\" width=\"82\" height=\"52\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"314\" y1=\"80\" x2=\"396\" y2=\"80\" stroke=\"#85956b\" stroke-width=\"1\"/>\n",
"\t\t<text x=\"321\" y=\"72.6\" fill=\"#27360c\" font-family=\"Courier New\" font-size=\"14\">posseder</text>\n",
"\t</g>\n",
"\t<text x=\"401\" y=\"96\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">1,1</text>\n",
"\t<text x=\"360\" y=\"194\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">0,N</text>\n",
"</g>\n",
"\n",
"<!-- Association REALISER2 -->\n",
"<g>\n",
"\t<line x1=\"692\" y1=\"291\" x2=\"532\" y2=\"291\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"532\" y1=\"511\" x2=\"532\" y2=\"291\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"532\" y1=\"80\" x2=\"532\" y2=\"291\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"355\" y1=\"291\" x2=\"532\" y2=\"291\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M559 265 a14 14 90 0 1 14 14 V291 h-82 V279 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M573 291 v12 a14 14 90 0 1 -14 14 H505 a14 14 90 0 1 -14 -14 V291 H82\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"491\" y=\"265\" width=\"82\" height=\"52\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"491\" y1=\"291\" x2=\"573\" y2=\"291\" stroke=\"#85956b\" stroke-width=\"1\"/>\n",
"\t\t<text x=\"498\" y=\"283.6\" fill=\"#27360c\" font-family=\"Courier New\" font-size=\"14\">realiser</text>\n",
"\t</g>\n",
"\t<text x=\"578\" y=\"307\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">0,N</text>\n",
"\t<text x=\"537\" y=\"459\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">0,N</text>\n",
"\t<text x=\"537\" y=\"167\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">1,1</text>\n",
"\t<text x=\"458\" y=\"307\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">0,N</text>\n",
"</g>\n",
"\n",
"<!-- Association POSSEDER3 -->\n",
"<g>\n",
"\t<line x1=\"145\" y1=\"511\" x2=\"355\" y2=\"511\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"355\" y1=\"291\" x2=\"355\" y2=\"511\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M382 485 a14 14 90 0 1 14 14 V511 h-82 V499 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M396 511 v12 a14 14 90 0 1 -14 14 H328 a14 14 90 0 1 -14 -14 V511 H82\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"314\" y=\"485\" width=\"82\" height=\"52\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"314\" y1=\"511\" x2=\"396\" y2=\"511\" stroke=\"#85956b\" stroke-width=\"1\"/>\n",
"\t\t<text x=\"321\" y=\"503.6\" fill=\"#27360c\" font-family=\"Courier New\" font-size=\"14\">posseder</text>\n",
"\t</g>\n",
"\t<text x=\"286\" y=\"527\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">1,1</text>\n",
"\t<text x=\"360\" y=\"396\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">0,N</text>\n",
"</g>\n",
"\n",
"<!-- Entity HISTORIQUE_TEST_POS -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"429\" y=\"9\" width=\"206\" height=\"26\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"429\" y=\"35\" width=\"206\" height=\"116\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"429\" y=\"9\" width=\"206\" height=\"142\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"429\" y1=\"35\" x2=\"635\" y2=\"35\" stroke=\"#578dff\" stroke-width=\"1\"/>\n",
"\t</g>\n",
"\t<text x=\"452\" y=\"27.6\" fill=\"#131114\" font-family=\"Courier New\" font-size=\"14\">historique_test_pos</text>\n",
"\t<text x=\"434\" y=\"53.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">id_entree</text>\n",
"\t<line x1=\"434\" y1=\"56\" x2=\"511\" y2=\"56\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"434\" y=\"71.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">duree</text>\n",
"\t<text x=\"434\" y=\"89.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">score</text>\n",
"\t<text x=\"434\" y=\"107.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">temps_de_reaction_moyen</text>\n",
"\t<text x=\"434\" y=\"125.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">date_de_realisation</text>\n",
"\t<text x=\"434\" y=\"143.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">font_utilisée</text>\n",
"</g>\n",
"\n",
"<!-- Entity APPRENANT -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"257\" y=\"202\" width=\"196\" height=\"26\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"257\" y=\"228\" width=\"196\" height=\"152\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"257\" y=\"202\" width=\"196\" height=\"178\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"257\" y1=\"228\" x2=\"453\" y2=\"228\" stroke=\"#578dff\" stroke-width=\"1\"/>\n",
"\t</g>\n",
"\t<text x=\"317\" y=\"220.6\" fill=\"#131114\" font-family=\"Courier New\" font-size=\"14\">apprenant</text>\n",
"\t<text x=\"262\" y=\"246.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">id_apprenant</text>\n",
"\t<line x1=\"262\" y1=\"249\" x2=\"364\" y2=\"249\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"262\" y=\"264.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">nom</text>\n",
"\t<text x=\"262\" y=\"282.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">prenom</text>\n",
"\t<text x=\"262\" y=\"300.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">date_de_naissance</text>\n",
"\t<text x=\"262\" y=\"318.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">classe</text>\n",
"\t<text x=\"262\" y=\"336.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">est_actif</text>\n",
"\t<text x=\"262\" y=\"354.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">peut_faire_test</text>\n",
"\t<text x=\"262\" y=\"372.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">reponses_questionnaire</text>\n",
"</g>\n",
"\n",
"<!-- Entity COMPTE -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"606\" y=\"175\" width=\"172\" height=\"26\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"606\" y=\"201\" width=\"172\" height=\"206\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"606\" y=\"175\" width=\"172\" height=\"232\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"606\" y1=\"201\" x2=\"778\" y2=\"201\" stroke=\"#578dff\" stroke-width=\"1\"/>\n",
"\t</g>\n",
"\t<text x=\"666\" y=\"193.6\" fill=\"#131114\" font-family=\"Courier New\" font-size=\"14\">compte</text>\n",
"\t<text x=\"611\" y=\"219.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">login</text>\n",
"\t<line x1=\"611\" y1=\"222\" x2=\"654\" y2=\"222\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"611\" y=\"237.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">email</text>\n",
"\t<text x=\"611\" y=\"255.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">password</text>\n",
"\t<text x=\"611\" y=\"273.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">etat</text>\n",
"\t<text x=\"611\" y=\"291.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">date_de_derniere_co</text>\n",
"\t<text x=\"611\" y=\"309.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">nom</text>\n",
"\t<text x=\"611\" y=\"327.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">prenom</text>\n",
"\t<text x=\"611\" y=\"345.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">mobile</text>\n",
"\t<text x=\"611\" y=\"363.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">date_de_creation</text>\n",
"\t<text x=\"611\" y=\"381.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">moyen_paiement</text>\n",
"\t<text x=\"611\" y=\"399.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">est_connecte</text>\n",
"</g>\n",
"\n",
"<!-- Entity HISTORIQUE_TEST_MEDICAL -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"9\" y=\"404\" width=\"272\" height=\"26\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"9\" y=\"430\" width=\"272\" height=\"188\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"9\" y=\"404\" width=\"272\" height=\"214\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"9\" y1=\"430\" x2=\"281\" y2=\"430\" stroke=\"#578dff\" stroke-width=\"1\"/>\n",
"\t</g>\n",
"\t<text x=\"48\" y=\"422.6\" fill=\"#131114\" font-family=\"Courier New\" font-size=\"14\">historique_test_medical</text>\n",
"\t<text x=\"14\" y=\"448.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">id_entree_medical</text>\n",
"\t<line x1=\"14\" y1=\"451\" x2=\"158\" y2=\"451\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"14\" y=\"466.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">date_realisation</text>\n",
"\t<text x=\"14\" y=\"484.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">Deficit_phonologique</text>\n",
"\t<text x=\"14\" y=\"502.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">Deficit_lexical</text>\n",
"\t<text x=\"14\" y=\"520.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">Deficit_articulatoire</text>\n",
"\t<text x=\"14\" y=\"538.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">Deficit_ortho_optique</text>\n",
"\t<text x=\"14\" y=\"556.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">Deficit_visio_attentionnel</text>\n",
"\t<text x=\"14\" y=\"574.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">Deficit_visio_spacial</text>\n",
"\t<text x=\"14\" y=\"592.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">Deficit_visio motrice</text>\n",
"\t<text x=\"14\" y=\"610.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">Deficit_attention/concentration</text>\n",
"</g>\n",
"\n",
"<!-- Entity TEST_DE_POSITIONNEMENT -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"434\" y=\"467\" width=\"196\" height=\"26\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"434\" y=\"493\" width=\"196\" height=\"62\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"434\" y=\"467\" width=\"196\" height=\"88\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"434\" y1=\"493\" x2=\"630\" y2=\"493\" stroke=\"#578dff\" stroke-width=\"1\"/>\n",
"\t</g>\n",
"\t<text x=\"439\" y=\"485.6\" fill=\"#131114\" font-family=\"Courier New\" font-size=\"14\">test_de_positionnement</text>\n",
"\t<text x=\"439\" y=\"511.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">id_testpos</text>\n",
"\t<line x1=\"439\" y1=\"514\" x2=\"524\" y2=\"514\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"439\" y=\"529.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">consigne</text>\n",
"\t<text x=\"439\" y=\"547.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">caracteristiques_ia</text>\n",
"</g>\n",
"</svg>"
],
"text/plain": [
"<IPython.core.display.SVG object>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"generer_mcd(mcd.test,seed=3)"
]
},
{
"cell_type": "code",
"execution_count": 7,
"metadata": {},
"outputs": [
{
"data": {
"image/svg+xml": [
"<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"851\" height=\"613\" viewBox=\"0 0 851 613\">\n",
"<rect x=\"0\" y=\"0\" width=\"851\" height=\"613\" fill=\"none\" stroke=\"none\" stroke-width=\"0\"/>\n",
"\n",
"<!-- Association REALISER -->\n",
"<g>\n",
"\t<line x1=\"95\" y1=\"255\" x2=\"285\" y2=\"255\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"285\" y1=\"62\" x2=\"285\" y2=\"255\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"487\" y1=\"255\" x2=\"285\" y2=\"255\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M342 229 a14 14 90 0 1 14 14 V255 h-142 V243 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M356 255 v12 a14 14 90 0 1 -14 14 H228 a14 14 90 0 1 -14 -14 V255 H142\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"214\" y=\"229\" width=\"142\" height=\"52\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"214\" y1=\"255\" x2=\"356\" y2=\"255\" stroke=\"#85956b\" stroke-width=\"1\"/>\n",
"\t\t<text x=\"251\" y=\"247.6\" fill=\"#27360c\" font-family=\"Courier New\" font-size=\"14\">realiser</text>\n",
"\t\t<text x=\"221\" y=\"273.6\" fill=\"#607734\" font-family=\"Courier New\" font-size=\"14\">points_accordes</text>\n",
"\t</g>\n",
"\t<text x=\"186\" y=\"271\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">0,N</text>\n",
"\t<text x=\"290\" y=\"131\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">0,N</text>\n",
"\t<text x=\"361\" y=\"271\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">0,N</text>\n",
"</g>\n",
"\n",
"<!-- Association REALISER3 -->\n",
"<g>\n",
"\t<line x1=\"487\" y1=\"255\" x2=\"659\" y2=\"255\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"659\" y1=\"421\" x2=\"659\" y2=\"255\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M686 229 a14 14 90 0 1 14 14 V255 h-82 V243 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M700 255 v12 a14 14 90 0 1 -14 14 H632 a14 14 90 0 1 -14 -14 V255 H82\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"618\" y=\"229\" width=\"82\" height=\"52\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"618\" y1=\"255\" x2=\"700\" y2=\"255\" stroke=\"#85956b\" stroke-width=\"1\"/>\n",
"\t\t<text x=\"625\" y=\"247.6\" fill=\"#27360c\" font-family=\"Courier New\" font-size=\"14\">realiser</text>\n",
"\t</g>\n",
"\t<text x=\"590\" y=\"271\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">0,N</text>\n",
"\t<text x=\"664\" y=\"360\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">0,N</text>\n",
"</g>\n",
"\n",
"<!-- Association ATTEINDRE -->\n",
"<g>\n",
"\t<line x1=\"487\" y1=\"255\" x2=\"487\" y2=\"421\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"487\" y1=\"551\" x2=\"487\" y2=\"421\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M519 395 a14 14 90 0 1 14 14 V421 h-92 V409 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M533 421 v12 a14 14 90 0 1 -14 14 H455 a14 14 90 0 1 -14 -14 V421 H92\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"441\" y=\"395\" width=\"92\" height=\"52\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"441\" y1=\"421\" x2=\"533\" y2=\"421\" stroke=\"#85956b\" stroke-width=\"1\"/>\n",
"\t\t<text x=\"449\" y=\"413.6\" fill=\"#27360c\" font-family=\"Courier New\" font-size=\"14\">atteindre</text>\n",
"\t</g>\n",
"\t<text x=\"492\" y=\"360\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">0,N</text>\n",
"\t<text x=\"492\" y=\"508\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">0,N</text>\n",
"</g>\n",
"\n",
"<!-- Association DEBLOQUER -->\n",
"<g>\n",
"\t<line x1=\"659\" y1=\"421\" x2=\"790\" y2=\"421\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"790\" y1=\"551\" x2=\"790\" y2=\"421\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M822 395 a14 14 90 0 1 14 14 V421 h-92 V409 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M836 421 v12 a14 14 90 0 1 -14 14 H758 a14 14 90 0 1 -14 -14 V421 H92\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"744\" y=\"395\" width=\"92\" height=\"52\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"744\" y1=\"421\" x2=\"836\" y2=\"421\" stroke=\"#85956b\" stroke-width=\"1\"/>\n",
"\t\t<text x=\"752\" y=\"413.6\" fill=\"#27360c\" font-family=\"Courier New\" font-size=\"14\">debloquer</text>\n",
"\t</g>\n",
"\t<text x=\"716\" y=\"437\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">0,N</text>\n",
"\t<text x=\"795\" y=\"490\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">1,1</text>\n",
"</g>\n",
"\n",
"<!-- Association DEBLOQUER1 -->\n",
"<g>\n",
"\t<line x1=\"487\" y1=\"551\" x2=\"659\" y2=\"551\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"790\" y1=\"551\" x2=\"659\" y2=\"551\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M691 525 a14 14 90 0 1 14 14 V551 h-92 V539 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M705 551 v12 a14 14 90 0 1 -14 14 H627 a14 14 90 0 1 -14 -14 V551 H92\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"613\" y=\"525\" width=\"92\" height=\"52\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"613\" y1=\"551\" x2=\"705\" y2=\"551\" stroke=\"#85956b\" stroke-width=\"1\"/>\n",
"\t\t<text x=\"621\" y=\"543.6\" fill=\"#27360c\" font-family=\"Courier New\" font-size=\"14\">debloquer</text>\n",
"\t</g>\n",
"\t<text x=\"565\" y=\"567\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">0,N</text>\n",
"\t<text x=\"710\" y=\"567\" fill=\"#726f83\" font-family=\"Courier New\" font-size=\"12\">1,1</text>\n",
"</g>\n",
"\n",
"<!-- Entity ACTIVITE -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"199\" y=\"9\" width=\"172\" height=\"26\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"199\" y=\"35\" width=\"172\" height=\"80\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"199\" y=\"9\" width=\"172\" height=\"106\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"199\" y1=\"35\" x2=\"371\" y2=\"35\" stroke=\"#578dff\" stroke-width=\"1\"/>\n",
"\t</g>\n",
"\t<text x=\"251\" y=\"27.6\" fill=\"#131114\" font-family=\"Courier New\" font-size=\"14\">activite</text>\n",
"\t<text x=\"204\" y=\"53.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">id_activite</text>\n",
"\t<line x1=\"204\" y1=\"56\" x2=\"298\" y2=\"56\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"204\" y=\"71.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">consigne</text>\n",
"\t<text x=\"204\" y=\"89.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">durée</text>\n",
"\t<text x=\"204\" y=\"107.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">caracteristiques ia</text>\n",
"</g>\n",
"\n",
"<!-- Entity COMPTE -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"9\" y=\"139\" width=\"172\" height=\"26\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"9\" y=\"165\" width=\"172\" height=\"206\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"9\" y=\"139\" width=\"172\" height=\"232\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"9\" y1=\"165\" x2=\"181\" y2=\"165\" stroke=\"#578dff\" stroke-width=\"1\"/>\n",
"\t</g>\n",
"\t<text x=\"69\" y=\"157.6\" fill=\"#131114\" font-family=\"Courier New\" font-size=\"14\">compte</text>\n",
"\t<text x=\"14\" y=\"183.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">login</text>\n",
"\t<line x1=\"14\" y1=\"186\" x2=\"57\" y2=\"186\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"14\" y=\"201.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">email</text>\n",
"\t<text x=\"14\" y=\"219.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">password</text>\n",
"\t<text x=\"14\" y=\"237.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">etat</text>\n",
"\t<text x=\"14\" y=\"255.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">date_de_derniere_co</text>\n",
"\t<text x=\"14\" y=\"273.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">nom</text>\n",
"\t<text x=\"14\" y=\"291.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">prenom</text>\n",
"\t<text x=\"14\" y=\"309.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">mobile</text>\n",
"\t<text x=\"14\" y=\"327.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">date_de_creation</text>\n",
"\t<text x=\"14\" y=\"345.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">moyen_paiement</text>\n",
"\t<text x=\"14\" y=\"363.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">est_connecte</text>\n",
"</g>\n",
"\n",
"<!-- Entity APPRENANT -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"389\" y=\"166\" width=\"196\" height=\"26\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"389\" y=\"192\" width=\"196\" height=\"152\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"389\" y=\"166\" width=\"196\" height=\"178\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"389\" y1=\"192\" x2=\"585\" y2=\"192\" stroke=\"#578dff\" stroke-width=\"1\"/>\n",
"\t</g>\n",
"\t<text x=\"449\" y=\"184.6\" fill=\"#131114\" font-family=\"Courier New\" font-size=\"14\">apprenant</text>\n",
"\t<text x=\"394\" y=\"210.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">id_apprenant</text>\n",
"\t<line x1=\"394\" y1=\"213\" x2=\"496\" y2=\"213\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"394\" y=\"228.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">nom</text>\n",
"\t<text x=\"394\" y=\"246.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">prenom</text>\n",
"\t<text x=\"394\" y=\"264.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">date_de_naissance</text>\n",
"\t<text x=\"394\" y=\"282.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">classe</text>\n",
"\t<text x=\"394\" y=\"300.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">est_actif</text>\n",
"\t<text x=\"394\" y=\"318.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">peut_faire_test</text>\n",
"\t<text x=\"394\" y=\"336.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">reponses_questionnaire</text>\n",
"</g>\n",
"\n",
"<!-- Entity DEFI -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"607\" y=\"368\" width=\"104\" height=\"26\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"607\" y=\"394\" width=\"104\" height=\"80\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"607\" y=\"368\" width=\"104\" height=\"106\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"607\" y1=\"394\" x2=\"711\" y2=\"394\" stroke=\"#578dff\" stroke-width=\"1\"/>\n",
"\t</g>\n",
"\t<text x=\"642\" y=\"386.6\" fill=\"#131114\" font-family=\"Courier New\" font-size=\"14\">defi</text>\n",
"\t<text x=\"612\" y=\"412.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">id_defi</text>\n",
"\t<line x1=\"612\" y1=\"415\" x2=\"672\" y2=\"415\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"612\" y=\"430.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">nom</text>\n",
"\t<text x=\"612\" y=\"448.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">objectif</text>\n",
"\t<text x=\"612\" y=\"466.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">date_limite</text>\n",
"</g>\n",
"\n",
"<!-- Entity PALIER -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"414\" y=\"516\" width=\"146\" height=\"26\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"414\" y=\"542\" width=\"146\" height=\"44\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"414\" y=\"516\" width=\"146\" height=\"70\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"414\" y1=\"542\" x2=\"560\" y2=\"542\" stroke=\"#578dff\" stroke-width=\"1\"/>\n",
"\t</g>\n",
"\t<text x=\"461\" y=\"534.6\" fill=\"#131114\" font-family=\"Courier New\" font-size=\"14\">palier</text>\n",
"\t<text x=\"419\" y=\"560.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">id_palier</text>\n",
"\t<line x1=\"419\" y1=\"563\" x2=\"496\" y2=\"563\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"419\" y=\"578.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">nombre_de_points</text>\n",
"</g>\n",
"\n",
"<!-- Entity BADGE -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"738\" y=\"498\" width=\"104\" height=\"26\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"738\" y=\"524\" width=\"104\" height=\"80\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"738\" y=\"498\" width=\"104\" height=\"106\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"738\" y1=\"524\" x2=\"842\" y2=\"524\" stroke=\"#578dff\" stroke-width=\"1\"/>\n",
"\t</g>\n",
"\t<text x=\"769\" y=\"516.6\" fill=\"#131114\" font-family=\"Courier New\" font-size=\"14\">badge</text>\n",
"\t<text x=\"743\" y=\"542.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">id_badge</text>\n",
"\t<line x1=\"743\" y1=\"545\" x2=\"811\" y2=\"545\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"743\" y=\"560.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">nom</text>\n",
"\t<text x=\"743\" y=\"578.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">description</text>\n",
"\t<text x=\"743\" y=\"596.6\" fill=\"#3e3c42\" font-family=\"Courier New\" font-size=\"14\">image</text>\n",
"</g>\n",
"</svg>"
],
"text/plain": [
"<IPython.core.display.SVG object>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"generer_mcd(mcd.recompenses,seed=3)"
]
},
{
"cell_type": "code",
"execution_count": 8,
"metadata": {},
"outputs": [],
"source": [
"def generer_mmd(domaine:str):\n",
" \"\"\"\n",
" Genère un graphe Mermaid Crowfoot notation à partir d'un domaine exprimé en MCD mocodo.\n",
" \n",
" :param domaine: Le domaine exprimé en MCD mocodo\n",
" :type domaine: str\n",
" \"\"\"\n",
"\n",
" return mocodo(f\"\"\"\n",
" %mocodo --colors ocean -t crow:mmd\n",
" {domaine}\n",
" \"\"\")\n",
" "
]
},
{
"cell_type": "code",
"execution_count": 9,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"Mocodo Err.7 - Association « debloquer » dupliquée. Si vous souhaitez faire apparaître\n",
"deux associations sous le même nom, vous devez suffixer celui-ci avec un nombre."
]
}
],
"source": [
"generer_mmd(mcd.texte_complet)"
]
},
{
"cell_type": "code",
"execution_count": 10,
"metadata": {},
"outputs": [],
"source": [
"def generer_types(domaine:str):\n",
" \"\"\"\n",
" Infère les types des attribut d'un domaine exprimé en MCD mocodo.\n",
" \n",
" :param domaine: Le domaine exprimé en MCD mocodo\n",
" :type domaine: str\n",
" \"\"\"\n",
" return mocodo(f\"\"\"\n",
" %mocodo -t create:types=TODO --select rw\n",
" {domaine}\n",
" \"\"\")\n",
"\n",
"def generer_mld(domaine:str):\n",
" \"\"\"\n",
" Genère un MLD textuel à partir d'un domaine exprimé en MCD mocodo.\n",
" \n",
" :param domaine: Le domaine exprimé en MCD mocodo\n",
" :type domaine: str\n",
" \"\"\"\n",
" return mocodo(f\"\"\"\n",
" %mocodo -t mld\n",
" {domaine}\n",
" \"\"\")"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "venv",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.8"
}
},
"nbformat": 4,
"nbformat_minor": 2
}