Skip to content

Commit e31bcfe

Browse files
committed
update openapi
1 parent edd6b04 commit e31bcfe

1 file changed

Lines changed: 109 additions & 18 deletions

File tree

openapi/swagger.yaml

Lines changed: 109 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ servers:
55
url: https://virtserver.swaggerhub.com/dimus/gnparser/1.0.0
66
info:
77
description: |
8-
GNparser takes scientific names and parses them
9-
into their semantic elements.
8+
GNparser takes a scientific name and splits it into
9+
structural elements.
1010
1111
Scientific names can be represented in many different
1212
variants. For example "Homo sapiens" exists as
@@ -255,26 +255,117 @@ components:
255255
{
256256
"parsed": true,
257257
"quality": 2,
258-
"qualityWarnings":
259-
[{ "quality": 2, "warning": "Year with latin character" }],
258+
"qualityWarnings": [
259+
{
260+
"quality": 2,
261+
"warning": "Year with latin character"
262+
}
263+
],
260264
"verbatim": "Pleurosigma vitrea var. kjellmanii H.Peragallo, 1891a",
261265
"normalized": "Pleurosigma vitrea var. kjellmanii H. Peragallo 1891",
262-
"canonical":
266+
"canonical": {
267+
"stemmed": "Pleurosigma uitre kiellmani",
268+
"simple": "Pleurosigma vitrea kjellmanii",
269+
"full": "Pleurosigma vitrea var. kjellmanii"
270+
},
271+
"cardinality": 3,
272+
"authorship": {
273+
"verbatim": "H.Peragallo, 1891a",
274+
"normalized": "H. Peragallo 1891",
275+
"year": "1891",
276+
"authors": [
277+
"H. Peragallo"
278+
],
279+
"originalAuth": {
280+
"authors": [
281+
"H. Peragallo"
282+
],
283+
"year": {
284+
"year": "1891"
285+
}
286+
}
287+
},
288+
"details": {
289+
"infraSpecies": {
290+
"genus": "Pleurosigma",
291+
"species": "vitrea",
292+
"infraSpecies": [
293+
{
294+
"value": "kjellmanii",
295+
"rank": "var.",
296+
"authorship": {
297+
"verbatim": "H.Peragallo, 1891a",
298+
"normalized": "H. Peragallo 1891",
299+
"year": "1891",
300+
"authors": [
301+
"H. Peragallo"
302+
],
303+
"originalAuth": {
304+
"authors": [
305+
"H. Peragallo"
306+
],
307+
"year": {
308+
"year": "1891"
309+
}
310+
}
311+
}
312+
}
313+
]
314+
}
315+
},
316+
"words": [
263317
{
264-
"stemmed": "Pleurosigma uitre kiellmani",
265-
"simple": "Pleurosigma vitrea kjellmanii",
266-
"full": "Pleurosigma vitrea var. kjellmanii",
318+
"verbatim": "Pleurosigma",
319+
"normalized": "Pleurosigma",
320+
"wordType": "GENUS",
321+
"start": 0,
322+
"end": 11
323+
},
324+
{
325+
"verbatim": "vitrea",
326+
"normalized": "vitrea",
327+
"wordType": "SPECIES",
328+
"start": 12,
329+
"end": 18
330+
},
331+
{
332+
"verbatim": "var.",
333+
"normalized": "var.",
334+
"wordType": "RANK",
335+
"start": 19,
336+
"end": 23
267337
},
268-
"cardinality": 3,
269-
"authorship":
270338
{
271-
"verbatim": "H.Peragallo, 1891a",
272-
"normalized": "H. Peragallo 1891",
273-
"year": "1891",
274-
"authors": ["H. Peragallo"],
339+
"verbatim": "kjellmanii",
340+
"normalized": "kjellmanii",
341+
"wordType": "INFRASPECIES",
342+
"start": 24,
343+
"end": 34
275344
},
345+
{
346+
"verbatim": "H.",
347+
"normalized": "H.",
348+
"wordType": "AUTHOR_WORD",
349+
"start": 35,
350+
"end": 37
351+
},
352+
{
353+
"verbatim": "Peragallo",
354+
"normalized": "Peragallo",
355+
"wordType": "AUTHOR_WORD",
356+
"start": 37,
357+
"end": 46
358+
},
359+
{
360+
"verbatim": "1891a",
361+
"normalized": "1891",
362+
"wordType": "YEAR",
363+
"start": 48,
364+
"end": 53
365+
}
366+
],
276367
"id": "f6a5b47b-9917-5a48-b0ff-366bc036ae9c",
277-
"parserVersion": "v1.0.0",
368+
"parserVersion": "v0.14.4-37-g5eb244b"
278369
}
279370
required:
280371
- id
@@ -415,7 +506,7 @@ components:
415506
description: meaning and position of every parsed word.
416507
type: array
417508
items:
418-
- $ref: "#/components/schemas/Word"
509+
$ref: "#/components/schemas/Word"
419510
id:
420511
type: string
421512
description: |
@@ -455,7 +546,7 @@ components:
455546
type: integer
456547
enum: [0, 1, 2, 3, 4]
457548
example: 2
458-
549+
459550
Canonical:
460551
description: |
461552
Simplified versions of a name-string more suitable for
@@ -911,4 +1002,4 @@ components:
9111002
end:
9121003
description: The index of the end of the word.
9131004
type: integer
914-
example: 22
1005+
example: 22

0 commit comments

Comments
 (0)