Skip to content

Commit

Permalink
Update schema
Browse files Browse the repository at this point in the history
  • Loading branch information
nikiluk committed Jul 26, 2021
1 parent 49f9053 commit e807cbd
Show file tree
Hide file tree
Showing 5 changed files with 168 additions and 0 deletions.
36 changes: 36 additions & 0 deletions API/models/Annotation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
title: Annotation
type: object
properties:
id:
type: string
format: uuid
datapoints:
type: number
labeler:
$ref: ./Labeler.yaml
type:
oneOf:
- properties:
name:
type: string
enum:
- internal
- outsourced
- crowdsourced
- synthetic
- dataProgramming
description:
type: string
required:
- name
type: object
tools:
type: array
items:
$ref: ./Labeling-Tool.yaml
required:
- id
- datapoints
- labeler
- type
description: Annotation model for each single Labeler
32 changes: 32 additions & 0 deletions API/models/Dataset.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
title: Dataset
type: object
properties:
id:
type: string
format: uuid
created:
type: string
format: date-time
description:
type: string
version:
type: string
scope:
type: string
source:
type: object
properties:
description:
type: string
url:
$ref: ''
required:
- description
labeling:
type: array
items:
$ref: ./Annotation.yaml
required:
- id
- created
description: Dataset Model
48 changes: 48 additions & 0 deletions API/models/Labeler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
title: Labeler
type: object
properties:
id:
type: string
format: uuid
created:
type: string
format: date-time
updated:
type: string
format: date-time
name:
type: string
projects:
type: array
items: {}
training:
type: array
items: {}
tools:
type: array
items:
$ref: ./Labeling-Tool.yaml
contacts:
type: array
items:
type: object
properties:
type:
anyOf:
- properties: {}
enum:
- email
- phone
type: string
value:
type: string
access:
type: string
enum:
- public
- private
required:
- id
- created
- updated
description: Labeler's profile
19 changes: 19 additions & 0 deletions API/models/Labeling-Tool.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
title: Labeling Tool
type: object
properties:
id:
type: string
format: uuid
name:
type: string
description:
type: string
url:
$ref: ''
version:
type: string
required:
- id
- name
- description
description: Description of the Labeling Tool
33 changes: 33 additions & 0 deletions API/models/Open-Ethics-Data-Passport.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
title: Open Ethics Data Passport
type: object
description: OEDP Model
properties:
id:
type: string
format: uuid
datasets:
type: array
items:
$ref: ./Dataset.yaml
scope:
type: string
created:
type: string
format: date-time
product:
type:
- array
- string
format: uuid
items: {}
updated:
type: string
format: date-time
validUntil:
type: string
format: date-time
required:
- id
- datasets
- scope
- created

0 comments on commit e807cbd

Please sign in to comment.