mt_get_text
Fetch the complete text of Maltese legislation using an ELI coordinate, retrieving the official PDF content directly from the legislation.mt portal.
Instructions
Fetch the full text of a Maltese document by ELI coordinate (from the official PDF).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| eli | Yes | the coordinate after ``/eli/`` (e.g. ``"cap/586"``). | |
| lang | No | ``"eng"`` (default) or ``"mlt"``. | eng |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| eli | No | ||
| title | No | ||
| format | No | text/plain (extracted from the official PDF) | |
| content | No | ||
| eli_uri | No | ||
| pdf_url | No | ||
| byte_size | No | ||
| text_note | No | Malta publishes the consolidated text only as PDF; mt_get_text downloads the official PDF and extracts the text with pypdf. Layout-dependent artefacts are possible - the PDF at source_url (via the page) is authoritative. | |
| source_url | No | ||
| dataset_note | No | legislation.mt serves consolidated Maltese law addressed by ELI coordinate: chapters (cap/{number}), the Constitution (const), subsidiary legislation (sl/{chapter}.{number}), Acts (act/{year}/{number}) and Legal Notices (ln/{year}/{number}). Metadata comes from the page's schema.org/ELI JSON-LD; the full text is only available as a PDF. There is no free-text search here - address documents by their ELI coordinate. Languages: English (eng) and Maltese (mlt). | |
| human_readable_citation | No |