|
1 |
| -"""Asian Development Bank (ADB) provider.""" |
| 1 | +"""Asian Transport Observatory (ATO) provider.""" |
2 | 2 |
|
3 | 3 | from collections import defaultdict
|
4 | 4 | from itertools import chain, product
|
|
13 | 13 | from transport_data.util.pooch import Pooch
|
14 | 14 | from transport_data.util.sdmx import anno_generated
|
15 | 15 |
|
16 |
| -BASE_URL = "https://asiantransportoutlook.com/exportdl?orig=1" |
| 16 | +BASE_URL = "https://asiantransportobservatory.org/exportdl?orig=1" |
17 | 17 |
|
18 | 18 | #: List of all "ECONOMY" codes appearing in processed data.
|
19 | 19 | CL_ECONOMY = m.Codelist(
|
|
30 | 30 | id="MEASURE",
|
31 | 31 | name="Asian Transport Outlook measures (indicators)",
|
32 | 32 | description="Item are automatically generated by the TDCI tools. Currently no "
|
33 |
| - "correspondence with the list provided directly by ADB is checked or enforced.", |
| 33 | + "correspondence with the list provided directly by ATO is checked or enforced.", |
34 | 34 | )
|
35 | 35 |
|
36 | 36 | #: Mapping from short codes for ATO data categories to file names.
|
@@ -216,7 +216,7 @@ def dataset_to_metadata_reports(
|
216 | 216 | mdr.metadata.append(make_ra(mda_id, value))
|
217 | 217 |
|
218 | 218 | # Retrieve the MEASURE from CS_MEASURE
|
219 |
| - cs_measure = STORE.get("ConceptScheme=ADB:MEASURE(0.1.0)") |
| 219 | + cs_measure = STORE.get("ConceptScheme=ATO:MEASURE(0.1.0)") |
220 | 220 | measure_concept = cs_measure[dsd.id]
|
221 | 221 | # Construct a metadata attribute
|
222 | 222 | mdr.metadata.append(make_ra("MEASURE", measure_concept.name))
|
@@ -310,16 +310,19 @@ def format_data_provider(value: str) -> str:
|
310 | 310 | @hookimpl
|
311 | 311 | def get_agencies():
|
312 | 312 | a = m.Agency(
|
313 |
| - id="ADB", |
314 |
| - name="Asian Transport Outlook team at the Asian Development Bank", |
315 |
| - description="""See https://www.adb.org/what-we-do/topics/transport/asian-transport-outlook""", # noqa: E501 |
| 313 | + id="ATO", |
| 314 | + name="Asian Transport Observatory", |
| 315 | + description="""See https://asiantransportobservatory.org/aboutus/""", # noqa: E501 |
| 316 | + contact=[ |
| 317 | + m. Contact( email=[ "[email protected]"]), |
| 318 | + m. Contact( name="Sudhir Gota", email=[ "[email protected]"]), |
| 319 | + # NB Affiliated with ADB, which supports ATO |
| 320 | + # m.Contact(name="James Leather", email=["[email protected]"]), |
| 321 | + # NB No longer formally affiliated with ATO |
| 322 | + # m.Contact(name="Cornie Huizenga", email=["[email protected]"]), |
| 323 | + ], |
316 | 324 | )
|
317 | 325 |
|
318 |
| - c1 = m. Contact( name="James Leather", email=[ "[email protected]"]) |
319 |
| - c2 = m. Contact( name="Cornie Huizenga", email=[ "[email protected]"]) |
320 |
| - c3 = m. Contact( name="Sudhir Gota", email=[ "[email protected]"]) |
321 |
| - a.contact.extend([c1, c2, c3]) |
322 |
| - |
323 | 326 | return (a,)
|
324 | 327 |
|
325 | 328 |
|
@@ -349,7 +352,7 @@ def prepare(aa: m.AnnotableArtefact) -> Tuple[m.DataSet, Callable]:
|
349 | 352 | CS_MEASURE.append(c)
|
350 | 353 |
|
351 | 354 | # Data structure definition with an ID matching the measure
|
352 |
| - # NB here we set ADB as the maintainer. Precisely, ADB establishes the data |
| 355 | + # NB here we set ATO as the maintainer. Precisely, ATO establishes the data |
353 | 356 | # structure, but TDCI is maintaining the SDMX representation of it.
|
354 | 357 | ma_args = dict(maintainer=get_agencies()[0], version=VERSION)
|
355 | 358 | dsd = m.DataStructureDefinition(id=measure_id, **ma_args)
|
|
0 commit comments