leychile

Retrieve Chilean legislative data from BCN via SPARQL and resource URIs.

Updated Dec 24, 2025
One-click install
npx skills add https://github.com/tcapelle/claude-lex --skill leychile
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: leychile
Source: https://github.com/tcapelle/claude-lex/tree/main/skills/leychile
Command: npx skills add https://github.com/tcapelle/claude-lex --skill leychile

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Chilean legislative research is time-consuming when pulling data from BCN; this skill enables quick retrieval of Chilean laws, decrees, regulations, and congressional information by querying the Biblioteca del Congreso Nacional using SPARQL and Linked Data, ensuring up-to-date references.

Core Features & Use Cases

  • SPARQL access to BCN data via the primary endpoint and direct resource URIs for JSON and RDF formats.
  • Open data, no authentication required for public Chilean legislation, statutes, and parliamentary information.
  • Use cases: search for laws by keywords, fetch full text by ID, locate articles and provisions, and browse historical and legislative projects.

Quick Start

Ask the AI to query a specific Chilean norma by its LeyChile code using the SPARQL endpoint.

Frequently Asked Questions about leychile

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I query Chilean laws using SPARQL endpoints?

You can query Chilean laws using SPARQL endpoints by requesting specific legislative data via the Biblioteca del Congreso Nacional (BCN). This approach retrieves norms, decrees, and congressional information directly in JSON or RDF formats without requiring authentication.

What is the BCN Linked Data source for Chilean legislation?

The BCN Linked Data source is the open data platform of the Biblioteca del Congreso Nacional of Chile. It provides public access to laws, decrees, and regulations via SPARQL endpoints and direct resource URIs for actionable legal research.

Can I fetch Chilean legal data without API authentication?

Yes, you can fetch Chilean legal data without API authentication. The BCN open data source provides public access to statutes and parliamentary information, allowing you to retrieve JSON and RDF formats directly via SPARQL and resource URIs.

What is the best way to retrieve a specific Chilean law by its LeyChile code?

The best way to retrieve a specific Chilean law by its LeyChile code is to query the BCN SPARQL endpoint or access the direct resource URI. This fetches the full text and provisions linked to that specific legal identifier.

Does the BCN SPARQL endpoint support JSON and RDF formats for legal research?

Yes, the BCN SPARQL endpoint supports JSON and RDF formats for legal research. This allows you to gather precise normative information and locate articles, provisions, and historical legislative projects across open data sources.

What limitations exist when querying historical legislative projects from BCN?

Limitations when querying historical legislative projects from BCN depend on the availability of the open data published by the Biblioteca del Congreso Nacional. The SPARQL endpoint is restricted to retrieving data that has been explicitly mapped and exposed as Linked Data.