Resolve EU Legal Citation
eurlex_lookup_celexResolve an EU legal citation — a CELEX number or ELI URI — to its canonical CELLAR work, confirming it exists before you fetch or traverse it. Returns the work URI, confirmed CELEX number, document type, and date.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| identifier | Yes | The EU legal citation to resolve: a CELEX number (e.g. 32016R0679) or a work-level ELI URI (e.g. http://data.europa.eu/eli/reg/2016/679, with or without the /oj suffix). | |
| identifier_type | No | Format of the identifier. "auto" detects it automatically; supply "celex" or "eli" explicitly if detection fails. | auto |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | Document date in ISO 8601 format (YYYY-MM-DD). | |
| error | No | Present when the call failed. Absent on success. | |
| found | No | True when the identifier resolves to a CELLAR work; false when a well-formed CELEX/ELI matches no work in the corpus. A malformed or undetectable identifier raises ambiguous_identifier instead. | |
| work_uri | No | CELLAR work URI (stable resource identifier). | |
| celex_number | No | Confirmed CELEX number for the resolved work. | |
| resource_type | No | CDM resource type URI indicating the document category (e.g. .../resource-type/REG for Regulation). Absent for some works. |