generated from ioggstream/draft-polli-foo-media-type
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathschemas.yaml
221 lines (220 loc) · 5.27 KB
/
schemas.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
Person:
description: Simple cyclic example.
x-jsonld-type: Person
x-jsonld-context:
"email": "@id"
"@vocab": "https://w3.org/ns/person#"
children:
"@container": "@set"
type: object
properties:
email: { type: string }
children:
type: array
items:
$ref: '#/Person'
example:
email: "mailto:a@example"
children:
- email: "mailto:dough@example"
- email: "mailto:son@example"
Granny:
description: Simple cyclic example.
x-jsonld-type: Person
x-jsonld-context:
"email": "@id"
"@vocab": "https://w3.org/ns/person#"
children:
"@container": "@set"
type: object
properties:
email: { type: string }
children:
type: array
items:
$ref: '#/Person'
example:
email: "mailto:a@example"
children:
- email: "mailto:dough@example"
children:
- email: "mailto:gdough@example"
- email: "mailto:son@example"
Spouse:
description: Simple cyclic example.
x-jsonld-type: Person
x-jsonld-context:
"email": "@id"
"@vocab": "https://w3.org/ns/person#"
children:
"@container": "@set"
properties:
email: { type: string }
spouse:
$ref: "#/Person"
children:
type: array
items:
$ref: '#/Person'
example:
email: "mailto:a@example"
spouse:
email: mailto:hus@example
children:
- email: "mailto:dough@example"
- email: "mailto:son@example"
children:
- email: "mailto:gdough@example"
EducationLevel:
x-jsonld-context:
"@vocab": "https://w3id.org/italia/onto/CPV/"
education_level:
"@id": "hasLevelOfEducation"
"@type": "@id"
"@context":
"@base": "https://w3id.org/italia/controlled-vocabulary/classifications-for-people/education-level/"
type: object
additionalProperties: false
properties:
education_level:
type: string
example:
education_level: NED
BirthPlace:
type: object
additionalProperties: false
required:
- city
- province
- country
x-jsonld-type: https://w3id.org/italia/onto/CLV/Feature
x-jsonld-context: &BirthPlaceContext
"@vocab": "https://w3id.org/italia/onto/CLV/"
city: hasCity
country:
"@id": "hasCountry"
"@type": "@id"
"@context":
"@base": "http://publications.europa.eu/resource/authority/country/"
province:
"@id": "hasProvince"
"@type": "@id"
"@context":
"@base": "https://w3id.org/italia/data/identifiers/provinces-identifiers/vehicle-code/"
interno: null
properties:
city:
type: string
description: The city where the person was born.
example: Roma
province:
type: string
description: The province where the person was born.
example: RM
country:
type: string
description: The iso alpha-3 code of the country where the person was born.
example: ITA
postCode:
type: string
description: The post code (zip code)
example: "00100"
interno:
type: string
maxLength: 32
example:
city: Roma
province: RM
country: ITA
postCode: "00100"
interno: "Interno 8"
Citizen:
description: Simple cyclic example.
x-jsonld-type: Person
x-jsonld-context:
"email": "@id"
"@vocab": "https://w3.org/ns/person#"
children:
"@container": "@set"
type: object
properties:
email: { type: string }
birthplace:
$ref: "#/BirthPlace"
children:
type: array
items:
$ref: '#/Person'
example:
email: "mailto:a@example"
birthplace:
city: Roma
province: RM
country: ITA
postCode: "00100"
interno: "Interno 8"
children:
- email: "mailto:dough@example"
- email: "mailto:son@example"
ContextPerson:
type: object
x-jsonld-type: Person
x-jsonld-context:
"@vocab": "https://w3id.org/italia/onto/CPV/"
tax_code: taxCode
date_of_birth: dateOfBirth
given_name: givenName
family_name: familyName
education_level:
"@id": hasLevelOfEducation
"@type": "@id"
"@context":
"@base": "https://w3id.org/italia/controlled-vocabulary/classifications-for-people/education-level/"
birth_place:
"@id": "hasBirthPlace"
"@context": *BirthPlaceContext
children:
"@id": isParentOf
parents:
"@id": isChildOf
additionalProperties: false
description: |-
Questo schema rappresenta una persona fisica.
required:
- given_name
- family_name
- tax_code
properties:
tax_code:
type: string
family_name:
maxLength: 255
type: string
given_name:
maxLength: 255
type: string
date_of_birth:
format: date
type: string
education_level:
type: string
maxLength: 3
description: |-
Il livello di istruzione della persona.
I valori ammessi sono indicati nel [vocabolario](https://w3id.org/italia/controlled-vocabulary/classifications-for-people/education-level)
birth_place:
$ref: "#/BirthPlace"
example:
tax_code: RSSMRA75L01H501A
family_name: Rossi
given_name: Mario
date_of_birth: "1961-01-01"
education_level: "NED"
birth_place:
city: Roma
province: RM
country: ITA
children:
- tax_code: RSSMRA75L01H501A
- tax_code: RSSMRA76L01H501A
- tax_code: RSSMRA77L01H501A