Web platform for sharing free data for ML and research

By using this site, you agree to have cookies stored on your device, strictly for functional purposes, such as storing your session and preferences.

Dismiss

 basic_rows.py

View raw Download
text/x-script.python • 47.58 kiB
Python script, Unicode text, UTF-8 text executable
        
            
1
from app import Licence, PictureObject, PictureNature, db
2
3
# Prefix non-SPDX licences with "X-"
4
# Order of licences is:
5
# 1. Free, pinned licences
6
# 2. Other free licences
7
# 3. Non-free, pinned licences
8
# 4. Other non-free licences
9
# Non-free licences may only be used in multi-licences with at least one free licence.
10
11
def add_licences():
12
licences = [
13
# Free informal licences
14
Licence("X-Informal-do-anything", "Informal 'do anything' licence",
15
"An informal licence that allows you to do anything with the work, making it "
16
"public domain equivalent. Not recommended for your own works. Please provide "
17
"original statement and evidence in the description.",
18
"", "", free=True),
19
Licence("X-Informal-attribution", "Informal licence that requires attribution",
20
"An informal licence that allows you to do anything with the work, as long as you "
21
"attribute the original author. Not recommended for your own works. Please provide "
22
"original statement and evidence in the description.",
23
"", "", free=True),
24
Licence("X-Informal-copyleft", "Informal copyleft licence",
25
"An informal copyleft licence that allows you to do anything with the work, as long as "
26
"you share your modifications under the same terms. Not recommended for your own works. "
27
"Please provide original statement and evidence in the description.",
28
"", "", free=True),
29
Licence("X-Informal-attribution-copyleft", "Informal copyleft licence that requires attribution",
30
"An informal copyleft licence that allows you to do anything with the work, as long as "
31
"you attribute the original author and share your modifications under the same terms. "
32
"Not recommended for your own works. Please provide original statement and evidence in the description.",
33
"", "", free=True),
34
# Non-free informal licences
35
Licence("X-Informal-noncommercial", "Informal non-commercial licence",
36
"An informal licence that allows any non-commercial use of the work. "
37
"Please provide original statement and evidence in the description.",
38
"", "", free=False),
39
Licence("X-Informal-noncommercial-attribution", "Informal non-commercial licence that requires attribution",
40
"An informal licence that allows any non-commercial use of the work, as long as you "
41
"attribute the original author. Please provide original statement and evidence in the description.",
42
"", "", free=False),
43
Licence("X-Informal-noncommercial-copyleft", "Informal non-commercial copyleft licence",
44
"An informal copyleft licence that allows any non-commercial use of the work, as long as "
45
"you share your modifications under the same terms. Please provide original statement and evidence in the description.",
46
"", "", free=False),
47
Licence("X-Informal-noncommercial-attribution-copyleft", "Informal non-commercial copyleft licence that requires attribution",
48
"An informal copyleft licence that allows any non-commercial use of the work, as long as "
49
"you attribute the original author and share your modifications under the same terms. "
50
"Please provide original statement and evidence in the description.",
51
"", "", free=False),
52
Licence("X-Informal-verbatim", "Informal verbatim licence",
53
"An informal licence that allows the distribution of only unmodified copies of the work. "
54
"Please provide original statement and evidence in the description.",
55
"", "", free=False),
56
Licence("X-Informal-verbatim-attribution", "Informal verbatim licence that requires attribution",
57
"An informal licence that allows the distribution of only unmodified copies of the work, "
58
"as long as you attribute the original author. Please provide original statement and evidence in the description.",
59
"", "", free=False),
60
# Other informal licences
61
Licence("X-Informal-other-free", "Other informal free licence",
62
"Some other kind of informal licence that allows free use of the work. "
63
"Please provide original statement and evidence in the description.",
64
"", "", free=True),
65
Licence("X-Informal-other-nonfree", "Other informal non-free licence",
66
"Some other kind of informal licence that does not allow free use of the work. "
67
"Please provide original statement and evidence in the description.",
68
"", "", free=False),
69
# Public domain or equivalent licences
70
Licence("CC0-1.0", "Creative Commons Zero v1.0 Universal",
71
"Public domain equivalent, with a fallback lax licence if public domain is not possible.",
72
"https://creativecommons.org/publicdomain/zero/1.0/",
73
"https://creativecommons.org/publicdomain/zero/1.0/legalcode.en",
74
free=True, pinned=True, logo_url="https://licensebuttons.net/l/zero/1.0/88x31.png"),
75
Licence("X-Public-domain", "Public domain dedication",
76
"Author has explicitly dedicated the work to the public domain; please provide original statement and evidence.",
77
"", "", free=True),
78
Licence("X-Public-domain-old", "Ineligible for copyright due to age",
79
"The copyright of this work has expired both in the source country and in Romania, "
80
"where this service is hosted.",
81
"", "", free=True),
82
Licence("X-Public-domain-gov", "Public domain due to government work",
83
"The work is in the public domain because it is a work of the government of a country "
84
"where government works are exempt from copyright, such as the USA.",
85
"", "", free=True),
86
# Creative Commons Attribution licences
87
Licence("CC-BY-1.0", "Creative Commons Attribution v1.0",
88
"The first Creative Commons Attribution licence. Very rare nowadays; not recommended for new works. "
89
"Please specify if a regional variant is used in the description. "
90
"Requires only attribution to the original author, usually using a link to the work, "
91
"the name of the licence, and the author, if applicable.",
92
"https://creativecommons.org/licenses/by/1.0/",
93
"https://creativecommons.org/licenses/by/1.0/legalcode.en",
94
free=True, logo_url="https://licensebuttons.net/l/by/1.0/88x31.png"),
95
Licence("CC-BY-2.0", "Creative Commons Attribution v2.0",
96
"The second Creative Commons Attribution licence. Not recommended for new works. "
97
"Please specify if a regional variant or 2.1 is used in the description. "
98
"Requires only attribution to the original author, usually using a link to the work, "
99
"the name of the licence, and the author, if applicable.",
100
"https://creativecommons.org/licenses/by/2.0/",
101
"https://creativecommons.org/licenses/by/2.0/legalcode.en",
102
free=True, logo_url="https://licensebuttons.net/l/by/2.0/88x31.png"),
103
Licence("CC-BY-2.5", "Creative Commons Attribution v2.5",
104
"A modification of Creative Commons Attribution v2.0. Not recommended for new works. "
105
"Please specify if a regional variant is used in the description. "
106
"Requires only attribution to the original author, usually using a link to the work, "
107
"the name of the licence, and the author, if applicable.",
108
"https://creativecommons.org/licenses/by/2.5/",
109
"https://creativecommons.org/licenses/by/2.5/legalcode.en",
110
free=True, logo_url="https://licensebuttons.net/l/by/2.5/88x31.png"),
111
Licence("CC-BY-3.0", "Creative Commons Attribution v3.0",
112
"The third Creative Commons Attribution licence. Not recommended for new works. "
113
"Please specify if a regional variant is used in the description. "
114
"Requires only attribution to the original author, usually using a link to the work, "
115
"the name of the licence, and the author, if applicable.",
116
"https://creativecommons.org/licenses/by/3.0/",
117
"https://creativecommons.org/licenses/by/3.0/legalcode.en",
118
free=True, logo_url="https://licensebuttons.net/l/by/3.0/88x31.png"),
119
Licence("CC-BY-4.0", "Creative Commons Attribution v4.0",
120
"The fourth and most recent Creative Commons Attribution licence. Recommended for new works. "
121
"This licence doesn't have regional variants; translations are equivalent. "
122
"Requires only attribution to the original author, usually using a link to the work, "
123
"the name of the licence, and the author, if applicable.",
124
"https://creativecommons.org/licenses/by/4.0/",
125
"https://creativecommons.org/licenses/by/4.0/legalcode.en",
126
free=True, pinned=True, logo_url="https://licensebuttons.net/l/by/4.0/88x31.png"),
127
# Creative Commons ShareAlike licences
128
Licence("CC-SA-1.0", "Creative Commons ShareAlike v1.0",
129
"The first Creative Commons ShareAlike licence. Very rare nowadays; not recommended for new works. "
130
"Please specify if a regional variant is used in the description. "
131
"Requires sharing of modifications under the same terms, but attribution is optional. "
132
"This family of licences has been discontinued by Creative Commons.",
133
"https://creativecommons.org/licenses/sa/1.0/",
134
"https://creativecommons.org/licenses/sa/1.0/legalcode.en",
135
free=True, logo_url="https://licensebuttons.net/l/sa/1.0/88x31.png"),
136
# Creative Commons Attribution-ShareAlike licences
137
Licence("CC-BY-SA-1.0", "Creative Commons Attribution-ShareAlike v1.0",
138
"The first Creative Commons Attribution-ShareAlike licence. Very rare nowadays; not recommended for new works. "
139
"Please specify if a regional variant is used in the description. "
140
"Requires attribution to the original author (just like CC BY) and sharing of modifications under the same terms, "
141
"or select compatible licences.",
142
"https://creativecommons.org/licenses/by-sa/1.0/",
143
"https://creativecommons.org/licenses/by-sa/1.0/legalcode.en",
144
free=True, logo_url="https://licensebuttons.net/l/by-sa/1.0/88x31.png"),
145
Licence("CC-BY-SA-2.0", "Creative Commons Attribution-ShareAlike v2.0",
146
"The second Creative Commons Attribution-ShareAlike licence. Not recommended for new works. "
147
"Please specify if a regional variant or 2.1 is used in the description. "
148
"Requires attribution to the original author (just like CC BY) and sharing of modifications under the same terms, "
149
"or select compatible licences.",
150
"https://creativecommons.org/licenses/by-sa/2.0/",
151
"https://creativecommons.org/licenses/by-sa/2.0/legalcode.en",
152
free=True, logo_url="https://licensebuttons.net/l/by-sa/2.0/88x31.png"),
153
Licence("CC-BY-SA-2.5", "Creative Commons Attribution-ShareAlike v2.5",
154
"A modification of Creative Commons Attribution-ShareAlike v2.0. Not recommended for new works. "
155
"Please specify if a regional variant is used in the description. "
156
"Requires attribution to the original author (just like CC BY) and sharing of modifications under the same terms, "
157
"or select compatible licences.",
158
"https://creativecommons.org/licenses/by-sa/2.5/",
159
"https://creativecommons.org/licenses/by-sa/2.5/legalcode.en",
160
free=True, logo_url="https://licensebuttons.net/l/by-sa/2.5/88x31.png"),
161
Licence("CC-BY-SA-3.0", "Creative Commons Attribution-ShareAlike v3.0",
162
"The third Creative Commons Attribution-ShareAlike licence. Not recommended for new works. "
163
"Please specify if a regional variant is used in the description. "
164
"Requires attribution to the original author (just like CC BY) and sharing of modifications under the same terms, "
165
"or select compatible licences.",
166
"https://creativecommons.org/licenses/by-sa/3.0/",
167
"https://creativecommons.org/licenses/by-sa/3.0/legalcode.en",
168
free=True, logo_url="https://licensebuttons.net/l/by-sa/3.0/88x31.png"),
169
Licence("CC-BY-SA-4.0", "Creative Commons Attribution-ShareAlike v4.0",
170
"The fourth and most recent Creative Commons Attribution-ShareAlike licence. Recommended for new works. "
171
"This licence doesn't have regional variants; translations are equivalent. "
172
"Requires attribution to the original author (just like CC BY) and sharing of modifications under the same terms, "
173
"or select compatible licences.",
174
"https://creativecommons.org/licenses/by-sa/4.0/",
175
"https://creativecommons.org/licenses/by-sa/4.0/legalcode.en",
176
free=True, pinned=True, logo_url="https://licensebuttons.net/l/by-sa/4.0/88x31.png"),
177
# Creative Commons NonCommercial licences
178
Licence("CC-NC-1.0", "Creative Commons NonCommercial v1.0",
179
"The first Creative Commons NonCommercial licence. Very rare nowadays; not recommended for new works. "
180
"Please specify if a regional variant is used in the description. "
181
"Only allows non-commercial use of the work, but attribution is optional. "
182
"This family of licences has been discontinued by Creative Commons.",
183
"https://creativecommons.org/licenses/nc/1.0/",
184
"https://creativecommons.org/licenses/nc/1.0/legalcode.en",
185
free=False, logo_url="https://licensebuttons.net/l/nc/1.0/88x31.png"),
186
# Creative Commons Attribution-NonCommercial licences
187
Licence("CC-BY-NC-1.0", "Creative Commons Attribution-NonCommercial v1.0",
188
"The first Creative Commons Attribution-NonCommercial licence. Very rare nowadays; not recommended for new works. "
189
"Please specify if a regional variant is used in the description. "
190
"Only allows non-commercial use of the work, and only with attribution to the original author (just like CC BY).",
191
"https://creativecommons.org/licenses/by-nc/1.0/",
192
"https://creativecommons.org/licenses/by-nc/1.0/legalcode.en",
193
free=False, logo_url="https://licensebuttons.net/l/by-nc/1.0/88x31.png"),
194
Licence("CC-BY-NC-2.0", "Creative Commons Attribution-NonCommercial v2.0",
195
"The second Creative Commons Attribution-NonCommercial licence. Not recommended for new works. "
196
"Please specify if a regional variant or 2.1 is used in the description. "
197
"Only allows non-commercial use of the work, and only with attribution to the original author (just like CC BY).",
198
"https://creativecommons.org/licenses/by-nc/2.0/",
199
"https://creativecommons.org/licenses/by-nc/2.0/legalcode.en",
200
free=False, logo_url="https://licensebuttons.net/l/by-nc/2.0/88x31.png"),
201
Licence("CC-BY-NC-2.5", "Creative Commons Attribution-NonCommercial v2.5",
202
"A modification of Creative Commons Attribution-NonCommercial v2.0. Not recommended for new works. "
203
"Please specify if a regional variant is used in the description. "
204
"Only allows non-commercial use of the work, and only with attribution to the original author (just like CC BY).",
205
"https://creativecommons.org/licenses/by-nc/2.5/",
206
"https://creativecommons.org/licenses/by-nc/2.5/legalcode.en",
207
free=False, logo_url="https://licensebuttons.net/l/by-nc/2.5/88x31.png"),
208
Licence("CC-BY-NC-3.0", "Creative Commons Attribution-NonCommercial v3.0",
209
"The third Creative Commons Attribution-NonCommercial licence. Not recommended for new works. "
210
"Please specify if a regional variant is used in the description. "
211
"Only allows non-commercial use of the work, and only with attribution to the original author (just like CC BY).",
212
"https://creativecommons.org/licenses/by-nc/3.0/",
213
"https://creativecommons.org/licenses/by-nc/3.0/legalcode.en",
214
free=False, logo_url="https://licensebuttons.net/l/by-nc/3.0/88x31.png"),
215
Licence("CC-BY-NC-4.0", "Creative Commons Attribution-NonCommercial v4.0",
216
"The fourth and most recent Creative Commons Attribution-NonCommercial licence. "
217
"This licence doesn't have regional variants; translations are equivalent. "
218
"Only allows non-commercial use of the work, and only with attribution to the original author (just like CC BY).",
219
"https://creativecommons.org/licenses/by-nc/4.0/",
220
"https://creativecommons.org/licenses/by-nc/4.0/legalcode.en",
221
free=False, pinned=True, logo_url="https://licensebuttons.net/l/by-nc/4.0/88x31.png"),
222
# Creative Commons Attribution-NonCommercial-ShareAlike licences
223
Licence("CC-BY-NC-SA-1.0", "Creative Commons Attribution-NonCommercial-ShareAlike v1.0",
224
"The first Creative Commons Attribution-NonCommercial-ShareAlike licence. Very rare nowadays; not recommended for new works. "
225
"Please specify if a regional variant is used in the description. "
226
"Only allows non-commercial use of the work, and only with attribution to the original author (just like CC BY), "
227
"and sharing of modifications under the same terms, or select compatible licences.",
228
"https://creativecommons.org/licenses/by-nc-sa/1.0/",
229
"https://creativecommons.org/licenses/by-nc-sa/1.0/legalcode.en",
230
free=False, logo_url="https://licensebuttons.net/l/by-nc-sa/1.0/88x31.png"),
231
Licence("CC-BY-NC-SA-2.0", "Creative Commons Attribution-NonCommercial-ShareAlike v2.0",
232
"The second Creative Commons Attribution-NonCommercial-ShareAlike licence. Not recommended for new works. "
233
"Please specify if a regional variant or 2.1 is used in the description. "
234
"Only allows non-commercial use of the work, and only with attribution to the original author (just like CC BY), "
235
"and sharing of modifications under the same terms, or select compatible licences.",
236
"https://creativecommons.org/licenses/by-nc-sa/2.0/",
237
"https://creativecommons.org/licenses/by-nc-sa/2.0/legalcode.en",
238
free=False, logo_url="https://licensebuttons.net/l/by-nc-sa/2.0/88x31.png"),
239
Licence("CC-BY-NC-SA-2.5", "Creative Commons Attribution-NonCommercial-ShareAlike v2.5",
240
"A modification of Creative Commons Attribution-NonCommercial-ShareAlike v2.0. Not recommended for new works. "
241
"Please specify if a regional variant is used in the description. "
242
"Only allows non-commercial use of the work, and only with attribution to the original author (just like CC BY), "
243
"and sharing of modifications under the same terms, or select compatible licences.",
244
"https://creativecommons.org/licenses/by-nc-sa/2.5/",
245
"https://creativecommons.org/licenses/by-nc-sa/2.5/legalcode.en",
246
free=False, logo_url="https://licensebuttons.net/l/by-nc-sa/2.5/88x31.png"),
247
Licence("CC-BY-NC-SA-3.0", "Creative Commons Attribution-NonCommercial-ShareAlike v3.0",
248
"The third Creative Commons Attribution-NonCommercial-ShareAlike licence. Not recommended for new works. "
249
"Please specify if a regional variant is used in the description. "
250
"Only allows non-commercial use of the work, and only with attribution to the original author (just like CC BY), "
251
"and sharing of modifications under the same terms, or select compatible licences.",
252
"https://creativecommons.org/licenses/by-nc-sa/3.0/",
253
"https://creativecommons.org/licenses/by-nc-sa/3.0/legalcode.en",
254
free=False, logo_url="https://licensebuttons.net/l/by-nc-sa/3.0/88x31.png"),
255
Licence("CC-BY-NC-SA-4.0", "Creative Commons Attribution-NonCommercial-ShareAlike v4.0",
256
"The fourth and most recent Creative Commons Attribution-NonCommercial-ShareAlike licence. "
257
"This licence doesn't have regional variants; translations are equivalent. "
258
"Only allows non-commercial use of the work, and only with attribution to the original author (just like CC BY), "
259
"and sharing of modifications under the same terms, or select compatible licences.",
260
"https://creativecommons.org/licenses/by-nc-sa/4.0/",
261
"https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode.en",
262
free=False, pinned=True, logo_url="https://licensebuttons.net/l/by-nc-sa/4.0/88x31.png"),
263
# Creative Commons NoDerivatives licences
264
Licence("CC-ND-1.0", "Creative Commons NoDerivatives v1.0",
265
"The first Creative Commons NoDerivatives licence. Very rare nowadays; not recommended for new works. "
266
"Please specify if a regional variant is used in the description. "
267
"Only allows distribution of unmodified copies of the work, but attribution is optional. "
268
"This family of licences has been discontinued by Creative Commons.",
269
"https://creativecommons.org/licenses/nd/1.0/",
270
"https://creativecommons.org/licenses/nd/1.0/legalcode.en",
271
free=False, logo_url="https://licensebuttons.net/l/nd/1.0/88x31.png"),
272
# Creative Commons Attribution-NoDerivatives licences
273
Licence("CC-BY-ND-1.0", "Creative Commons Attribution-NoDerivatives v1.0",
274
"The first Creative Commons Attribution-NoDerivatives licence. Very rare nowadays; not recommended for new works. "
275
"Please specify if a regional variant is used in the description. "
276
"Only allows distribution of unmodified copies of the work, and only with attribution to the original author (just like CC BY).",
277
"https://creativecommons.org/licenses/by-nd/1.0/",
278
"https://creativecommons.org/licenses/by-nd/1.0/legalcode.en",
279
free=False, logo_url="https://licensebuttons.net/l/by-nd/1.0/88x31.png"),
280
Licence("CC-BY-ND-2.0", "Creative Commons Attribution-NoDerivatives v2.0",
281
"The second Creative Commons Attribution-NoDerivatives licence. Not recommended for new works. "
282
"Please specify if a regional variant or 2.1 is used in the description. "
283
"Only allows distribution of unmodified copies of the work, and only with attribution to the original author (just like CC BY).",
284
"https://creativecommons.org/licenses/by-nd/2.0/",
285
"https://creativecommons.org/licenses/by-nd/2.0/legalcode.en",
286
free=False, logo_url="https://licensebuttons.net/l/by-nd/2.0/88x31.png"),
287
Licence("CC-BY-ND-2.5", "Creative Commons Attribution-NoDerivatives v2.5",
288
"A modification of Creative Commons Attribution-NoDerivatives v2.0. Not recommended for new works. "
289
"Please specify if a regional variant is used in the description. "
290
"Only allows distribution of unmodified copies of the work, and only with attribution to the original author (just like CC BY).",
291
"https://creativecommons.org/licenses/by-nd/2.5/",
292
"https://creativecommons.org/licenses/by-nd/2.5/legalcode.en",
293
free=False, logo_url="https://licensebuttons.net/l/by-nd/2.5/88x31.png"),
294
Licence("CC-BY-ND-3.0", "Creative Commons Attribution-NoDerivatives v3.0",
295
"The third Creative Commons Attribution-NoDerivatives licence. Not recommended for new works. "
296
"Please specify if a regional variant is used in the description. "
297
"Only allows distribution of unmodified copies of the work, and only with attribution to the original author (just like CC BY).",
298
"https://creativecommons.org/licenses/by-nd/3.0/",
299
"https://creativecommons.org/licenses/by-nd/3.0/legalcode.en",
300
free=False, logo_url="https://licensebuttons.net/l/by-nd/3.0/88x31.png"),
301
Licence("CC-BY-ND-4.0", "Creative Commons Attribution-NoDerivatives v4.0",
302
"The fourth and most recent Creative Commons Attribution-NoDerivatives licence. "
303
"This licence doesn't have regional variants; translations are equivalent. "
304
"Only allows distribution of unmodified copies of the work, and only with attribution to the original author (just like CC BY).",
305
"https://creativecommons.org/licenses/by-nd/4.0/",
306
"https://creativecommons.org/licenses/by-nd/4.0/legalcode.en",
307
free=False, pinned=True, logo_url="https://licensebuttons.net/l/by-nd/4.0/88x31.png"),
308
# Creative Commons NonCommercial-NoDerivatives licences
309
Licence("CC-NC-ND-1.0", "Creative Commons NonCommercial-NoDerivatives v1.0",
310
"The first Creative Commons NonCommercial-NoDerivatives licence. Very rare nowadays; not recommended for new works. "
311
"Please specify if a regional variant is used in the description. "
312
"Only allows non-commercial use of the work, and only distribution of unmodified copies of the work, but attribution is optional. "
313
"This family of licences has been discontinued by Creative Commons.",
314
"https://creativecommons.org/licenses/nc-nd/1.0/",
315
"https://creativecommons.org/licenses/nc-nd/1.0/legalcode.en",
316
free=False, logo_url="https://licensebuttons.net/l/nd-nc/1.0/88x31.png"),
317
# Creative Commons Attribution-NonCommercial-NoDerivatives licences
318
Licence("CC-BY-NC-ND-1.0", "Creative Commons Attribution-NonCommercial-NoDerivatives v1.0",
319
"The first Creative Commons Attribution-NonCommercial-NoDerivatives licence. Very rare nowadays; not recommended for new works. "
320
"Please specify if a regional variant is used in the description. "
321
"Only allows non-commercial use of the work, and only distribution of unmodified copies of the work, "
322
"and only with attribution to the original author (just like CC BY).",
323
"https://creativecommons.org/licenses/by-nc-nd/1.0/",
324
"https://creativecommons.org/licenses/by-nc-nd/1.0/legalcode.en",
325
free=False, logo_url="https://licensebuttons.net/l/by-nd-nc/1.0/88x31.png"),
326
Licence("CC-BY-NC-ND-2.0", "Creative Commons Attribution-NonCommercial-NoDerivatives v2.0",
327
"The second Creative Commons Attribution-NonCommercial-NoDerivatives licence. Not recommended for new works. "
328
"Please specify if a regional variant or 2.1 is used in the description. "
329
"Only allows non-commercial use of the work, and only distribution of unmodified copies of the work, "
330
"and only with attribution to the original author (just like CC BY).",
331
"https://creativecommons.org/licenses/by-nc-nd/2.0/",
332
"https://creativecommons.org/licenses/by-nc-nd/2.0/legalcode.en",
333
free=False, logo_url="https://licensebuttons.net/l/by-nc-nd/2.0/88x31.png"),
334
Licence("CC-BY-NC-ND-2.5", "Creative Commons Attribution-NonCommercial-NoDerivatives v2.5",
335
"A modification of Creative Commons Attribution-NonCommercial-NoDerivatives v2.0. Not recommended for new works. "
336
"Please specify if a regional variant is used in the description. "
337
"Only allows non-commercial use of the work, and only distribution of unmodified copies of the work, "
338
"and only with attribution to the original author (just like CC BY).",
339
"https://creativecommons.org/licenses/by-nc-nd/2.5/",
340
"https://creativecommons.org/licenses/by-nc-nd/2.5/legalcode.en",
341
free=False, logo_url="https://licensebuttons.net/l/by-nc-nd/2.5/88x31.png"),
342
Licence("CC-BY-NC-ND-3.0", "Creative Commons Attribution-NonCommercial-NoDerivatives v3.0",
343
"The third Creative Commons Attribution-NonCommercial-NoDerivatives licence. Not recommended for new works. "
344
"Please specify if a regional variant is used in the description. "
345
"Only allows non-commercial use of the work, and only distribution of unmodified copies of the work, "
346
"and only with attribution to the original author (just like CC BY).",
347
"https://creativecommons.org/licenses/by-nc-nd/3.0/",
348
"https://creativecommons.org/licenses/by-nc-nd/3.0/legalcode.en",
349
free=False, logo_url="https://licensebuttons.net/l/by-nc-nd/3.0/88x31.png"),
350
Licence("CC-BY-NC-ND-4.0", "Creative Commons Attribution-NonCommercial-NoDerivatives v4.0",
351
"The fourth and most recent Creative Commons Attribution-NonCommercial-NoDerivatives licence. "
352
"This licence doesn't have regional variants; translations are equivalent. "
353
"Only allows non-commercial use of the work, and only distribution of unmodified copies of the work, "
354
"and only with attribution to the original author (just like CC BY).",
355
"https://creativecommons.org/licenses/by-nc-nd/4.0/",
356
"https://creativecommons.org/licenses/by-nc-nd/4.0/legalcode.en",
357
free=False, pinned=True, logo_url="https://licensebuttons.net/l/by-nc-nd/4.0/88x31.png"),
358
# Other Creative Commons licences
359
Licence("CC-Sampling-1.0", "Creative Commons Sampling v1.0",
360
"An old and uncommon Creative Commons licence that allows only 'creative transformation' of the work, "
361
"and not full distribution. Also requires attribution to the original author like CC BY. Not recommended for new works. "
362
"Please specify if a regional variant is used in the description.",
363
"https://creativecommons.org/licenses/sampling/1.0/",
364
"https://creativecommons.org/licenses/sampling/1.0/legalcode.en",
365
free=False, logo_url="https://licensebuttons.net/l/sampling/1.0/88x31.png"),
366
Licence("CC-Sampling-Plus-1.0", "Creative Commons Sampling Plus v1.0",
367
"An old and uncommon Creative Commons licence that allows 'creative transformation' of the work, "
368
"commercially or non-commercially, and non-commercial full distribution. Also requires attribution to the original author like CC BY. "
369
"Not recommended for new works. Please specify if a regional variant is used in the description.",
370
"https://creativecommons.org/licenses/sampling+/1.0/",
371
"https://creativecommons.org/licenses/sampling+/1.0/legalcode.en",
372
free=False, logo_url="https://licensebuttons.net/l/sampling+/1.0/88x31.png"),
373
Licence("CC-NC-Sampling-Plus-1.0", "Creative Commons NonCommercial Sampling Plus v1.0",
374
"An old and uncommon Creative Commons licence that allows only some kinds of non-commercial sampling "
375
"and distribution of the work. Also requires attribution to the original author like CC BY."
376
"Not recommended for new works. Please specify if a regional variant is used in the description.",
377
"https://creativecommons.org/licenses/nc-sampling+/1.0/",
378
"https://creativecommons.org/licenses/nc-sampling+/1.0/legalcode.en",
379
free=False, logo_url="https://licensebuttons.net/l/nc-sampling+/1.0/88x31.png"),
380
Licence("CC-DevNations-2.0", "Creative Commons Developing Nations v2.0",
381
"An old and uncommon Creative Commons licence that allows distribution of the work in developing nations only. "
382
"Also requires attribution to the original author like CC BY. Not recommended for new works. "
383
"Please specify if a regional variant is used in the description.",
384
"https://creativecommons.org/licenses/devnations/2.0/",
385
"https://creativecommons.org/licenses/devnations/2.0/legalcode.en",
386
free=False, logo_url="https://licensebuttons.net/l/devnations/2.0/88x31.png"),
387
# Open Data Commons licences
388
Licence("ODbL-1.0", "Open Data Commons Open Database Licence v1.0",
389
"A licence for databases that allows free use, modification, and distribution, "
390
"but requires attribution and sharing under the same terms for the database itself. ",
391
"https://opendatacommons.org/licenses/odbl/summary/",
392
"https://opendatacommons.org/licenses/odbl/1-0/",
393
free=True),
394
Licence("ODC-By-1.0", "Open Data Commons Attribution Licence v1.0",
395
"A licence for databases that allows free use, modification, and distribution, "
396
"but requires attribution for the database itself. ",
397
"https://opendatacommons.org/licenses/by/summary/",
398
"https://opendatacommons.org/licenses/by/1-0/",
399
free=True),
400
Licence("PDDL-1.0", "Open Data Commons Public Domain Dedication and Licence v1.0",
401
"A licence for databases that allows free use, modification, and distribution, "
402
"with no restrictions, making it public domain equivalent. ",
403
"https://opendatacommons.org/licenses/pddl/summary/",
404
"https://opendatacommons.org/licenses/pddl/1-0/",
405
free=True),
406
# GNU licences
407
Licence("GPL-1.0", "GNU General Public Licence v1.0",
408
"The first version of the GNU General Public Licence. Not recommended for new works. "
409
"Requires sharing of modifications under the same terms, and distribution of the source code, "
410
"as well as requiring the licence notice to be included in distributions.",
411
"https://www.gnu.org/licenses/gpl-1.0.html",
412
"https://www.gnu.org/licenses/gpl-1.0.html",
413
free=True),
414
Licence("GPL-1.0-or-later", "GNU General Public Licence v1.0 or later",
415
"Any of the versions of the GNU General Public Licence, starting with the first version. "
416
"Requires sharing of modifications under the same terms, and distribution of the source code, "
417
"as well as requiring the licence notice to be included in distributions. "
418
"GPL by itself is not compatible with later versions, so this must be specified.",
419
"https://www.gnu.org/licenses/gpl-1.0.html",
420
"https://www.gnu.org/licenses/gpl-1.0.html",
421
free=True),
422
Licence("GPL-2.0", "GNU General Public Licence v2.0",
423
"The second version of the GNU General Public Licence. "
424
"Requires sharing of modifications under the same terms, and distribution of the source code, "
425
"as well as requiring the licence notice to be included in distributions.",
426
"https://www.gnu.org/licenses/gpl-2.0.html",
427
"https://www.gnu.org/licenses/gpl-2.0.html",
428
free=True),
429
Licence("GPL-2.0-or-later", "GNU General Public Licence v2.0 or later",
430
"Any of the versions of the GNU General Public Licence, starting with the second version. "
431
"Requires sharing of modifications under the same terms, and distribution of the source code, "
432
"as well as requiring the licence notice to be included in distributions. "
433
"GPL by itself is not compatible with later versions, so this must be specified.",
434
"https://www.gnu.org/licenses/gpl-2.0.html",
435
"https://www.gnu.org/licenses/gpl-2.0.html",
436
free=True),
437
Licence("GPL-3.0", "GNU General Public Licence v3.0",
438
"The third and latest version of the GNU General Public Licence. "
439
"Requires sharing of modifications under the same terms, and distribution of the source code, "
440
"as well as requiring the licence notice to be included in distributions.",
441
"https://www.gnu.org/licenses/gpl-3.0.html",
442
"https://www.gnu.org/licenses/gpl-3.0.html",
443
free=True, logo_url="https://www.gnu.org/graphics/gplv3-127x51.png"),
444
Licence("GPL-3.0-or-later", "GNU General Public Licence v3.0 or later",
445
"Any of the versions of the GNU General Public Licence, starting with the third version. "
446
"Requires sharing of modifications under the same terms, and distribution of the source code, "
447
"as well as requiring the licence notice to be included in distributions. "
448
"GPL by itself is not compatible with later versions, so this must be specified. "
449
"However there are currently no later versions.",
450
"https://www.gnu.org/licenses/gpl-3.0.html",
451
"https://www.gnu.org/licenses/gpl-3.0.html",
452
free=True, pinned=True, logo_url="https://www.gnu.org/graphics/gplv3-127x51.png"),
453
Licence("LGPL-2.0", "GNU Library General Public Licence v2.0",
454
"The first version of the GNU Lesser/Library General Public Licence. "
455
"Requires sharing of modifications under the same terms, and distribution of the source code, "
456
"as well as requiring the licence notice to be included in distributions. "
457
"It doesn't, however, require dependent works to be compatible with the licence. "
458
"Note the later versions have been renamed to the Lesser GPL.",
459
"https://www.gnu.org/licenses/lgpl-2.0.html",
460
"https://www.gnu.org/licenses/lgpl-2.0.html",
461
free=True),
462
Licence("LGPL-2.0-or-later", "GNU Library General Public Licence v2.0 or later",
463
"Any of the versions of the GNU Lesser/Library General Public Licence, starting with the first version 2.o. "
464
"Requires sharing of modifications under the same terms, and distribution of the source code, "
465
"as well as requiring the licence notice to be included in distributions. "
466
"It doesn't, however, require dependent works to be compatible with the licence. "
467
"Note the later versions have been renamed to the Lesser GPL.",
468
"https://www.gnu.org/licenses/lgpl-2.0.html",
469
"https://www.gnu.org/licenses/lgpl-2.0.html",
470
free=True),
471
Licence("LGPL-2.1", "GNU Lesser General Public Licence v2.1",
472
"The second version of the GNU Lesser General Public Licence. "
473
"Requires sharing of modifications under the same terms, and distribution of the source code, "
474
"as well as requiring the licence notice to be included in distributions. "
475
"It doesn't, however, require dependent works to be compatible with the licence.",
476
"https://www.gnu.org/licenses/lgpl-2.1.html",
477
"https://www.gnu.org/licenses/lgpl-2.1.html",
478
free=True),
479
Licence("LGPL-2.1-or-later", "GNU Lesser General Public Licence v2.1 or later",
480
"Any of the versions of the GNU Lesser General Public Licence, starting with the second version 2.1."
481
"Requires sharing of modifications under the same terms, and distribution of the source code, "
482
"as well as requiring the licence notice to be included in distributions. "
483
"It doesn't, however, require dependent works to be compatible with the licence.",
484
"https://www.gnu.org/licenses/lgpl-2.1.html",
485
"https://www.gnu.org/licenses/lgpl-2.1.html",
486
free=True),
487
Licence("LGPL-3.0", "GNU Lesser General Public Licence v3.0",
488
"The third and latest version of the GNU Lesser General Public Licence. "
489
"Requires sharing of modifications under the same terms, and distribution of the source code, "
490
"as well as requiring the licence notice to be included in distributions. "
491
"It doesn't, however, require dependent works to be compatible with the licence.",
492
"https://www.gnu.org/licenses/lgpl-3.0.html",
493
"https://www.gnu.org/licenses/lgpl-3.0.html",
494
free=True, logo_url="https://www.gnu.org/graphics/lgplv3-147x51.png"),
495
Licence("LGPL-3.0-or-later", "GNU Lesser General Public Licence v3.0 or later",
496
"Any of the versions of the GNU Lesser General Public Licence, starting with the third version 3.0. "
497
"Requires sharing of modifications under the same terms, and distribution of the source code, "
498
"as well as requiring the licence notice to be included in distributions. "
499
"It doesn't, however, require dependent works to be compatible with the licence. "
500
"However there are currently no later versions.",
501
"https://www.gnu.org/licenses/lgpl-3.0.html",
502
"https://www.gnu.org/licenses/lgpl-3.0.html",
503
free=True, pinned=True, logo_url="https://www.gnu.org/graphics/lgplv3-147x51.png"),
504
Licence("AGPL-3.0", "GNU Affero General Public Licence v3.0",
505
"The first, only and latest version of the GNU Affero General Public Licence. "
506
"Requires sharing of modifications under the same terms, and distribution of the source code, "
507
"as well as requiring the licence notice to be included in distributions. "
508
"It also requires that the source code be made available to users which access the "
509
"software over a network.",
510
"https://www.gnu.org/licenses/agpl-3.0.html",
511
"https://www.gnu.org/licenses/agpl-3.0.html",
512
free=True, logo_url="https://www.gnu.org/graphics/agplv3-155x51.png"),
513
Licence("AGPL-3.0-or-later", "GNU Affero General Public Licence v3.0 or later",
514
"Any of the versions of the GNU Affero General Public Licence, starting with the first version 3.0. "
515
"Requires sharing of modifications under the same terms, and distribution of the source code, "
516
"as well as requiring the licence notice to be included in distributions. "
517
"It also requires that the source code be made available to users which access the "
518
"software over a network. "
519
"However there are currently no later versions.",
520
"https://www.gnu.org/licenses/agpl-3.0.html",
521
"https://www.gnu.org/licenses/agpl-3.0.html",
522
free=True, pinned=True, logo_url="https://www.gnu.org/graphics/agplv3-155x51.png"),
523
# Licence Art Libre
524
Licence("LAL-1.2", "Free Art Licence / Licence Art Libre v1.2",
525
"A licence for works of art that allows free use, modification, and distribution, "
526
"but requires attribution for the work itself, and sharing under the same terms. "
527
"Similar to the Creative Commons Attribution-ShareAlike and GNU GPL licences.",
528
"https://artlibre.org/licence/lal/licence-art-libre-1.2/",
529
"https://artlibre.org/licence/lal/licence-art-libre-1.2/",
530
free=True, logo_url="https://artlibre.org/wp-content/Logo_Licence_Art_Libre.png"),
531
Licence("LAL-1.3", "Free Art Licence / Licence Art Libre v1.3",
532
"A licence for works of art that allows free use, modification, and distribution, "
533
"but requires attribution for the work itself, and sharing under the same terms. "
534
"Similar to the Creative Commons Attribution-ShareAlike and GNU GPL licences.",
535
"https://artlibre.org/",
536
"https://artlibre.org/",
537
free=True, pinned=True, logo_url="https://artlibre.org/wp-content/Logo_Licence_Art_Libre.png"),
538
]
539
540
for licence in licences:
541
db.session.add(licence)
542
543
db.session.commit()
544
545
546
def add_objects():
547
objects = [
548
PictureObject(
549
"Cat (Felis catus)",
550
"Domestic cat",
551
),
552
PictureObject(
553
"Dandelion (Taraxacum officinale)",
554
"Common dandelion",
555
),
556
]
557
558
for object in objects:
559
db.session.add(object)
560
561
db.session.commit()
562
563
564
def add_natures():
565
natures = [
566
PictureNature("photo", "Photograph taken with a camera, but not a photograph of "
567
"a painting or another photograph. Should be substantially "
568
"unaltered, except for cropping, rotation, perspective correction, "
569
"colour changes, sharpness-related changes, and other minor "
570
"retouching that keeps the content unchanged"),
571
PictureNature("document-scan", "Scan of a document, drawing, chart, map, or other "
572
"non-photographic, non-visually artistic work"),
573
PictureNature("2d-art", "Photograph or scan of a 2D visual artwork, such as a painting, "
574
"which only reproduces the work itself without spatial elements"),
575
PictureNature("screen-capture", "Screenshot of a computer graphical user interface, generated "
576
"by the same device or another device such as a capture card "
577
"but not photographed"),
578
PictureNature("screen-photo", "Photograph of a computer screen or other digital display"),
579
PictureNature("computer-2d-art", "2D digital artwork created on a computer or other device "
580
"using a drawing or painting program"),
581
PictureNature("computer-3d-art", "Render of a digital 3D model"),
582
PictureNature("computer-graph", "A basic digital graphic such as a chart, diagram, flowchart, "
583
"or other simple visual representation"),
584
PictureNature("text", "Computer-generated image of simple text"),
585
PictureNature("logo", "An icon, pictogram or logo which isn't just text"),
586
PictureNature("map", "A digital map"),
587
PictureNature("wordmark", "Stylised text, wordmark or monogram"),
588
PictureNature("video-game", "Screenshot of a video game"),
589
PictureNature("photo-composite", "Composite photograph made from multiple photographs or "
590
"a heavily altered photograph"),
591
PictureNature("photo-panorama", "Panoramic or spherical photograph stitched from multiple"
592
" photographs"),
593
PictureNature("pattern", "Very basic repeating pattern or texture"),
594
PictureNature("ai", "Artificial intelligence-generated image, regardless of style"),
595
PictureNature("other", "Other type of image — please specify in the description and ask "
596
"for your type to be added to the list"),
597
]
598
599
for nature in natures:
600
db.session.add(nature)
601
602
db.session.commit()
603