Skip to content

Add EU SPARQL search skill to regulatory-legal plugin#28

Open
dobry21 wants to merge 3 commits into
anthropics:mainfrom
dobry21:main
Open

Add EU SPARQL search skill to regulatory-legal plugin#28
dobry21 wants to merge 3 commits into
anthropics:mainfrom
dobry21:main

Conversation

@dobry21
Copy link
Copy Markdown

@dobry21 dobry21 commented May 15, 2026

Summary

  • Adds a new eu-sparql-search skill to the regulatory-legal plugin for querying EU legislation and CJEU case law via the Publications Office SPARQL endpoint (Cellar / EUR-Lex CDM ontology)
  • Includes references/resource-types.md with the full list of EU document type URIs
  • Updates regulatory-legal/README.md and root README.md command reference tables
  • Bumps regulatory-legal plugin version 1.0.21.1.0 (minor bump for new skill, per CONTRIBUTING.md)

What the skill does

Enables Claude to search EU legislation and CJEU case law without leaving the conversation:

  • Search by document type (REG, DIR, DEC, JUDG, …), CELEX number, date range, EuroVoc subject, or in-force status
  • Retrieve downloadable file URLs for any language (ISO 639-3: POL, ENG, DEU, …) and format (pdfa2a, fmx4, xhtml)
  • Execute SPARQL queries against https://publications.europa.eu/webapi/rdf/sparql via bash_tool + Python/urllib (bypasses web_fetch restrictions that block Cellar URLs)
  • Fetch full document text via curl once item URLs are retrieved
  • Always provides verifiable EUR-Lex + Cellar citation links
    The skill is entirely self-contained — all query patterns, language codes, format rules, and citation requirements are baked into SKILL.md. It does not depend on CLAUDE.md guardrails to produce correct output.

Files changed

regulatory-legal/skills/eu-sparql-search/SKILL.md (new)
regulatory-legal/skills/eu-sparql-search/references/resource-types.md (new)
regulatory-legal/.claude-plugin/plugin.json (1.0.2 → 1.1.0)
regulatory-legal/README.md (skill table entry)
README.md (command reference entry)

Test plan

  • /regulatory-legal:eu-sparql-search 32016R0679 — returns GDPR metadata with EUR-Lex link
  • Date range query — returns filtered results with LIMIT and ORDER BY DESC
  • CJEU case law query (JUDG type) — uses correct resource-type URI
  • Citation output includes both EUR-Lex canonical URL and Cellar item URL

claude and others added 3 commits May 15, 2026 14:28
Contributes a new skill for querying EU legislation and CJEU case law
via the Publications Office SPARQL endpoint (Cellar / EUR-Lex CDM
ontology). The skill covers: searching by document type, CELEX number,
date range, EuroVoc subject, and in-force status; downloading files in
multiple languages and formats; and building SPARQL queries against the
Cellar knowledge graph.

Includes:
- regulatory-legal/skills/eu-sparql-search/SKILL.md
- regulatory-legal/skills/eu-sparql-search/references/resource-types.md
- Updated regulatory-legal/README.md skill table
- Updated root README.md command reference (regulatory-legal section)

https://claude.ai/code/session_014o9yL1cbYZ1WqZojKvozSv
Add eu-sparql-search skill to regulatory-legal plugin
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 15, 2026


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


1 out of 2 committers have signed the CLA.
dobry21
@claude
You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@dobry21
Copy link
Copy Markdown
Author

dobry21 commented May 15, 2026

I have read the CLA Document and I hereby sign the CLA

github-actions Bot added a commit that referenced this pull request May 15, 2026
@dobry21 dobry21 closed this May 15, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators May 15, 2026
@dobry21 dobry21 reopened this May 15, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants