Links
The Links endpoint provides access to relation links between research products
via the OpenAIRE Graph API V3 (/research-products/links).
!!! note "Pagination"
This endpoint uses 0-indexed pagination (first page is page=0). The server silently caps page size at 99 (requesting 100 returns only 10 results). AIREloom handles this transparently by clamping to 99.
Unlike other endpoints, there is no standalone LinksClient. Link operations are
accessed through the ResearchProductsClient:
search_links()— search for relation links between research productsiterate_links()— iterate through all matching relation linksget_relations_info()— retrieve available relation types
LinksFilters
Bases: BaseModel
Filter model for Graph API /research-products/links endpoint.
These filters are for the Graph API's built-in link retrieval endpoint, which is separate from the Scholix API. Parameters accept singular string values (unlike other Graph API filters which accept arrays).
Reference: https://api.openaire.eu/graph/v3/research-products/links
Source code in src/aireloom/endpoints.py
252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 | |
fromDate = Field(default=None, description='From date (YYYY or YYYY-MM-DD)')
class-attribute
instance-attribute
model_config = ConfigDict(extra='forbid')
class-attribute
instance-attribute
relation = Field(default=None, description='Filter by specific relationship type')
class-attribute
instance-attribute
sourcePid = Field(default=None, description='Filter by source persistent identifier (e.g. DOI)')
class-attribute
instance-attribute
sourcePublisher = Field(default=None, description='Filter by source publisher name')
class-attribute
instance-attribute
sourceType = Field(default=None, description='Filter by source type: publication, dataset, software, other')
class-attribute
instance-attribute
targetPid = Field(default=None, description='Filter by target persistent identifier')
class-attribute
instance-attribute
targetPublisher = Field(default=None, description='Filter by target publisher name')
class-attribute
instance-attribute
targetType = Field(default=None, description='Filter by target type: publication, dataset, software, other')
class-attribute
instance-attribute
toDate = Field(default=None, description='To date (YYYY or YYYY-MM-DD)')
class-attribute
instance-attribute
Access via ResearchProductsClient
Bases: GraphV3FilterSerializationMixin, BatchMixin, GettableMixin, SearchableMixin, CursorIterableMixin, BaseResourceClient
Client for the OpenAIRE Research Products API endpoint.
This client provides standardized methods (get, search, iterate) for
accessing research product data, by inheriting from bibliofabric mixins.
It also provides search_links, iterate_links, and get_relations_info
for the V3 /research-products/links sub-endpoint.
Attributes:
| Name | Type | Description |
|---|---|---|
_entity_path |
str
|
The API path for research products. |
_entity_model |
type[ResearchProduct]
|
Pydantic model for a single research product. |
_search_response_model |
type[ResearchProductResponse]
|
Pydantic model for the search response envelope. |
Source code in src/aireloom/resources/research_products_client.py
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 | |
search_links(*, filters=None, page=0, page_size=20)
async
Search for relation links between research products.
Uses the V3 /research-products/links endpoint (NOT the Scholix API).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filters
|
LinksFilters | None
|
Optional :class: |
None
|
page
|
int
|
0-indexed page number. |
0
|
page_size
|
int
|
Number of results per page (max 99; values >=100 are silently truncated to 10 by V3). |
20
|
Returns:
| Name | Type | Description |
|---|---|---|
A |
LinksResponse
|
class: |
Source code in src/aireloom/resources/research_products_client.py
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 | |
iterate_links(*, filters=None, page_size=MAX_LINK_PAGE_SIZE)
async
Iterate through all relation links matching filters.
Automatically handles page-based pagination using totalPages
from the response header.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
filters
|
LinksFilters | None
|
Optional :class: |
None
|
page_size
|
int
|
Number of results per page (max 99; see :meth: |
MAX_LINK_PAGE_SIZE
|
Yields:
| Type | Description |
|---|---|
AsyncIterator[Relation]
|
class: |
Source code in src/aireloom/resources/research_products_client.py
119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 | |
get_relations_info()
async
Retrieve available relation types from the links endpoint.
Uses the V3 /research-products/links/relations-info endpoint.
Returns:
| Type | Description |
|---|---|
list[dict[str, Any]]
|
A list of dicts describing relation types (name, inverse, description). |
Source code in src/aireloom/resources/research_products_client.py
161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 | |