-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.yaml
68 lines (66 loc) · 1.33 KB
/
schema.yaml
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
name: whenworks
id: https://w3id.org/whenworks
description: Data models for the WhenWorks API
prefixes:
linkml: https://w3id.org/linkml/
imports:
- linkml:types
default_range: string
classes:
Event:
slots:
- name
- desc
- dates
- users
User:
slots:
- name
- comment
- dates
DateRange:
slots:
- from
- to
- preferred
slots:
name:
description: The name of the event
required: true
desc:
description: A description of the event
dates:
description: The dates of the event
range: DateRange
multivalued: true
inlined_as_list: true
users:
description: The users of the event
range: User
multivalued: true
inlined: true
inlined_as_list: false
name:
description: The name of the user
required: true
identifier: true
comment:
description: A comment from the user
dates:
description: The availability dates of the user
range: DateRange
multivalued: true
inlined_as_list: true
from:
description: The start date of the availability
required: true
range: integer
to:
description: The end date of the availability
required: true
range: integer
preferred:
description: Whether the user prefers this date
required: true
range: boolean
ifabsent: False