-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.py
398 lines (397 loc) · 15 KB
/
constants.py
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
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
LOG_FORMAT = "%(asctime)s - %(levelname)s - [%(filename)s:%(lineno)d] %(message)s"
API_URL_Lookup = {
"API_URL": "https://api.dev.ror.org/v2/organizations",
}
organization_to_ror_lookup = {
"United States. Department of Transportation": "https://ror.org/02xfw2e90",
"United States. Department of Transportation. Federal Aviation Administration": "https://ror.org/05q0y0j38",
"United States. Department of Transportation. Federal Highway Administration": "https://ror.org/0473rr271",
"United States. Department of Transportation. Federal Railroad Administration": "https://ror.org/0275ebj77",
"United States. Department of Transportation. Federal Transit Administration": "https://ror.org/01mg0yh05",
"United States. Department of Transportation. National Highway Traffic Safety Administration": "https://ror.org/04gcfqs37",
"United States. Department of Transportation. United States Maritime Administration": "https://ror.org/055hae320",
"United States. Department of Transportation. Volpe National Transportation Systems Center": "https://ror.org/04a2k6j28",
"United States. Department of Transportation. Federal Motor Carrier Safety Administration": "https://ror.org/01jt5mq34",
"United States. Department of Transportation. Bureau of Transportation Statistics": "https://ror.org/05xfdey77",
"United States. Department of Transportation. Office of the Assistant Secretary for Research and Technology": "https://ror.org/0150hkx05",
"United States. Department of Transportation. Intelligent Transportation Systems Joint Program Office": "https://ror.org/012cshy85",
"United States. Department of Transportation. University Transportation Centers (UTC) Program": "https://ror.org/02jf59s11",
"United States. Department of Transportation. National Transportation Library": "https://ror.org/00snbrd52",
"United States. Department of Transportation. Federal Highway Administration. Turner-Fairbank Highway Research Center": "https://ror.org/04edx5729",
"United States. Department of Transportation. Federal Aviation Administration. Office of Aviation. Civil Aerospace Medical Institute": "https://ror.org/043e04s74",
}
collections_to_doi_lookup = {
"Advisory Circulars": "10.21949/1530859",
"Air Quality + Sustainable Transportation Highlights": "10.21949/y3r3-3y74",
"Attitudes and Behavior Surveys": "10.21949/45f6-zs20",
"BTS Ports": "10.21949/1530821",
"BTS Products": "10.21949/1530822",
"CAA and FAA Reports (CAAFAA)": "10.21949/1530064",
"Civil Aeronautics Manuals": "10.21949/1530823",
"Civil Aeronautics Regulations": "10.21949/1530824",
"Civil Aerospace Medical Institute": "10.21949/1530825",
"Climate Change Clearinghouse": "10.21949/1530826",
"Committee on the Marine Transportation System": "10.21949/1530827",
"Commodity Flow Survey": "10.21949/1530828",
"FAA Advisory Circulars": "10.21949/1530829",
"FAA Technical Library": "10.21949/1530830",
"Federal Aviation Administration": "10.21949/1530831",
"Federal Aviation Regulations": "10.21949/1530860",
"Federal Committee on Statistical Methodology": "10.21949/1530832",
"Federal Highway Administration": "10.21949/1530833",
"Federal Lands": "10.21949/1530834",
"Federal Railroad Administration": "10.21949/1530835",
"Federal Transit Administration": "10.21949/1530836",
"Federal Transit Administration 50th Anniversary (FTA 50)": "10.21949/1530837",
"FHWA's Fostering Multimodal Connectivity Newsletter": "10.21949/0v1v-7343",
"FHWA Highway History Website Articles": "10.21949/hs6z-gp46",
"Focus: Accelerating Infrastructure Innovations": "10.21949/b8c6-qg59",
"Freight Analysis Framework (FAF)": "10.21949/eett-f241",
"Highway Statistics Series: State Statistical Abstracts": "10.21949/xjbx-6t40",
"Historic Cab/Dot Orders": "10.21949/1530861",
"Innovator": "10.21949/rqd2-ad80",
"Intelligent Transportation Systems Joint Program Office": "10.21949/1530838",
"Investigations of Aircraft Accidents 1934-1965": "10.21949/1530839",
"Investigations of Railroad Accidents 1911-1993": "10.21949/1530840",
"ITS4US Phase 1": "10.21949/x19d-9098",
"ITS4US Phase 2 and Phase 3": "10.21949/hkw8-hs16",
"Manual on Uniform Traffic Control Devices for Streets and Highways": "10.21949/e6ym-4204",
"Maritime Administration": "10.21949/1530862",
"Memoranda & Guidance: Guidance": "10.21949/tt5v-eh10",
"National Conferences on Street and Highway Safety": "10.21949/1530841",
"National Transportation Atlas Database Archive": "10.21949/1530842",
"National Transportation Data Archive": "10.21949/1504517",
"News Releases and Newsletters": "10.21949/1530063",
"NHTSA - Behavioral Safety Research (NHTSA-BSR)": "10.21949/1530843",
"NHTSA - Behavioral Safety Research": "10.21949/1530843",
"NHTSA BSR Countermeasures That Work": "10.21949/rv1b-xg46",
"NHTSA BSR Motor Vehicle Occupant Safety Survey": "10.21949/r97k-9s30",
"NHTSA BSR Traffic Safety Facts": "10.21949/vtcz-qs22",
"NHTSA BSR Traffic Tech": "10.21949/e7xd-w126",
"NHTSA - Vehicle Safety Research (NHTSA-VSR)": "10.21949/1530844",
"NHTSA-Vehicle Safety Research": "10.21949/1530844",
"NTL Publications": "10.21949/1530845",
"Papers by H.S. Fairbank - Frank Turner - T.H. Macdonald - (FTMPAPERS) (PBHF-FT-TM-F)": "10.21949/1530846",
"Pedestrian & Bike Forum Newsletter": "10.21949/k6bx-0n11",
"Pipeline and Hazardous Materials Safety Administration": "10.21949/1530847",
"Ports Resilience": "10.21949/9tbf-2k24",
"Public Access Resources": "10.21949/1530848",
"Public Roads": "10.21949/1530849",
"Realty Digest": "10.21949/mh90-5s37",
"Research & Technology Transporter": "10.21949/0dhv-ek51",
"Retiree Memoirs": "10.21949/frsd-vv13",
"Roadside and Crash Risk Studies": "10.21949/arkv-0k07",
"Safety Compass Newsletter": "10.21949/nsh6-b216",
"Secretary of Transportation Speeches": "10.21949/1530850",
"Special Issue - Weekly Motor Fuel Report": "10.21949/ssbv-9r29",
"Successes in Stewardship Newsletter": "10.21949/zv5p-jf66",
"State Road Maps": "10.21949/1530851",
"Texas Road Maps": "10.21949/2rwc-j622",
"Transportation Librarians Roundtable": "10.21949/1530852",
"United States Federal Motor Carrier Safety Administration": "10.21949/1530853",
"University Transportation Centers Program": "10.21949/1530855",
"US DOT Public Access Data Management Plans": "10.21949/1530854",
"US Transportation Collection": "10.21949/1530855",
"US Coast Guard Circulars": "10.21949/1530856",
"US Transportation Collection": "10.21949/1530857",
"Volpe Center Annual Accomplishments": "10.21949/dwez-p084",
"Volpe National Transportation Systems Center, Technical Reference Center": "10.21949/1530858",
}
series_to_doi_lookup = {
"Adams, Brock": "10.21949/6n28-0t42",
"Air Carrier Traffic Statistics (Green Book)": "10.21949/9v8v-2z95",
"Air Travel Consumer Report [Series]": "10.21949/1530607",
"Amendments": "10.21949/x6ad-nt93",
"Annual Reports of the Maritime Administration": "10.21949/jp4q-2g37",
"Boyd, Alan S. ": "10.21949/1530067",
"Boyd, Alan S.": "10.21949/1530067",
"Brinegar, Claude S.": "10.21949/337m-q618",
"Card, Andrew": "10.21949/netv-sm71",
"Civil Aeronautics Administration Reports": "10.21949/cqtp-cp64",
"Coleman, William T., Jr.": "10.21949/zpyh-yn79",
"Dole, Elizabeth Hanford": "10.21949/dbhc-mv55",
"Domestic Airline Fares Consumer Report": "10.21949/kbe4-vy59",
"Federal Aviation Regulations Amendments": "10.21949/x6ad-nt93",
"Federal Aviation Regulations Final Rule": "10.21949/q598-f030",
"FHWA R&T Now": "10.21949/t5k5-mw25",
"Final Rule": "10.21949/q598-f030",
"Fleet Composition of Rail Tank Cars Carrying Flammable Liquids": "10.21949/1503662",
"Goldschmidt, Neil": "10.21949/d4sv-tn50",
"Lewis, Andrew Lindsay, Jr.": "10.21949/y3a2-6737",
"Metrics of Success Series": "10.21949/pepf-n503",
"National Census of Ferry Operators (NCFO)": "10.21949/5qbs-gt76",
"National Transportation Atlas Database (NTAD)": "10.21949/1524551",
"OST-R Research Roundup": "10.21949/ctgz-8g63",
"Pena, Federico": "10.21949/hwt7-nd45",
"Pocket Guide to Transportation": "10.21949/1503656",
"Skinner, Samuel": "10.21949/6qc0-gt15",
"Slater, Rodney": "10.21949/r2y9-nd59",
"Special Federal Aviation Regulations": "10.21949/b9d0-1n60",
"Trapline": "10.21949/sfde-je37",
"Volpe, John A.": "10.21949/1530983",
"Vehicle Inventory and Use Survey (VIUS)": "10.21949/1524559",
"What Do Americans Think About Federal Tax Options to Support Transportation?": "10.21949/1531029",
}
resource_type_lookup = {
"Analytic Code": "Software",
"Application": "Software",
"Audio": "Sound",
"Bibliography": "Text",
"Book": "Book",
"Booklet/Pamphlet": "Text",
"Brief": "Text",
"Collection": "Collection",
"Data Management Plan": "OutputManagementPlan",
"Dataset": "Dataset",
"Dissertation": "Dissertation",
"Event": "Event",
"Example": "Other",
"Geospatial Files": "Dataset",
"Image": "Image",
"InBook": "BookChapter",
"InCollection": "BookChapter",
"InProceedings": "ConferencePaper",
"InteractiveResource": "InteractiveResource",
"Journal": "Journal",
"Journal Article": "JournalArticle",
"Letter": "Text",
"Magazine": "Text",
"Manual": "Standard",
"Manuscript": "Text",
"Map": "Image",
"Memorandum": "Text",
"Message": "Text",
"Model": "Model",
"Multipart": "Collection",
"Newsletters": "Text",
"Newspaper": "Text",
"Organization Info": "Other",
"Other": "Other",
"Personal Info": "Other",
"Policy Statement": "Standard",
"Presentations": "Audiovisual",
"Press Release": "Text",
"Proceedings": "ConferenceProceedings",
"Research Paper": "Report",
"Series": "Collection",
"Simulation": "Model",
"Software": "Software",
"Speeches": "Other",
"Statistical Report": "Report",
"Tech Report": "Report",
"Text": "Text",
"Thesis": "Dissertation",
"Video": "Audiovisual",
"Web Document": "Text",
}
iana_mime_type_lookup = {
"AVI": "video/x-msvideo",
"CSV": "text/csv",
"DOC": "application/msword",
"HTML": "text/html",
"JPEG": "image/jpeg",
"MPEG": "video/mpeg",
"PDF": "application/pdf",
"PNG": "image/png",
"PPT": "application/vnd.ms-powerpoint",
"PPTX": "application/vnd.ms-powerpoint",
"Raster": "image/pwg-raster",
"RTF": "text/rtf",
"Shapefiles": "application/x-shapefile",
"SWF": "video/vnd.sealed.swf",
"TIFF": "application/vnd.sealed.tiff",
"TXT": "text/plain",
"Vector": "application/geo+json",
"WMA": "audio/x-ms-wma",
"WMV": "video/x-ms-wmv",
"XLS": "application/vnd.ms-excel",
"XLSX": "application/vnd.ms-excel",
"XML": "text/xml",
"ZIP": "application/zip",
}
language_dict = {
"Abkhazian": "ab",
"Afar": "aa",
"Afrikaans": "af",
"Akan": "ak",
"Albanian": "sq",
"Amharic": "am",
"Arabic": "ar",
"Aragonese": "an",
"Armenian": "hy",
"Assamese": "as",
"Avaric": "av",
"Avestan": "ae",
"Aymara": "ay",
"Azerbaijani": "az",
"Bambara": "bm",
"Bashkir": "ba",
"Basque": "eu",
"Belarusian": "be",
"Bengali": "bn",
"Bislama": "bi",
"Bosnian": "bs",
"Breton": "br",
"Bulgarian": "bg",
"Burmese": "my",
"Catalan, Valencian": "ca",
"Chamorro": "ch",
"Chechen": "ce",
"Chichewa, Chewa, Nyanja": "ny",
"Chinese": "zh",
"Church Slavonic, Old Slavonic, Old Church Slavonic": "cu",
"Chuvash": "cv",
"Cornish": "kw",
"Corsican": "co",
"Cree": "cr",
"Croatian": "hr",
"Czech": "cs",
"Danish": "da",
"Divehi, Dhivehi, Maldivian": "dv",
"Dutch, Flemish": "nl",
"Dzongkha": "dz",
"English": "en",
"Esperanto": "eo",
"Estonian": "et",
"Ewe": "ee",
"Faroese": "fo",
"Fijian": "fj",
"Finnish": "fi",
"French": "fr",
"Western Frisian": "fy",
"Fulah": "ff",
"Gaelic, Scottish Gaelic": "gd",
"Galician": "gl",
"Ganda": "lg",
"Georgian": "ka",
"German": "de",
"Greek, Modern (1453–)": "el",
"Kalaallisut, Greenlandic": "kl",
"Guarani": "gn",
"Gujarati": "gu",
"Haitian, Haitian Creole": "ht",
"Hausa": "ha",
"Hebrew": "he",
"Herero": "hz",
"Hindi": "hi",
"Hiri Motu": "ho",
"Hungarian": "hu",
"Icelandic": "is",
"Ido": "io",
"Igbo": "ig",
"Indonesian": "id",
"Interlingua (International Auxiliary Language Association)": "ia",
"Interlingue, Occidental": "ie",
"Inuktitut": "iu",
"Inupiaq": "ik",
"Irish": "ga",
"Italian": "it",
"Japanese": "ja",
"Javanese": "jv",
"Kannada": "kn",
"Kanuri": "kr",
"Kashmiri": "ks",
"Kazakh": "kk",
"Central Khmer": "km",
"Kikuyu, Gikuyu": "ki",
"Kinyarwanda": "rw",
"Kirghiz, Kyrgyz": "ky",
"Komi": "kv",
"Kongo": "kg",
"Korean": "ko",
"Kuanyama, Kwanyama": "kj",
"Kurdish": "ku",
"Lao": "lo",
"Latin": "la",
"Latvian": "lv",
"Limburgan, Limburger, Limburgish": "li",
"Lingala": "ln",
"Lithuanian": "lt",
"Luba-Katanga": "lu",
"Luxembourgish, Letzeburgesch": "lb",
"Macedonian": "mk",
"Malagasy": "mg",
"Malay": "ms",
"Malayalam": "ml",
"Maltese": "mt",
"Manx": "gv",
"Maori": "mi",
"Marathi": "mr",
"Marshallese": "mh",
"Mongolian": "mn",
"Nauru": "na",
"Navajo, Navaho": "nv",
"North Ndebele": "nd",
"South Ndebele": "nr",
"Ndonga": "ng",
"Nepali": "ne",
"Norwegian": "no",
"Norwegian Bokmål": "nb",
"Norwegian Nynorsk": "nn",
"Sichuan Yi, Nuosu": "ii",
"Occitan": "oc",
"Ojibwa": "oj",
"Oriya": "or",
"Oromo": "om",
"Ossetian, Ossetic": "os",
"Pali": "pi",
"Pashto, Pushto": "ps",
"Persian": "fa",
"Polish": "pl",
"Portuguese": "pt",
"Punjabi, Panjabi": "pa",
"Quechua": "qu",
"Romanian, Moldavian, Moldovan": "ro",
"Romansh": "rm",
"Rundi": "rn",
"Russian": "ru",
"Northern Sami": "se",
"Samoan": "sm",
"Sango": "sg",
"Sanskrit": "sa",
"Sardinian": "sc",
"Serbian": "sr",
"Shona": "sn",
"Sindhi": "sd",
"Sinhala, Sinhalese": "si",
"Slovak": "sk",
"Slovenian": "sl",
"Somali": "so",
"Southern Sotho": "st",
"Spanish, Castilian": "es",
"Sundanese": "su",
"Swahili": "sw",
"Swati": "ss",
"Swedish": "sv",
"Tagalog": "tl",
"Tahitian": "ty",
"Tajik": "tg",
"Tamil": "ta",
"Tatar": "tt",
"Telugu": "te",
"Thai": "th",
"Tibetan": "bo",
"Tigrinya": "ti",
"Tonga (Tonga Islands)": "to",
"Tsonga": "ts",
"Tswana": "tn",
"Turkish": "tr",
"Turkmen": "tk",
"Twi": "tw",
"Uighur, Uyghur": "ug",
"Ukrainian": "uk",
"Urdu": "ur",
"Uzbek": "uz",
"Venda": "ve",
"Vietnamese": "vi",
"Volapük": "vo",
"Walloon": "wa",
"Welsh": "cy",
"Wolof": "wo",
"Xhosa": "xh",
"Yiddish": "yi",
"Yoruba": "yo",
"Zhuang, Chuang": "za",
"Zulu": "zu",
}
confirmed_matches = {}