reteplayground
Aggregate

Legislative output, year by year

SELECT ?year (COUNT(?s) AS ?normas) WHERE {
  ?s eli:date_document ?d .
  BIND(SUBSTR(STR(?d), 1, 4) AS ?year)
} GROUP BY ?year ORDER BY ?year
Run this query → no server · no download · no account
caviri.github.io/rete
Run this query in the playground → 112 dated item(s) · 1835–2026 · 50 ms · 384.0 KB of 6.6 MB read over HTTP range · no server, no download — the query runs in your browser.

The query

PREFIX eli: <http://data.europa.eu/eli/ontology#> SELECT ?year (COUNT(?s) AS ?normas) WHERE { ?s eli:date_document ?d . BIND(SUBSTR(STR(?d), 1, 4) AS ?year) } GROUP BY ?year ORDER BY ?year

rete playground · documentation · github.com/caviri/rete