Check the Setup
- Python 3.10 or newer
- A notebook environment such as Jupyter or Google Colab
- An internet connection
Official EU legal acts and metadata from the Publications Office Cellar for building regulation lookup and EU-law change-monitoring tools.
Report a ProblemFrom Source to Product Signal
Cellar stores EU legal acts behind EUR-Lex. Start with one well-known CELEX identifier and a one-row SPARQL lookup. Language versions and consolidations differ, and a Cellar work URI is not a national gazette entry.
Install the packages, then run the notebook cell.
python -m pip install pandas requests
import pandas as pd
import requests
query = """
PREFIX cdm: <http://publications.europa.eu/ontology/cdm#>
SELECT ?work ?date WHERE {
?work cdm:resource_legal_id_celex "32016R0679"^^<http://www.w3.org/2001/XMLSchema#string> ;
cdm:work_date_document ?date .
}
LIMIT 1
"""
response = requests.get(
"https://publications.europa.eu/webapi/rdf/sparql",
params={
"query": query,
"format": "application/sparql-results+json",
},
timeout=30,
)
response.raise_for_status()
bindings = pd.json_normalize(response.json()["results"]["bindings"])
bindings["retrieved_at_utc"] = pd.Timestamp.now(tz="UTC")
print(bindings)Test a Useful Signal
Test whether a Cellar lookup can power a bounded EU-act watch card.
Publications Office of the European Union is an intergovernmental source. Last verified 2026-08-20. Temporal coverage: Official Journal acts with Cellar metadata through current publications.