Database 2, année 2024
A Python implementation of the lecture definitions
You will find here a Python file which is incomplete. It contains several TODOs. The goal of this lab is to fill all the TODO by following carefully the definition of the lecture notes.
You need to know about classes in Python for that lab. Please read the official tutorial.
You can answer in a notebook or a Python script as you prefer.
- What does the 
vclass represents? How does it works? - In a notebook, produce a small database example.
 - Write an interesting CQ.
 - Fill the TODO in the 
Factclass that check that aFactis indeed aFactand not anAtom. 
Lab
- python code, with first corrections
 - python code, with second corrections
 - python code, with third corrections
 - python code, with fourth corrections
 
Compiled the: ven. 05 sept. 2025 16:27:32 CEST