Skip to content

v0.9.0: Ordered relation paging, authority-label resolution

Choose a tag to compare

@cyanheads cyanheads released this 03 Jul 21:20
v0.9.0
965d3d9

Ordered relation paging, authority-label resolution

eurlex_get_relations pages related works with offset/limit and orders incoming edges newest-first; eurlex_document_resource resolves authority URIs to labels.

Added:

  • eurlex_get_relations offset + limit inputs (#39) — limit (1-100, default 100) sets the per-relation-type, per-direction cap; offset pages past it.
  • eurlex_get_relations truncation disclosure (#39) — ctx.enrich.truncated fires when a direction fills its cap; also surfaced on the eurlex://document/{celexNumber}/relations resource.
  • author_institutions output on eurlex://document/{celexNumber} (#35) — full de-duplicated set of co-legislating author institution labels.

Fixed:

  • eurlex_get_relations incoming citations silently dropped the newest (#39) — each query now runs ORDER BY DESC(?relatedDate); the symmetric cites relation splits into independently-capped UNION subqueries per direction.
  • eurlex_get_document format() truncated EuroVoc subjects to 5 (#41) — the text channel now renders the full list.
  • resource_type / author_institution returned raw CDM authority URIs on eurlex://document/{celexNumber} (#35) — now resolved to human-readable labels. Breaking: code parsing these as URIs must adapt.
  • cdm-labels implementing/delegated regulation keys transposed (#43) — RESOURCE_TYPE_LABELS keyed them IMPL_REG/DEL_REG; CELLAR emits REG_IMPL/REG_DEL.

266 tests pass; bun run devcheck clean.