This repository has been archived by the owner on Oct 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfolkdb-schema.gql
243 lines (201 loc) · 3.59 KB
/
folkdb-schema.gql
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
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
type TextItem @embedded {
title: String!
description: String!
content: String!
citation: String
}
enum MediaFormat {
IMAGE
AUDIO
VIDEO
DOCUMENT
}
type MediaItem @embedded {
format: MediaFormat!
title: String!
description: String!
url: String!
citation: String
}
type Place @embedded {
country: String!
region: String
locale: String
}
type Birth @embedded {
date: Date
place: Place
}
type Death @embedded {
date: Date
place: Place
}
enum Gender {
MALE
FEMALE
NONBINARY
}
type Person {
familyName: String
givenName: String
middleNames: [String!]
legalSurnames: [String!]
professionalName: String
alsoCreditedAs: [String!]
birth: Birth
death: Death
gender: Gender
notes: String
wikipediaUrl: String
textItems: [TextItem!]
mediaItems: [MediaItem!]
memberOf: [Artist!] @relation
}
type Artist {
name: String!
dahrTalentId: ID
discogsArtistId: ID
spotifyArtistId: ID
wikipediaUrl: String
textItems: [TextItem!]
mediaItems: [MediaItem!]
members: [Person!] @relation
recordings: [Recording!] @relation
releases: [Release!] @relation
tracks: [Track!] @relation
}
enum SongRole {
WRITER
COMPOSER
LYRICIST
ARRANGER
TRANSCRIBER
COLLECTOR
PUBLISHER
}
type SongCredit {
person: Person!
role: SongRole!
songs: [Song!] @relation
}
type Song {
roudNum: String
childNum: String
otherNums: [String!]
canonicalName: String
versionName: String
versionMode: String
tuneName: String
tuneFragment: String
otherNames: [String!]
citation: String
notes: String
wikipediaUrl: String
textItems: [TextItem!]
mediaItems: [MediaItem!]
credits: [SongCredit!] @relation
relatedSongs: [Song!]
}
enum SessionType {
COMMERCIAL
DOCUMENTARY
AMATEUR
}
enum SessionRole {
PRODUCER
SUPERVISOR
TECHNICAL
COLLECTOR
ASSISTANT
SELF_RECORDING
}
type SessionCredit {
person: Person!
role: SessionRole!
recordings: [Recording!] @relation
}
enum PerformerRole {
VOCALIST
INSTRUMENTALIST
SPEAKER
}
type PerformerCredit {
person: Person!
role: PerformerRole
details: String
dahrTalentId: ID
recordings: [Recording!] @relation
}
type Recording {
song: Song
artists: [Artist!] @relation
primaryTitle: String
alternateTitles: [String!]
date: Date
place: Place
type: SessionType
organization: String
catalogNum: ID
sessionCredits: [SessionCredit!] @relation
performerCredits: [PerformerCredit!] @relation
takeNumber: Int
isMaster: Boolean
notes: String
dahrMatrixId: ID
textItems: [TextItem!]
mediaItems: [MediaItem!]
}
type Release {
date: Date
country: String
artists: [Artist!] @relation
primaryTitle: String
alternateTitles: [String!]
label: String
catalogNum: ID
format: String
isCompilation: Boolean
isReissue: Boolean
notes: String
discogsReleaseId: ID
discogsMasterId: ID
spotifyAlbumId: ID
tidalAlbumId: ID
textItems: [TextItem!]
mediaItems: [MediaItem!]
}
type AudioFeatures @embedded {
durationMs: Int
key: Int
mode: Int
timeSignature: Int
acousticness: Float
danceability: Float
energy: Float
instrumentalness: Float
liveness: Float
loudness: Float
speechiness: Float
valence: Float
tempo: Float
}
type Track {
recording: Recording
release: Release
artists: [Artist!] @relation
title: String
position: String
notes: String
spotifyTrackId: ID
tidalTrackId: ID
audioFeatures: AudioFeatures
textItems: [TextItem!]
mediaItems: [MediaItem!]
}
type Query {
allSongs: [Song!]
allArtists: [Artist!]
allRecordings: [Recording!]
allReleases: [Release!]
allTracks: [Track!]
}