Overview
Frameworks represent EU regulations such as GDPR, CRA, NIS2, and the AI Act. Useclient.frameworks() to list and fetch them.
Methods
list()
Returns a page of all available frameworks.
Page<Framework>
list(int page, int perPage)
Fetch a specific page with custom page size.
| Parameter | Type | Default | Description |
|---|---|---|---|
page | int | 1 | Page number (1-indexed) |
perPage | int | 20 | Items per page (max 100) |
Page<Framework>
get()
Fetch full detail for a single framework by slug.
| Parameter | Type | Description |
|---|---|---|
slug | String | Framework slug, e.g. "gdpr" |
FrameworkDetail
iter()
Lazily iterate all frameworks across all pages.
Iterable<Framework>
Models
Framework
Returned by list() and iter().
| Field | Type | Description |
|---|---|---|
id() | int | Internal numeric ID |
slug() | String | URL-safe identifier, e.g. "cra" |
name() | String | Full framework name |
shortName() | String | Short name, e.g. "CRA" |
celexNumber() | String | EUR-Lex CELEX identifier |
description() | String | Brief description |
isActive() | boolean | Whether data is actively maintained |
status() | String | "active", "draft", or "superseded" |
articleCount() | int | Number of synced articles |
recitalCount() | int | Number of synced recitals |
createdAt() | String | ISO 8601 creation timestamp |
FrameworkDetail
Returned by get(). Includes all Framework fields plus:
| Field | Type | Description |
|---|---|---|
eurLexUrl() | String | Link to the official EUR-Lex page |
requirementCount() | int | Number of extracted requirements |
annexCount() | int | Number of annexes |
tagCount() | int | Number of associated tags |
