-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathjson_schema.json
More file actions
130 lines (130 loc) · 4.33 KB
/
json_schema.json
File metadata and controls
130 lines (130 loc) · 4.33 KB
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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Monophonic Chinese Notation Music Format",
"description": "Digital representation of a Chinese music piece (this includes Suzipu, Lülüpu and Jianzipu notations).",
"type": "object",
"properties": {
"version": {
"description": "The version number of the notation format used by the piece.",
"type": "string"
},
"notation_type": {
"description": "The notation type the piece uses.",
"type": "string",
"enum": [
"Suzipu",
"Lvlvpu",
"Jianzipu",
"Text"
]
},
"composer": {
"description": "The piece's composer.",
"type": "string"
},
"mode_properties": {
"description": "The properties referring to the mode of the piece."
},
"images": {
"description": "This field contains the list of relative paths to the image files belonging to the piece in the right order.",
"type": "array",
"items": {
"type": "string",
"description": "Relative path to the image file."
}
},
"content": {
"description": "List of all boxes corresponding to the individual semantic unities of the piece, e.g., title characters, preface characters, or musical information boxes containing the lyrics and notational information.",
"type": "array",
"items": {
"type": "object",
"description": "Properties of a single box.",
"properties": {
"box_type": {
"description": "The annotation type of the box, i.e., 'Title', 'Mode', 'Preface', 'Music', or 'Unmarked.",
"type": "string",
"enum": [
"Title",
"Mode",
"Preface",
"Music",
"Lyrics",
"Unmarked"
]
},
"is_excluded_from_dataset": {
"description": "If true, when exporting the image dataset from the corpus, this box is not included. This is advisable if the image data in the box is distorted by artifacts or the annotation content does not fit to the image content.",
"type": "boolean"
},
"is_line_break": {
"description": "If true, a column break occurs directly after this box.",
"type": "boolean"
},
"text_coordinates": {
"description": "The segmentation box coordinates (upper left and lower right corners) for textual information, including lyrics.",
"anyOf": [
{
"type": "null"
},
{
"type": "array",
"minItems": 2,
"maxItems": 2,
"items": {
"description": "The point's x and y coordinates.",
"type": "array",
"minItems": 2,
"maxItems": 2,
"items": {
"type": "integer",
"minimum": 0
}
}
}
]
},
"text_content": {
"description": "The textual content of the box. A text-based box should contain up to one character and optionally a punctuation mark."
},
"notation_coordinates": {
"description": "The segmentation box coordinates (upper left and lower right corners) for notational information.",
"anyOf": [
{
"type": "null"
},
{
"type": "array",
"minItems": 2,
"maxItems": 2,
"items": {
"description": "The point's x and y coordinates.",
"type": "array",
"minItems": 2,
"maxItems": 2,
"items": {
"type": "integer",
"minimum": 0
}
}
}
]
},
"notation_content": {
"description": "The notational content of the box. This should only be filled for boxes of type 'Music'."
}
},
"required": [
"box_type"
]
}
},
"additionalProperties": false
},
"additionalProperties": false,
"required": [
"version",
"notation_type",
"composer",
"content"
]
}