You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/swagger.yml.template
+88-6Lines changed: 88 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@ openapi: 3.0.0
2
2
info:
3
3
title: OKMaps Parameterized Search and Visualisation Service
4
4
description: |
5
-
This is an entry point into the automatic pipeline that leads users directly to a visualisation based on either BASE, PubMedor OpenAIRE data. The entry point is a parameterized search/waiting page that accepts URL-encoded parameters. In this sense, it is functionally similar to a HTTP-GET interface.
5
+
This is an entry point into the automatic pipeline that leads users directly to a visualisation based on either BASE, PubMed, OpenAIRE, or ORCID data. The entry point is a parameterized search/waiting page that accepts URL-encoded parameters. In this sense, it is functionally similar to a HTTP-GET interface.
6
6
7
7
However, the service is not returning a raw data representation of a visualisation, but rather a web page that triggers the creation of the visualisation. Therefore, the service entry point does not conform to the strict definition of a HTTP-GET interface.
8
8
@@ -74,11 +74,11 @@ paths:
74
74
75
75
It is possible to search directly in individual fields as described in the [BASE Interface Guide](https://www.base-search.net/about/download/base_interface.pdf), Appendix 1.2 Fields. For example:
76
76
77
-
* `dcorcid:0000-0002-1894-5040` This will create a knowledge map of documents created by the author with the specified ORCiD. Please be aware however that we are dependent on the metadata coverage in BASE. Currently, only a subset of the outputs linked to an ORCiD profile can be retrieved. BASE is actively working on improving the coverage.
77
+
* `dcorcid:0000-0002-1894-5040` This will create a knowledge map of documents created by the author with the specified ORCID. Please be aware however that we are dependent on the metadata coverage in BASE. Currently, only a subset of the outputs linked to an ORCID profile can be retrieved. BASE is actively working on improving the coverage.
78
78
79
79
* `dcrelation:"https://zenodo.org/communities/biosyslit"` This will create a knowledge map of documents with a specific Zenodo community mentioned in the relations field.
80
80
81
-
* `dccreator:"Lastname Firstname"` This will create a knowledge map of documents by a specified author. Please note that in contrast to an ORCiD, author names may not be unique.
81
+
* `dccreator:"Lastname Firstname"` This will create a knowledge map of documents by a specified author. Please note that in contrast to an ORCID, author names may not be unique.
82
82
83
83
* `dccoverage:"Rocky Mountains"` This will create a knowledge map of documents containing research about the Rocky Mountains.
84
84
@@ -225,8 +225,8 @@ paths:
225
225
226
226
Annotations **must** be added to the metadata in the `dcsubject` field, with the following
227
227
format `prefix:annotation text`, and the custom_clustering parameter must match the `prefix`.
228
-
If you add more than one annotation to a single document,
229
-
e.g. `theme:invasion impact` and `theme:invasion success`. Only the first entry will be considered
228
+
You can add more than one annotation to a single document,
229
+
e.g. `theme:invasion impact` and `theme:invasion success` however only the first entry will be considered
230
230
during data processing and is used to assign the document to a cluster on the map.
231
231
232
232
**Please note** the custom clustering only works if the annotations have been successfully
@@ -275,7 +275,7 @@ paths:
275
275
276
276
For PubMed, the query is relayed as-is, which means advanced PubMed syntax can be applied.
277
277
278
-
If the parameter is empty the link can’t be generated.
278
+
**Warning:** If the parameter is empty the link can’t be generated.
279
279
schema:
280
280
type : string
281
281
example: climate change
@@ -392,3 +392,85 @@ paths:
392
392
responses:
393
393
'200': # status code
394
394
description: Redirecting to the waiting page
395
+
396
+
/search?type=get&service=orcid:
397
+
get:
398
+
summary: |
399
+
Configure searches and create visualisations for researchers (Data source: ORCID).
400
+
description: |
401
+
This is an entry point into the automatic pipeline that leads users directly to a visualisation based on ORCID data.<br>
402
+
**This endpoint is a prototype! Some features may still be rough around the edges.**
403
+
404
+
parameters:
405
+
- in: query
406
+
name: orcid
407
+
required: true
408
+
description: |
409
+
Enter a valid ORCID, e.g. `0000-0002-5238-4195`.
410
+
411
+
**Please note** that ORCID also lists researchers which may not have any resources (publications,
412
+
datasets or other types of works) associated with their profile. In this case the search will
413
+
fail and display an error message. If a profile is set to private, a search for this ORCID
414
+
will also fail and display an error message.
415
+
416
+
schema:
417
+
type: string
418
+
- in: query
419
+
name: limit
420
+
required: false
421
+
description: |
422
+
This parameter sets an upper limit for the number of documents included in a knowledge map.
423
+
424
+
**Please note** that if an author has more works in their ORCID profile than the provided limit _N_,
425
+
only the most recent _N_ works will be displayed as a knowledge map. We recommend keeping _N_
426
+
below 200 because higher values will have a significant impact on the User Experience. You may
427
+
notice a significant delay, for example zooming into a bubble might take
428
+
several seconds until the interaction is completed.
429
+
430
+
If the parameter is not provided, it defaults to `200`.
431
+
schema:
432
+
type: integer
433
+
default: 200
434
+
- in: query
435
+
name: academic_age_offset
436
+
required: false
437
+
description: |
438
+
Define a value that will be added to the _academic age_ metric. For example: The academic age
439
+
of the researcher is 17 and the `academic_age_offset` you defined is 3, in this case
440
+
the academic age of the researcher will be 20.
441
+
442
+
**Please note** we are using the following definition for academic age: _number of years since PhD_.
443
+
444
+
If the parameter is not provided, it defaults to `0`.
445
+
schema:
446
+
type: integer
447
+
default: 0
448
+
- in: query
449
+
name: enable_h_index
450
+
required: false
451
+
description: |
452
+
Display or hide the _h-index_ in the _Metrics_ pop-up.
453
+
454
+
`false` means the _h-index_ will not be included in the _Metrics_ pop-up.
455
+
`true` means the _h-index_ will be displayed in the _Metrics_ pop-up.
456
+
457
+
If the parameter is not provided, it defaults to `false`.
458
+
schema:
459
+
type: boolean
460
+
- in: query
461
+
name: enable_teaching_mentorship
462
+
required: false
463
+
description: |
464
+
Display or hide the _teaching and mentorship metrics_ in the _Metrics_ pop-up.
465
+
466
+
**Please note** these metrics do not work out of the box. If you are interested in these metrics please consult our handbook for more information.
467
+
468
+
`false` means the _teaching and mentorship metrics_ will not be included in the _Metrics_ pop-up.
469
+
`true` means the _teaching and mentorship metrics_ will be displayed in the _Metrics_ pop-up.
470
+
471
+
If the parameter is not provided, it defaults to `false`.
0 commit comments