How it is kept
- Every table is exported as sorted text files under version control, so every change to a law is a line in the history.
- Every row records the page of the Centre it was read from, so each text can be traced to its source.
The database
The library behind this site is a relational PostgreSQL database. This page describes its tables.
Download it free. The whole database is public on Hugging Face: taktekhq/lebanese-legislation. One Parquet file per table, including the graph of how texts amend and cite each other. Load it with pandas, DuckDB or the datasets library. The tables below are the ones behind every page of this site, with their live row counts. Questions: [email protected].
agreementamendmentarticle_versioncodecourtdoctrine_articlegazette_entrygazette_issuegraph_edgelegislationlegislation_articlelegislation_kindlegislation_sectionopinionreferenceresearchrulingsource_pageEvery article of the Code of Obligations and Contracts that mentions «التضامن», with a ready citation:
SELECT number, citation, text_ar
FROM article_cited
WHERE law_id = 244226
AND search_stem @@ websearch_to_tsquery('arabic', 'التضامن')
ORDER BY position;
The texts most often cited by the Court of Cassation, with how many rulings cite each:
SELECT l.title, count(DISTINCT r.from_id) AS rulings FROM reference r JOIN legislation l ON l.id = r.law_id JOIN ruling x ON x.id = r.from_id AND r.from_type = 'ruling' WHERE x.court LIKE 'تمييز%' GROUP BY l.title ORDER BY rulings DESC LIMIT 20;
Every text that repealed another, and what it repealed:
SELECT a.title AS repealing, b.title AS repealed FROM reference r JOIN legislation a ON a.id = r.from_id JOIN legislation b ON b.id = r.law_id WHERE r.from_type = 'legislation' AND r.relation = 'repeals';
Every row records the page of the Lebanese University's Centre for Legal Informatics it was read from, with the SHA-256 of the page as served (source_page). Links between documents say who made them: the Centre's editors, our parser, or an AI model (reference.method).
We don't own this data. The laws, rulings and Gazette issues are public texts of the Lebanese state, and the Lebanese University's مركز الدراسات والأبحاث في المعلوماتية القانونية collected and published them. We read them from the Centre's public site and add no rights or restrictions of our own. If you reuse them, credit the Centre: Source: Centre for Research and Studies in Legal Informatics, Lebanese University.