🔧 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
1116 lines
66 KiB
Plaintext
1116 lines
66 KiB
Plaintext
{
|
|
"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": null,
|
|
"metadata": {},
|
|
"outputs": [
|
|
{
|
|
"ename": "",
|
|
"evalue": "",
|
|
"output_type": "error",
|
|
"traceback": [
|
|
"\u001b[1;31mRunning cells with 'Python 3.12.2' requires the ipykernel package.\n",
|
|
"\u001b[1;31mRun the following command to install 'ipykernel' into the Python environment. \n",
|
|
"\u001b[1;31mCommand: '/usr/local/bin/python3 -m pip install ipykernel -U --user --force-reinstall'"
|
|
]
|
|
}
|
|
],
|
|
"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 DEBLOQUER3 -->\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": [
|
|
{
|
|
"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",
|
|
" TYPE cle PK\n",
|
|
" TYPE date_utilisation\n",
|
|
" }\n",
|
|
" licence_medicale {\n",
|
|
" TYPE cle_medicale PK\n",
|
|
" TYPE date_utilisation\n",
|
|
" TYPE \n",
|
|
" }\n",
|
|
" promotion {\n",
|
|
" TYPE code PK\n",
|
|
" TYPE date_de_creation\n",
|
|
" TYPE duree_reduction\n",
|
|
" TYPE reduction\n",
|
|
" TYPE conditions\n",
|
|
" }\n",
|
|
" abonnement {\n",
|
|
" TYPE nom_abonnement PK\n",
|
|
" TYPE prix\n",
|
|
" TYPE date_de_debut\n",
|
|
" TYPE date_de_fin\n",
|
|
" }\n",
|
|
" droit {\n",
|
|
" TYPE id_droit PK\n",
|
|
" TYPE niveau_d_access\n",
|
|
" TYPE nb_profil_cree\n",
|
|
" TYPE nb_user_invite\n",
|
|
" TYPE peut_modifier_profil\n",
|
|
" TYPE peut_supprimer_profil\n",
|
|
" TYPE peut_faire_activite\n",
|
|
" TYPE peut_faire_test\n",
|
|
" TYPE peut_consulter_hist_activite\n",
|
|
" TYPE peut_consulter_hist_test\n",
|
|
" }\n",
|
|
" questionnaire {\n",
|
|
" TYPE id_questionnaire PK\n",
|
|
" TYPE forme_rappel\n",
|
|
" TYPE disponibilite\n",
|
|
" TYPE reponses_questionnaire\n",
|
|
" }\n",
|
|
" probleme_signale {\n",
|
|
" TYPE id_prob PK\n",
|
|
" TYPE version_de_l_application\n",
|
|
" TYPE support\n",
|
|
" TYPE date_du_signalement\n",
|
|
" TYPE commentaire\n",
|
|
" }\n",
|
|
" question_posee {\n",
|
|
" TYPE id_quest PK\n",
|
|
" TYPE question\n",
|
|
" }\n",
|
|
" anonyme {\n",
|
|
" TYPE id PK\n",
|
|
" TYPE email\n",
|
|
" }\n",
|
|
" inviter {\n",
|
|
" TYPE date_invitation PK\n",
|
|
" TYPE \n",
|
|
" }\n",
|
|
" creer {\n",
|
|
" TYPE date_creation PK\n",
|
|
" }\n",
|
|
" acheter {\n",
|
|
" TYPE date_d_achat PK\n",
|
|
" }\n",
|
|
" historique_activite {\n",
|
|
" TYPE id PK\n",
|
|
" TYPE duree\n",
|
|
" TYPE date_de_realisation\n",
|
|
" TYPE note_difficulte\n",
|
|
" TYPE note_plaisir\n",
|
|
" TYPE note_concentration\n",
|
|
" TYPE note_duree\n",
|
|
" TYPE activite_proposee_par_algo\n",
|
|
" TYPE points_accordes\n",
|
|
" }\n",
|
|
" debloquer {\n",
|
|
" TYPE date_debloquement PK\n",
|
|
" }\n",
|
|
" palier {\n",
|
|
" TYPE id_palier PK\n",
|
|
" TYPE nombre_de_points\n",
|
|
" }\n",
|
|
" defi {\n",
|
|
" TYPE id_defi PK\n",
|
|
" TYPE nom\n",
|
|
" TYPE objectif\n",
|
|
" TYPE date_limite\n",
|
|
" }\n",
|
|
" badge {\n",
|
|
" TYPE id_badge PK\n",
|
|
" TYPE nom\n",
|
|
" TYPE description\n",
|
|
" TYPE image\n",
|
|
" }\n",
|
|
" mot_cle {\n",
|
|
" TYPE mot PK\n",
|
|
" }\n",
|
|
" Ressource {\n",
|
|
" TYPE id_ress PK\n",
|
|
" TYPE titre\n",
|
|
" TYPE description\n",
|
|
" TYPE date_de_publication\n",
|
|
" TYPE type\n",
|
|
" TYPE niveau_d_access\n",
|
|
" }\n",
|
|
" video {\n",
|
|
" TYPE id_video PK\n",
|
|
" TYPE lien_vers_site_externe\n",
|
|
" }\n",
|
|
" article {\n",
|
|
" TYPE id_article PK\n",
|
|
" TYPE lien_vers_site_externe\n",
|
|
" }\n",
|
|
" test_de_positionnement {\n",
|
|
" TYPE id_testpos PK\n",
|
|
" TYPE consigne\n",
|
|
" TYPE caracteristiques_ia\n",
|
|
" }\n",
|
|
" historique_test_pos {\n",
|
|
" TYPE id_entree PK\n",
|
|
" TYPE duree\n",
|
|
" TYPE score\n",
|
|
" TYPE temps_de_reaction_moyen\n",
|
|
" TYPE date_de_realisation\n",
|
|
" TYPE font_utilisee\n",
|
|
" }\n",
|
|
" historique_test_medical {\n",
|
|
" TYPE id_entree_medical PK\n",
|
|
" TYPE date_realisation\n",
|
|
" TYPE Deficit_phonologique\n",
|
|
" TYPE Deficit_lexical\n",
|
|
" TYPE Deficit_articulatoire\n",
|
|
" TYPE Deficit_ortho_optique\n",
|
|
" TYPE Deficit_visio_attentionnel\n",
|
|
" TYPE Deficit_visio_spacial\n",
|
|
" TYPE Deficit_visio_motrice\n",
|
|
" TYPE Deficit_attention_concentration\n",
|
|
" }\n",
|
|
" apprenant {\n",
|
|
" TYPE id_apprenant PK\n",
|
|
" TYPE nom\n",
|
|
" TYPE prenom\n",
|
|
" TYPE date_de_naissance\n",
|
|
" TYPE classe\n",
|
|
" TYPE est_actif\n",
|
|
" TYPE peut_faire_test\n",
|
|
" TYPE reponses_questionnaire\n",
|
|
" }\n",
|
|
" compte {\n",
|
|
" TYPE login PK\n",
|
|
" TYPE email\n",
|
|
" TYPE password\n",
|
|
" TYPE etat\n",
|
|
" TYPE date_de_derniere_co\n",
|
|
" TYPE nom\n",
|
|
" TYPE prenom\n",
|
|
" TYPE mobile\n",
|
|
" TYPE date_de_creation\n",
|
|
" TYPE moyen_paiement\n",
|
|
" TYPE 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": 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.12.2"
|
|
}
|
|
},
|
|
"nbformat": 4,
|
|
"nbformat_minor": 2
|
|
}
|