-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent.json
345 lines (345 loc) · 17.2 KB
/
component.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
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
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
{
"title": "CORE API v2",
"description": "You can use the CORE API to access the resources harvested and enriched by CORE.\nIf you encounter any problems with the API, please report them to us [/contact].\n\nOVERVIEW\nThe API is organised by resource type. The resources are articles, journals and \nrepositories and are represented using JSON data format. Furthermore, each\nresource has a list of methods. The API also provides two global methods for\naccessing all resources at once.\n\nRESPONSE FORMAT\nResponse for each query contains two fields: status and data. In case of an\nerror status, the data field is empty. The data field contains a single object\nin case the request is for a specific identifier (e.g. CORE ID, CORE repository\nID, etc.), or contains a list of objects, for example for search queries. In\ncase of batch requests, the response is an array of objects, each of which\ncontains its own status and data fields. For search queries the response\ncontains an additional field totalHits, which is the total number of items which\nmatch the search criteria.\n\nSEARCH QUERY SYNTAX\nComplex search queries can be used in all of the API search methods. The query\ncan be a simple string or it can be built using terms and operators described in\nElasticsearch documentation\n[http://www.elastic.co/guide/en/elasticsearch/reference/1.4/query-dsl-query-string-query.html#query-string-syntax]\n. The usable field names are title, description, fullText, authors, publisher, \nrepositories.id, repositories.name, doi, oai, identifiers (which is a list of\narticle identifiers including OAI, URL, etc.), language.name and year. Some\nexample queries:\n\n * title:psychology and language.name:English\n \n \n * repositories.id:86 AND year:2014\n \n \n * identifiers:\"oai:aura.abdn.ac.uk:2164/3837\" OR\n identifiers:\"oai:aura.abdn.ac.uk:2164/3843\"\n \n \n * doi:\"10.1186/1471-2458-6-309\"\n \n \n\nRETRIEVING THE LATEST ARTICLES\nYou can retrieve the harvested items since specific dates using the following\nqueries:\n\n * repositoryDocument.metadataUpdated:>2017-02-10\n \n \n * repositoryDocument.metadataUpdated:>2017-03-01 AND\n repositoryDocument.metadataUpdated:\n \n \n\nSORT ORDER\nFor search queries, the results are ordered by relevance score. For batch\nrequests, the results are retrieved in the order of the requests.\n\nPARAMETERS\nThe API methods allow different parameters to be passed. Additionally, there is\nan API key parameter which is common to all API methods. For all API methods the\nAPI key can be provided either as a query parameter or in the request header. If\nthe API key is not provided, the API will return HTTP 401 error. You can\nregister for an API key here [/services#api].\n\nAPI METHODS",
"docsUrl": "",
"url": "https://api.apis.guru/v2/specs/core.ac.uk/2.0/swagger.json",
"envVars": {},
"credentials": {
"fields": {
"server": {
"label": "Server",
"viewClass": "SelectView",
"model": [
"http://core.ac.uk/api-v2",
"--- Custom URL"
],
"required": true
},
"otherServer": {
"label": "Custom Server URL",
"viewClass": "TextFieldView"
},
"auth_apiKey": {
"label": "apiKey (apiKey)",
"viewClass": "TextFieldView",
"note": "Your Api Key. Also accepts apiKey as a header"
}
}
},
"triggers": {
"startFlow": {
"main": "./lib/triggers/startFlow.js",
"type": "polling",
"title": "Start Flow",
"fields": {}
}
},
"actions": {
"nearDuplicateArticles": {
"main": "./lib/actions/nearDuplicateArticles.js",
"title": "Get all near duplicate articles",
"description": "Method accepts values for several parameters and retrieves a JSON array of articles which have near duplicate content matching the input parameters' values. The response array contains ids of the near duplicate articles along with their relevance scores.",
"fields": {
"verbose": {
"viewClass": "CheckBoxView",
"label": "Debug this step (log more data)"
}
},
"metadata": {
"in": "./lib/schemas/nearDuplicateArticles.in.json",
"out": {
"type": "object"
}
}
},
"getArticleByCoreIdBatch": {
"main": "./lib/actions/getArticleByCoreIdBatch.js",
"title": "Batch operation for retrieving articles by CORE ID",
"description": "Method accepts a JSON array of CORE IDs and retrieves a list of articles. The response array is ordered based on the order of the IDs in the request array.",
"fields": {
"verbose": {
"viewClass": "CheckBoxView",
"label": "Debug this step (log more data)"
}
},
"metadata": {
"in": "./lib/schemas/getArticleByCoreIdBatch.in.json",
"out": {
"type": "object"
}
}
},
"getArticleByCoreId": {
"main": "./lib/actions/getArticleByCoreId.js",
"title": "Get article by CORE ID",
"description": "Method will retrieve an article based on given CORE ID.",
"fields": {
"verbose": {
"viewClass": "CheckBoxView",
"label": "Debug this step (log more data)"
}
},
"metadata": {
"in": "./lib/schemas/getArticleByCoreId.in.json",
"out": {
"type": "object"
}
}
},
"getArticlePdfByCoreId": {
"main": "./lib/actions/getArticlePdfByCoreId.js",
"title": "Get fulltext PDF by CORE ID",
"description": "Method will retrieve an article based on given CORE ID.",
"fields": {
"verbose": {
"viewClass": "CheckBoxView",
"label": "Debug this step (log more data)"
}
},
"metadata": {
"in": "./lib/schemas/getArticlePdfByCoreId.in.json",
"out": {
"type": "object"
}
}
},
"getArticleHistoryByCoreId": {
"main": "./lib/actions/getArticleHistoryByCoreId.js",
"title": "Get article history by CORE ID",
"description": "Method accepts a single CORE ID and returns a list of all historical versions of the article, which are stored in CORE database. The results are ordered from the newest one to the oldest one.",
"fields": {
"verbose": {
"viewClass": "CheckBoxView",
"label": "Debug this step (log more data)"
}
},
"metadata": {
"in": "./lib/schemas/getArticleHistoryByCoreId.in.json",
"out": {
"type": "object"
}
}
},
"searchArticlesBatch": {
"main": "./lib/actions/searchArticlesBatch.js",
"title": "Batch operation for search through articles",
"description": "Method accepts a JSON array of search queries and parameters. It then searches through all articles and returns a JSON array of search results for each of the queries. Method searches through all article fields (title, authors, subjects, identifiers, etc.).",
"fields": {
"verbose": {
"viewClass": "CheckBoxView",
"label": "Debug this step (log more data)"
}
},
"metadata": {
"in": "./lib/schemas/searchArticlesBatch.in.json",
"out": {
"type": "object"
}
}
},
"searchArticles": {
"main": "./lib/actions/searchArticles.js",
"title": "Search through all documents",
"description": "Searches through all articles and returns a JSON array with search results. Method searches through all article fields.",
"fields": {
"verbose": {
"viewClass": "CheckBoxView",
"label": "Debug this step (log more data)"
}
},
"metadata": {
"in": "./lib/schemas/searchArticles.in.json",
"out": {
"type": "object"
}
}
},
"similarArticles": {
"main": "./lib/actions/similarArticles.js",
"title": "Get articles by similarity to a text",
"description": "Method accepts a text and retrieves a JSON array of articles which are similar to the given text. The response array is ordered based on similarity score, starting from the most similar.",
"fields": {
"verbose": {
"viewClass": "CheckBoxView",
"label": "Debug this step (log more data)"
}
},
"metadata": {
"in": "./lib/schemas/similarArticles.in.json",
"out": {
"type": "object"
}
}
},
"getJournalByIssnBatch": {
"main": "./lib/actions/getJournalByIssnBatch.js",
"title": "Batch operation for retrieving journals by ISSN",
"description": "Method accepts a JSON array of ISSNs and retrieves a list of journals.",
"fields": {
"verbose": {
"viewClass": "CheckBoxView",
"label": "Debug this step (log more data)"
}
},
"metadata": {
"in": "./lib/schemas/getJournalByIssnBatch.in.json",
"out": {
"type": "object"
}
}
},
"getJournalByIssn": {
"main": "./lib/actions/getJournalByIssn.js",
"title": "Find journal by ISSN",
"description": "Returns a journal with given ISSN identifier.",
"fields": {
"verbose": {
"viewClass": "CheckBoxView",
"label": "Debug this step (log more data)"
}
},
"metadata": {
"in": "./lib/schemas/getJournalByIssn.in.json",
"out": {
"type": "object"
}
}
},
"post_journals_search": {
"main": "./lib/actions/post_journals_search.js",
"title": "Batch operation for search through journals",
"description": "Method accepts a JSON array of search queries and parameters. It then searches through all journals and returns a JSON array of search results for each of the queries. Method searches through all journal fields (title, identifiers, subjects, language, rights and publisher).",
"fields": {
"verbose": {
"viewClass": "CheckBoxView",
"label": "Debug this step (log more data)"
}
},
"metadata": {
"in": "./lib/schemas/post_journals_search.in.json",
"out": {
"type": "object"
}
}
},
"get_journals_search__query_": {
"main": "./lib/actions/get_journals_search__query_.js",
"title": "Search through journals",
"description": "Searches through all journals and returns a JSON array of search results. Method searches through all journal fields (title, identifiers, subjects, language, rights and publisher).",
"fields": {
"verbose": {
"viewClass": "CheckBoxView",
"label": "Debug this step (log more data)"
}
},
"metadata": {
"in": "./lib/schemas/get_journals_search__query_.in.json",
"out": {
"type": "object"
}
}
},
"getRepositoryByIdBatch": {
"main": "./lib/actions/getRepositoryByIdBatch.js",
"title": "Batch operation for retrieving repositories by CORE repository ID",
"description": "Method accepts a JSON array of CORE repository IDs and retrieves a list of repositories. The response array is ordered based on the order of the IDs in the request array. The maximum number of IDs in request is 100.",
"fields": {
"verbose": {
"viewClass": "CheckBoxView",
"label": "Debug this step (log more data)"
}
},
"metadata": {
"in": "./lib/schemas/getRepositoryByIdBatch.in.json",
"out": {
"type": "object"
}
}
},
"getRepositoryById": {
"main": "./lib/actions/getRepositoryById.js",
"title": "Get repository by CORE repository ID",
"description": "Method will retrieve a repository based on given CORE repository ID.",
"fields": {
"verbose": {
"viewClass": "CheckBoxView",
"label": "Debug this step (log more data)"
}
},
"metadata": {
"in": "./lib/schemas/getRepositoryById.in.json",
"out": {
"type": "object"
}
}
},
"post_repositories_search": {
"main": "./lib/actions/post_repositories_search.js",
"title": "Batch operation for searching through repositories",
"description": "Method accepts a JSON array of search queries and parameters. It then searches through all repositories and returns a JSON array of search results for each of the queries. Method searches through all repository fields.",
"fields": {
"verbose": {
"viewClass": "CheckBoxView",
"label": "Debug this step (log more data)"
}
},
"metadata": {
"in": "./lib/schemas/post_repositories_search.in.json",
"out": {
"type": "object"
}
}
},
"get_repositories_search__query_": {
"main": "./lib/actions/get_repositories_search__query_.js",
"title": "Search through all repositories",
"description": "Searches through all repositories and returns a JSON array with search results. Method searches through all repository fields.",
"fields": {
"verbose": {
"viewClass": "CheckBoxView",
"label": "Debug this step (log more data)"
}
},
"metadata": {
"in": "./lib/schemas/get_repositories_search__query_.in.json",
"out": {
"type": "object"
}
}
},
"post_search": {
"main": "./lib/actions/post_search.js",
"title": "Batch operation for search through all resources",
"description": "Method accepts a JSON array of search queries. It searches through all resources and returns a JSON array with search results for each of the queries. Method searches through all resources and all fields. The results are ordered by relevance score and contain type of the relevant resource and its ID. Furthermore, the responses are oredered based on the order of the request items. The metadata of each resource need to be obtained through an appropriate method.",
"fields": {
"verbose": {
"viewClass": "CheckBoxView",
"label": "Debug this step (log more data)"
}
},
"metadata": {
"in": "./lib/schemas/post_search.in.json",
"out": {
"type": "object"
}
}
},
"get_search__query_": {
"main": "./lib/actions/get_search__query_.js",
"title": "Search through all resources",
"description": "Searches through all resources and returns a JSON array with search results. Method searches through all resources and all fields. The results are ordered by relevance score and contain type of the relevant resource and its ID. The metadata of each resource need to be obtained through an appropriate method.",
"fields": {
"verbose": {
"viewClass": "CheckBoxView",
"label": "Debug this step (log more data)"
}
},
"metadata": {
"in": "./lib/schemas/get_search__query_.in.json",
"out": {
"type": "object"
}
}
}
}
}