MocodoScripts/mocodo_notebook.ipynb
Djalim Simaila 07a86e94dc 🔤 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-17 16:20:39 +02:00

1483 lines
96 KiB
Plaintext

{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Mocodo 4.2.6 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=\"1106\" height=\"828\" viewBox=\"0 0 1106 828\">\n",
"<rect x=\"0\" y=\"0\" width=\"1106\" height=\"828\" fill=\"none\" stroke=\"none\" stroke-width=\"0\"/>\n",
"\n",
"<!-- Association POSSEDER2 -->\n",
"<g>\n",
"\t<line x1=\"106\" y1=\"56\" x2=\"106\" y2=\"216\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"286\" y1=\"216\" x2=\"106\" y2=\"216\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"106\" y1=\"444\" x2=\"106\" y2=\"216\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M141 187 a14 14 90 0 1 14 14 V215 h-98 V201 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M155 215 v16 a14 14 90 0 1 -14 14 H71 a14 14 90 0 1 -14 -14 V215 H98\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"57\" y=\"187\" width=\"98\" height=\"58\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"57\" y1=\"215\" x2=\"155\" y2=\"215\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<text x=\"64\" y=\"208.3\" fill=\"#27360c\" font-family=\"Copperplate\" font-size=\"18\">posseder</text>\n",
"\t</g>\n",
"\t<text x=\"111\" y=\"119\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">0,1</text>\n",
"\t<text x=\"179\" y=\"232\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">0,N</text>\n",
"\t<text x=\"111\" y=\"338\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">0,N</text>\n",
"</g>\n",
"\n",
"<!-- Association CREER -->\n",
"<g>\n",
"\t<line x1=\"449\" y1=\"444\" x2=\"449\" y2=\"216\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"286\" y1=\"216\" x2=\"449\" y2=\"216\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M486 187 a14 14 90 0 1 14 14 V215 h-102 V201 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M500 215 v16 a14 14 90 0 1 -14 14 H412 a14 14 90 0 1 -14 -14 V215 H102\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"398\" y=\"187\" width=\"102\" height=\"58\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"398\" y1=\"215\" x2=\"500\" y2=\"215\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<text x=\"423\" y=\"208.3\" fill=\"#27360c\" font-family=\"Copperplate\" font-size=\"18\">creer</text>\n",
"\t\t<text x=\"405\" y=\"233.1\" fill=\"#607734\" font-family=\"Gill Sans\" font-size=\"15\">date_creation</text>\n",
"\t</g>\n",
"\t<text x=\"425\" y=\"321\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">0,N</text>\n",
"\t<text x=\"374\" y=\"232\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">0,N</text>\n",
"</g>\n",
"\n",
"<!-- Association POSER1 -->\n",
"<g>\n",
"\t<line x1=\"770\" y1=\"216\" x2=\"602\" y2=\"216\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"449\" y1=\"444\" x2=\"602\" y2=\"216\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M622 187 a14 14 90 0 1 14 14 V215 h-68 V201 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M636 215 v16 a14 14 90 0 1 -14 14 H582 a14 14 90 0 1 -14 -14 V215 H68\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"568\" y=\"187\" width=\"68\" height=\"58\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"568\" y1=\"215\" x2=\"636\" y2=\"215\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<text x=\"576\" y=\"208.3\" fill=\"#27360c\" font-family=\"Copperplate\" font-size=\"18\">poser</text>\n",
"\t</g>\n",
"\t<text x=\"668\" y=\"232\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">1,1</text>\n",
"\t<text x=\"530\" y=\"341.61\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">0,N</text>\n",
"</g>\n",
"\n",
"<!-- Association POSER -->\n",
"<g>\n",
"\t<line x1=\"770\" y1=\"216\" x2=\"938\" y2=\"216\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"1049\" y1=\"216\" x2=\"938\" y2=\"216\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M958 187 a14 14 90 0 1 14 14 V215 h-68 V201 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M972 215 v16 a14 14 90 0 1 -14 14 H918 a14 14 90 0 1 -14 -14 V215 H68\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"904\" y=\"187\" width=\"68\" height=\"58\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"904\" y1=\"215\" x2=\"972\" y2=\"215\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<text x=\"912\" y=\"208.3\" fill=\"#27360c\" font-family=\"Copperplate\" font-size=\"18\">poser</text>\n",
"\t</g>\n",
"\t<text x=\"854\" y=\"232\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">1,1</text>\n",
"\t<text x=\"977\" y=\"208\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">0,N</text>\n",
"</g>\n",
"\n",
"<!-- Association INVITER -->\n",
"<g>\n",
"\t<path d=\"M449 444 C382.67 476 328.33 476 286 444\" fill=\"none\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<path d=\"M449 444 C382.67 412 328.33 412 286 444\" fill=\"none\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"286\" y1=\"216\" x2=\"286\" y2=\"444\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"106\" y1=\"444\" x2=\"286\" y2=\"444\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"286\" y1=\"612\" x2=\"286\" y2=\"444\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M326 407 a14 14 90 0 1 14 14 V435 h-108 V421 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M340 435 v32 a14 14 90 0 1 -14 14 H246 a14 14 90 0 1 -14 -14 V435 H108\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"232\" y=\"407\" width=\"108\" height=\"74\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"232\" y1=\"435\" x2=\"340\" y2=\"435\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<text x=\"254\" y=\"428.3\" fill=\"#27360c\" font-family=\"Copperplate\" font-size=\"18\">inviter</text>\n",
"\t\t<text x=\"239\" y=\"453.1\" fill=\"#607734\" font-family=\"Gill Sans\" font-size=\"15\">date_invitation</text>\n",
"\t</g>\n",
"\t<text x=\"349\" y=\"459\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">0,N</text>\n",
"\t<text x=\"349\" y=\"437\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">0,N</text>\n",
"\t<text x=\"291\" y=\"321\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">0,N</text>\n",
"\t<text x=\"208\" y=\"460\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">0,N</text>\n",
"\t<text x=\"291\" y=\"566\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">0,N</text>\n",
"</g>\n",
"\n",
"<!-- Association SIGNALER1 -->\n",
"<g>\n",
"\t<line x1=\"770\" y1=\"444\" x2=\"602\" y2=\"444\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"449\" y1=\"444\" x2=\"602\" y2=\"444\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M636 415 a14 14 90 0 1 14 14 V443 h-96 V429 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M650 443 v16 a14 14 90 0 1 -14 14 H568 a14 14 90 0 1 -14 -14 V443 H96\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"554\" y=\"415\" width=\"96\" height=\"58\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"554\" y1=\"443\" x2=\"650\" y2=\"443\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<text x=\"562\" y=\"436.3\" fill=\"#27360c\" font-family=\"Copperplate\" font-size=\"18\">signaler</text>\n",
"\t</g>\n",
"\t<text x=\"656\" y=\"460\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">1,1</text>\n",
"\t<text x=\"530\" y=\"460\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">0,N</text>\n",
"</g>\n",
"\n",
"<!-- Association SIGNALER -->\n",
"<g>\n",
"\t<line x1=\"770\" y1=\"444\" x2=\"938\" y2=\"444\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"1049\" y1=\"216\" x2=\"938\" y2=\"444\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M972 415 a14 14 90 0 1 14 14 V443 h-96 V429 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M986 443 v16 a14 14 90 0 1 -14 14 H904 a14 14 90 0 1 -14 -14 V443 H96\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"890\" y=\"415\" width=\"96\" height=\"58\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"890\" y1=\"443\" x2=\"986\" y2=\"443\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<text x=\"898\" y=\"436.3\" fill=\"#27360c\" font-family=\"Copperplate\" font-size=\"18\">signaler</text>\n",
"\t</g>\n",
"\t<text x=\"866\" y=\"460\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">1,1</text>\n",
"\t<text x=\"1031.69\" y=\"270\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">0,N</text>\n",
"</g>\n",
"\n",
"<!-- Association ASSIGNER -->\n",
"<g>\n",
"\t<line x1=\"106\" y1=\"755\" x2=\"106\" y2=\"612\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"106\" y1=\"444\" x2=\"106\" y2=\"612\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M140 583 a14 14 90 0 1 14 14 V611 h-96 V597 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M154 611 v16 a14 14 90 0 1 -14 14 H72 a14 14 90 0 1 -14 -14 V611 H96\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"58\" y=\"583\" width=\"96\" height=\"58\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"58\" y1=\"611\" x2=\"154\" y2=\"611\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<text x=\"66\" y=\"604.3\" fill=\"#27360c\" font-family=\"Copperplate\" font-size=\"18\">assigner</text>\n",
"\t</g>\n",
"\t<text x=\"111\" y=\"700\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">1,1</text>\n",
"\t<text x=\"111\" y=\"558\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">0,N</text>\n",
"</g>\n",
"\n",
"<!-- Association UTILISER -->\n",
"<g>\n",
"\t<line x1=\"449\" y1=\"444\" x2=\"449\" y2=\"612\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"286\" y1=\"612\" x2=\"449\" y2=\"612\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M490 583 a14 14 90 0 1 14 14 V611 h-110 V597 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M504 611 v16 a14 14 90 0 1 -14 14 H408 a14 14 90 0 1 -14 -14 V611 H110\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"394\" y=\"583\" width=\"110\" height=\"58\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"394\" y1=\"611\" x2=\"504\" y2=\"611\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<text x=\"412\" y=\"604.3\" fill=\"#27360c\" font-family=\"Copperplate\" font-size=\"18\">utiliser</text>\n",
"\t\t<text x=\"401\" y=\"629.1\" fill=\"#607734\" font-family=\"Gill Sans\" font-size=\"15\">date_utilisation</text>\n",
"\t</g>\n",
"\t<text x=\"426\" y=\"575\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">0,1</text>\n",
"\t<text x=\"347\" y=\"604\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">0,N</text>\n",
"</g>\n",
"\n",
"<!-- Association REPONDRE -->\n",
"<g>\n",
"\t<line x1=\"449\" y1=\"444\" x2=\"602\" y2=\"612\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"770\" y1=\"612\" x2=\"602\" y2=\"612\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M639 583 a14 14 90 0 1 14 14 V611 h-102 V597 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M653 611 v16 a14 14 90 0 1 -14 14 H565 a14 14 90 0 1 -14 -14 V611 H102\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"551\" y=\"583\" width=\"102\" height=\"58\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"551\" y1=\"611\" x2=\"653\" y2=\"611\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<text x=\"559\" y=\"604.3\" fill=\"#27360c\" font-family=\"Copperplate\" font-size=\"18\">repondre</text>\n",
"\t</g>\n",
"\t<text x=\"530\" y=\"526.06\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">0,1</text>\n",
"\t<text x=\"663\" y=\"628\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">0,N</text>\n",
"</g>\n",
"\n",
"<!-- Association ACHETER -->\n",
"<g>\n",
"\t<line x1=\"449\" y1=\"444\" x2=\"602\" y2=\"755\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"770\" y1=\"755\" x2=\"602\" y2=\"755\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"286\" y1=\"612\" x2=\"602\" y2=\"755\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"106\" y1=\"755\" x2=\"602\" y2=\"755\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M638 718 a14 14 90 0 1 14 14 V746 h-100 V732 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M652 746 v32 a14 14 90 0 1 -14 14 H566 a14 14 90 0 1 -14 -14 V746 H100\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"552\" y=\"718\" width=\"100\" height=\"74\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"552\" y1=\"746\" x2=\"652\" y2=\"746\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<text x=\"566\" y=\"739.3\" fill=\"#27360c\" font-family=\"Copperplate\" font-size=\"18\">acheter</text>\n",
"\t\t<text x=\"559\" y=\"764.1\" fill=\"#607734\" font-family=\"Gill Sans\" font-size=\"15\">date_d_achat</text>\n",
"\t\t<text x=\"559\" y=\"781.1\" fill=\"#607734\" font-family=\"Gill Sans\" font-size=\"15\">date_de_fin</text>\n",
"\t</g>\n",
"\t<text x=\"485.42\" y=\"575\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">0,N</text>\n",
"\t<text x=\"682\" y=\"771\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">0,N</text>\n",
"\t<text x=\"347\" y=\"632.89\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">0,N</text>\n",
"\t<text x=\"176\" y=\"771\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">0,N</text>\n",
"</g>\n",
"\n",
"<!-- Entity LICENCE_MEDICALE -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"19\" y=\"9\" width=\"174\" height=\"30\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"19\" y=\"39\" width=\"174\" height=\"64\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"19\" y=\"9\" width=\"174\" height=\"94\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"19\" y1=\"39\" x2=\"193\" y2=\"39\" stroke=\"#578dff\" stroke-width=\"1.5\"/>\n",
"\t</g>\n",
"\t<text x=\"27\" y=\"30.3\" fill=\"#131114\" font-family=\"Copperplate\" font-size=\"18\">licence_medicale</text>\n",
"\t<text x=\"27\" y=\"56.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">cle_medicale</text>\n",
"\t<line x1=\"27\" y1=\"59\" x2=\"108\" y2=\"59\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"27\" y=\"73.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">date_utilisation</text>\n",
"</g>\n",
"\n",
"<!-- Entity APPRENANT -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"203\" y=\"127\" width=\"166\" height=\"30\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"203\" y=\"157\" width=\"166\" height=\"148\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"203\" y=\"127\" width=\"166\" height=\"178\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"203\" y1=\"157\" x2=\"369\" y2=\"157\" stroke=\"#578dff\" stroke-width=\"1.5\"/>\n",
"\t</g>\n",
"\t<text x=\"239\" y=\"148.3\" fill=\"#131114\" font-family=\"Copperplate\" font-size=\"18\">apprenant</text>\n",
"\t<text x=\"211\" y=\"174\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">id_apprenant</text>\n",
"\t<line x1=\"211\" y1=\"177\" x2=\"294\" y2=\"177\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"211\" y=\"191.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">nom</text>\n",
"\t<text x=\"211\" y=\"208.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">prenom</text>\n",
"\t<text x=\"211\" y=\"225.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">date_de_naissance</text>\n",
"\t<text x=\"211\" y=\"242.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">classe</text>\n",
"\t<text x=\"211\" y=\"259\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">est_actif</text>\n",
"\t<text x=\"211\" y=\"276\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">peut_faire_test</text>\n",
"\t<text x=\"211\" y=\"293\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">reponses_questionnaire</text>\n",
"</g>\n",
"\n",
"<!-- Entity QUESTION_POSEE -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"691\" y=\"178\" width=\"158\" height=\"30\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"691\" y=\"208\" width=\"158\" height=\"46\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"691\" y=\"178\" width=\"158\" height=\"76\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"691\" y1=\"208\" x2=\"849\" y2=\"208\" stroke=\"#578dff\" stroke-width=\"1.5\"/>\n",
"\t</g>\n",
"\t<text x=\"699\" y=\"199.3\" fill=\"#131114\" font-family=\"Copperplate\" font-size=\"18\">question_posee</text>\n",
"\t<text x=\"699\" y=\"225.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">id_quest</text>\n",
"\t<line x1=\"699\" y1=\"228\" x2=\"753\" y2=\"228\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"699\" y=\"242.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">question</text>\n",
"</g>\n",
"\n",
"<!-- Entity ANONYME -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"1001\" y=\"178\" width=\"96\" height=\"30\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"1001\" y=\"208\" width=\"96\" height=\"46\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"1001\" y=\"178\" width=\"96\" height=\"76\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"1001\" y1=\"208\" x2=\"1097\" y2=\"208\" stroke=\"#578dff\" stroke-width=\"1.5\"/>\n",
"\t</g>\n",
"\t<text x=\"1010\" y=\"199.3\" fill=\"#131114\" font-family=\"Copperplate\" font-size=\"18\">anonyme</text>\n",
"\t<text x=\"1009\" y=\"225.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">id</text>\n",
"\t<line x1=\"1009\" y1=\"228\" x2=\"1021\" y2=\"228\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"1009\" y=\"242.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">email</text>\n",
"</g>\n",
"\n",
"<!-- Entity DROIT -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"9\" y=\"346\" width=\"194\" height=\"30\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"9\" y=\"376\" width=\"194\" height=\"166\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"9\" y=\"346\" width=\"194\" height=\"196\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"9\" y1=\"376\" x2=\"203\" y2=\"376\" stroke=\"#578dff\" stroke-width=\"1.5\"/>\n",
"\t</g>\n",
"\t<text x=\"82\" y=\"367.3\" fill=\"#131114\" font-family=\"Copperplate\" font-size=\"18\">droit</text>\n",
"\t<text x=\"17\" y=\"393\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">id_droit</text>\n",
"\t<line x1=\"17\" y1=\"396\" x2=\"68\" y2=\"396\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"17\" y=\"410\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">nb_profil_cree</text>\n",
"\t<text x=\"17\" y=\"427.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">nb_user_invite</text>\n",
"\t<text x=\"17\" y=\"444.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">peut_modifier_profil</text>\n",
"\t<text x=\"17\" y=\"461.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">peut_supprimer_profil</text>\n",
"\t<text x=\"17\" y=\"478\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">peut_faire_activite</text>\n",
"\t<text x=\"17\" y=\"495\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">peut_faire_test</text>\n",
"\t<text x=\"17\" y=\"512\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">peut_consulter_hist_activite</text>\n",
"\t<text x=\"17\" y=\"529\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">peut_consulter_hist_test</text>\n",
"</g>\n",
"\n",
"<!-- Entity COMPTE -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"373\" y=\"329\" width=\"152\" height=\"30\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"373\" y=\"359\" width=\"152\" height=\"200\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"373\" y=\"329\" width=\"152\" height=\"230\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"373\" y1=\"359\" x2=\"525\" y2=\"359\" stroke=\"#578dff\" stroke-width=\"1.5\"/>\n",
"\t</g>\n",
"\t<text x=\"417\" y=\"350.3\" fill=\"#131114\" font-family=\"Copperplate\" font-size=\"18\">compte</text>\n",
"\t<text x=\"381\" y=\"376\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">login</text>\n",
"\t<line x1=\"381\" y1=\"379\" x2=\"411\" y2=\"379\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"381\" y=\"393\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">email</text>\n",
"\t<text x=\"381\" y=\"410\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">password</text>\n",
"\t<text x=\"381\" y=\"427.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">etat</text>\n",
"\t<text x=\"381\" y=\"444.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">date_de_derniere_co</text>\n",
"\t<text x=\"381\" y=\"461.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">nom</text>\n",
"\t<text x=\"381\" y=\"478\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">prenom</text>\n",
"\t<text x=\"381\" y=\"495\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">mobile</text>\n",
"\t<text x=\"381\" y=\"512\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">date_de_creation</text>\n",
"\t<text x=\"381\" y=\"529\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">moyen_paiement</text>\n",
"\t<text x=\"381\" y=\"546\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">est_connecte</text>\n",
"</g>\n",
"\n",
"<!-- Entity PROBLEME_SIGNALE -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"679\" y=\"380\" width=\"182\" height=\"30\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"679\" y=\"410\" width=\"182\" height=\"98\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"679\" y=\"380\" width=\"182\" height=\"128\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"679\" y1=\"410\" x2=\"861\" y2=\"410\" stroke=\"#578dff\" stroke-width=\"1.5\"/>\n",
"\t</g>\n",
"\t<text x=\"688\" y=\"401.3\" fill=\"#131114\" font-family=\"Copperplate\" font-size=\"18\">probleme_signale</text>\n",
"\t<text x=\"687\" y=\"427.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">id_prob</text>\n",
"\t<line x1=\"687\" y1=\"430\" x2=\"737\" y2=\"430\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"687\" y=\"444.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">version_de_l_application</text>\n",
"\t<text x=\"687\" y=\"461.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">support</text>\n",
"\t<text x=\"687\" y=\"478\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">date du_signalement</text>\n",
"\t<text x=\"687\" y=\"495\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">commentaire</text>\n",
"</g>\n",
"\n",
"<!-- Entity LICENCE -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"230\" y=\"574\" width=\"112\" height=\"30\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"230\" y=\"604\" width=\"112\" height=\"46\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"230\" y=\"574\" width=\"112\" height=\"76\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"230\" y1=\"604\" x2=\"342\" y2=\"604\" stroke=\"#578dff\" stroke-width=\"1.5\"/>\n",
"\t</g>\n",
"\t<text x=\"252\" y=\"595.3\" fill=\"#131114\" font-family=\"Copperplate\" font-size=\"18\">licence</text>\n",
"\t<text x=\"238\" y=\"621.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">cle</text>\n",
"\t<line x1=\"238\" y1=\"624\" x2=\"256\" y2=\"624\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"238\" y=\"638.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">date_utilisation</text>\n",
"</g>\n",
"\n",
"<!-- Entity QUESTIONNAIRE -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"687\" y=\"557\" width=\"166\" height=\"30\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"687\" y=\"587\" width=\"166\" height=\"80\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"687\" y=\"557\" width=\"166\" height=\"110\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"687\" y1=\"587\" x2=\"853\" y2=\"587\" stroke=\"#578dff\" stroke-width=\"1.5\"/>\n",
"\t</g>\n",
"\t<text x=\"705\" y=\"578.3\" fill=\"#131114\" font-family=\"Copperplate\" font-size=\"18\">questionnaire</text>\n",
"\t<text x=\"695\" y=\"604.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">id_questionnaire</text>\n",
"\t<line x1=\"695\" y1=\"607\" x2=\"800\" y2=\"607\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"695\" y=\"621.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">forme_rappel</text>\n",
"\t<text x=\"695\" y=\"638.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">disponibilite</text>\n",
"\t<text x=\"695\" y=\"655\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">reponses_questionnaire</text>\n",
"</g>\n",
"\n",
"<!-- Entity ABONNEMENT -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"41\" y=\"708\" width=\"130\" height=\"30\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"41\" y=\"738\" width=\"130\" height=\"64\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"41\" y=\"708\" width=\"130\" height=\"94\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"41\" y1=\"738\" x2=\"171\" y2=\"738\" stroke=\"#578dff\" stroke-width=\"1.5\"/>\n",
"\t</g>\n",
"\t<text x=\"51\" y=\"729.3\" fill=\"#131114\" font-family=\"Copperplate\" font-size=\"18\">abonnement</text>\n",
"\t<text x=\"49\" y=\"755.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">nom_abonnement</text>\n",
"\t<line x1=\"49\" y1=\"758\" x2=\"163\" y2=\"758\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"49\" y=\"772.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">prix</text>\n",
"</g>\n",
"\n",
"<!-- Entity PROMOTION -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"706\" y=\"691\" width=\"128\" height=\"30\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"706\" y=\"721\" width=\"128\" height=\"98\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"706\" y=\"691\" width=\"128\" height=\"128\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"706\" y1=\"721\" x2=\"834\" y2=\"721\" stroke=\"#578dff\" stroke-width=\"1.5\"/>\n",
"\t</g>\n",
"\t<text x=\"723\" y=\"712.3\" fill=\"#131114\" font-family=\"Copperplate\" font-size=\"18\">promotion</text>\n",
"\t<text x=\"714\" y=\"738.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">code</text>\n",
"\t<line x1=\"714\" y1=\"741\" x2=\"745\" y2=\"741\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"714\" y=\"755.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">date_de_creation</text>\n",
"\t<text x=\"714\" y=\"772.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">duree_reduction</text>\n",
"\t<text x=\"714\" y=\"789\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">reduction</text>\n",
"\t<text x=\"714\" y=\"806\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">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=\"741\" height=\"652\" viewBox=\"0 0 741 652\">\n",
"<rect x=\"0\" y=\"0\" width=\"741\" height=\"652\" fill=\"none\" stroke=\"none\" stroke-width=\"0\"/>\n",
"\n",
"<!-- Association DECRIRE -->\n",
"<g>\n",
"\t<line x1=\"103\" y1=\"124\" x2=\"268\" y2=\"124\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"268\" y1=\"352\" x2=\"268\" y2=\"124\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M296 95 a14 14 90 0 1 14 14 V123 h-84 V109 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M310 123 v16 a14 14 90 0 1 -14 14 H240 a14 14 90 0 1 -14 -14 V123 H84\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"226\" y=\"95\" width=\"84\" height=\"58\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"226\" y1=\"123\" x2=\"310\" y2=\"123\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<text x=\"233\" y=\"116.3\" fill=\"#27360c\" font-family=\"Copperplate\" font-size=\"18\">decrire</text>\n",
"\t</g>\n",
"\t<text x=\"202\" y=\"140\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">0,N</text>\n",
"\t<text x=\"273\" y=\"289\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">1,1</text>\n",
"</g>\n",
"\n",
"<!-- Association REALISER -->\n",
"<g>\n",
"\t<line x1=\"450\" y1=\"124\" x2=\"450\" y2=\"352\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"268\" y1=\"352\" x2=\"450\" y2=\"352\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"635\" y1=\"352\" x2=\"450\" y2=\"352\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"450\" y1=\"554\" x2=\"450\" y2=\"352\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M495 323 a14 14 90 0 1 14 14 V351 h-118 V337 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M509 351 v16 a14 14 90 0 1 -14 14 H405 a14 14 90 0 1 -14 -14 V351 H118\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"391\" y=\"323\" width=\"118\" height=\"58\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"391\" y1=\"351\" x2=\"509\" y2=\"351\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<text x=\"411\" y=\"344.3\" fill=\"#27360c\" font-family=\"Copperplate\" font-size=\"18\">realiser</text>\n",
"\t\t<text x=\"398\" y=\"369.1\" fill=\"#607734\" font-family=\"Gill Sans\" font-size=\"15\">points_accordes</text>\n",
"\t</g>\n",
"\t<text x=\"455\" y=\"255\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">0,N</text>\n",
"\t<text x=\"337\" y=\"368\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">0,N</text>\n",
"\t<text x=\"515\" y=\"368\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">1,1</text>\n",
"\t<text x=\"455\" y=\"457\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">0,N</text>\n",
"</g>\n",
"\n",
"<!-- Association DEBLOQUER3 -->\n",
"<g>\n",
"\t<line x1=\"268\" y1=\"352\" x2=\"268\" y2=\"554\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"450\" y1=\"554\" x2=\"268\" y2=\"554\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M324 525 a14 14 90 0 1 14 14 V553 h-140 V539 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M338 553 v16 a14 14 90 0 1 -14 14 H212 a14 14 90 0 1 -14 -14 V553 H140\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"198\" y=\"525\" width=\"140\" height=\"58\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"198\" y1=\"553\" x2=\"338\" y2=\"553\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<text x=\"219\" y=\"546.3\" fill=\"#27360c\" font-family=\"Copperplate\" font-size=\"18\">debloquer</text>\n",
"\t\t<text x=\"205\" y=\"571.1\" fill=\"#607734\" font-family=\"Gill Sans\" font-size=\"15\">date_debloquement</text>\n",
"\t</g>\n",
"\t<text x=\"273\" y=\"423\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">0,N</text>\n",
"\t<text x=\"343\" y=\"570\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">0,N</text>\n",
"</g>\n",
"\n",
"<!-- Association POSSEDER -->\n",
"<g>\n",
"\t<line x1=\"635\" y1=\"352\" x2=\"635\" y2=\"554\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"450\" y1=\"554\" x2=\"635\" y2=\"554\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M670 525 a14 14 90 0 1 14 14 V553 h-98 V539 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M684 553 v16 a14 14 90 0 1 -14 14 H600 a14 14 90 0 1 -14 -14 V553 H98\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"586\" y=\"525\" width=\"98\" height=\"58\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"586\" y1=\"553\" x2=\"684\" y2=\"553\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<text x=\"593\" y=\"546.3\" fill=\"#27360c\" font-family=\"Copperplate\" font-size=\"18\">posseder</text>\n",
"\t</g>\n",
"\t<text x=\"640\" y=\"457\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">1,1</text>\n",
"\t<text x=\"538\" y=\"570\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">0,N</text>\n",
"</g>\n",
"\n",
"<!-- Entity FICHE_PEDAGOGIQUE -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"9\" y=\"86\" width=\"188\" height=\"30\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"9\" y=\"116\" width=\"188\" height=\"46\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"9\" y=\"86\" width=\"188\" height=\"76\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"9\" y1=\"116\" x2=\"197\" y2=\"116\" stroke=\"#578dff\" stroke-width=\"1.5\"/>\n",
"\t</g>\n",
"\t<text x=\"18\" y=\"107.3\" fill=\"#131114\" font-family=\"Copperplate\" font-size=\"18\">fiche_pedagogique</text>\n",
"\t<text x=\"17\" y=\"133.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">id_fiche</text>\n",
"\t<line x1=\"17\" y1=\"136\" x2=\"66\" y2=\"136\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"17\" y=\"150.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">contenu</text>\n",
"</g>\n",
"\n",
"<!-- Entity COMPTE -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"374\" y=\"9\" width=\"152\" height=\"30\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"374\" y=\"39\" width=\"152\" height=\"200\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"374\" y=\"9\" width=\"152\" height=\"230\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"374\" y1=\"39\" x2=\"526\" y2=\"39\" stroke=\"#578dff\" stroke-width=\"1.5\"/>\n",
"\t</g>\n",
"\t<text x=\"418\" y=\"30.3\" fill=\"#131114\" font-family=\"Copperplate\" font-size=\"18\">compte</text>\n",
"\t<text x=\"382\" y=\"56\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">login</text>\n",
"\t<line x1=\"382\" y1=\"59\" x2=\"412\" y2=\"59\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"382\" y=\"73\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">email</text>\n",
"\t<text x=\"382\" y=\"90\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">password</text>\n",
"\t<text x=\"382\" y=\"107.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">etat</text>\n",
"\t<text x=\"382\" y=\"124.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">date_de_derniere_co</text>\n",
"\t<text x=\"382\" y=\"141.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">nom</text>\n",
"\t<text x=\"382\" y=\"158\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">prenom</text>\n",
"\t<text x=\"382\" y=\"175\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">mobile</text>\n",
"\t<text x=\"382\" y=\"192\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">date_de_creation</text>\n",
"\t<text x=\"382\" y=\"209\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">moyen_paiement</text>\n",
"\t<text x=\"382\" y=\"226\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">est_connecte</text>\n",
"</g>\n",
"\n",
"<!-- Entity ACTIVITE -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"204\" y=\"297\" width=\"128\" height=\"30\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"204\" y=\"327\" width=\"128\" height=\"80\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"204\" y=\"297\" width=\"128\" height=\"110\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"204\" y1=\"327\" x2=\"332\" y2=\"327\" stroke=\"#578dff\" stroke-width=\"1.5\"/>\n",
"\t</g>\n",
"\t<text x=\"233\" y=\"318.3\" fill=\"#131114\" font-family=\"Copperplate\" font-size=\"18\">activite</text>\n",
"\t<text x=\"212\" y=\"344.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">id_activite</text>\n",
"\t<line x1=\"212\" y1=\"347\" x2=\"277\" y2=\"347\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"212\" y=\"361.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">consigne</text>\n",
"\t<text x=\"212\" y=\"378.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">durée</text>\n",
"\t<text x=\"212\" y=\"395\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">caracteristiques ia</text>\n",
"</g>\n",
"\n",
"<!-- Entity HISTORIQUE_ACTIVITE -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"538\" y=\"263\" width=\"194\" height=\"30\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"538\" y=\"293\" width=\"194\" height=\"148\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"538\" y=\"263\" width=\"194\" height=\"178\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"538\" y1=\"293\" x2=\"732\" y2=\"293\" stroke=\"#578dff\" stroke-width=\"1.5\"/>\n",
"\t</g>\n",
"\t<text x=\"546\" y=\"284.3\" fill=\"#131114\" font-family=\"Copperplate\" font-size=\"18\">historique_activite</text>\n",
"\t<text x=\"546\" y=\"310\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">id</text>\n",
"\t<line x1=\"546\" y1=\"313\" x2=\"558\" y2=\"313\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"546\" y=\"327.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">duree</text>\n",
"\t<text x=\"546\" y=\"344.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">date_de_realisation</text>\n",
"\t<text x=\"546\" y=\"361.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">note_difficulte</text>\n",
"\t<text x=\"546\" y=\"378.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">note_plaisir</text>\n",
"\t<text x=\"546\" y=\"395\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">note_concentration</text>\n",
"\t<text x=\"546\" y=\"412\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">note_duree</text>\n",
"\t<text x=\"546\" y=\"429\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">activite_proposee_par_algo</text>\n",
"</g>\n",
"\n",
"<!-- Entity APPRENANT -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"367\" y=\"465\" width=\"166\" height=\"30\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"367\" y=\"495\" width=\"166\" height=\"148\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"367\" y=\"465\" width=\"166\" height=\"178\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"367\" y1=\"495\" x2=\"533\" y2=\"495\" stroke=\"#578dff\" stroke-width=\"1.5\"/>\n",
"\t</g>\n",
"\t<text x=\"403\" y=\"486.3\" fill=\"#131114\" font-family=\"Copperplate\" font-size=\"18\">apprenant</text>\n",
"\t<text x=\"375\" y=\"512\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">id_apprenant</text>\n",
"\t<line x1=\"375\" y1=\"515\" x2=\"458\" y2=\"515\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"375\" y=\"529.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">nom</text>\n",
"\t<text x=\"375\" y=\"546.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">prenom</text>\n",
"\t<text x=\"375\" y=\"563.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">date_de_naissance</text>\n",
"\t<text x=\"375\" y=\"580.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">classe</text>\n",
"\t<text x=\"375\" y=\"597\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">est_actif</text>\n",
"\t<text x=\"375\" y=\"614\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">peut_faire_test</text>\n",
"\t<text x=\"375\" y=\"631\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">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=\"554\" height=\"346\" viewBox=\"0 0 554 346\">\n",
"<rect x=\"0\" y=\"0\" width=\"554\" height=\"346\" fill=\"none\" stroke=\"none\" stroke-width=\"0\"/>\n",
"\n",
"<!-- Association ETRE3 -->\n",
"<g>\n",
"\t<line x1=\"226\" y1=\"173\" x2=\"226\" y2=\"47\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"377\" y1=\"47\" x2=\"226\" y2=\"47\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M240 18 a14 14 90 0 1 14 14 V46 h-56 V32 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M254 46 v16 a14 14 90 0 1 -14 14 H212 a14 14 90 0 1 -14 -14 V46 H56\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"198\" y=\"18\" width=\"56\" height=\"58\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"198\" y1=\"46\" x2=\"254\" y2=\"46\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<text x=\"206\" y=\"39.3\" fill=\"#27360c\" font-family=\"Copperplate\" font-size=\"18\">etre</text>\n",
"\t</g>\n",
"\t<text x=\"231\" y=\"101\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">0,N</text>\n",
"\t<text x=\"260\" y=\"63\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">1,1</text>\n",
"</g>\n",
"\n",
"<!-- Association ETRE2 -->\n",
"<g>\n",
"\t<line x1=\"226\" y1=\"173\" x2=\"89\" y2=\"173\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"89\" y1=\"299\" x2=\"89\" y2=\"173\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M103 144 a14 14 90 0 1 14 14 V172 h-56 V158 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M117 172 v16 a14 14 90 0 1 -14 14 H75 a14 14 90 0 1 -14 -14 V172 H56\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"61\" y=\"144\" width=\"56\" height=\"58\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"61\" y1=\"172\" x2=\"117\" y2=\"172\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<text x=\"69\" y=\"165.3\" fill=\"#27360c\" font-family=\"Copperplate\" font-size=\"18\">etre</text>\n",
"\t</g>\n",
"\t<text x=\"130\" y=\"189\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">0,N</text>\n",
"\t<text x=\"94\" y=\"253\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">1,1</text>\n",
"</g>\n",
"\n",
"<!-- Association CONTENIR -->\n",
"<g>\n",
"\t<line x1=\"500\" y1=\"173\" x2=\"377\" y2=\"173\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"226\" y1=\"173\" x2=\"377\" y2=\"173\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M411 144 a14 14 90 0 1 14 14 V172 h-96 V158 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M425 172 v16 a14 14 90 0 1 -14 14 H343 a14 14 90 0 1 -14 -14 V172 H96\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"329\" y=\"144\" width=\"96\" height=\"58\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"329\" y1=\"172\" x2=\"425\" y2=\"172\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<text x=\"336\" y=\"165.3\" fill=\"#27360c\" font-family=\"Copperplate\" font-size=\"18\">contenir</text>\n",
"\t</g>\n",
"\t<text x=\"431\" y=\"189\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">0,N</text>\n",
"\t<text x=\"303\" y=\"189\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">0,N</text>\n",
"</g>\n",
"\n",
"<!-- Association ETRE1 -->\n",
"<g>\n",
"\t<line x1=\"226\" y1=\"173\" x2=\"226\" y2=\"299\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"377\" y1=\"299\" x2=\"226\" y2=\"299\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M240 270 a14 14 90 0 1 14 14 V298 h-56 V284 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M254 298 v16 a14 14 90 0 1 -14 14 H212 a14 14 90 0 1 -14 -14 V298 H56\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"198\" y=\"270\" width=\"56\" height=\"58\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"198\" y1=\"298\" x2=\"254\" y2=\"298\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<text x=\"206\" y=\"291.3\" fill=\"#27360c\" font-family=\"Copperplate\" font-size=\"18\">etre</text>\n",
"\t</g>\n",
"\t<text x=\"231\" y=\"253\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">0,N</text>\n",
"\t<text x=\"274\" y=\"315\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">1,1</text>\n",
"</g>\n",
"\n",
"<!-- Entity FICHE_PEDAGOGIQUE -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"283\" y=\"9\" width=\"188\" height=\"30\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"283\" y=\"39\" width=\"188\" height=\"46\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"283\" y=\"9\" width=\"188\" height=\"76\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"283\" y1=\"39\" x2=\"471\" y2=\"39\" stroke=\"#578dff\" stroke-width=\"1.5\"/>\n",
"\t</g>\n",
"\t<text x=\"292\" y=\"30.3\" fill=\"#131114\" font-family=\"Copperplate\" font-size=\"18\">fiche_pedagogique</text>\n",
"\t<text x=\"291\" y=\"56.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">id_fiche</text>\n",
"\t<line x1=\"291\" y1=\"59\" x2=\"340\" y2=\"59\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"291\" y=\"73.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">contenu</text>\n",
"</g>\n",
"\n",
"<!-- Entity RESSOURCE -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"154\" y=\"109\" width=\"144\" height=\"30\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"154\" y=\"139\" width=\"144\" height=\"98\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"154\" y=\"109\" width=\"144\" height=\"128\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"154\" y1=\"139\" x2=\"298\" y2=\"139\" stroke=\"#578dff\" stroke-width=\"1.5\"/>\n",
"\t</g>\n",
"\t<text x=\"177\" y=\"130.3\" fill=\"#131114\" font-family=\"Copperplate\" font-size=\"18\">Ressource</text>\n",
"\t<text x=\"162\" y=\"156.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">id_ress</text>\n",
"\t<line x1=\"162\" y1=\"159\" x2=\"208\" y2=\"159\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"162\" y=\"173.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">titre</text>\n",
"\t<text x=\"162\" y=\"190.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">description</text>\n",
"\t<text x=\"162\" y=\"207\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">date_de_publication</text>\n",
"\t<text x=\"162\" y=\"224\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">type</text>\n",
"</g>\n",
"\n",
"<!-- Entity MOT_CLE -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"455\" y=\"143\" width=\"90\" height=\"30\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"455\" y=\"173\" width=\"90\" height=\"30\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"455\" y=\"143\" width=\"90\" height=\"60\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"455\" y1=\"173\" x2=\"545\" y2=\"173\" stroke=\"#578dff\" stroke-width=\"1.5\"/>\n",
"\t</g>\n",
"\t<text x=\"464\" y=\"164.3\" fill=\"#131114\" font-family=\"Copperplate\" font-size=\"18\">mot_cle</text>\n",
"\t<text x=\"463\" y=\"190.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">mot</text>\n",
"\t<line x1=\"463\" y1=\"193\" x2=\"489\" y2=\"193\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"</g>\n",
"\n",
"<!-- Entity ARTICLE -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"9\" y=\"261\" width=\"160\" height=\"30\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"9\" y=\"291\" width=\"160\" height=\"46\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"9\" y=\"261\" width=\"160\" height=\"76\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"9\" y1=\"291\" x2=\"169\" y2=\"291\" stroke=\"#578dff\" stroke-width=\"1.5\"/>\n",
"\t</g>\n",
"\t<text x=\"56\" y=\"282.3\" fill=\"#131114\" font-family=\"Copperplate\" font-size=\"18\">article</text>\n",
"\t<text x=\"17\" y=\"308.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">id_article</text>\n",
"\t<line x1=\"17\" y1=\"311\" x2=\"76\" y2=\"311\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"17\" y=\"325.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">lien_vers_site_externe</text>\n",
"</g>\n",
"\n",
"<!-- Entity VIDEO -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"297\" y=\"261\" width=\"160\" height=\"30\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"297\" y=\"291\" width=\"160\" height=\"46\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"297\" y=\"261\" width=\"160\" height=\"76\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"297\" y1=\"291\" x2=\"457\" y2=\"291\" stroke=\"#578dff\" stroke-width=\"1.5\"/>\n",
"\t</g>\n",
"\t<text x=\"353\" y=\"282.3\" fill=\"#131114\" font-family=\"Copperplate\" font-size=\"18\">video</text>\n",
"\t<text x=\"305\" y=\"308.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">id_video</text>\n",
"\t<line x1=\"305\" y1=\"311\" x2=\"359\" y2=\"311\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"305\" y=\"325.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">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=\"762\" height=\"626\" viewBox=\"0 0 762 626\">\n",
"<rect x=\"0\" y=\"0\" width=\"762\" height=\"626\" fill=\"none\" stroke=\"none\" stroke-width=\"0\"/>\n",
"\n",
"<!-- Association POSSEDER1 -->\n",
"<g>\n",
"\t<line x1=\"525\" y1=\"81\" x2=\"329\" y2=\"81\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"329\" y1=\"292\" x2=\"329\" y2=\"81\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M364 52 a14 14 90 0 1 14 14 V80 h-98 V66 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M378 80 v16 a14 14 90 0 1 -14 14 H294 a14 14 90 0 1 -14 -14 V80 H98\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"280\" y=\"52\" width=\"98\" height=\"58\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"280\" y1=\"80\" x2=\"378\" y2=\"80\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<text x=\"287\" y=\"73.3\" fill=\"#27360c\" font-family=\"Copperplate\" font-size=\"18\">posseder</text>\n",
"\t</g>\n",
"\t<text x=\"401\" y=\"97\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">1,1</text>\n",
"\t<text x=\"334\" y=\"195\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">0,N</text>\n",
"</g>\n",
"\n",
"<!-- Association REALISER2 -->\n",
"<g>\n",
"\t<line x1=\"677\" y1=\"292\" x2=\"525\" y2=\"292\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"525\" y1=\"511\" x2=\"525\" y2=\"292\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"525\" y1=\"81\" x2=\"525\" y2=\"292\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"329\" y1=\"292\" x2=\"525\" y2=\"292\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M558 263 a14 14 90 0 1 14 14 V291 h-94 V277 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M572 291 v16 a14 14 90 0 1 -14 14 H492 a14 14 90 0 1 -14 -14 V291 H94\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"478\" y=\"263\" width=\"94\" height=\"58\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"478\" y1=\"291\" x2=\"572\" y2=\"291\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<text x=\"486\" y=\"284.3\" fill=\"#27360c\" font-family=\"Copperplate\" font-size=\"18\">realiser</text>\n",
"\t</g>\n",
"\t<text x=\"577\" y=\"308\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">0,N</text>\n",
"\t<text x=\"530\" y=\"456\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">0,N</text>\n",
"\t<text x=\"530\" y=\"169\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">1,1</text>\n",
"\t<text x=\"417\" y=\"308\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">0,N</text>\n",
"</g>\n",
"\n",
"<!-- Association POSSEDER3 -->\n",
"<g>\n",
"\t<line x1=\"130\" y1=\"511\" x2=\"329\" y2=\"511\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"329\" y1=\"292\" x2=\"329\" y2=\"511\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M364 482 a14 14 90 0 1 14 14 V510 h-98 V496 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M378 510 v16 a14 14 90 0 1 -14 14 H294 a14 14 90 0 1 -14 -14 V510 H98\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"280\" y=\"482\" width=\"98\" height=\"58\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"280\" y1=\"510\" x2=\"378\" y2=\"510\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<text x=\"287\" y=\"503.3\" fill=\"#27360c\" font-family=\"Copperplate\" font-size=\"18\">posseder</text>\n",
"\t</g>\n",
"\t<text x=\"256\" y=\"527\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">1,1</text>\n",
"\t<text x=\"334\" y=\"397\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">0,N</text>\n",
"</g>\n",
"\n",
"<!-- Entity HISTORIQUE_TEST_POS -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"424\" y=\"9\" width=\"202\" height=\"30\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"424\" y=\"39\" width=\"202\" height=\"114\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"424\" y=\"9\" width=\"202\" height=\"144\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"424\" y1=\"39\" x2=\"626\" y2=\"39\" stroke=\"#578dff\" stroke-width=\"1.5\"/>\n",
"\t</g>\n",
"\t<text x=\"432\" y=\"30.3\" fill=\"#131114\" font-family=\"Copperplate\" font-size=\"18\">historique_test_pos</text>\n",
"\t<text x=\"432\" y=\"56.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">id_entree</text>\n",
"\t<line x1=\"432\" y1=\"59\" x2=\"493\" y2=\"59\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"432\" y=\"73.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">duree</text>\n",
"\t<text x=\"432\" y=\"90.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">score</text>\n",
"\t<text x=\"432\" y=\"107.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">temps_de_reaction_moyen</text>\n",
"\t<text x=\"432\" y=\"124\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">date_de_realisation</text>\n",
"\t<text x=\"432\" y=\"141\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">font_utilisée</text>\n",
"</g>\n",
"\n",
"<!-- Entity APPRENANT -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"246\" y=\"203\" width=\"166\" height=\"30\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"246\" y=\"233\" width=\"166\" height=\"148\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"246\" y=\"203\" width=\"166\" height=\"178\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"246\" y1=\"233\" x2=\"412\" y2=\"233\" stroke=\"#578dff\" stroke-width=\"1.5\"/>\n",
"\t</g>\n",
"\t<text x=\"282\" y=\"224.3\" fill=\"#131114\" font-family=\"Copperplate\" font-size=\"18\">apprenant</text>\n",
"\t<text x=\"254\" y=\"250\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">id_apprenant</text>\n",
"\t<line x1=\"254\" y1=\"253\" x2=\"337\" y2=\"253\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"254\" y=\"267.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">nom</text>\n",
"\t<text x=\"254\" y=\"284.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">prenom</text>\n",
"\t<text x=\"254\" y=\"301.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">date_de_naissance</text>\n",
"\t<text x=\"254\" y=\"318.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">classe</text>\n",
"\t<text x=\"254\" y=\"335\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">est_actif</text>\n",
"\t<text x=\"254\" y=\"352\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">peut_faire_test</text>\n",
"\t<text x=\"254\" y=\"369\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">reponses_questionnaire</text>\n",
"</g>\n",
"\n",
"<!-- Entity COMPTE -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"601\" y=\"177\" width=\"152\" height=\"30\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"601\" y=\"207\" width=\"152\" height=\"200\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"601\" y=\"177\" width=\"152\" height=\"230\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"601\" y1=\"207\" x2=\"753\" y2=\"207\" stroke=\"#578dff\" stroke-width=\"1.5\"/>\n",
"\t</g>\n",
"\t<text x=\"645\" y=\"198.3\" fill=\"#131114\" font-family=\"Copperplate\" font-size=\"18\">compte</text>\n",
"\t<text x=\"609\" y=\"224\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">login</text>\n",
"\t<line x1=\"609\" y1=\"227\" x2=\"639\" y2=\"227\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"609\" y=\"241\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">email</text>\n",
"\t<text x=\"609\" y=\"258\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">password</text>\n",
"\t<text x=\"609\" y=\"275.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">etat</text>\n",
"\t<text x=\"609\" y=\"292.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">date_de_derniere_co</text>\n",
"\t<text x=\"609\" y=\"309.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">nom</text>\n",
"\t<text x=\"609\" y=\"326\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">prenom</text>\n",
"\t<text x=\"609\" y=\"343\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">mobile</text>\n",
"\t<text x=\"609\" y=\"360\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">date_de_creation</text>\n",
"\t<text x=\"609\" y=\"377\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">moyen_paiement</text>\n",
"\t<text x=\"609\" y=\"394\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">est_connecte</text>\n",
"</g>\n",
"\n",
"<!-- Entity HISTORIQUE_TEST_MEDICAL -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"9\" y=\"405\" width=\"242\" height=\"30\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"9\" y=\"435\" width=\"242\" height=\"182\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"9\" y=\"405\" width=\"242\" height=\"212\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"9\" y1=\"435\" x2=\"251\" y2=\"435\" stroke=\"#578dff\" stroke-width=\"1.5\"/>\n",
"\t</g>\n",
"\t<text x=\"18\" y=\"426.3\" fill=\"#131114\" font-family=\"Copperplate\" font-size=\"18\">historique_test_medical</text>\n",
"\t<text x=\"17\" y=\"452\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">id_entree_medical</text>\n",
"\t<line x1=\"17\" y1=\"455\" x2=\"134\" y2=\"455\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"17\" y=\"469\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">date_realisation</text>\n",
"\t<text x=\"17\" y=\"486.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">Deficit_phonologique</text>\n",
"\t<text x=\"17\" y=\"503.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">Deficit_lexical</text>\n",
"\t<text x=\"17\" y=\"520.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">Deficit_articulatoire</text>\n",
"\t<text x=\"17\" y=\"537.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">Deficit_ortho_optique</text>\n",
"\t<text x=\"17\" y=\"554\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">Deficit_visio_attentionnel</text>\n",
"\t<text x=\"17\" y=\"571\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">Deficit_visio_spacial</text>\n",
"\t<text x=\"17\" y=\"588\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">Deficit_visio motrice</text>\n",
"\t<text x=\"17\" y=\"605\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">Deficit_attention/concentration</text>\n",
"</g>\n",
"\n",
"<!-- Entity TEST_DE_POSITIONNEMENT -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"407\" y=\"464\" width=\"236\" height=\"30\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"407\" y=\"494\" width=\"236\" height=\"64\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"407\" y=\"464\" width=\"236\" height=\"94\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"407\" y1=\"494\" x2=\"643\" y2=\"494\" stroke=\"#578dff\" stroke-width=\"1.5\"/>\n",
"\t</g>\n",
"\t<text x=\"416\" y=\"485.3\" fill=\"#131114\" font-family=\"Copperplate\" font-size=\"18\">test_de_positionnement</text>\n",
"\t<text x=\"415\" y=\"511.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">id_testpos</text>\n",
"\t<line x1=\"415\" y1=\"514\" x2=\"481\" y2=\"514\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"415\" y=\"528.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">consigne</text>\n",
"\t<text x=\"415\" y=\"545\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">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=\"772\" height=\"572\" viewBox=\"0 0 772 572\">\n",
"<rect x=\"0\" y=\"0\" width=\"772\" height=\"572\" fill=\"none\" stroke=\"none\" stroke-width=\"0\"/>\n",
"\n",
"<!-- Association REALISER -->\n",
"<g>\n",
"\t<line x1=\"85\" y1=\"258\" x2=\"249\" y2=\"258\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"249\" y1=\"64\" x2=\"249\" y2=\"258\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"420\" y1=\"258\" x2=\"249\" y2=\"258\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M294 229 a14 14 90 0 1 14 14 V257 h-118 V243 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M308 257 v16 a14 14 90 0 1 -14 14 H204 a14 14 90 0 1 -14 -14 V257 H118\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"190\" y=\"229\" width=\"118\" height=\"58\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"190\" y1=\"257\" x2=\"308\" y2=\"257\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<text x=\"210\" y=\"250.3\" fill=\"#27360c\" font-family=\"Copperplate\" font-size=\"18\">realiser</text>\n",
"\t\t<text x=\"197\" y=\"275.1\" fill=\"#607734\" font-family=\"Gill Sans\" font-size=\"15\">points_accordes</text>\n",
"\t</g>\n",
"\t<text x=\"166\" y=\"274\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">0,N</text>\n",
"\t<text x=\"254\" y=\"135\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">0,N</text>\n",
"\t<text x=\"313\" y=\"274\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">0,N</text>\n",
"</g>\n",
"\n",
"<!-- Association REALISER3 -->\n",
"<g>\n",
"\t<line x1=\"420\" y1=\"258\" x2=\"579\" y2=\"258\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"579\" y1=\"400\" x2=\"579\" y2=\"258\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M612 229 a14 14 90 0 1 14 14 V257 h-94 V243 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M626 257 v16 a14 14 90 0 1 -14 14 H546 a14 14 90 0 1 -14 -14 V257 H94\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"532\" y=\"229\" width=\"94\" height=\"58\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"532\" y1=\"257\" x2=\"626\" y2=\"257\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<text x=\"540\" y=\"250.3\" fill=\"#27360c\" font-family=\"Copperplate\" font-size=\"18\">realiser</text>\n",
"\t</g>\n",
"\t<text x=\"508\" y=\"274\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">0,N</text>\n",
"\t<text x=\"584\" y=\"337\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">0,N</text>\n",
"</g>\n",
"\n",
"<!-- Association ATTEINDRE -->\n",
"<g>\n",
"\t<line x1=\"420\" y1=\"258\" x2=\"420\" y2=\"400\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"420\" y1=\"508\" x2=\"420\" y2=\"400\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M458 371 a14 14 90 0 1 14 14 V399 h-104 V385 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M472 399 v16 a14 14 90 0 1 -14 14 H382 a14 14 90 0 1 -14 -14 V399 H104\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"368\" y=\"371\" width=\"104\" height=\"58\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"368\" y1=\"399\" x2=\"472\" y2=\"399\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<text x=\"376\" y=\"392.3\" fill=\"#27360c\" font-family=\"Copperplate\" font-size=\"18\">atteindre</text>\n",
"\t</g>\n",
"\t<text x=\"425\" y=\"363\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">0,N</text>\n",
"\t<text x=\"425\" y=\"462\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">0,N</text>\n",
"</g>\n",
"\n",
"<!-- Association DEBLOQUER -->\n",
"<g>\n",
"\t<line x1=\"579\" y1=\"400\" x2=\"707\" y2=\"400\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"707\" y1=\"508\" x2=\"707\" y2=\"400\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M749 371 a14 14 90 0 1 14 14 V399 h-112 V385 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M763 399 v16 a14 14 90 0 1 -14 14 H665 a14 14 90 0 1 -14 -14 V399 H112\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"651\" y=\"371\" width=\"112\" height=\"58\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"651\" y1=\"399\" x2=\"763\" y2=\"399\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<text x=\"658\" y=\"392.3\" fill=\"#27360c\" font-family=\"Copperplate\" font-size=\"18\">debloquer</text>\n",
"\t</g>\n",
"\t<text x=\"627\" y=\"416\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">0,N</text>\n",
"\t<text x=\"712\" y=\"445\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">1,1</text>\n",
"</g>\n",
"\n",
"<!-- Association DEBLOQUER1 -->\n",
"<g>\n",
"\t<line x1=\"420\" y1=\"508\" x2=\"579\" y2=\"508\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<line x1=\"707\" y1=\"508\" x2=\"579\" y2=\"508\" stroke=\"#726f83\" stroke-width=\"1\"/>\n",
"\t<g>\n",
"\t\t<path d=\"M621 479 a14 14 90 0 1 14 14 V507 h-112 V493 a14 14 90 0 1 14 -14\" fill=\"#b2bba4\" stroke=\"#b2bba4\" stroke-width=\"0\"/>\n",
"\t\t<path d=\"M635 507 v16 a14 14 90 0 1 -14 14 H537 a14 14 90 0 1 -14 -14 V507 H112\" fill=\"#ccd6ba\" stroke=\"#ccd6ba\" stroke-width=\"0\"/>\n",
"\t\t<rect x=\"523\" y=\"479\" width=\"112\" height=\"58\" fill=\"none\" rx=\"14\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<line x1=\"523\" y1=\"507\" x2=\"635\" y2=\"507\" stroke=\"#85956b\" stroke-width=\"1.5\"/>\n",
"\t\t<text x=\"530\" y=\"500.3\" fill=\"#27360c\" font-family=\"Copperplate\" font-size=\"18\">debloquer</text>\n",
"\t</g>\n",
"\t<text x=\"493\" y=\"524\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">0,N</text>\n",
"\t<text x=\"641\" y=\"524\" fill=\"#726f83\" font-family=\"Futura\" font-size=\"11\">1,1</text>\n",
"</g>\n",
"\n",
"<!-- Entity ACTIVITE -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"185\" y=\"9\" width=\"128\" height=\"30\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"185\" y=\"39\" width=\"128\" height=\"80\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"185\" y=\"9\" width=\"128\" height=\"110\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"185\" y1=\"39\" x2=\"313\" y2=\"39\" stroke=\"#578dff\" stroke-width=\"1.5\"/>\n",
"\t</g>\n",
"\t<text x=\"214\" y=\"30.3\" fill=\"#131114\" font-family=\"Copperplate\" font-size=\"18\">activite</text>\n",
"\t<text x=\"193\" y=\"56.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">id_activite</text>\n",
"\t<line x1=\"193\" y1=\"59\" x2=\"258\" y2=\"59\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"193\" y=\"73.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">consigne</text>\n",
"\t<text x=\"193\" y=\"90.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">durée</text>\n",
"\t<text x=\"193\" y=\"107\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">caracteristiques ia</text>\n",
"</g>\n",
"\n",
"<!-- Entity COMPTE -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"9\" y=\"143\" width=\"152\" height=\"30\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"9\" y=\"173\" width=\"152\" height=\"200\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"9\" y=\"143\" width=\"152\" height=\"230\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"9\" y1=\"173\" x2=\"161\" y2=\"173\" stroke=\"#578dff\" stroke-width=\"1.5\"/>\n",
"\t</g>\n",
"\t<text x=\"53\" y=\"164.3\" fill=\"#131114\" font-family=\"Copperplate\" font-size=\"18\">compte</text>\n",
"\t<text x=\"17\" y=\"190\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">login</text>\n",
"\t<line x1=\"17\" y1=\"193\" x2=\"47\" y2=\"193\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"17\" y=\"207\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">email</text>\n",
"\t<text x=\"17\" y=\"224\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">password</text>\n",
"\t<text x=\"17\" y=\"241.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">etat</text>\n",
"\t<text x=\"17\" y=\"258.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">date_de_derniere_co</text>\n",
"\t<text x=\"17\" y=\"275.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">nom</text>\n",
"\t<text x=\"17\" y=\"292\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">prenom</text>\n",
"\t<text x=\"17\" y=\"309\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">mobile</text>\n",
"\t<text x=\"17\" y=\"326\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">date_de_creation</text>\n",
"\t<text x=\"17\" y=\"343\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">moyen_paiement</text>\n",
"\t<text x=\"17\" y=\"360\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">est_connecte</text>\n",
"</g>\n",
"\n",
"<!-- Entity APPRENANT -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"337\" y=\"169\" width=\"166\" height=\"30\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"337\" y=\"199\" width=\"166\" height=\"148\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"337\" y=\"169\" width=\"166\" height=\"178\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"337\" y1=\"199\" x2=\"503\" y2=\"199\" stroke=\"#578dff\" stroke-width=\"1.5\"/>\n",
"\t</g>\n",
"\t<text x=\"373\" y=\"190.3\" fill=\"#131114\" font-family=\"Copperplate\" font-size=\"18\">apprenant</text>\n",
"\t<text x=\"345\" y=\"216\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">id_apprenant</text>\n",
"\t<line x1=\"345\" y1=\"219\" x2=\"428\" y2=\"219\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"345\" y=\"233.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">nom</text>\n",
"\t<text x=\"345\" y=\"250.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">prenom</text>\n",
"\t<text x=\"345\" y=\"267.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">date_de_naissance</text>\n",
"\t<text x=\"345\" y=\"284.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">classe</text>\n",
"\t<text x=\"345\" y=\"301\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">est_actif</text>\n",
"\t<text x=\"345\" y=\"318\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">peut_faire_test</text>\n",
"\t<text x=\"345\" y=\"335\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">reponses_questionnaire</text>\n",
"</g>\n",
"\n",
"<!-- Entity DEFI -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"536\" y=\"345\" width=\"86\" height=\"30\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"536\" y=\"375\" width=\"86\" height=\"80\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"536\" y=\"345\" width=\"86\" height=\"110\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"536\" y1=\"375\" x2=\"622\" y2=\"375\" stroke=\"#578dff\" stroke-width=\"1.5\"/>\n",
"\t</g>\n",
"\t<text x=\"560\" y=\"366.3\" fill=\"#131114\" font-family=\"Copperplate\" font-size=\"18\">defi</text>\n",
"\t<text x=\"544\" y=\"392.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">id_defi</text>\n",
"\t<line x1=\"544\" y1=\"395\" x2=\"587\" y2=\"395\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"544\" y=\"409.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">nom</text>\n",
"\t<text x=\"544\" y=\"426.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">objectif</text>\n",
"\t<text x=\"544\" y=\"443\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">date_limite</text>\n",
"</g>\n",
"\n",
"<!-- Entity PALIER -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"352\" y=\"470\" width=\"136\" height=\"30\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"352\" y=\"500\" width=\"136\" height=\"46\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"352\" y=\"470\" width=\"136\" height=\"76\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"352\" y1=\"500\" x2=\"488\" y2=\"500\" stroke=\"#578dff\" stroke-width=\"1.5\"/>\n",
"\t</g>\n",
"\t<text x=\"391\" y=\"491.3\" fill=\"#131114\" font-family=\"Copperplate\" font-size=\"18\">palier</text>\n",
"\t<text x=\"360\" y=\"517.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">id_palier</text>\n",
"\t<line x1=\"360\" y1=\"520\" x2=\"415\" y2=\"520\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"360\" y=\"534.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">nombre_de_points</text>\n",
"</g>\n",
"\n",
"<!-- Entity BADGE -->\n",
"<g>\n",
"\t<g>\n",
"\t\t<rect x=\"664\" y=\"453\" width=\"86\" height=\"30\" fill=\"#97b8ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"664\" y=\"483\" width=\"86\" height=\"80\" fill=\"#c0d4ff\" stroke=\"none\" stroke-width=\"0\" opacity=\"1\"/>\n",
"\t\t<rect x=\"664\" y=\"453\" width=\"86\" height=\"110\" fill=\"none\" stroke=\"#578dff\" stroke-width=\"1.5\" opacity=\"1\"/>\n",
"\t\t<line x1=\"664\" y1=\"483\" x2=\"750\" y2=\"483\" stroke=\"#578dff\" stroke-width=\"1.5\"/>\n",
"\t</g>\n",
"\t<text x=\"680\" y=\"474.3\" fill=\"#131114\" font-family=\"Copperplate\" font-size=\"18\">badge</text>\n",
"\t<text x=\"672\" y=\"500.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">id_badge</text>\n",
"\t<line x1=\"672\" y1=\"503\" x2=\"728\" y2=\"503\" stroke=\"#3e3c42\" stroke-width=\"1\"/>\n",
"\t<text x=\"672\" y=\"517.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">nom</text>\n",
"\t<text x=\"672\" y=\"534.1\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">description</text>\n",
"\t<text x=\"672\" y=\"551\" fill=\"#3e3c42\" font-family=\"Gill Sans\" font-size=\"15\">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": [
{
"data": {
"text/markdown": [
"\n",
"<div style=\"position: relative; height: 3ex; background-color: transparent\">\n",
"<hr style=\"margin: 1ex 0 0 0; border-top: 1px solid #BBB\">\n",
"<span style=\"position: absolute; right: 0; color: #BBB\">\n",
"<tt>\n",
"mocodo_notebook/sandbox_erd_crow.mmd\n",
"</tt>\n",
"</span>\n",
"</div>\n"
],
"text/plain": [
"<IPython.core.display.Markdown object>"
]
},
"metadata": {},
"output_type": "display_data"
},
{
"data": {
"text/markdown": [
"```mmd\n",
"erDiagram\n",
" licence {\n",
" TEXT cle PK\n",
" DATE date_utilisation\n",
" }\n",
" licence_medicale {\n",
" TEXT cle_medicale PK\n",
" DATE date_utilisation\n",
" TYPE \n",
" }\n",
" promotion {\n",
" TEXT code PK\n",
" DATE date_de_creation\n",
" NUMBER duree_reduction\n",
" NUMBER reduction\n",
" TEXT conditions\n",
" }\n",
" abonnement {\n",
" TEXT nom_abonnement PK\n",
" NUMBER prix\n",
" TYPE \n",
" }\n",
" droit {\n",
" TEXT id_droit PK\n",
" NUMBER nb_profil_cree\n",
" NUMBER nb_user_invite\n",
" BOOL peut_modifier_profil\n",
" BOOL peut_supprimer_profil\n",
" BOOL peut_faire_activite\n",
" BOOL peut_faire_test\n",
" BOOL peut_consulter_hist_activite\n",
" BOOL peut_consulter_hist_test\n",
" }\n",
" questionnaire {\n",
" TEXT id_questionnaire PK\n",
" TEXT forme_rappel\n",
" TODO disponibilite\n",
" TODO reponses_questionnaire\n",
" }\n",
" probleme_signale {\n",
" TEXT id_prob PK\n",
" TEXT version_de_l_application\n",
" TEXT support\n",
" DATE date_du_signalement\n",
" TODO commentaire\n",
" }\n",
" question_posee {\n",
" TEXT id_quest PK\n",
" TEXT question\n",
" }\n",
" anonyme {\n",
" TEXT id PK\n",
" TEXT email\n",
" }\n",
" inviter {\n",
" DATE date_invitation PK\n",
" TYPE \n",
" }\n",
" creer {\n",
" DATE date_creation PK\n",
" }\n",
" acheter {\n",
" DATE date_d_achat PK\n",
" DATE date_de_fin\n",
" }\n",
" historique_activite {\n",
" TEXT id PK\n",
" NUMBER duree\n",
" DATE date_de_realisation\n",
" NUMBER note_difficulte\n",
" NUMBER note_plaisir\n",
" NUMBER note_concentration\n",
" NUMBER note_duree\n",
" BOOL activite_proposee_par_algo\n",
" NUMBER points_accordes\n",
" }\n",
" debloquer {\n",
" DATE date_debloquement PK\n",
" }\n",
" palier {\n",
" TEXT id_palier PK\n",
" TEXT nombre_de_points\n",
" }\n",
" defi {\n",
" TEXT id_defi PK\n",
" TEXT nom\n",
" TEXT objectif\n",
" DATE date_limite\n",
" }\n",
" badge {\n",
" NUMBER id_badge PK\n",
" TEXT nom\n",
" TEXT description\n",
" BLOB image\n",
" }\n",
" mot_cle {\n",
" TEXT mot PK\n",
" }\n",
" Ressource {\n",
" TEXT id_ress PK\n",
" TEXT titre\n",
" TEXT description\n",
" DATE date_de_publication\n",
" TEXT type\n",
" }\n",
" video {\n",
" TEXT id_video PK\n",
" TEXT lien_vers_site_externe\n",
" }\n",
" article {\n",
" TEXT id_article PK\n",
" TEXT lien_vers_site_externe\n",
" }\n",
" test_de_positionnement {\n",
" TEXT id_testpos PK\n",
" TEXT consigne\n",
" TEST caracteristiques_ia\n",
" }\n",
" historique_test_pos {\n",
" TEST id_entree PK\n",
" NUMBER duree\n",
" NUMBER score\n",
" NUMBER temps_de_reaction_moyen\n",
" DATE date_de_realisation\n",
" TEXT font_utilisee\n",
" }\n",
" historique_test_medical {\n",
" TEXT id_entree_medical PK\n",
" DATE date_realisation\n",
" BOOL Deficit_phonologique\n",
" BOOL Deficit_lexical\n",
" BOOL Deficit_articulatoire\n",
" BOOL Deficit_ortho_optique\n",
" TEXT Deficit_visio_attentionnel\n",
" BOOL Deficit_visio_spacial\n",
" BOOL Deficit_visio_motrice\n",
" BOOL Deficit_attention_concentration\n",
" }\n",
" apprenant {\n",
" TEXT id_apprenant PK\n",
" TEXT nom\n",
" TEXT prenom\n",
" DATE date_de_naissance\n",
" TEXT classe\n",
" BOOL est_actif\n",
" BOOL peut_faire_test\n",
" TODO reponses_questionnaire\n",
" }\n",
" compte {\n",
" TEXT login PK\n",
" TEXT email\n",
" TEXT password\n",
" TEXT etat\n",
" DATE date_de_derniere_co\n",
" TEXT nom\n",
" TEXT prenom\n",
" NUMBER mobile\n",
" DATE date_de_creation\n",
" TODO moyen_paiement\n",
" BOOL est_connecte\n",
" }\n",
" fiche_pedagogique {\n",
" TYPE id_fiche PK\n",
" TYPE contenu\n",
" }\n",
" activite {\n",
" TYPE id_activite PK\n",
" TYPE consigne\n",
" TYPE duree\n",
" TYPE caracteristiques_ia\n",
" }\n",
" licence_medicale }o--o| apprenant: posseder2\n",
" licence_medicale }o--o| droit: posseder2\n",
" inviter }o..|| compte: DF\n",
" inviter }o..|| compte: DF\n",
" inviter }o..|| apprenant: DF\n",
" inviter }o..|| droit: DF\n",
" inviter }o..|| licence: DF\n",
" compte }o--o| licence: utiliser\n",
" compte }o--o| questionnaire: repondre\n",
" creer }o..|| compte: DF\n",
" creer }o..|| apprenant: DF\n",
" acheter }o..|| compte: DF\n",
" acheter }o..|| promotion: DF\n",
" acheter }o..|| licence: DF\n",
" acheter }o..|| abonnement: DF\n",
" abonnement }o--|| droit: assigner\n",
" question_posee }o--|| anonyme: poser\n",
" question_posee }o--|| compte: poser\n",
" probleme_signale }o--|| anonyme: signaler\n",
" probleme_signale }o--|| compte: signaler\n",
" historique_activite }o--|| compte: realiser\n",
" historique_activite }o--|| activite: realiser\n",
" historique_activite }o--|| apprenant: realiser\n",
" debloquer }o..|| activite: DF\n",
" debloquer }o..|| apprenant: DF\n",
" historique_activite }o--|| apprenant: posseder\n",
" fiche_pedagogique ||--o{ activite: decrire\n",
" apprenant }o--o{ palier: atteindre\n",
" apprenant }o--o{ defi: realiser\n",
" defi ||--o{ badge: debloquer\n",
" palier ||--o{ badge: debloquer\n",
" mot_cle }o--o{ Ressource: contenir\n",
" Ressource ||--o{ video: etre\n",
" Ressource ||--o{ article: etre\n",
" Ressource ||--o{ fiche_pedagogique: etre\n",
" historique_test_pos }o--|| compte: realiser2\n",
" historique_test_pos }o--|| test_de_positionnement: realiser2\n",
" historique_test_pos }o--|| apprenant: realiser2\n",
" historique_test_pos }o--|| apprenant: posseder\n",
" historique_test_medical }o--|| apprenant: posseder\n",
"\n",
"```"
],
"text/plain": [
"<IPython.core.display.Markdown object>"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"generer_mmd(mcd.texte_complet)"
]
},
{
"cell_type": "code",
"execution_count": null,
"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.12.2"
}
},
"nbformat": 4,
"nbformat_minor": 2
}