-
Notifications
You must be signed in to change notification settings - Fork 90
/
Copy pathauthor.schema.json
75 lines (75 loc) · 2 KB
/
author.schema.json
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
{
"$schema": "http://json-schema.org/draft-04/schema#",
"title": "Open Library Author Schema",
"type": "object",
"required": [
"key",
"name",
"type",
"revision",
"last_modified"
],
"additionalProperties": false,
"properties": {
"key": { "$ref": "shared_definitions.json#/author_key" },
"name": { "type": "string" },
"type": {
"type": "object",
"additionalProperties": false,
"properties": {
"key": {
"type": "string",
"enum": ["/type/author"]
}
}
},
"alternate_names": { "$ref": "shared_definitions.json#/string_array" },
"bio": { "$ref": "shared_definitions.json#/text_block" },
"birth_date": { "type": "string" },
"death_date": { "type": "string" },
"location": {
"type": "string",
"examples": [
"England, U.K."
]
},
"date": { "type": "string" },
"entity_type": {
"type": "string",
"enum": ["person", "org", "event"]
},
"fuller_name": { "type": "string" },
"personal_name": { "type": "string" },
"title": { "type": "string" },
"photos": {
"type": "array",
"items": { "type": "number" }
},
"links": {
"type": "array",
"items": { "$ref": "shared_definitions.json#/link" }
},
"remote_ids": {
"type": "object",
"additionalProperties": true,
"properties": {
"wikidata": {
"type": "string",
"pattern": "^Q[0-9]+$"
},
"viaf": {
"type": "string",
"pattern": "^[0-9]+$"
}
}
},
"wikipedia": {
"type": "string",
"description": "DEPRECATED: Not many authors have this property. Should be moved to Links and/or remote_ids: wikidata."
},
"revision": { "type": "number" },
"latest_revision": { "type": "number" },
"created": { "$ref": "shared_definitions.json#/internal_datetime" },
"last_modified": { "$ref": "shared_definitions.json#/internal_datetime" }
}
}