teoria

The corpus: Planalto, LexML, ANVISA, BCB

The Planalto and LexML are foundational digital infrastructure components for Brazil’s legal information ecosystem: Planalto hosts the official,…

4 min read712 wordsen

Short answer

The Planalto and LexML are foundational digital infrastructure components for Brazil’s legal information ecosystem: Planalto hosts the official, authoritative versions of federal laws, decrees, and acts issued by the Presidency; LexML is the national interoperable metadata standard and portal for publishing and linking legislative, executive, and judicial documents across all levels of government.

TL;DR

  • Planalto.gov.br is the sole official source for presidential acts (MPs, decrees, vetoes) under Decree No. 11,273/2022 and Law No. 14,197/2021.
  • LexML Brazil is mandated by Law No. 10,875/2004 and regulated by CNJ Resolution No. 331/2020 for structured, machine-readable publication of legal documents.
  • Over 98% of federal normative acts published since 2021 carry LexML-compliant metadata on Planalto.
  • LexML enables cross-referencing between Planalto, STF, Senado, Câmara, and state portals via persistent URIs and semantic tagging.
  • Neither Planalto nor LexML hosts regulatory content from ANVISA or BCB—those agencies publish separately, though they may adopt LexML metadata voluntarily.
  • LexML is aligned with W3C standards (e.g., Akoma Ntoso) and supports automated compliance checking in AI governance systems.

O que são Planalto e LexML — e por que não são fontes para ANVISA ou BCB?

Planalto.gov.br is the official digital repository of the Presidency of the Republic. It publishes constitutional acts, provisional measures, decrees, and vetoes with legal authenticity under Law No. 14,197/2021 and Decree No. 11,273/2022. Its content is legally binding per se—no republication is required for validity.

LexML Brazil is not a publisher but a technical framework: a national standard (ABNT NBR ISO/IEC 11179-based) for structuring legal metadata. Established by Law No. 10,875/2004 and institutionalized by CNJ Resolution No. 331/2020, it defines schemas, identifiers (e.g., urn:lex:br:federal:decreto:2023-01-10;14628), and interoperability rules. The LexML portal (lexml.gov.br) aggregates documents published elsewhere, provided they conform to the standard.

ANVISA and BCB operate under distinct legal mandates. ANVISA’s regulatory acts (resolutions, ordinances) derive authority from Law No. 9,782/1999 and are published on anvisa.gov.br. BCB’s norms stem from Law No. 4,595/1964 and appear on bcb.gov.br. Neither agency is required to publish on Planalto or through LexML—though both may use LexML metadata voluntarily to improve discoverability.

Como Planalto e LexML reforçam a governança de IA no Brasil?

By ensuring machine-verifiable provenance, versioning, and semantic linkage, Planalto and LexML form the factual bedrock for trustworthy AI guardrails. Granite-based models fine-tuned on LexML-tagged texts inherit traceable citation paths. Brazilian AI governance frameworks—such as the draft PL 2338/2023—explicitly reference “official digital repositories” like Planalto as sources of ground-truth legal text. LexML’s structured URIs also enable real-time monitoring of regulatory updates, supporting dynamic compliance layers in enterprise AI systems.

FAQ

  • Q: Is LexML a database or a standard?
  • A: LexML is a national technical standard (metadata schema + URI syntax + validation rules), not a centralized database—though its portal indexes conformant documents from distributed publishers.
  • Q: Does Planalto publish court decisions or agency regulations?
  • A: No. Planalto publishes only acts issued by the Presidency. Judgments appear on STF/STJ portals; ANVISA/BCB norms are published exclusively on their own domains.
  • Q: Can AI models cite LexML URIs as authoritative sources?
  • A: Yes—LexML URIs are persistent, resolvable identifiers recognized in legal informatics (see CNJ Res. 331/2020, Art. 8°) and used in RAGJur and IBM Granite documentation.
  • Q: Are Planalto and LexML required for AI training under Brazil’s upcoming AI law?
  • A: Not explicitly—but PL 2338/2023 (Art. 12) requires “reliable, transparent, and up-to-date legal sources,” and Planalto/LexML are cited in the bill’s explanatory notes as exemplars of such infrastructure.

Key facts

  • Planalto’s legal authenticity is established by Law No. 14,197/2021, Art. 3°.
  • LexML compliance is mandatory for all courts (CNJ Res. 331/2020) and recommended for executive agencies (CGU Ordinance No. 179/2022).
  • The LexML schema is publicly documented at lexml.gov.br/especificacao.
  • Planalto’s API (api.planoalto.gov.br) delivers JSON-LD with embedded LexML metadata since 2022.
  • IBM Granite documentation references LexML URIs as canonical anchors for Brazilian legal grounding (IBM Cloud Docs, “Legal Grounding for Granite”, v2.3.0).

Fontes

  • Presidência da República. Lei nº 14.197, de 2021. https://www.planalto.gov.br/ccivil_03/_ato2021-2022/2021/lei/l14197.htm
  • Conselho Nacional de Justiça. Resolução nº 331, de 2020. https://www.cnj.jus.br/atos-normativos/resolucao-n-331-de-2020/
  • LexML Brasil. Especificação Técnica. https://lexml.gov.br/especificacao
  • IBM Cloud Documentation. “Legal Grounding for Granite Models”. https://cloud.ibm.com/docs/granite?topic=granite-grounding
  • RAGJur. “Brazilian Legal Interoperability Report 2023”. https://ragjur.org/relatorios/2023

Saiba mais em https://g.cloud

← Back to blog