From d88e9f9b8fb6c2a493c80c49bd1a710a27ce9aa7 Mon Sep 17 00:00:00 2001 From: manon blanco <blanco@teklia.com> Date: Tue, 10 Sep 2019 11:58:11 +0000 Subject: [PATCH] move the classification of pages to the elements --- arkindex/schema.yml | 1665 +++++++++++++++++++++++++++++++++---------- 1 file changed, 1306 insertions(+), 359 deletions(-) diff --git a/arkindex/schema.yml b/arkindex/schema.yml index a26bf7d..4e1c846 100644 --- a/arkindex/schema.yml +++ b/arkindex/schema.yml @@ -16,7 +16,7 @@ info: name: Teklia url: https://www.teklia.com/ title: Arkindex API - version: 0.9.7-dev2 + version: 0.9.7 openapi: 3.0.2 paths: /api/v1/act/{id}/: @@ -93,6 +93,61 @@ paths: - name readOnly: true type: array + classifications: + items: + properties: + confidence: + nullable: true + type: number + id: + format: uuid + type: string + ml_class: + properties: + id: + format: uuid + type: string + name: + maxLength: 100 + type: string + required: + - name + type: object + source: + properties: + id: + format: uuid + type: string + internal: + type: boolean + revision: + maxLength: 100 + type: string + slug: + maxLength: 100 + type: string + type: + enum: + - classifier + - recognizer + - ner + - dla + required: + - type + - slug + - revision + - internal + type: object + state: + enum: + - pending + - validated + - rejected + required: + - source + - ml_class + - state + type: array id: format: uuid readOnly: true @@ -114,6 +169,7 @@ paths: required: - name - number + - classifications description: '' security: [] tags: @@ -362,12 +418,12 @@ paths: application/json: schema: properties: - ml_class: + element: type: string - page: + ml_class: type: string required: - - page + - element - ml_class x-name: body responses: @@ -376,12 +432,12 @@ paths: application/json: schema: properties: - ml_class: + element: type: string - page: + ml_class: type: string required: - - page + - element - ml_class description: '' tags: @@ -858,61 +914,6 @@ paths: results: items: properties: - classifications: - items: - properties: - confidence: - nullable: true - type: number - id: - format: uuid - type: string - ml_class: - properties: - id: - format: uuid - type: string - name: - maxLength: 100 - type: string - required: - - name - type: object - source: - properties: - id: - format: uuid - type: string - internal: - type: boolean - revision: - maxLength: 100 - type: string - slug: - maxLength: 100 - type: string - type: - enum: - - classifier - - recognizer - - ner - - dla - required: - - type - - slug - - revision - - internal - type: object - state: - enum: - - pending - - validated - - rejected - required: - - source - - ml_class - - state - type: array direction: enum: - recto @@ -973,7 +974,6 @@ paths: - page_type - direction - image - - classifications - folio type: array type: object @@ -1187,6 +1187,61 @@ paths: application/json: schema: properties: + classifications: + items: + properties: + confidence: + nullable: true + type: number + id: + format: uuid + type: string + ml_class: + properties: + id: + format: uuid + type: string + name: + maxLength: 100 + type: string + required: + - name + type: object + source: + properties: + id: + format: uuid + type: string + internal: + type: boolean + revision: + maxLength: 100 + type: string + slug: + maxLength: 100 + type: string + type: + enum: + - classifier + - recognizer + - ner + - dla + required: + - type + - slug + - revision + - internal + type: object + state: + enum: + - pending + - validated + - rejected + required: + - source + - ml_class + - state + type: array corpus: properties: id: @@ -1240,6 +1295,7 @@ paths: readOnly: true required: - name + - classifications description: '' security: [] tags: @@ -1259,6 +1315,61 @@ paths: application/json: schema: properties: + classifications: + items: + properties: + confidence: + nullable: true + type: number + id: + format: uuid + type: string + ml_class: + properties: + id: + format: uuid + type: string + name: + maxLength: 100 + type: string + required: + - name + type: object + source: + properties: + id: + format: uuid + type: string + internal: + type: boolean + revision: + maxLength: 100 + type: string + slug: + maxLength: 100 + type: string + type: + enum: + - classifier + - recognizer + - ner + - dla + required: + - type + - slug + - revision + - internal + type: object + state: + enum: + - pending + - validated + - rejected + required: + - source + - ml_class + - state + type: array id: format: uuid type: string @@ -1272,60 +1383,116 @@ paths: application/json: schema: properties: - corpus: - properties: - id: - format: uuid - type: string - name: - maxLength: 250 - type: string - public: - type: boolean - readOnly: true - required: - - name - type: object - id: - format: uuid - type: string - metadata: - readOnly: true - type: string - name: - maxLength: 250 - type: string - thumbnail_put_url: - format: uri - pattern: "^(?:[a-z0-9\\.\\-\\+]*)://(?:[^\\s:@/]+(?::[^\\s:@/]*)?@)?(?:(?:25[0-5]|2[0-4]\\\ - d|[0-1]?\\d?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}|\\\ - [[0-9a-f:\\.]+\\]|([a-z\xA1-\uFFFF0-9](?:[a-z\xA1-\uFFFF0-9-]{0,61}[a-z\xA1\ - -\uFFFF0-9])?(?:\\.(?!-)[a-z\xA1-\uFFFF0-9-]{1,63}(?<!-))*\\\ - .(?!-)(?:[a-z\xA1-\uFFFF-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\\\ - .?|localhost))(?::\\d{2,5})?(?:[/?#][^\\s]*)?\\Z" - readOnly: true - type: string - thumbnail_url: - format: uri - pattern: "^(?:[a-z0-9\\.\\-\\+]*)://(?:[^\\s:@/]+(?::[^\\s:@/]*)?@)?(?:(?:25[0-5]|2[0-4]\\\ - d|[0-1]?\\d?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}|\\\ - [[0-9a-f:\\.]+\\]|([a-z\xA1-\uFFFF0-9](?:[a-z\xA1-\uFFFF0-9-]{0,61}[a-z\xA1\ - -\uFFFF0-9])?(?:\\.(?!-)[a-z\xA1-\uFFFF0-9-]{1,63}(?<!-))*\\\ - .(?!-)(?:[a-z\xA1-\uFFFF-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\\\ - .?|localhost))(?::\\d{2,5})?(?:[/?#][^\\s]*)?\\Z" - readOnly: true - type: string - type: - enum: - - volume - - register - - act - - page - - surface - readOnly: true - required: - - name - description: '' + classifications: + items: + properties: + confidence: + nullable: true + type: number + id: + format: uuid + type: string + ml_class: + properties: + id: + format: uuid + type: string + name: + maxLength: 100 + type: string + required: + - name + type: object + source: + properties: + id: + format: uuid + type: string + internal: + type: boolean + revision: + maxLength: 100 + type: string + slug: + maxLength: 100 + type: string + type: + enum: + - classifier + - recognizer + - ner + - dla + required: + - type + - slug + - revision + - internal + type: object + state: + enum: + - pending + - validated + - rejected + required: + - source + - ml_class + - state + type: array + corpus: + properties: + id: + format: uuid + type: string + name: + maxLength: 250 + type: string + public: + type: boolean + readOnly: true + required: + - name + type: object + id: + format: uuid + type: string + metadata: + readOnly: true + type: string + name: + maxLength: 250 + type: string + thumbnail_put_url: + format: uri + pattern: "^(?:[a-z0-9\\.\\-\\+]*)://(?:[^\\s:@/]+(?::[^\\s:@/]*)?@)?(?:(?:25[0-5]|2[0-4]\\\ + d|[0-1]?\\d?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}|\\\ + [[0-9a-f:\\.]+\\]|([a-z\xA1-\uFFFF0-9](?:[a-z\xA1-\uFFFF0-9-]{0,61}[a-z\xA1\ + -\uFFFF0-9])?(?:\\.(?!-)[a-z\xA1-\uFFFF0-9-]{1,63}(?<!-))*\\\ + .(?!-)(?:[a-z\xA1-\uFFFF-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\\\ + .?|localhost))(?::\\d{2,5})?(?:[/?#][^\\s]*)?\\Z" + readOnly: true + type: string + thumbnail_url: + format: uri + pattern: "^(?:[a-z0-9\\.\\-\\+]*)://(?:[^\\s:@/]+(?::[^\\s:@/]*)?@)?(?:(?:25[0-5]|2[0-4]\\\ + d|[0-1]?\\d?\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}|\\\ + [[0-9a-f:\\.]+\\]|([a-z\xA1-\uFFFF0-9](?:[a-z\xA1-\uFFFF0-9-]{0,61}[a-z\xA1\ + -\uFFFF0-9])?(?:\\.(?!-)[a-z\xA1-\uFFFF0-9-]{1,63}(?<!-))*\\\ + .(?!-)(?:[a-z\xA1-\uFFFF-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\\\ + .?|localhost))(?::\\d{2,5})?(?:[/?#][^\\s]*)?\\Z" + readOnly: true + type: string + type: + enum: + - volume + - register + - act + - page + - surface + readOnly: true + required: + - name + - classifications + description: '' tags: - elements put: @@ -1343,6 +1510,61 @@ paths: application/json: schema: properties: + classifications: + items: + properties: + confidence: + nullable: true + type: number + id: + format: uuid + type: string + ml_class: + properties: + id: + format: uuid + type: string + name: + maxLength: 100 + type: string + required: + - name + type: object + source: + properties: + id: + format: uuid + type: string + internal: + type: boolean + revision: + maxLength: 100 + type: string + slug: + maxLength: 100 + type: string + type: + enum: + - classifier + - recognizer + - ner + - dla + required: + - type + - slug + - revision + - internal + type: object + state: + enum: + - pending + - validated + - rejected + required: + - source + - ml_class + - state + type: array id: format: uuid type: string @@ -1351,6 +1573,7 @@ paths: type: string required: - name + - classifications x-name: body responses: '200': @@ -1358,6 +1581,61 @@ paths: application/json: schema: properties: + classifications: + items: + properties: + confidence: + nullable: true + type: number + id: + format: uuid + type: string + ml_class: + properties: + id: + format: uuid + type: string + name: + maxLength: 100 + type: string + required: + - name + type: object + source: + properties: + id: + format: uuid + type: string + internal: + type: boolean + revision: + maxLength: 100 + type: string + slug: + maxLength: 100 + type: string + type: + enum: + - classifier + - recognizer + - ner + - dla + required: + - type + - slug + - revision + - internal + type: object + state: + enum: + - pending + - validated + - rejected + required: + - source + - ml_class + - state + type: array corpus: properties: id: @@ -1411,6 +1689,7 @@ paths: readOnly: true required: - name + - classifications description: '' tags: - elements @@ -1504,6 +1783,31 @@ paths: type: object name: type: string + source: + properties: + id: + format: uuid + type: string + internal: + type: boolean + revision: + maxLength: 100 + type: string + slug: + maxLength: 100 + type: string + type: + enum: + - classifier + - recognizer + - ner + - dla + required: + - type + - slug + - revision + - internal + type: object type: enum: - person @@ -1518,6 +1822,7 @@ paths: required: - name - type + - source type: object id: format: uuid @@ -1619,6 +1924,31 @@ paths: type: object name: type: string + source: + properties: + id: + format: uuid + type: string + internal: + type: boolean + revision: + maxLength: 100 + type: string + slug: + maxLength: 100 + type: string + type: + enum: + - classifier + - recognizer + - ner + - dla + required: + - type + - slug + - revision + - internal + type: object type: enum: - person @@ -1633,6 +1963,7 @@ paths: required: - name - type + - source type: object length: minimum: 0 @@ -1840,6 +2171,31 @@ paths: type: object name: type: string + source: + properties: + id: + format: uuid + type: string + internal: + type: boolean + revision: + maxLength: 100 + type: string + slug: + maxLength: 100 + type: string + type: + enum: + - classifier + - recognizer + - ner + - dla + required: + - type + - slug + - revision + - internal + type: object type: enum: - person @@ -1854,6 +2210,7 @@ paths: required: - name - type + - source type: object id: format: uuid @@ -1897,6 +2254,31 @@ paths: type: object name: type: string + source: + properties: + id: + format: uuid + type: string + internal: + type: boolean + revision: + maxLength: 100 + type: string + slug: + maxLength: 100 + type: string + type: + enum: + - classifier + - recognizer + - ner + - dla + required: + - type + - slug + - revision + - internal + type: object type: enum: - person @@ -1911,6 +2293,7 @@ paths: required: - name - type + - source type: object role: properties: @@ -2787,61 +3170,6 @@ paths: results: items: properties: - classifications: - items: - properties: - confidence: - nullable: true - type: number - id: - format: uuid - type: string - ml_class: - properties: - id: - format: uuid - type: string - name: - maxLength: 100 - type: string - required: - - name - type: object - source: - properties: - id: - format: uuid - type: string - internal: - type: boolean - revision: - maxLength: 100 - type: string - slug: - maxLength: 100 - type: string - type: - enum: - - classifier - - recognizer - - ner - - dla - required: - - type - - slug - - revision - - internal - type: object - state: - enum: - - pending - - validated - - rejected - required: - - source - - ml_class - - state - type: array direction: enum: - recto @@ -2902,7 +3230,6 @@ paths: - page_type - direction - image - - classifications - folio type: array type: object @@ -3024,39 +3351,12 @@ paths: properties: corpus: type: string - dates: - items: - properties: - day: - maximum: 31 - minimum: 1 - nullable: true - type: integer - month: - maximum: 12 - minimum: 1 - nullable: true - type: integer - type: - enum: - - exact - - lower - - upper - - unknown - year: - minimum: 0 - type: integer - required: - - type - - year - - month - - day - nullable: true - type: array metas: type: object name: type: string + ner: + type: string type: enum: - person @@ -3072,6 +3372,7 @@ paths: - name - type - corpus + - ner x-name: body responses: '200': @@ -3121,6 +3422,31 @@ paths: type: object name: type: string + source: + properties: + id: + format: uuid + type: string + internal: + type: boolean + revision: + maxLength: 100 + type: string + slug: + maxLength: 100 + type: string + type: + enum: + - classifier + - recognizer + - ner + - dla + required: + - type + - slug + - revision + - internal + type: object type: enum: - person @@ -3135,6 +3461,7 @@ paths: required: - name - type + - source type: object id: format: uuid @@ -3178,6 +3505,31 @@ paths: type: object name: type: string + source: + properties: + id: + format: uuid + type: string + internal: + type: boolean + revision: + maxLength: 100 + type: string + slug: + maxLength: 100 + type: string + type: + enum: + - classifier + - recognizer + - ner + - dla + required: + - type + - slug + - revision + - internal + type: object type: enum: - person @@ -3192,6 +3544,7 @@ paths: required: - name - type + - source type: object role: properties: @@ -3236,35 +3589,6 @@ paths: type: array corpus: type: string - dates: - items: - properties: - day: - maximum: 31 - minimum: 1 - nullable: true - type: integer - month: - maximum: 12 - minimum: 1 - nullable: true - type: integer - type: - enum: - - exact - - lower - - upper - - unknown - year: - minimum: 0 - type: integer - required: - - type - - year - - month - - day - nullable: true - type: array id: format: uuid readOnly: true @@ -3273,6 +3597,8 @@ paths: type: object name: type: string + ner: + type: string parents: items: properties: @@ -3313,8 +3639,33 @@ paths: metas: nullable: true type: object - name: - type: string + name: + type: string + source: + properties: + id: + format: uuid + type: string + internal: + type: boolean + revision: + maxLength: 100 + type: string + slug: + maxLength: 100 + type: string + type: + enum: + - classifier + - recognizer + - ner + - dla + required: + - type + - slug + - revision + - internal + type: object type: enum: - person @@ -3329,6 +3680,7 @@ paths: required: - name - type + - source type: object id: format: uuid @@ -3372,6 +3724,31 @@ paths: type: object name: type: string + source: + properties: + id: + format: uuid + type: string + internal: + type: boolean + revision: + maxLength: 100 + type: string + slug: + maxLength: 100 + type: string + type: + enum: + - classifier + - recognizer + - ner + - dla + required: + - type + - slug + - revision + - internal + type: object type: enum: - person @@ -3386,6 +3763,7 @@ paths: required: - name - type + - source type: object role: properties: @@ -3443,6 +3821,7 @@ paths: - name - type - corpus + - ner description: '' tags: - entities @@ -3629,6 +4008,31 @@ paths: type: object name: type: string + source: + properties: + id: + format: uuid + type: string + internal: + type: boolean + revision: + maxLength: 100 + type: string + slug: + maxLength: 100 + type: string + type: + enum: + - classifier + - recognizer + - ner + - dla + required: + - type + - slug + - revision + - internal + type: object type: enum: - person @@ -3643,6 +4047,7 @@ paths: required: - name - type + - source type: object id: format: uuid @@ -3686,6 +4091,31 @@ paths: type: object name: type: string + source: + properties: + id: + format: uuid + type: string + internal: + type: boolean + revision: + maxLength: 100 + type: string + slug: + maxLength: 100 + type: string + type: + enum: + - classifier + - recognizer + - ner + - dla + required: + - type + - slug + - revision + - internal + type: object type: enum: - person @@ -3700,6 +4130,7 @@ paths: required: - name - type + - source type: object role: properties: @@ -3833,6 +4264,31 @@ paths: type: object name: type: string + source: + properties: + id: + format: uuid + type: string + internal: + type: boolean + revision: + maxLength: 100 + type: string + slug: + maxLength: 100 + type: string + type: + enum: + - classifier + - recognizer + - ner + - dla + required: + - type + - slug + - revision + - internal + type: object type: enum: - person @@ -3847,6 +4303,7 @@ paths: required: - name - type + - source type: object id: format: uuid @@ -3890,6 +4347,31 @@ paths: type: object name: type: string + source: + properties: + id: + format: uuid + type: string + internal: + type: boolean + revision: + maxLength: 100 + type: string + slug: + maxLength: 100 + type: string + type: + enum: + - classifier + - recognizer + - ner + - dla + required: + - type + - slug + - revision + - internal + type: object type: enum: - person @@ -3904,6 +4386,7 @@ paths: required: - name - type + - source type: object role: properties: @@ -3945,6 +4428,31 @@ paths: - child - role type: array + source: + properties: + id: + format: uuid + type: string + internal: + type: boolean + revision: + maxLength: 100 + type: string + slug: + maxLength: 100 + type: string + type: + enum: + - classifier + - recognizer + - ner + - dla + required: + - type + - slug + - revision + - internal + type: object type: enum: - person @@ -3959,6 +4467,7 @@ paths: required: - name - type + - source - corpus - children - parents @@ -4023,6 +4532,31 @@ paths: type: object name: type: string + source: + properties: + id: + format: uuid + type: string + internal: + type: boolean + revision: + maxLength: 100 + type: string + slug: + maxLength: 100 + type: string + type: + enum: + - classifier + - recognizer + - ner + - dla + required: + - type + - slug + - revision + - internal + type: object type: enum: - person @@ -4037,6 +4571,7 @@ paths: required: - name - type + - source type: object id: format: uuid @@ -4080,6 +4615,31 @@ paths: type: object name: type: string + source: + properties: + id: + format: uuid + type: string + internal: + type: boolean + revision: + maxLength: 100 + type: string + slug: + maxLength: 100 + type: string + type: + enum: + - classifier + - recognizer + - ner + - dla + required: + - type + - slug + - revision + - internal + type: object type: enum: - person @@ -4094,6 +4654,7 @@ paths: required: - name - type + - source type: object role: properties: @@ -4227,6 +4788,31 @@ paths: type: object name: type: string + source: + properties: + id: + format: uuid + type: string + internal: + type: boolean + revision: + maxLength: 100 + type: string + slug: + maxLength: 100 + type: string + type: + enum: + - classifier + - recognizer + - ner + - dla + required: + - type + - slug + - revision + - internal + type: object type: enum: - person @@ -4241,6 +4827,7 @@ paths: required: - name - type + - source type: object id: format: uuid @@ -4284,6 +4871,31 @@ paths: type: object name: type: string + source: + properties: + id: + format: uuid + type: string + internal: + type: boolean + revision: + maxLength: 100 + type: string + slug: + maxLength: 100 + type: string + type: + enum: + - classifier + - recognizer + - ner + - dla + required: + - type + - slug + - revision + - internal + type: object type: enum: - person @@ -4298,6 +4910,7 @@ paths: required: - name - type + - source type: object role: properties: @@ -4339,6 +4952,31 @@ paths: - child - role type: array + source: + properties: + id: + format: uuid + type: string + internal: + type: boolean + revision: + maxLength: 100 + type: string + slug: + maxLength: 100 + type: string + type: + enum: + - classifier + - recognizer + - ner + - dla + required: + - type + - slug + - revision + - internal + type: object type: enum: - person @@ -4399,6 +5037,31 @@ paths: type: object name: type: string + source: + properties: + id: + format: uuid + type: string + internal: + type: boolean + revision: + maxLength: 100 + type: string + slug: + maxLength: 100 + type: string + type: + enum: + - classifier + - recognizer + - ner + - dla + required: + - type + - slug + - revision + - internal + type: object type: enum: - person @@ -4413,6 +5076,7 @@ paths: required: - name - type + - source type: object id: format: uuid @@ -4456,6 +5120,31 @@ paths: type: object name: type: string + source: + properties: + id: + format: uuid + type: string + internal: + type: boolean + revision: + maxLength: 100 + type: string + slug: + maxLength: 100 + type: string + type: + enum: + - classifier + - recognizer + - ner + - dla + required: + - type + - slug + - revision + - internal + type: object type: enum: - person @@ -4470,6 +5159,7 @@ paths: required: - name - type + - source type: object role: properties: @@ -4603,6 +5293,31 @@ paths: type: object name: type: string + source: + properties: + id: + format: uuid + type: string + internal: + type: boolean + revision: + maxLength: 100 + type: string + slug: + maxLength: 100 + type: string + type: + enum: + - classifier + - recognizer + - ner + - dla + required: + - type + - slug + - revision + - internal + type: object type: enum: - person @@ -4617,6 +5332,7 @@ paths: required: - name - type + - source type: object id: format: uuid @@ -4660,6 +5376,31 @@ paths: type: object name: type: string + source: + properties: + id: + format: uuid + type: string + internal: + type: boolean + revision: + maxLength: 100 + type: string + slug: + maxLength: 100 + type: string + type: + enum: + - classifier + - recognizer + - ner + - dla + required: + - type + - slug + - revision + - internal + type: object type: enum: - person @@ -4674,6 +5415,7 @@ paths: required: - name - type + - source type: object role: properties: @@ -4715,6 +5457,31 @@ paths: - child - role type: array + source: + properties: + id: + format: uuid + type: string + internal: + type: boolean + revision: + maxLength: 100 + type: string + slug: + maxLength: 100 + type: string + type: + enum: + - classifier + - recognizer + - ner + - dla + required: + - type + - slug + - revision + - internal + type: object type: enum: - person @@ -4729,6 +5496,7 @@ paths: required: - name - type + - source - corpus - children - parents @@ -4792,6 +5560,31 @@ paths: type: object name: type: string + source: + properties: + id: + format: uuid + type: string + internal: + type: boolean + revision: + maxLength: 100 + type: string + slug: + maxLength: 100 + type: string + type: + enum: + - classifier + - recognizer + - ner + - dla + required: + - type + - slug + - revision + - internal + type: object type: enum: - person @@ -4806,6 +5599,7 @@ paths: required: - name - type + - source type: object id: format: uuid @@ -4849,6 +5643,31 @@ paths: type: object name: type: string + source: + properties: + id: + format: uuid + type: string + internal: + type: boolean + revision: + maxLength: 100 + type: string + slug: + maxLength: 100 + type: string + type: + enum: + - classifier + - recognizer + - ner + - dla + required: + - type + - slug + - revision + - internal + type: object type: enum: - person @@ -4863,6 +5682,7 @@ paths: required: - name - type + - source type: object role: properties: @@ -4996,6 +5816,31 @@ paths: type: object name: type: string + source: + properties: + id: + format: uuid + type: string + internal: + type: boolean + revision: + maxLength: 100 + type: string + slug: + maxLength: 100 + type: string + type: + enum: + - classifier + - recognizer + - ner + - dla + required: + - type + - slug + - revision + - internal + type: object type: enum: - person @@ -5010,6 +5855,7 @@ paths: required: - name - type + - source type: object id: format: uuid @@ -5053,6 +5899,31 @@ paths: type: object name: type: string + source: + properties: + id: + format: uuid + type: string + internal: + type: boolean + revision: + maxLength: 100 + type: string + slug: + maxLength: 100 + type: string + type: + enum: + - classifier + - recognizer + - ner + - dla + required: + - type + - slug + - revision + - internal + type: object type: enum: - person @@ -5067,6 +5938,7 @@ paths: required: - name - type + - source type: object role: properties: @@ -5108,6 +5980,31 @@ paths: - child - role type: array + source: + properties: + id: + format: uuid + type: string + internal: + type: boolean + revision: + maxLength: 100 + type: string + slug: + maxLength: 100 + type: string + type: + enum: + - classifier + - recognizer + - ner + - dla + required: + - type + - slug + - revision + - internal + type: object type: enum: - person @@ -5122,6 +6019,7 @@ paths: required: - name - type + - source - corpus - children - parents @@ -5172,8 +6070,33 @@ paths: metas: nullable: true type: object - name: - type: string + name: + type: string + source: + properties: + id: + format: uuid + type: string + internal: + type: boolean + revision: + maxLength: 100 + type: string + slug: + maxLength: 100 + type: string + type: + enum: + - classifier + - recognizer + - ner + - dla + required: + - type + - slug + - revision + - internal + type: object type: enum: - person @@ -5188,6 +6111,7 @@ paths: required: - name - type + - source type: object id: format: uuid @@ -5231,6 +6155,31 @@ paths: type: object name: type: string + source: + properties: + id: + format: uuid + type: string + internal: + type: boolean + revision: + maxLength: 100 + type: string + slug: + maxLength: 100 + type: string + type: + enum: + - classifier + - recognizer + - ner + - dla + required: + - type + - slug + - revision + - internal + type: object type: enum: - person @@ -5245,6 +6194,7 @@ paths: required: - name - type + - source type: object role: properties: @@ -5378,6 +6328,31 @@ paths: type: object name: type: string + source: + properties: + id: + format: uuid + type: string + internal: + type: boolean + revision: + maxLength: 100 + type: string + slug: + maxLength: 100 + type: string + type: + enum: + - classifier + - recognizer + - ner + - dla + required: + - type + - slug + - revision + - internal + type: object type: enum: - person @@ -5392,6 +6367,7 @@ paths: required: - name - type + - source type: object id: format: uuid @@ -5435,6 +6411,31 @@ paths: type: object name: type: string + source: + properties: + id: + format: uuid + type: string + internal: + type: boolean + revision: + maxLength: 100 + type: string + slug: + maxLength: 100 + type: string + type: + enum: + - classifier + - recognizer + - ner + - dla + required: + - type + - slug + - revision + - internal + type: object type: enum: - person @@ -5449,6 +6450,7 @@ paths: required: - name - type + - source type: object role: properties: @@ -5490,6 +6492,31 @@ paths: - child - role type: array + source: + properties: + id: + format: uuid + type: string + internal: + type: boolean + revision: + maxLength: 100 + type: string + slug: + maxLength: 100 + type: string + type: + enum: + - classifier + - recognizer + - ner + - dla + required: + - type + - slug + - revision + - internal + type: object type: enum: - person @@ -5504,6 +6531,7 @@ paths: required: - name - type + - source - corpus - children - parents @@ -5571,9 +6599,6 @@ paths: id: format: uuid type: string - metadata: - readOnly: true - type: string name: maxLength: 250 type: string @@ -6497,7 +7522,7 @@ paths: /api/v1/imports/files/{id}/: get: description: List uploaded files in a corpus - operationId: ListDataFiles + operationId: ListDataFile parameters: - description: '' in: path @@ -7694,61 +8719,6 @@ paths: application/json: schema: properties: - classifications: - items: - properties: - confidence: - nullable: true - type: number - id: - format: uuid - type: string - ml_class: - properties: - id: - format: uuid - type: string - name: - maxLength: 100 - type: string - required: - - name - type: object - source: - properties: - id: - format: uuid - type: string - internal: - type: boolean - revision: - maxLength: 100 - type: string - slug: - maxLength: 100 - type: string - type: - enum: - - classifier - - recognizer - - ner - - dla - required: - - type - - slug - - revision - - internal - type: object - state: - enum: - - pending - - validated - - rejected - required: - - source - - ml_class - - state - type: array corpus: properties: id: @@ -7906,7 +8876,6 @@ paths: - image - corpus - transcriptions - - classifications description: '' security: [] tags: @@ -8248,61 +9217,6 @@ paths: type: string page: properties: - classifications: - items: - properties: - confidence: - nullable: true - type: number - id: - format: uuid - type: string - ml_class: - properties: - id: - format: uuid - type: string - name: - maxLength: 100 - type: string - required: - - name - type: object - source: - properties: - id: - format: uuid - type: string - internal: - type: boolean - revision: - maxLength: 100 - type: string - slug: - maxLength: 100 - type: string - type: - enum: - - classifier - - recognizer - - ner - - dla - required: - - type - - slug - - revision - - internal - type: object - state: - enum: - - pending - - validated - - rejected - required: - - source - - ml_class - - state - type: array corpus: properties: id: @@ -8461,7 +9375,6 @@ paths: - image - corpus - transcriptions - - classifications type: object zone: properties: @@ -8838,6 +9751,31 @@ paths: type: object name: type: string + source: + properties: + id: + format: uuid + type: string + internal: + type: boolean + revision: + maxLength: 100 + type: string + slug: + maxLength: 100 + type: string + type: + enum: + - classifier + - recognizer + - ner + - dla + required: + - type + - slug + - revision + - internal + type: object type: enum: - person @@ -8852,6 +9790,7 @@ paths: required: - name - type + - source type: object length: minimum: 0 @@ -9197,6 +10136,10 @@ paths: derivation: type: string writeOnly: true + exclude_tags: + items: + type: string + type: array farm: type: string gpu_count: @@ -9210,13 +10153,13 @@ paths: maxLength: 64 pattern: ^[-a-zA-Z0-9_]+$ type: string - public_key: - type: string - writeOnly: true - tags: + include_tags: items: type: string type: array + public_key: + type: string + writeOnly: true required: - farm - public_key @@ -9243,6 +10186,10 @@ paths: maximum: 9223372036854775807 minimum: 1 type: integer + exclude_tags: + items: + type: string + type: array farm: type: string gpu_count: @@ -9260,13 +10207,13 @@ paths: format: uuid readOnly: true type: string - refresh_token: - readOnly: true - type: string - tags: + include_tags: items: type: string type: array + refresh_token: + readOnly: true + type: string required: - farm - hostname -- GitLab