الصفحة الرئيسية

قاعدة البيانات

القانون اللبناني بأكمله، كقاعدة بيانات واحدة.

المكتبة التي تقف وراء هذا الموقع هي قاعدة بيانات PostgreSQL علائقية. تصف هذه الصفحة جداولها.

قم بتنزيلها مجاناً. قاعدة البيانات بأكملها متاحة للعموم على Hugging Face: taktekhq/lebanese-legislation. ملف Parquet واحد لكل جدول، بما في ذلك الرسم البياني لكيفية تعديل النصوص واستشهادها ببعضها البعض. قم بتحميلها باستخدام pandas أو DuckDB أو مكتبة datasets. الجداول أدناه هي تلك التي تقف وراء كل صفحة من هذا الموقع، مع عدد صفوفها المباشر. للأسئلة: nizar@taktek.io.

استخدم الموارد العامة في مشروعك

اختر الشيفرة المصدرية أو جداول Parquet أو صورة قاعدة بيانات PostgreSQL. الشيفرة مرخّصة بموجب MIT؛ وتحتفظ السجلات القانونية بشروط مصادرها وإعادة استخدامها.

تتضمن صورتا -db و-all قاعدتي البيانات المبنيتين من جداول المصدر. تتوفر جداول Parquet ومتجهات البحث على Hugging Face.

يحتوي ملف vectors/vectors.parquet على 1,547,937 مقطعاً، بمتجهات من النموذج gemini-embedding-001 ذات 768 بُعداً. الأعمدة: id وdocument وmodel وhash وvalues من النوع FLOAT[768]. يستخدم البحث الدلالي في الموقع Cloudflare Vectorize.

كيفية حفظها

  • يتم تصدير كل جدول كملفات نصية مرتبة تحت نظام التحكم في الإصدارات، بحيث يكون كل تعديل على قانون عبارة عن سطر في السجل.
  • يسجل كل صف صفحة المركز التي قُرئ منها، بحيث يمكن تتبع كل نص إلى مصدره.

الجداول

agreement
Treaties and agreements, with the text that ratified them. (1,973 صفوف)
amendment
Every change one text made to another, read from the amending article: which article, what it did, the new wording, from what date, and whether it was applied. (3,896 صفوف)
article_en
(20,679 صفوف)
article_version
Each amended article's versions, oldest first, each with its date and the amendment that made it. (3,948 صفوف)
centre_error
Errors in the Lebanese University's own text of an article (one article repeating another, a stray letter), noted next to the article and never corrected in it. Where a person read the right wording from the printed edition, it is a minor version in article_version. (5 صفوف)
code
The principal codes, with stable addresses. (26 صفوف)
council_ruling
(4 صفوف)
court
The courts and chambers. (12 صفوف)
date_correction
Dates the Lebanese University printed wrong (a text signed after its own publication, a year typo, a placeholder): the printed date, the corrected one, how it was settled and the evidence. (583 صفوف)
doctrine_article
Articles from legal periodicals, with abstracts. (2,574 صفوف)
gazette_annex
(395 صفوف)
gazette_entry
Which texts each issue published, on which page. (105,483 صفوف)
gazette_issue
Official Gazette issues. (6,851 صفوف)
graph_edge
(369,117 صفوف)
legislation
Every law, decree and decision: kind, number, date, title, status, Official Gazette publication. (103,112 صفوف)
legislation_alias
The old address of a scanned text the Lebanese University has since published, and the text it now points to. (49 صفوف)
legislation_article
Each article, consolidated, in Arabic and in French where published, with its amendment notes. (389,482 صفوف)
legislation_kind
The 49 kinds of text, with English and French names. (53 صفوف)
legislation_scan
Texts the Lebanese University has not published yet, read by machine from scans of the Gazette's pages: where the scans came from, how many pages, and how far the two readings agree. Words they disagree on are marked in the text: U+E000 reading one, U+E001 reading two, U+E002. (1,456 صفوف)
legislation_section
Books, parts, chapters and sections, nested. (109,626 صفوف)
legislation_title_en
An unofficial English rendering of each text's subject line, written by a model (Claude Sonnet) from the Arabic title alone and labelled unofficial on the site. The Arabic title and text are the official version and the more accurate one; the English is there to help people and search engines find a text, and the text itself is never translated. (103,106 صفوف)
noindex_page
Pages kept out of search results and the sitemaps, with the reason: articles that are only a publication or repeal clause, documents with no title or no text, and, as kind english, texts whose machine-translated English pages are hidden because they are not among the popular texts (machine_english). They stay on the site and linked. (203,155 صفوف)
official_text
opinion
Advisory opinions. (3,633 صفوف)
page_state
When each text, ruling, Gazette issue and document last changed, with a hash of what its page shows: the date the sitemaps give as lastmod. (165,848 صفوف)
reference
Every link from a document to a text or article, and whether the Centre's editors, our rules or a model made it. (22,314 صفوف)
research
Studies. (50 صفوف)
ruling
Court rulings: court, number, date, panel, text. (47,655 صفوف)
ruling_file
The scanned full judgment behind a ruling page (a PDF served at /ruling-files/<id>.pdf, not in the database): its size, SHA-256, when it was fetched and its page count once read. (44,766 صفوف)
ruling_page
The text of those scans, one row per page, read by machine. It may contain errors; the scan is the reference. low_confidence marks pages that are hard to read (mostly handwriting): expect more errors there. (274,893 صفوف)
source_page
The raw page behind every row: address, archive path, SHA-256. (266,005 صفوف)
web_schema
(1 صفوف)

أمثلة

كل مادة من قانون الالتزامات والعقود تذكر «التضامن»، مع استشهاد جاهز:

SELECT number, citation, text_ar
FROM article_cited
WHERE law_id = 244226
  AND search_stem @@ websearch_to_tsquery('arabic', 'التضامن')
ORDER BY position;

النصوص الأكثر استشهاداً بها من قبل محكمة التمييز، مع عدد الأحكام التي تستشهد بكل منها:

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;

كل نص ألغى نصاً آخر، وما الذي ألغاه:

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';

من أين تأتي

يسجل كل صف صفحة مركز المعلوماتية القانونية في الجامعة اللبنانية التي قُرئ منها، مع تجزئة SHA-256 للصفحة كما تم تقديمها (source_page). توضح الروابط بين الوثائق من قام بإنشائها: محررو المركز، أو المحلل البرمجي الخاص بنا، أو نموذج ذكاء اصطناعي (reference.method).

الترخيص والاعتماد

نحن لا نملك هذه البيانات. القوانين والأحكام وأعداد الجريدة الرسمية هي نصوص عامة للدولة اللبنانية، وقد قام مركز الدراسات والأبحاث في المعلوماتية القانونية في الجامعة اللبنانية بجمعها ونشرها. نحن نقرأها من الموقع العام للمركز ولا نضيف أي حقوق أو قيود من جانبنا. إذا قمت بإعادة استخدامها، يرجى نسب الفضل للمركز: المصدر: مركز الأبحاث والدراسات في المعلوماتية القانونية، الجامعة اللبنانية.