@mailwoman/corpus 10.1.0 → 10.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/data/licenses/cdla-permissive-2.0.md +1 -1
- package/lib/adapters/cordis/adapter.ts +13 -7
- package/lib/adapters/dedup-key.ts +1 -1
- package/lib/adapters/geonames/adapter.ts +1 -1
- package/lib/adapters/gleif/adapter.ts +17 -16
- package/lib/adapters/libpostal-dictionary.ts +0 -2
- package/lib/adapters/openaddresses/adapter.ts +4 -3
- package/lib/adapters/osm/adapter.ts +22 -21
- package/lib/adapters/po-box/adapter.ts +10 -5
- package/lib/adapters/registry.ts +4 -4
- package/lib/adapters/source-id.ts +2 -2
- package/lib/adapters/street-line.ts +7 -6
- package/lib/adapters/wof/admin/json/adapter.ts +2 -2
- package/lib/adapters/wof/json-rows.ts +2 -1
- package/lib/adapters/wof/postalcode-json/adapter.ts +6 -2
- package/lib/adapters.ts +5 -5
- package/lib/au/adapters/gnaf/adapter.ts +1 -1
- package/lib/be/adapters/brussels/adapter.ts +22 -22
- package/lib/be/adapters/vlaanderen/adapter.ts +54 -57
- package/lib/be/adapters/wallonie/adapter.ts +17 -17
- package/lib/be/tools/fetch/brussels.ts +13 -10
- package/lib/be/tools/fetch/wallonie.ts +8 -7
- package/lib/build/adapters.ts +2 -1
- package/lib/build/align.ts +5 -4
- package/lib/build/checkpoint.ts +5 -3
- package/lib/build/eligibility.ts +3 -3
- package/lib/build/types.ts +8 -6
- package/lib/cz/adapters/cuzk/adapter.ts +41 -38
- package/lib/cz/tools/fetch/cuzk.ts +42 -31
- package/lib/de/recipes/locale.ts +1 -1
- package/lib/dk/adapters/inspire/adapter.ts +38 -38
- package/lib/dk/tools/fetch/inspire.ts +16 -14
- package/lib/ee/adapters/ads/adapter.ts +26 -32
- package/lib/ee/tools/fetch/ads.ts +10 -8
- package/lib/es/adapters/bizkaia/adapter.ts +47 -47
- package/lib/es/adapters/catastro/adapter.ts +36 -34
- package/lib/es/adapters/gipuzkoa/adapter.ts +38 -45
- package/lib/es/adapters/navarra/adapter.ts +28 -27
- package/lib/es/cadastre.ts +31 -31
- package/lib/es/tools/fetch/bizkaia.ts +40 -36
- package/lib/es/tools/fetch/catastro.ts +51 -40
- package/lib/es/tools/fetch/gipuzkoa.ts +13 -11
- package/lib/es/tools/fetch/navarra.ts +33 -25
- package/lib/fi/adapters/ryhti/adapter.ts +22 -26
- package/lib/fi/tools/fetch/ryhti.ts +31 -31
- package/lib/fr/adapters/annuaire-education/adapter.ts +13 -11
- package/lib/fr/adapters/ban/adapter.ts +6 -6
- package/lib/fr/adapters/finess/adapter.ts +16 -15
- package/lib/fr/adapters/finess/voie-type.ts +4 -3
- package/lib/fr/insee-country.ts +2 -2
- package/lib/fr/recipes/lieudit.ts +8 -6
- package/lib/fr/tools/fetch/annuaire-education.ts +11 -8
- package/lib/fr/tools/fetch/ban.ts +3 -2
- package/lib/fr/tools/fetch/finess.ts +14 -13
- package/lib/inspire/address.ts +86 -78
- package/lib/inspire/errors.ts +9 -8
- package/lib/inspire/stream.ts +29 -26
- package/lib/international/recipes/locale.ts +13 -9
- package/lib/it/adapters/anac/adapter.ts +51 -46
- package/lib/it/tools/fetch/anac.ts +22 -25
- package/lib/jp/adapters/wof-admin/adapter.ts +2 -6
- package/lib/jp/tools/fetch/houjin.ts +3 -3
- package/lib/kr/adapters/localdata/permit-rows.ts +1 -1
- package/lib/kr/tools/fetch/juso.ts +1 -1
- package/lib/kr/tools/fetch/localdata.ts +2 -2
- package/lib/lu/adapters/bd-adresses/adapter.ts +10 -10
- package/lib/lu/tools/fetch/bd-adresses.ts +15 -13
- package/lib/lv/adapters/varis/adapter.ts +24 -23
- package/lib/lv/tools/fetch/varis.ts +3 -2
- package/lib/nl/adapters/kadaster/adapter.ts +29 -29
- package/lib/nl/tools/fetch/kadaster.ts +16 -12
- package/lib/no/adapters/matrikkelen/adapter.ts +6 -5
- package/lib/no/tools/fetch/matrikkelen.ts +59 -47
- package/lib/parquet/duckdb.ts +7 -4
- package/lib/parquet/readers.ts +3 -3
- package/lib/parquet/schema.ts +1 -1
- package/lib/parquet/writers.ts +3 -2
- package/lib/pl/adapters/emuia/adapter.ts +12 -12
- package/lib/pl/tools/fetch/emuia.ts +10 -9
- package/lib/recipes/bare/postcode.ts +1 -1
- package/lib/recipes/boundary-stress.ts +1 -1
- package/lib/recipes/house-venue.ts +7 -3
- package/lib/recipes/intersection.ts +2 -2
- package/lib/recipes/po/box/cedex/recipe.ts +3 -3
- package/lib/recipes/po/box/cedex/sources.ts +13 -1
- package/lib/recipes/scaffold.ts +31 -21
- package/lib/recipes/sources.ts +16 -3
- package/lib/recipes/street/bare.ts +2 -2
- package/lib/recipes/street.ts +3 -1
- package/lib/recipes/sub/venue/context.ts +2 -0
- package/lib/recipes/sub/venue/render.ts +1 -1
- package/lib/recipes/sub/venue/sources.ts +24 -29
- package/lib/recipes/sub/venue.ts +12 -18
- package/lib/recipes/trailing-region.ts +6 -2
- package/lib/recipes/unit.ts +3 -3
- package/lib/recipes/venue.ts +347 -0
- package/lib/recipes.ts +4 -2
- package/lib/registers.ts +8 -6
- package/lib/ro/adapters/retea-scolara/adapter.ts +5 -5
- package/lib/ro/tools/fetch/retea-scolara.ts +1 -1
- package/lib/runner.ts +4 -3
- package/lib/sg/recipes/register.ts +1 -1
- package/lib/sg/tools/fetch/acra.ts +3 -3
- package/lib/sk/adapters/inspire/adapter.ts +25 -27
- package/lib/sk/tools/fetch/inspire.ts +15 -14
- package/lib/source-register/effective-manifest.ts +3 -3
- package/lib/source-register/register.ts +3 -3
- package/lib/source-register/training-manifest.ts +1 -1
- package/lib/source-register/types.ts +12 -13
- package/lib/subvenue/promotions.ts +1 -1
- package/lib/subvenue/table.ts +4 -4
- package/lib/surfaces/locale.ts +2 -0
- package/lib/synthesizers/anchor-absorption.ts +2 -1
- package/lib/synthesizers/boundary-stress.ts +20 -26
- package/lib/synthesizers/house-venue.ts +26 -30
- package/lib/synthesizers/no-street.ts +2 -1
- package/lib/synthesizers/po-box.ts +6 -3
- package/lib/synthesizers/tail.ts +55 -0
- package/lib/synthesizers/utils.ts +19 -2
- package/lib/test-kit.ts +2 -2
- package/lib/tools/audit.ts +7 -5
- package/lib/tools/corpus-stats.ts +1 -1
- package/lib/tools/fetch/atom.ts +10 -10
- package/lib/tools/fetch/cordis.ts +11 -9
- package/lib/tools/fetch/download/manifest.ts +2 -1
- package/lib/tools/fetch/download/network.ts +4 -4
- package/lib/tools/fetch/download/retry.ts +4 -4
- package/lib/tools/fetch/geonames/dump.ts +5 -3
- package/lib/tools/fetch/geonames/postal.ts +2 -2
- package/lib/tools/fetch/gleif.ts +6 -4
- package/lib/tools/fetch/header.ts +8 -6
- package/lib/tools/fetch/inspire-addresses.ts +41 -36
- package/lib/tools/fetch/openaddresses.ts +1 -1
- package/lib/tools/fetch/vlaanderen-ad.ts +17 -17
- package/lib/tools/fetch/wfs-harvest.ts +39 -28
- package/lib/tools/fetch.ts +0 -42
- package/lib/tools/golden/expand.ts +8 -8
- package/lib/tools/golden/promote.ts +12 -8
- package/lib/tools/golden/relabel-street/directory.ts +7 -6
- package/lib/tools/golden/relabel-street/row.ts +7 -6
- package/lib/tools/ingest-csv.ts +3 -3
- package/lib/tools/jsonl-to-parquet.ts +1 -1
- package/lib/tools/lint/recipe-output/vocab.ts +10 -5
- package/lib/tools/lint/recipe-output.ts +26 -8
- package/lib/tools/overlay/kryptonite.ts +4 -3
- package/lib/tools/overlay/manifest.ts +4 -2
- package/lib/tools/overlay/merge-source.ts +2 -1
- package/lib/tools/overlay/split-slice.ts +2 -2
- package/lib/tools/overlay/translit.ts +6 -4
- package/lib/tools/overture-subvenue.ts +1 -1
- package/lib/tools/postcode-triples.ts +5 -4
- package/lib/tools/source-register/build.ts +17 -14
- package/lib/tools/sub/venue/lexicon.ts +4 -8
- package/lib/tw/tools/fetch/gcis.ts +4 -4
- package/lib/types.ts +4 -3
- package/lib/us/adapters/state/hi-schools/workbook.ts +1 -1
- package/lib/us/adapters/usgov/nad/adapter.ts +11 -11
- package/lib/us/adapters/usgov/samhsa-treatment-locator/adapter.ts +4 -4
- package/lib/us/fips-state.ts +2 -2
- package/lib/{synthesizers → us/synthesizers}/intersection.ts +12 -13
- package/lib/{synthesizers → us/synthesizers}/street.ts +16 -15
- package/lib/us/tools/fetch/imls-pls.ts +1 -1
- package/lib/us/tools/fetch/nad.ts +7 -7
- package/lib/us/tools/fetch/nppes.ts +5 -5
- package/lib/us/tools/fetch/state/hi-schools.ts +3 -2
- package/lib/us/tools/fetch/tiger-full.ts +1 -1
- package/lib/utils/align.ts +13 -10
- package/lib/utils/golden.ts +2 -2
- package/lib/utils/license.ts +3 -3
- package/lib/utils/split.ts +19 -15
- package/lib/utils/tokenize.ts +7 -26
- package/lib/utils/wof-json.ts +4 -4
- package/out/adapters/cordis/adapter.d.ts +5 -3
- package/out/adapters/cordis/adapter.d.ts.map +1 -1
- package/out/adapters/cordis/adapter.js +13 -7
- package/out/adapters/cordis/adapter.js.map +1 -1
- package/out/adapters/dedup-key.d.ts +1 -1
- package/out/adapters/dedup-key.js +1 -1
- package/out/adapters/geonames/adapter.js +1 -1
- package/out/adapters/geonames/adapter.js.map +1 -1
- package/out/adapters/gleif/adapter.d.ts +9 -9
- package/out/adapters/gleif/adapter.d.ts.map +1 -1
- package/out/adapters/gleif/adapter.js +15 -14
- package/out/adapters/gleif/adapter.js.map +1 -1
- package/out/adapters/libpostal-dictionary.d.ts +0 -2
- package/out/adapters/libpostal-dictionary.d.ts.map +1 -1
- package/out/adapters/libpostal-dictionary.js +0 -2
- package/out/adapters/libpostal-dictionary.js.map +1 -1
- package/out/adapters/openaddresses/adapter.d.ts +3 -2
- package/out/adapters/openaddresses/adapter.d.ts.map +1 -1
- package/out/adapters/openaddresses/adapter.js +1 -1
- package/out/adapters/openaddresses/adapter.js.map +1 -1
- package/out/adapters/osm/adapter.d.ts +17 -16
- package/out/adapters/osm/adapter.d.ts.map +1 -1
- package/out/adapters/osm/adapter.js +10 -9
- package/out/adapters/osm/adapter.js.map +1 -1
- package/out/adapters/po-box/adapter.d.ts +6 -3
- package/out/adapters/po-box/adapter.d.ts.map +1 -1
- package/out/adapters/po-box/adapter.js +4 -2
- package/out/adapters/po-box/adapter.js.map +1 -1
- package/out/adapters/registry.d.ts +3 -3
- package/out/adapters/registry.d.ts.map +1 -1
- package/out/adapters/registry.js +1 -1
- package/out/adapters/registry.js.map +1 -1
- package/out/adapters/source-id.d.ts +2 -2
- package/out/adapters/source-id.js +2 -2
- package/out/adapters/street-line.d.ts +7 -6
- package/out/adapters/street-line.d.ts.map +1 -1
- package/out/adapters/street-line.js +7 -6
- package/out/adapters/street-line.js.map +1 -1
- package/out/adapters/wof/admin/json/adapter.js +1 -1
- package/out/adapters/wof/admin/json/adapter.js.map +1 -1
- package/out/adapters/wof/json-rows.d.ts +2 -1
- package/out/adapters/wof/json-rows.d.ts.map +1 -1
- package/out/adapters/wof/json-rows.js.map +1 -1
- package/out/adapters/wof/postalcode-json/adapter.d.ts.map +1 -1
- package/out/adapters/wof/postalcode-json/adapter.js +5 -1
- package/out/adapters/wof/postalcode-json/adapter.js.map +1 -1
- package/out/adapters.d.ts +5 -5
- package/out/adapters.js +5 -5
- package/out/au/adapters/gnaf/adapter.js +1 -1
- package/out/au/adapters/gnaf/adapter.js.map +1 -1
- package/out/be/adapters/brussels/adapter.d.ts +9 -9
- package/out/be/adapters/brussels/adapter.d.ts.map +1 -1
- package/out/be/adapters/brussels/adapter.js +21 -21
- package/out/be/adapters/brussels/adapter.js.map +1 -1
- package/out/be/adapters/vlaanderen/adapter.d.ts +34 -37
- package/out/be/adapters/vlaanderen/adapter.d.ts.map +1 -1
- package/out/be/adapters/vlaanderen/adapter.js +40 -38
- package/out/be/adapters/vlaanderen/adapter.js.map +1 -1
- package/out/be/adapters/wallonie/adapter.d.ts +2 -2
- package/out/be/adapters/wallonie/adapter.js +17 -17
- package/out/be/adapters/wallonie/adapter.js.map +1 -1
- package/out/be/tools/fetch/brussels.d.ts +11 -8
- package/out/be/tools/fetch/brussels.d.ts.map +1 -1
- package/out/be/tools/fetch/brussels.js +10 -8
- package/out/be/tools/fetch/brussels.js.map +1 -1
- package/out/be/tools/fetch/wallonie.d.ts +6 -5
- package/out/be/tools/fetch/wallonie.d.ts.map +1 -1
- package/out/be/tools/fetch/wallonie.js +4 -4
- package/out/be/tools/fetch/wallonie.js.map +1 -1
- package/out/build/adapters.d.ts.map +1 -1
- package/out/build/adapters.js +2 -1
- package/out/build/adapters.js.map +1 -1
- package/out/build/align.d.ts +3 -2
- package/out/build/align.d.ts.map +1 -1
- package/out/build/align.js +2 -2
- package/out/build/align.js.map +1 -1
- package/out/build/checkpoint.d.ts +1 -1
- package/out/build/checkpoint.d.ts.map +1 -1
- package/out/build/checkpoint.js +4 -2
- package/out/build/checkpoint.js.map +1 -1
- package/out/build/eligibility.d.ts +2 -2
- package/out/build/eligibility.js +3 -3
- package/out/build/eligibility.js.map +1 -1
- package/out/build/types.d.ts +8 -6
- package/out/build/types.d.ts.map +1 -1
- package/out/cz/adapters/cuzk/adapter.d.ts +14 -14
- package/out/cz/adapters/cuzk/adapter.d.ts.map +1 -1
- package/out/cz/adapters/cuzk/adapter.js +38 -35
- package/out/cz/adapters/cuzk/adapter.js.map +1 -1
- package/out/cz/tools/fetch/cuzk.d.ts +31 -22
- package/out/cz/tools/fetch/cuzk.d.ts.map +1 -1
- package/out/cz/tools/fetch/cuzk.js +21 -19
- package/out/cz/tools/fetch/cuzk.js.map +1 -1
- package/out/de/recipes/locale.js +1 -1
- package/out/de/recipes/locale.js.map +1 -1
- package/out/dk/adapters/inspire/adapter.d.ts +32 -33
- package/out/dk/adapters/inspire/adapter.d.ts.map +1 -1
- package/out/dk/adapters/inspire/adapter.js +38 -38
- package/out/dk/adapters/inspire/adapter.js.map +1 -1
- package/out/dk/tools/fetch/inspire.d.ts +6 -5
- package/out/dk/tools/fetch/inspire.d.ts.map +1 -1
- package/out/dk/tools/fetch/inspire.js +15 -13
- package/out/dk/tools/fetch/inspire.js.map +1 -1
- package/out/ee/adapters/ads/adapter.d.ts +19 -26
- package/out/ee/adapters/ads/adapter.d.ts.map +1 -1
- package/out/ee/adapters/ads/adapter.js +22 -28
- package/out/ee/adapters/ads/adapter.js.map +1 -1
- package/out/ee/tools/fetch/ads.d.ts +3 -3
- package/out/ee/tools/fetch/ads.d.ts.map +1 -1
- package/out/ee/tools/fetch/ads.js +10 -8
- package/out/ee/tools/fetch/ads.js.map +1 -1
- package/out/es/adapters/bizkaia/adapter.d.ts +28 -28
- package/out/es/adapters/bizkaia/adapter.d.ts.map +1 -1
- package/out/es/adapters/bizkaia/adapter.js +43 -43
- package/out/es/adapters/bizkaia/adapter.js.map +1 -1
- package/out/es/adapters/catastro/adapter.d.ts +22 -23
- package/out/es/adapters/catastro/adapter.d.ts.map +1 -1
- package/out/es/adapters/catastro/adapter.js +35 -33
- package/out/es/adapters/catastro/adapter.js.map +1 -1
- package/out/es/adapters/gipuzkoa/adapter.d.ts +31 -38
- package/out/es/adapters/gipuzkoa/adapter.d.ts.map +1 -1
- package/out/es/adapters/gipuzkoa/adapter.js +40 -47
- package/out/es/adapters/gipuzkoa/adapter.js.map +1 -1
- package/out/es/adapters/navarra/adapter.d.ts +20 -19
- package/out/es/adapters/navarra/adapter.d.ts.map +1 -1
- package/out/es/adapters/navarra/adapter.js +23 -22
- package/out/es/adapters/navarra/adapter.js.map +1 -1
- package/out/es/cadastre.d.ts +21 -20
- package/out/es/cadastre.d.ts.map +1 -1
- package/out/es/cadastre.js +19 -21
- package/out/es/cadastre.js.map +1 -1
- package/out/es/tools/fetch/bizkaia.d.ts +28 -25
- package/out/es/tools/fetch/bizkaia.d.ts.map +1 -1
- package/out/es/tools/fetch/bizkaia.js +25 -24
- package/out/es/tools/fetch/bizkaia.js.map +1 -1
- package/out/es/tools/fetch/catastro.d.ts +28 -20
- package/out/es/tools/fetch/catastro.d.ts.map +1 -1
- package/out/es/tools/fetch/catastro.js +36 -31
- package/out/es/tools/fetch/catastro.js.map +1 -1
- package/out/es/tools/fetch/gipuzkoa.d.ts +11 -9
- package/out/es/tools/fetch/gipuzkoa.d.ts.map +1 -1
- package/out/es/tools/fetch/gipuzkoa.js +9 -8
- package/out/es/tools/fetch/gipuzkoa.js.map +1 -1
- package/out/es/tools/fetch/navarra.d.ts +20 -15
- package/out/es/tools/fetch/navarra.d.ts.map +1 -1
- package/out/es/tools/fetch/navarra.js +21 -16
- package/out/es/tools/fetch/navarra.js.map +1 -1
- package/out/fi/adapters/ryhti/adapter.d.ts +16 -20
- package/out/fi/adapters/ryhti/adapter.d.ts.map +1 -1
- package/out/fi/adapters/ryhti/adapter.js +21 -25
- package/out/fi/adapters/ryhti/adapter.js.map +1 -1
- package/out/fi/tools/fetch/ryhti.d.ts +24 -24
- package/out/fi/tools/fetch/ryhti.d.ts.map +1 -1
- package/out/fi/tools/fetch/ryhti.js +21 -24
- package/out/fi/tools/fetch/ryhti.js.map +1 -1
- package/out/fr/adapters/annuaire-education/adapter.d.ts +8 -8
- package/out/fr/adapters/annuaire-education/adapter.d.ts.map +1 -1
- package/out/fr/adapters/annuaire-education/adapter.js +13 -11
- package/out/fr/adapters/annuaire-education/adapter.js.map +1 -1
- package/out/fr/adapters/ban/adapter.d.ts +4 -4
- package/out/fr/adapters/ban/adapter.js +6 -6
- package/out/fr/adapters/ban/adapter.js.map +1 -1
- package/out/fr/adapters/finess/adapter.d.ts +12 -11
- package/out/fr/adapters/finess/adapter.d.ts.map +1 -1
- package/out/fr/adapters/finess/adapter.js +16 -15
- package/out/fr/adapters/finess/adapter.js.map +1 -1
- package/out/fr/adapters/finess/voie-type.d.ts +2 -2
- package/out/fr/adapters/finess/voie-type.d.ts.map +1 -1
- package/out/fr/adapters/finess/voie-type.js +4 -3
- package/out/fr/adapters/finess/voie-type.js.map +1 -1
- package/out/fr/insee-country.d.ts +2 -2
- package/out/fr/insee-country.js +2 -2
- package/out/fr/recipes/lieudit.d.ts.map +1 -1
- package/out/fr/recipes/lieudit.js +5 -4
- package/out/fr/recipes/lieudit.js.map +1 -1
- package/out/fr/tools/fetch/annuaire-education.d.ts +7 -4
- package/out/fr/tools/fetch/annuaire-education.d.ts.map +1 -1
- package/out/fr/tools/fetch/annuaire-education.js +9 -7
- package/out/fr/tools/fetch/annuaire-education.js.map +1 -1
- package/out/fr/tools/fetch/ban.d.ts +1 -1
- package/out/fr/tools/fetch/ban.d.ts.map +1 -1
- package/out/fr/tools/fetch/ban.js +3 -2
- package/out/fr/tools/fetch/ban.js.map +1 -1
- package/out/fr/tools/fetch/finess.d.ts +5 -5
- package/out/fr/tools/fetch/finess.d.ts.map +1 -1
- package/out/fr/tools/fetch/finess.js +13 -12
- package/out/fr/tools/fetch/finess.js.map +1 -1
- package/out/inspire/address.d.ts +62 -52
- package/out/inspire/address.d.ts.map +1 -1
- package/out/inspire/address.js +71 -60
- package/out/inspire/address.js.map +1 -1
- package/out/inspire/errors.d.ts +9 -8
- package/out/inspire/errors.d.ts.map +1 -1
- package/out/inspire/errors.js +7 -6
- package/out/inspire/errors.js.map +1 -1
- package/out/inspire/stream.d.ts +25 -22
- package/out/inspire/stream.d.ts.map +1 -1
- package/out/inspire/stream.js +10 -12
- package/out/inspire/stream.js.map +1 -1
- package/out/international/recipes/locale.d.ts +2 -2
- package/out/international/recipes/locale.d.ts.map +1 -1
- package/out/international/recipes/locale.js +11 -7
- package/out/international/recipes/locale.js.map +1 -1
- package/out/it/adapters/anac/adapter.d.ts +45 -43
- package/out/it/adapters/anac/adapter.d.ts.map +1 -1
- package/out/it/adapters/anac/adapter.js +48 -43
- package/out/it/adapters/anac/adapter.js.map +1 -1
- package/out/it/tools/fetch/anac.d.ts +16 -19
- package/out/it/tools/fetch/anac.d.ts.map +1 -1
- package/out/it/tools/fetch/anac.js +20 -23
- package/out/it/tools/fetch/anac.js.map +1 -1
- package/out/jp/adapters/wof-admin/adapter.d.ts.map +1 -1
- package/out/jp/adapters/wof-admin/adapter.js.map +1 -1
- package/out/jp/tools/fetch/houjin.js +2 -2
- package/out/jp/tools/fetch/houjin.js.map +1 -1
- package/out/kr/adapters/localdata/permit-rows.js +1 -1
- package/out/kr/adapters/localdata/permit-rows.js.map +1 -1
- package/out/kr/tools/fetch/juso.d.ts +1 -1
- package/out/kr/tools/fetch/localdata.d.ts +1 -1
- package/out/kr/tools/fetch/localdata.js +1 -1
- package/out/kr/tools/fetch/localdata.js.map +1 -1
- package/out/lu/adapters/bd-adresses/adapter.d.ts +9 -9
- package/out/lu/adapters/bd-adresses/adapter.js +10 -10
- package/out/lu/tools/fetch/bd-adresses.d.ts +11 -9
- package/out/lu/tools/fetch/bd-adresses.d.ts.map +1 -1
- package/out/lu/tools/fetch/bd-adresses.js +11 -11
- package/out/lu/tools/fetch/bd-adresses.js.map +1 -1
- package/out/lv/adapters/varis/adapter.d.ts +24 -23
- package/out/lv/adapters/varis/adapter.d.ts.map +1 -1
- package/out/lv/adapters/varis/adapter.js +24 -23
- package/out/lv/adapters/varis/adapter.js.map +1 -1
- package/out/lv/tools/fetch/varis.d.ts +2 -1
- package/out/lv/tools/fetch/varis.d.ts.map +1 -1
- package/out/lv/tools/fetch/varis.js +1 -1
- package/out/lv/tools/fetch/varis.js.map +1 -1
- package/out/nl/adapters/kadaster/adapter.d.ts +12 -12
- package/out/nl/adapters/kadaster/adapter.d.ts.map +1 -1
- package/out/nl/adapters/kadaster/adapter.js +22 -23
- package/out/nl/adapters/kadaster/adapter.js.map +1 -1
- package/out/nl/tools/fetch/kadaster.d.ts +14 -10
- package/out/nl/tools/fetch/kadaster.d.ts.map +1 -1
- package/out/nl/tools/fetch/kadaster.js +12 -9
- package/out/nl/tools/fetch/kadaster.js.map +1 -1
- package/out/no/adapters/matrikkelen/adapter.d.ts +1 -1
- package/out/no/adapters/matrikkelen/adapter.d.ts.map +1 -1
- package/out/no/adapters/matrikkelen/adapter.js +3 -3
- package/out/no/adapters/matrikkelen/adapter.js.map +1 -1
- package/out/no/tools/fetch/matrikkelen.d.ts +50 -38
- package/out/no/tools/fetch/matrikkelen.d.ts.map +1 -1
- package/out/no/tools/fetch/matrikkelen.js +44 -36
- package/out/no/tools/fetch/matrikkelen.js.map +1 -1
- package/out/parquet/duckdb.d.ts +7 -4
- package/out/parquet/duckdb.d.ts.map +1 -1
- package/out/parquet/duckdb.js +2 -1
- package/out/parquet/duckdb.js.map +1 -1
- package/out/parquet/readers.js +3 -3
- package/out/parquet/readers.js.map +1 -1
- package/out/parquet/schema.js +1 -1
- package/out/parquet/schema.js.map +1 -1
- package/out/parquet/writers.d.ts +1 -1
- package/out/parquet/writers.d.ts.map +1 -1
- package/out/parquet/writers.js +2 -1
- package/out/parquet/writers.js.map +1 -1
- package/out/pl/adapters/emuia/adapter.d.ts +8 -8
- package/out/pl/adapters/emuia/adapter.js +12 -12
- package/out/pl/adapters/emuia/adapter.js.map +1 -1
- package/out/pl/tools/fetch/emuia.d.ts +5 -4
- package/out/pl/tools/fetch/emuia.d.ts.map +1 -1
- package/out/pl/tools/fetch/emuia.js +10 -9
- package/out/pl/tools/fetch/emuia.js.map +1 -1
- package/out/recipes/bare/postcode.js +1 -1
- package/out/recipes/bare/postcode.js.map +1 -1
- package/out/recipes/boundary-stress.js +1 -1
- package/out/recipes/boundary-stress.js.map +1 -1
- package/out/recipes/house-venue.d.ts.map +1 -1
- package/out/recipes/house-venue.js +6 -3
- package/out/recipes/house-venue.js.map +1 -1
- package/out/recipes/intersection.js +2 -2
- package/out/recipes/intersection.js.map +1 -1
- package/out/recipes/po/box/cedex/recipe.js +2 -1
- package/out/recipes/po/box/cedex/recipe.js.map +1 -1
- package/out/recipes/po/box/cedex/sources.d.ts +8 -2
- package/out/recipes/po/box/cedex/sources.d.ts.map +1 -1
- package/out/recipes/po/box/cedex/sources.js +1 -1
- package/out/recipes/po/box/cedex/sources.js.map +1 -1
- package/out/recipes/scaffold.d.ts +28 -19
- package/out/recipes/scaffold.d.ts.map +1 -1
- package/out/recipes/scaffold.js +3 -2
- package/out/recipes/scaffold.js.map +1 -1
- package/out/recipes/sources.d.ts +1 -1
- package/out/recipes/sources.d.ts.map +1 -1
- package/out/recipes/sources.js +15 -2
- package/out/recipes/sources.js.map +1 -1
- package/out/recipes/street/bare.js +2 -2
- package/out/recipes/street/bare.js.map +1 -1
- package/out/recipes/street.d.ts.map +1 -1
- package/out/recipes/street.js +3 -1
- package/out/recipes/street.js.map +1 -1
- package/out/recipes/sub/venue/context.d.ts.map +1 -1
- package/out/recipes/sub/venue/context.js +2 -0
- package/out/recipes/sub/venue/context.js.map +1 -1
- package/out/recipes/sub/venue/render.js +1 -1
- package/out/recipes/sub/venue/render.js.map +1 -1
- package/out/recipes/sub/venue/sources.d.ts +6 -3
- package/out/recipes/sub/venue/sources.d.ts.map +1 -1
- package/out/recipes/sub/venue/sources.js +16 -20
- package/out/recipes/sub/venue/sources.js.map +1 -1
- package/out/recipes/sub/venue.d.ts +2 -5
- package/out/recipes/sub/venue.d.ts.map +1 -1
- package/out/recipes/sub/venue.js +10 -14
- package/out/recipes/sub/venue.js.map +1 -1
- package/out/recipes/trailing-region.d.ts.map +1 -1
- package/out/recipes/trailing-region.js +6 -1
- package/out/recipes/trailing-region.js.map +1 -1
- package/out/recipes/unit.js +2 -2
- package/out/recipes/unit.js.map +1 -1
- package/out/recipes/venue.d.ts +119 -0
- package/out/recipes/venue.d.ts.map +1 -0
- package/out/recipes/venue.js +245 -0
- package/out/recipes/venue.js.map +1 -0
- package/out/recipes.d.ts +1 -1
- package/out/recipes.d.ts.map +1 -1
- package/out/recipes.js +3 -1
- package/out/recipes.js.map +1 -1
- package/out/registers.d.ts +8 -6
- package/out/registers.d.ts.map +1 -1
- package/out/registers.js +8 -6
- package/out/registers.js.map +1 -1
- package/out/ro/adapters/retea-scolara/adapter.d.ts +5 -5
- package/out/ro/adapters/retea-scolara/adapter.js +5 -5
- package/out/ro/tools/fetch/retea-scolara.js +1 -1
- package/out/ro/tools/fetch/retea-scolara.js.map +1 -1
- package/out/runner.d.ts +3 -2
- package/out/runner.d.ts.map +1 -1
- package/out/runner.js +1 -1
- package/out/runner.js.map +1 -1
- package/out/sg/recipes/register.js +1 -1
- package/out/sg/recipes/register.js.map +1 -1
- package/out/sg/tools/fetch/acra.js +2 -2
- package/out/sg/tools/fetch/acra.js.map +1 -1
- package/out/sk/adapters/inspire/adapter.d.ts +5 -5
- package/out/sk/adapters/inspire/adapter.d.ts.map +1 -1
- package/out/sk/adapters/inspire/adapter.js +18 -18
- package/out/sk/adapters/inspire/adapter.js.map +1 -1
- package/out/sk/tools/fetch/inspire.d.ts +11 -10
- package/out/sk/tools/fetch/inspire.d.ts.map +1 -1
- package/out/sk/tools/fetch/inspire.js +15 -14
- package/out/sk/tools/fetch/inspire.js.map +1 -1
- package/out/source-register/effective-manifest.js +3 -3
- package/out/source-register/effective-manifest.js.map +1 -1
- package/out/source-register/register.d.ts +2 -2
- package/out/source-register/register.d.ts.map +1 -1
- package/out/source-register/register.js +2 -2
- package/out/source-register/register.js.map +1 -1
- package/out/source-register/training-manifest.d.ts +1 -1
- package/out/source-register/types.d.ts +12 -13
- package/out/source-register/types.d.ts.map +1 -1
- package/out/source-register/types.js +2 -2
- package/out/source-register/types.js.map +1 -1
- package/out/subvenue/promotions.d.ts +1 -1
- package/out/subvenue/promotions.js +1 -1
- package/out/subvenue/table.d.ts +4 -4
- package/out/subvenue/table.js +3 -3
- package/out/surfaces/locale.d.ts.map +1 -1
- package/out/surfaces/locale.js +2 -0
- package/out/surfaces/locale.js.map +1 -1
- package/out/synthesizers/anchor-absorption.d.ts +2 -1
- package/out/synthesizers/anchor-absorption.d.ts.map +1 -1
- package/out/synthesizers/anchor-absorption.js.map +1 -1
- package/out/synthesizers/boundary-stress.d.ts +1 -1
- package/out/synthesizers/boundary-stress.d.ts.map +1 -1
- package/out/synthesizers/boundary-stress.js +20 -23
- package/out/synthesizers/boundary-stress.js.map +1 -1
- package/out/synthesizers/house-venue.d.ts +3 -2
- package/out/synthesizers/house-venue.d.ts.map +1 -1
- package/out/synthesizers/house-venue.js +24 -26
- package/out/synthesizers/house-venue.js.map +1 -1
- package/out/synthesizers/no-street.d.ts.map +1 -1
- package/out/synthesizers/no-street.js.map +1 -1
- package/out/synthesizers/po-box.d.ts +4 -2
- package/out/synthesizers/po-box.d.ts.map +1 -1
- package/out/synthesizers/po-box.js.map +1 -1
- package/out/synthesizers/tail.d.ts +36 -0
- package/out/synthesizers/tail.d.ts.map +1 -0
- package/out/synthesizers/tail.js +32 -0
- package/out/synthesizers/tail.js.map +1 -0
- package/out/synthesizers/utils.d.ts +2 -1
- package/out/synthesizers/utils.d.ts.map +1 -1
- package/out/synthesizers/utils.js +17 -1
- package/out/synthesizers/utils.js.map +1 -1
- package/out/test-kit.js +2 -2
- package/out/test-kit.js.map +1 -1
- package/out/tools/audit.d.ts +2 -1
- package/out/tools/audit.d.ts.map +1 -1
- package/out/tools/audit.js +4 -3
- package/out/tools/audit.js.map +1 -1
- package/out/tools/corpus-stats.js +1 -1
- package/out/tools/corpus-stats.js.map +1 -1
- package/out/tools/fetch/atom.d.ts +8 -8
- package/out/tools/fetch/atom.d.ts.map +1 -1
- package/out/tools/fetch/atom.js +7 -8
- package/out/tools/fetch/atom.js.map +1 -1
- package/out/tools/fetch/cordis.d.ts +4 -3
- package/out/tools/fetch/cordis.d.ts.map +1 -1
- package/out/tools/fetch/cordis.js +9 -7
- package/out/tools/fetch/cordis.js.map +1 -1
- package/out/tools/fetch/download/manifest.d.ts.map +1 -1
- package/out/tools/fetch/download/manifest.js +2 -1
- package/out/tools/fetch/download/manifest.js.map +1 -1
- package/out/tools/fetch/download/network.d.ts +4 -4
- package/out/tools/fetch/download/retry.js +4 -4
- package/out/tools/fetch/download/retry.js.map +1 -1
- package/out/tools/fetch/geonames/dump.d.ts +3 -2
- package/out/tools/fetch/geonames/dump.d.ts.map +1 -1
- package/out/tools/fetch/geonames/dump.js +2 -1
- package/out/tools/fetch/geonames/dump.js.map +1 -1
- package/out/tools/fetch/geonames/postal.d.ts +2 -2
- package/out/tools/fetch/gleif.d.ts +3 -2
- package/out/tools/fetch/gleif.d.ts.map +1 -1
- package/out/tools/fetch/gleif.js +6 -4
- package/out/tools/fetch/gleif.js.map +1 -1
- package/out/tools/fetch/header.d.ts +7 -5
- package/out/tools/fetch/header.d.ts.map +1 -1
- package/out/tools/fetch/header.js +8 -6
- package/out/tools/fetch/header.js.map +1 -1
- package/out/tools/fetch/inspire-addresses.d.ts +32 -27
- package/out/tools/fetch/inspire-addresses.d.ts.map +1 -1
- package/out/tools/fetch/inspire-addresses.js +25 -24
- package/out/tools/fetch/inspire-addresses.js.map +1 -1
- package/out/tools/fetch/openaddresses.js +1 -1
- package/out/tools/fetch/openaddresses.js.map +1 -1
- package/out/tools/fetch/vlaanderen-ad.d.ts +5 -5
- package/out/tools/fetch/vlaanderen-ad.d.ts.map +1 -1
- package/out/tools/fetch/vlaanderen-ad.js +16 -16
- package/out/tools/fetch/vlaanderen-ad.js.map +1 -1
- package/out/tools/fetch/wfs-harvest.d.ts +26 -16
- package/out/tools/fetch/wfs-harvest.d.ts.map +1 -1
- package/out/tools/fetch/wfs-harvest.js +21 -18
- package/out/tools/fetch/wfs-harvest.js.map +1 -1
- package/out/tools/fetch.d.ts +0 -41
- package/out/tools/fetch.d.ts.map +1 -1
- package/out/tools/fetch.js +0 -41
- package/out/tools/fetch.js.map +1 -1
- package/out/tools/golden/expand.d.ts +7 -7
- package/out/tools/golden/expand.js +1 -1
- package/out/tools/golden/expand.js.map +1 -1
- package/out/tools/golden/promote.d.ts +2 -2
- package/out/tools/golden/promote.d.ts.map +1 -1
- package/out/tools/golden/promote.js +9 -6
- package/out/tools/golden/promote.js.map +1 -1
- package/out/tools/golden/relabel-street/directory.d.ts +4 -4
- package/out/tools/golden/relabel-street/directory.d.ts.map +1 -1
- package/out/tools/golden/relabel-street/directory.js +3 -2
- package/out/tools/golden/relabel-street/directory.js.map +1 -1
- package/out/tools/golden/relabel-street/row.d.ts +4 -3
- package/out/tools/golden/relabel-street/row.d.ts.map +1 -1
- package/out/tools/golden/relabel-street/row.js +3 -3
- package/out/tools/golden/relabel-street/row.js.map +1 -1
- package/out/tools/ingest-csv.js +3 -3
- package/out/tools/ingest-csv.js.map +1 -1
- package/out/tools/jsonl-to-parquet.d.ts +1 -1
- package/out/tools/lint/recipe-output/vocab.d.ts +10 -5
- package/out/tools/lint/recipe-output/vocab.d.ts.map +1 -1
- package/out/tools/lint/recipe-output/vocab.js.map +1 -1
- package/out/tools/lint/recipe-output.d.ts +8 -8
- package/out/tools/lint/recipe-output.d.ts.map +1 -1
- package/out/tools/lint/recipe-output.js +17 -0
- package/out/tools/lint/recipe-output.js.map +1 -1
- package/out/tools/overlay/kryptonite.d.ts +2 -2
- package/out/tools/overlay/kryptonite.d.ts.map +1 -1
- package/out/tools/overlay/kryptonite.js +2 -1
- package/out/tools/overlay/kryptonite.js.map +1 -1
- package/out/tools/overlay/manifest.d.ts +2 -1
- package/out/tools/overlay/manifest.d.ts.map +1 -1
- package/out/tools/overlay/manifest.js +2 -1
- package/out/tools/overlay/manifest.js.map +1 -1
- package/out/tools/overlay/merge-source.d.ts +2 -1
- package/out/tools/overlay/merge-source.d.ts.map +1 -1
- package/out/tools/overlay/merge-source.js.map +1 -1
- package/out/tools/overlay/split-slice.d.ts +1 -1
- package/out/tools/overlay/split-slice.js +1 -1
- package/out/tools/overlay/split-slice.js.map +1 -1
- package/out/tools/overlay/translit.d.ts +4 -3
- package/out/tools/overlay/translit.d.ts.map +1 -1
- package/out/tools/overlay/translit.js +2 -1
- package/out/tools/overlay/translit.js.map +1 -1
- package/out/tools/overture-subvenue.d.ts +1 -1
- package/out/tools/overture-subvenue.d.ts.map +1 -1
- package/out/tools/postcode-triples.d.ts +1 -1
- package/out/tools/postcode-triples.d.ts.map +1 -1
- package/out/tools/postcode-triples.js +4 -3
- package/out/tools/postcode-triples.js.map +1 -1
- package/out/tools/source-register/build.d.ts +10 -8
- package/out/tools/source-register/build.d.ts.map +1 -1
- package/out/tools/source-register/build.js +10 -8
- package/out/tools/source-register/build.js.map +1 -1
- package/out/tools/sub/venue/lexicon.d.ts +2 -6
- package/out/tools/sub/venue/lexicon.d.ts.map +1 -1
- package/out/tools/sub/venue/lexicon.js +2 -6
- package/out/tools/sub/venue/lexicon.js.map +1 -1
- package/out/tw/tools/fetch/gcis.js +3 -3
- package/out/tw/tools/fetch/gcis.js.map +1 -1
- package/out/types.d.ts +4 -3
- package/out/types.d.ts.map +1 -1
- package/out/types.js.map +1 -1
- package/out/us/adapters/state/hi-schools/workbook.d.ts +1 -1
- package/out/us/adapters/state/hi-schools/workbook.d.ts.map +1 -1
- package/out/us/adapters/state/hi-schools/workbook.js.map +1 -1
- package/out/us/adapters/usgov/nad/adapter.js +6 -6
- package/out/us/adapters/usgov/nad/adapter.js.map +1 -1
- package/out/us/adapters/usgov/samhsa-treatment-locator/adapter.js +2 -2
- package/out/us/adapters/usgov/samhsa-treatment-locator/adapter.js.map +1 -1
- package/out/us/fips-state.d.ts +2 -2
- package/out/us/fips-state.d.ts.map +1 -1
- package/out/us/fips-state.js.map +1 -1
- package/out/us/synthesizers/intersection.d.ts.map +1 -0
- package/out/{synthesizers → us/synthesizers}/intersection.js +13 -9
- package/out/us/synthesizers/intersection.js.map +1 -0
- package/out/{synthesizers → us/synthesizers}/street.d.ts +3 -2
- package/out/us/synthesizers/street.d.ts.map +1 -0
- package/out/{synthesizers → us/synthesizers}/street.js +12 -12
- package/out/us/synthesizers/street.js.map +1 -0
- package/out/us/tools/fetch/imls-pls.js +1 -1
- package/out/us/tools/fetch/imls-pls.js.map +1 -1
- package/out/us/tools/fetch/nad.d.ts +6 -6
- package/out/us/tools/fetch/nad.js +1 -1
- package/out/us/tools/fetch/nad.js.map +1 -1
- package/out/us/tools/fetch/nppes.js +3 -3
- package/out/us/tools/fetch/nppes.js.map +1 -1
- package/out/us/tools/fetch/state/hi-schools.d.ts +2 -1
- package/out/us/tools/fetch/state/hi-schools.d.ts.map +1 -1
- package/out/us/tools/fetch/state/hi-schools.js +1 -1
- package/out/us/tools/fetch/state/hi-schools.js.map +1 -1
- package/out/us/tools/fetch/tiger-full.js +1 -1
- package/out/us/tools/fetch/tiger-full.js.map +1 -1
- package/out/utils/align.d.ts +5 -3
- package/out/utils/align.d.ts.map +1 -1
- package/out/utils/align.js +5 -5
- package/out/utils/align.js.map +1 -1
- package/out/utils/golden.js +2 -2
- package/out/utils/golden.js.map +1 -1
- package/out/utils/license.d.ts +3 -3
- package/out/utils/license.d.ts.map +1 -1
- package/out/utils/license.js.map +1 -1
- package/out/utils/split.d.ts +1 -1
- package/out/utils/split.d.ts.map +1 -1
- package/out/utils/split.js +18 -14
- package/out/utils/split.js.map +1 -1
- package/out/utils/tokenize.d.ts +3 -20
- package/out/utils/tokenize.d.ts.map +1 -1
- package/out/utils/tokenize.js.map +1 -1
- package/out/utils/wof-json.js +3 -3
- package/out/utils/wof-json.js.map +1 -1
- package/package.json +18 -27
- package/lib/tools.ts +0 -31
- package/out/synthesizers/intersection.d.ts.map +0 -1
- package/out/synthesizers/intersection.js.map +0 -1
- package/out/synthesizers/street.d.ts.map +0 -1
- package/out/synthesizers/street.js.map +0 -1
- package/out/tools.d.ts +0 -31
- package/out/tools.d.ts.map +0 -1
- package/out/tools.js +0 -31
- package/out/tools.js.map +0 -1
- /package/out/{synthesizers → us/synthesizers}/intersection.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkpoint.js","sourceRoot":"","sources":["../../lib/build/checkpoint.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"checkpoint.js","sourceRoot":"","sources":["../../lib/build/checkpoint.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,UAAU,EAAE,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AA;IACF,CAAC;IAED,OAAO,UAAU,CAAA;AAClB,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAqB,EAAE,UAA2B;IACtF,OAAO,kBAAkB,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAA;AAClE,CAAC"}
|
|
@@ -10,14 +10,14 @@ import type { CanonicalRow } from "#types";
|
|
|
10
10
|
* The key a row is looked up under: the adapter that emitted it and the jurisdiction it describes.
|
|
11
11
|
*
|
|
12
12
|
* The register scopes a source to one publisher in one jurisdiction,
|
|
13
|
-
* so an adapter id
|
|
13
|
+
* so an adapter id by itself cannot address a record.
|
|
14
14
|
* One adapter serves several: `ban` emits eleven jurisdictions from one schema
|
|
15
15
|
* and each is its own source under its own license decision.
|
|
16
16
|
*/
|
|
17
17
|
export declare function sourceEligibilityKey(adapterID: string, iso2: string): string;
|
|
18
18
|
/**
|
|
19
19
|
* Every register source's ingest-eligibility reasons, keyed by the adapter
|
|
20
|
-
* and jurisdiction of the rows that
|
|
20
|
+
* and jurisdiction of the rows that recorded it.
|
|
21
21
|
*
|
|
22
22
|
* A source declaring no `adapterID` is absent from the map, because no adapter emits it
|
|
23
23
|
* and no row can arrive under it.
|
package/out/build/eligibility.js
CHANGED
|
@@ -10,7 +10,7 @@ import { ingestEligibilityProblems, readAddressSourceRegister } from "#source-re
|
|
|
10
10
|
* The key a row is looked up under: the adapter that emitted it and the jurisdiction it describes.
|
|
11
11
|
*
|
|
12
12
|
* The register scopes a source to one publisher in one jurisdiction,
|
|
13
|
-
* so an adapter id
|
|
13
|
+
* so an adapter id by itself cannot address a record.
|
|
14
14
|
* One adapter serves several: `ban` emits eleven jurisdictions from one schema
|
|
15
15
|
* and each is its own source under its own license decision.
|
|
16
16
|
*/
|
|
@@ -19,7 +19,7 @@ export function sourceEligibilityKey(adapterID, iso2) {
|
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* Every register source's ingest-eligibility reasons, keyed by the adapter
|
|
22
|
-
* and jurisdiction of the rows that
|
|
22
|
+
* and jurisdiction of the rows that recorded it.
|
|
23
23
|
*
|
|
24
24
|
* A source declaring no `adapterID` is absent from the map, because no adapter emits it
|
|
25
25
|
* and no row can arrive under it.
|
|
@@ -30,7 +30,7 @@ export async function readSourceEligibility() {
|
|
|
30
30
|
const register = await readAddressSourceRegister();
|
|
31
31
|
const keyed = new Map();
|
|
32
32
|
for (const source of register.sources) {
|
|
33
|
-
if (source.adapterID
|
|
33
|
+
if (!source.adapterID)
|
|
34
34
|
continue;
|
|
35
35
|
keyed.set(sourceEligibilityKey(source.adapterID, source.iso2), ingestEligibilityProblems(source, register));
|
|
36
36
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eligibility.js","sourceRoot":"","sources":["../../lib/build/eligibility.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEpD,OAAO,EAAE,yBAAyB,EAAE,yBAAyB,EAAwB,MAAM,kBAAkB,CAAA;AAG7G;;;;;;;GAOG;AACH,MAAM,UAAU,oBAAoB,CAAC,SAAiB,EAAE,IAAY;IACnE,OAAO,GAAG,SAAS,IAAI,IAAI,CAAC,WAAW,EAAE,EAAE,CAAA;AAC5C,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,KAAK,UAAU,qBAAqB;IAC1C,MAAM,QAAQ,GAAG,MAAM,yBAAyB,EAAE,CAAA;IAClD,MAAM,KAAK,GAAG,IAAI,GAAG,EAA6B,CAAA;IAElD,KAAK,MAAM,MAAM,IAAI,QAAQ,CAAC,OAAO,EAAE,CAAC;QACvC,IAAI,MAAM,CAAC,SAAS
|
|
1
|
+
{"version":3,"file":"eligibility.js","sourceRoot":"","sources":["../../lib/build/eligibility.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,aAAa,EAAE,MAA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AAoB,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,OAAO,CAAC,CAAA;YACzD,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;YAE/B,IAAI,MAAM;gBAAE,OAAO,MAAM,CAAA;YAEzB,MAAM,QAAQ,GAAG,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI;gBACxC,+BAA+B,aAAa,CAAC,GAAG,CAAC,MAAM,CAAC,sBAAsB,aAAa,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI;oBAC3G,oFAAoF;oBACpF,yDAAyD;aAC1D,CAAA;YAED,IAAI,CAAC,QAAQ,CAAC,MAAM;gBAAE,OAAO,IAAI,CAAA;YAEjC,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;YAE1B,OAAO,QAAQ,CAAA;QAChB,CAAC;KACD,CAAA;AACF,CAAC"}
|
package/out/build/types.d.ts
CHANGED
|
@@ -58,7 +58,7 @@ export interface BuildCorpusOptions {
|
|
|
58
58
|
/**
|
|
59
59
|
* Adapters to drive, in order.
|
|
60
60
|
*
|
|
61
|
-
*
|
|
61
|
+
* @defaultValue `defaultAdapterRegistry.list()`, and an explicit list filters the run.
|
|
62
62
|
*/
|
|
63
63
|
adapters?: readonly CorpusAdapter[];
|
|
64
64
|
/**
|
|
@@ -70,12 +70,13 @@ export interface BuildCorpusOptions {
|
|
|
70
70
|
/**
|
|
71
71
|
* Enable the synthesis pass.
|
|
72
72
|
*
|
|
73
|
-
*
|
|
73
|
+
* @defaultValue `true`, and a fixture-driven smoke test passes `false`.
|
|
74
74
|
*/
|
|
75
75
|
synthesize?: boolean;
|
|
76
76
|
/**
|
|
77
77
|
* Max rows per `.parquet` file, forwarded to `writeParquetSplits`.
|
|
78
|
-
*
|
|
78
|
+
*
|
|
79
|
+
* @defaultValue `1_000_000`
|
|
79
80
|
*/
|
|
80
81
|
rowsPerFile?: number;
|
|
81
82
|
/**
|
|
@@ -87,7 +88,7 @@ export interface BuildCorpusOptions {
|
|
|
87
88
|
* An unshuffled row group therefore holds rows from one to eleven countries in its source.
|
|
88
89
|
* A bounded epoch draw reads only those countries.
|
|
89
90
|
*
|
|
90
|
-
*
|
|
91
|
+
* @defaultValue `DEFAULT_SHUFFLE_WINDOW`, where `0` or `1` writes arrival
|
|
91
92
|
* order unchanged and consumes no random draw.
|
|
92
93
|
*/
|
|
93
94
|
shuffleWindow?: number;
|
|
@@ -112,14 +113,15 @@ export interface BuildCorpusOptions {
|
|
|
112
113
|
/**
|
|
113
114
|
* Which rows this build admits on the evidence of their license obligations.
|
|
114
115
|
*
|
|
115
|
-
*
|
|
116
|
+
* @defaultValue `LicensePolicy.All`, admitting every row an adapter yields.
|
|
116
117
|
*
|
|
117
118
|
* A weights build that must have no share-alike obligation passes `LicensePolicy.ShareAlikeFree`.
|
|
118
119
|
*/
|
|
119
120
|
licensePolicy?: LicensePolicy;
|
|
120
121
|
/**
|
|
121
122
|
* What this corpus is being built for.
|
|
122
|
-
*
|
|
123
|
+
*
|
|
124
|
+
* @defaultValue {@linkcode BuildProfile.Exploratory}
|
|
123
125
|
*/
|
|
124
126
|
profile?: BuildProfile;
|
|
125
127
|
}
|
package/out/build/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../lib/build/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AACvD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AACjD,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAA;AAC3D,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AACvE,OAAO,KAAK,E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for Surveying, Mapping and Cadastre, publishes one zipped GML per
|
|
9
|
-
* municipality through the ATOM service at `https://atom.cuzk.gov.cz/AD/AD.xml
|
|
10
|
-
* dataset feeds. Each feed offers the same data in EPSG:5514 and EPSG:4258. The adapter reads
|
|
11
|
-
* single archive or a directory of them, so a caller harvests municipality by municipality rather
|
|
9
|
+
* municipality through the ATOM service at `https://atom.cuzk.gov.cz/AD/AD.xml`. That service lists
|
|
10
|
+
* 6,258 dataset feeds. Each feed offers the same data in EPSG:5514 and EPSG:4258. The adapter reads
|
|
11
|
+
* a single archive or a directory of them, so a caller harvests municipality by municipality rather
|
|
12
12
|
* than waiting on a national file.
|
|
13
13
|
*
|
|
14
|
-
* Every address and every feature it references sit in the same archive,
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
14
|
+
* Every address and every feature it references sit in the same archive, so this publisher is cheap
|
|
15
|
+
* to read. The `ad:component` hrefs look external, because ČÚZK writes an absolute WFS stored-query
|
|
16
|
+
* URL on `services.cuzk.cz`. The `Id=` parameter of each one matches a `gml:id` in the file at hand.
|
|
17
|
+
* Measured over `584282.xml`: 5,460 component references across 1,365 addresses, 0 of them reaching
|
|
18
|
+
* outside the archive. Only `ad:parcel` and `ad:building` point at genuinely separate themes, and
|
|
19
|
+
* the adapter reads neither.
|
|
20
20
|
*
|
|
21
21
|
* ČÚZK states one condition of use and states it uniformly. Every one of the 6,259 `rights` elements
|
|
22
|
-
* in the ATOM service document reads `žádné podmínky neplatí`,
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
22
|
+
* in the ATOM service document reads `žádné podmínky neplatí`, the INSPIRE controlled value
|
|
23
|
+
* `no conditions apply to access and use`. The address-source register elects that and records no
|
|
24
|
+
* license instrument, so no SPDX identifier exists to record and the rows store the controlled value
|
|
25
|
+
* itself. The register also holds a caution this adapter cannot resolve: that value states the
|
|
26
|
+
* absence of a restriction on access and use rather than granting copyright, so what it permits
|
|
27
27
|
* beyond access and use rests on Czech law.
|
|
28
28
|
*/
|
|
29
29
|
import { type CorpusAdapter } from "#types";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../lib/cz/adapters/cuzk/adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAsBH,OAAO,EAAuD,KAAK,aAAa,EAAiB,MAAM,QAAQ,CAAA;AAE/G;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,YAAY,CAAA;AAE3C;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,SAAS,MAAM,EAAW,CAAA;AAE1D;;;;;GAKG;AACH,eAAO,MAAM,eAAe,0CAA0C,CAAA;
|
|
1
|
+
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../lib/cz/adapters/cuzk/adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAsBH,OAAO,EAAuD,KAAK,aAAa,EAAiB,MAAM,QAAQ,CAAA;AAE/G;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,YAAY,CAAA;AAE3C;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,SAAS,MAAM,EAAW,CAAA;AAE1D;;;;;GAKG;AACH,eAAO,MAAM,eAAe,0CAA0C,CAAA;AAmFtE,wBAAgB,mBAAmB,IAAI,aAAa,CAwCnD;AA4HD;;GAEG;AACH,eAAO,MAAM,aAAa,eAAwB,CAAA"}
|
|
@@ -6,24 +6,24 @@
|
|
|
6
6
|
* `cz-cuzk`: the INSPIRE Addresses theme ČÚZK publishes, read from its per-municipality GML.
|
|
7
7
|
*
|
|
8
8
|
* ČÚZK, the Czech Office for Surveying, Mapping and Cadastre, publishes one zipped GML per
|
|
9
|
-
* municipality through the ATOM service at `https://atom.cuzk.gov.cz/AD/AD.xml
|
|
10
|
-
* dataset feeds. Each feed offers the same data in EPSG:5514 and EPSG:4258. The adapter reads
|
|
11
|
-
* single archive or a directory of them, so a caller harvests municipality by municipality rather
|
|
9
|
+
* municipality through the ATOM service at `https://atom.cuzk.gov.cz/AD/AD.xml`. That service lists
|
|
10
|
+
* 6,258 dataset feeds. Each feed offers the same data in EPSG:5514 and EPSG:4258. The adapter reads
|
|
11
|
+
* a single archive or a directory of them, so a caller harvests municipality by municipality rather
|
|
12
12
|
* than waiting on a national file.
|
|
13
13
|
*
|
|
14
|
-
* Every address and every feature it references sit in the same archive,
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
14
|
+
* Every address and every feature it references sit in the same archive, so this publisher is cheap
|
|
15
|
+
* to read. The `ad:component` hrefs look external, because ČÚZK writes an absolute WFS stored-query
|
|
16
|
+
* URL on `services.cuzk.cz`. The `Id=` parameter of each one matches a `gml:id` in the file at hand.
|
|
17
|
+
* Measured over `584282.xml`: 5,460 component references across 1,365 addresses, 0 of them reaching
|
|
18
|
+
* outside the archive. Only `ad:parcel` and `ad:building` point at genuinely separate themes, and
|
|
19
|
+
* the adapter reads neither.
|
|
20
20
|
*
|
|
21
21
|
* ČÚZK states one condition of use and states it uniformly. Every one of the 6,259 `rights` elements
|
|
22
|
-
* in the ATOM service document reads `žádné podmínky neplatí`,
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
22
|
+
* in the ATOM service document reads `žádné podmínky neplatí`, the INSPIRE controlled value
|
|
23
|
+
* `no conditions apply to access and use`. The address-source register elects that and records no
|
|
24
|
+
* license instrument, so no SPDX identifier exists to record and the rows store the controlled value
|
|
25
|
+
* itself. The register also holds a caution this adapter cannot resolve: that value states the
|
|
26
|
+
* absence of a restriction on access and use rather than granting copyright, so what it permits
|
|
27
27
|
* beyond access and use rests on Czech law.
|
|
28
28
|
*/
|
|
29
29
|
import { formatAddressRow } from "@mailwoman/codex/address/format";
|
|
@@ -54,9 +54,10 @@ export const CZ_CUZK_COUNTRIES = ["CZ"];
|
|
|
54
54
|
*/
|
|
55
55
|
export const CZ_CUZK_LICENSE = "no conditions apply to access and use";
|
|
56
56
|
/**
|
|
57
|
-
* The feature types an address references
|
|
57
|
+
* The feature types an address references.
|
|
58
|
+
* The adapter indexes them as they arrive.
|
|
58
59
|
*
|
|
59
|
-
* `ad:Address`
|
|
60
|
+
* `ad:Address` holds its number inline and is read by the driver rather than listed here.
|
|
60
61
|
* These four hold the street, the postcode and the two place names, and they are read in the same pass
|
|
61
62
|
* because an archive writes them interleaved with the addresses rather than ahead of them.
|
|
62
63
|
*/
|
|
@@ -82,7 +83,7 @@ const GML_MEMBER = /\.xml$/iu;
|
|
|
82
83
|
* The series prefix a street name makes unnecessary.
|
|
83
84
|
*
|
|
84
85
|
* Czechia numbers a building in one of two series.
|
|
85
|
-
* A `číslo popisné` is the descriptive number an ordinary building
|
|
86
|
+
* A `číslo popisné` is the descriptive number an ordinary building holds, and a
|
|
86
87
|
* `číslo evidenční` numbers a recreational or temporary building in a separate series,
|
|
87
88
|
* so the same digits can name two buildings in one municipality.
|
|
88
89
|
*/
|
|
@@ -102,19 +103,21 @@ const DESCRIPTIVE_NUMBER_PREFIX = "č.p.";
|
|
|
102
103
|
* | `č.ev.` | `Komenského č.ev. 502` | `č.ev. 38, 66463 Unkovice` |
|
|
103
104
|
*
|
|
104
105
|
* So the descriptive prefix is dropped only when a street name already places the number.
|
|
105
|
-
* A number
|
|
106
|
-
* and the digits
|
|
106
|
+
* A number with no street keeps its prefix, because the two series overlap
|
|
107
|
+
* and the digits by themselves would not say which building is meant.
|
|
107
108
|
*
|
|
108
109
|
* An earlier rule that dropped `č.p.` everywhere disagreed with the publisher on 254 of those 1,669 rows.
|
|
109
110
|
*
|
|
110
|
-
* A prefix other than `č.p.` is kept in every case, including one these two municipalities
|
|
111
|
-
* not
|
|
112
|
-
* unrecognized prefix
|
|
111
|
+
* A prefix other than `č.p.` is kept in every case, including one these two municipalities
|
|
112
|
+
* did not show, because the observed values come from 2 of 6,258 municipalities.
|
|
113
|
+
* An unrecognized prefix stays.
|
|
114
|
+
*
|
|
115
|
+
* That preserves a distinction the publisher drew rather than discarding it.
|
|
113
116
|
*/
|
|
114
117
|
function czechHouseNumber(byType, options) {
|
|
115
118
|
const number = designator(byType, "buildingIdentifier");
|
|
116
119
|
if (!number)
|
|
117
|
-
return
|
|
120
|
+
return null;
|
|
118
121
|
const prefix = designator(byType, "buildingIdentifierPrefix");
|
|
119
122
|
if (!prefix)
|
|
120
123
|
return number;
|
|
@@ -160,20 +163,20 @@ export function createCzCuzkAdapter() {
|
|
|
160
163
|
};
|
|
161
164
|
}
|
|
162
165
|
/**
|
|
163
|
-
* One address's row, `
|
|
164
|
-
* when a reference it
|
|
166
|
+
* One address's row, `null` when it holds too little to render, or `"deferred"`
|
|
167
|
+
* when a reference it cites is not indexed yet.
|
|
165
168
|
*
|
|
166
|
-
*
|
|
167
|
-
*
|
|
169
|
+
* The caller defers rather than drops because an unresolved reference and an absent one
|
|
170
|
+
* are different conditions, and only the archive's own ordering tells them apart.
|
|
168
171
|
* With `final` set the whole member has been read, so an unresolved reference is an
|
|
169
172
|
* absence the publisher is responsible for and the row is rendered without it.
|
|
170
173
|
*/
|
|
171
174
|
function composeRow(address, referenced, options = {}) {
|
|
172
175
|
const byType = designatorsByType(address);
|
|
173
|
-
let street;
|
|
174
|
-
let postcode;
|
|
175
|
-
let locality;
|
|
176
|
-
let settlement;
|
|
176
|
+
let street = null;
|
|
177
|
+
let postcode = null;
|
|
178
|
+
let locality = null;
|
|
179
|
+
let settlement = null;
|
|
177
180
|
let unresolved = false;
|
|
178
181
|
for (const href of componentHrefs(address)) {
|
|
179
182
|
const key = componentJoinKey(href);
|
|
@@ -182,7 +185,7 @@ function composeRow(address, referenced, options = {}) {
|
|
|
182
185
|
const feature = referenced.get(key);
|
|
183
186
|
if (!feature) {
|
|
184
187
|
// Only the four themes this adapter reads are expected in the archive.
|
|
185
|
-
// A parcel or building reference
|
|
188
|
+
// A parcel or building reference holds no `Id` the loop above accepted.
|
|
186
189
|
if (/^(?:TF|PD|AU|AA)\./u.test(key)) {
|
|
187
190
|
unresolved = true;
|
|
188
191
|
}
|
|
@@ -207,9 +210,9 @@ function composeRow(address, referenced, options = {}) {
|
|
|
207
210
|
const house = czechHouseNumber(byType, { street });
|
|
208
211
|
const place = locality ?? settlement;
|
|
209
212
|
if (!place)
|
|
210
|
-
return
|
|
213
|
+
return null;
|
|
211
214
|
if (!postcode && !street)
|
|
212
|
-
return
|
|
215
|
+
return null;
|
|
213
216
|
const components = {};
|
|
214
217
|
if (house) {
|
|
215
218
|
components.house_number = house;
|
|
@@ -227,7 +230,7 @@ function composeRow(address, referenced, options = {}) {
|
|
|
227
230
|
}
|
|
228
231
|
const rendered = formatAddressRow(components, "CZ", { singleLine: true });
|
|
229
232
|
if (!rendered)
|
|
230
|
-
return
|
|
233
|
+
return null;
|
|
231
234
|
const { raw, components: aligned } = rendered;
|
|
232
235
|
const seed = address.attributes["gml:id"]?.trim();
|
|
233
236
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.js","sourceRoot":"","sources":["../../../../lib/cz/adapters/cuzk/adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAA;AAElE,OAAO,EAAE,WAAW,EAAwB,MAAM,SAAS,CAAA;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAEhD,OAAO,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAA;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,EACN,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,UAAU,EACV,iBAAiB,EACjB,SAAS,EACT,oBAAoB,EACpB,gBAAgB,GAChB,MAAM,kBAAkB,CA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AAC,CAAC,cAAc,CAAC,kBAAkB,EAAE,OAAO,CAAC;QAC/F,cAAc,EAAE,EAAE;QAClB,OAAO,EAAE,eAAe;KACxB,CAAA;AACF,CAAC;AAED;;;;;;;GAOG;AACH,KAAK,UAAU,YAAY,CAAC,SAA0B;IACrD,MAAM,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;IAExC,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC;QAAE,OAAO,CAAC,IAAI,CAAC,CAAA;IAEjE,MAAM,KAAK,GAAG,MAAM,UAAU,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,GAAG,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAA;IAElG,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;QACnB,MAAM,IAAI,KAAK,CAAC,GAAG,kBAAkB,aAAa,IAAI,CAAC,QAAQ,EAAE,wBAAwB,CAAC,CAAA;IAC3F,CAAC;IAED,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAA;AACvC,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,mBAAmB,EAAE,CAAA"}
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
* Four properties of this service decide the harvest's shape, and each was measured rather than
|
|
25
25
|
* assumed:
|
|
26
26
|
*
|
|
27
|
-
* 1. **The service document
|
|
27
|
+
* 1. **The service document states each municipality's file modification time.** An entry's
|
|
28
28
|
* `<updated>` equals the archive's `Last-Modified` to the second, checked on six municipalities
|
|
29
29
|
* on 2026-10-02 — `584061` reads `2026-06-04T02:19:33+02:00` against
|
|
30
30
|
* `Thu, 04 Jun 2026 00:19:33 GMT`, and `531529`, `551481`, `545031`, `587044` and `584282`
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
* 2. **The download URL is composed from a base the feed itself declares.** The service document's
|
|
35
35
|
* own `rel="next"` links are `https://services.cuzk.gov.cz/gml/inspire/ad/epsg-4258` and
|
|
36
36
|
* `…/epsg-5514`, and a dataset feed's `alternate` link for the same municipality is that base
|
|
37
|
-
* plus `/<code>.zip`.
|
|
38
|
-
* halves
|
|
37
|
+
* plus `/<code>.zip`. The harvest composes from the declared base instead of reading 6,258
|
|
38
|
+
* dataset feeds. That halves its requests. {@linkcode HarvestCzCuzkOptions.resolveThroughDatasetFeed}
|
|
39
39
|
* reads the publisher's own href instead, for a run that will not compose a URL.
|
|
40
40
|
* 3. **The `type` attribute describes the data rather than the file.** A dataset feed's link
|
|
41
41
|
* advertises `application/gml+xml` while the host serves `application/zip`, so the GML is inside
|
|
@@ -43,15 +43,14 @@
|
|
|
43
43
|
* arrives: the adapter opens it with `adm-zip`, because at least one archive's central directory
|
|
44
44
|
* records its member's size as the ZIP64 sentinel `0xFFFFFFFF`.
|
|
45
45
|
* 4. **A dataset feed's `length` is accurate here, and is still not used.** `584061.zip` claims
|
|
46
|
-
* 24,846 bytes and the host's `content-length`
|
|
46
|
+
* 24,846 bytes and the host's `content-length` reports 24,846. Denmark's feed understates its file
|
|
47
47
|
* by 23 times, so every byte count this module records is counted off the delivered body.
|
|
48
48
|
*
|
|
49
49
|
* The archives are small — a systematic sample of 50 of the 6,258 municipalities on 2026-10-02 ran
|
|
50
50
|
* from 5,236 to 1,642,586 bytes with a median of 16,591 — so the harvest is bound by round trips
|
|
51
51
|
* rather than by bandwidth, and it is dispatched serially through one `APIClient`. ČÚZK publishes
|
|
52
52
|
* no rate limit. {@linkcode CZ_CUZK_REQUEST_INTERVAL_MS} holds the harvest to four requests per
|
|
53
|
-
* second against one government host
|
|
54
|
-
* requests measured, and a caller that has asked ČÚZK for more raises it.
|
|
53
|
+
* second against one government host. A caller that has asked ČÚZK for more raises it.
|
|
55
54
|
*/
|
|
56
55
|
import { APIClient } from "@mailwoman/core/api";
|
|
57
56
|
import { type PathBuilderLike } from "path-ts";
|
|
@@ -62,7 +61,7 @@ import type { BaseFetchOptions, FetchSummary, SourceCollectionManifest, SourceMa
|
|
|
62
61
|
*/
|
|
63
62
|
export declare const CZ_CUZK_SERVICE_FEED_URL = "https://atom.cuzk.gov.cz/AD/AD.xml";
|
|
64
63
|
/**
|
|
65
|
-
* The attribution the model card must
|
|
64
|
+
* The attribution the model card must state for this source.
|
|
66
65
|
*/
|
|
67
66
|
export declare const CZ_CUZK_ATTRIBUTION = "\u010Cesk\u00FD \u00FA\u0159ad zem\u011Bm\u011B\u0159ick\u00FD a katastr\u00E1ln\u00ED (\u010C\u00DAZK), INSPIRE t\u00E9ma Adresy";
|
|
68
67
|
/**
|
|
@@ -93,7 +92,9 @@ export declare const CZ_CUZK_REQUEST_INTERVAL_MS = 250;
|
|
|
93
92
|
*/
|
|
94
93
|
export interface CzMunicipalityDataset {
|
|
95
94
|
/**
|
|
96
|
-
* The municipality code
|
|
95
|
+
* The municipality code.
|
|
96
|
+
*
|
|
97
|
+
* It is both the `obec` code and the archive's file name stem.
|
|
97
98
|
*/
|
|
98
99
|
code: string;
|
|
99
100
|
/**
|
|
@@ -101,11 +102,13 @@ export interface CzMunicipalityDataset {
|
|
|
101
102
|
*/
|
|
102
103
|
title: string;
|
|
103
104
|
/**
|
|
104
|
-
* The `<updated>` the service document states
|
|
105
|
+
* The `<updated>` the service document states.
|
|
106
|
+
* This value is the archive's modification time.
|
|
105
107
|
*/
|
|
106
108
|
updated: string;
|
|
107
109
|
/**
|
|
108
|
-
* The dataset feed for this municipality
|
|
110
|
+
* The dataset feed for this municipality.
|
|
111
|
+
* It lists the same data in both projections.
|
|
109
112
|
*/
|
|
110
113
|
datasetFeedURL: string;
|
|
111
114
|
/**
|
|
@@ -113,7 +116,8 @@ export interface CzMunicipalityDataset {
|
|
|
113
116
|
*/
|
|
114
117
|
downloadURL: string;
|
|
115
118
|
/**
|
|
116
|
-
* The file name the archive is written under
|
|
119
|
+
* The file name the archive is written under.
|
|
120
|
+
* The adapter globs for this name.
|
|
117
121
|
*/
|
|
118
122
|
filename: string;
|
|
119
123
|
}
|
|
@@ -124,8 +128,8 @@ export interface CzMunicipalityDataset {
|
|
|
124
128
|
* and stored under, so a disagreement between the publisher's two statements of it
|
|
125
129
|
* would silently store one municipality's addresses under another's name.
|
|
126
130
|
*
|
|
127
|
-
* @throws When either statement is missing or the two disagree
|
|
128
|
-
* in the publisher's layout rather than as a municipality without a code.
|
|
131
|
+
* @throws When either statement is missing or the two disagree.
|
|
132
|
+
* That reads as a change in the publisher's layout rather than as a municipality without a code.
|
|
129
133
|
*/
|
|
130
134
|
export declare function municipalityCodeOf(entry: {
|
|
131
135
|
title: string;
|
|
@@ -144,8 +148,9 @@ export declare function projectionBaseURL(feed: AtomFeed, projection: CzCuzkProj
|
|
|
144
148
|
/**
|
|
145
149
|
* The municipalities the service document lists, with the archive URL for one projection.
|
|
146
150
|
*
|
|
147
|
-
* @throws When the feed lists no entry, when two entries claim one municipality code
|
|
148
|
-
*
|
|
151
|
+
* @throws When the feed lists no entry, when two entries claim one municipality code,
|
|
152
|
+
* or when an entry states no dataset feed link.
|
|
153
|
+
* A repeated code would make one archive overwrite the other.
|
|
149
154
|
*/
|
|
150
155
|
export declare function readCzCuzkServiceFeed(feed: AtomFeed, projection: CzCuzkProjection): readonly CzMunicipalityDataset[];
|
|
151
156
|
/**
|
|
@@ -169,7 +174,7 @@ export interface CzCuzkArchiveEntry extends SourceManifest {
|
|
|
169
174
|
/**
|
|
170
175
|
* The `<updated>` the service document stated when this archive was fetched.
|
|
171
176
|
*
|
|
172
|
-
* A later run that reads the same value for this municipality
|
|
177
|
+
* A later run that reads the same value for this municipality does not fetch the archive.
|
|
173
178
|
* This is the field that makes the harvest resumable without a request per municipality.
|
|
174
179
|
*/
|
|
175
180
|
feed_updated: string;
|
|
@@ -202,16 +207,18 @@ export interface CzCuzkHarvestManifest extends SourceCollectionManifest {
|
|
|
202
207
|
}
|
|
203
208
|
export interface HarvestCzCuzkOptions {
|
|
204
209
|
/**
|
|
205
|
-
* Where the archives and the manifest are written
|
|
210
|
+
* Where the archives and the manifest are written.
|
|
211
|
+
* This is the adapter's `inputPath`.
|
|
206
212
|
*/
|
|
207
213
|
outputDir: PathBuilderLike;
|
|
208
214
|
/**
|
|
209
215
|
* Which projection to harvest.
|
|
210
|
-
*
|
|
216
|
+
*
|
|
217
|
+
* @defaultValue `epsg-4258`
|
|
211
218
|
*/
|
|
212
219
|
projection?: CzCuzkProjection;
|
|
213
220
|
/**
|
|
214
|
-
* Harvest only these municipality codes, for a probe or
|
|
221
|
+
* Harvest only these municipality codes, for a probe or to repair specific municipalities.
|
|
215
222
|
*
|
|
216
223
|
* A code the service document does not list is reported as a failure rather than ignored.
|
|
217
224
|
*/
|
|
@@ -232,8 +239,10 @@ export interface HarvestCzCuzkOptions {
|
|
|
232
239
|
/**
|
|
233
240
|
* Re-read the sha256 of every archive already on disk instead of comparing its byte count.
|
|
234
241
|
*
|
|
235
|
-
* The default compares the recorded byte count against the file's size
|
|
236
|
-
*
|
|
242
|
+
* The default compares the recorded byte count against the file's size.
|
|
243
|
+
* That check takes one `stat`.
|
|
244
|
+
*
|
|
245
|
+
* This option re-hashes and reads every archive in the directory.
|
|
237
246
|
*/
|
|
238
247
|
verifyDigests?: boolean;
|
|
239
248
|
signal?: AbortSignal;
|
|
@@ -252,7 +261,7 @@ export interface FetchCzCuzkOptions extends BaseFetchOptions, Pick<HarvestCzCuzk
|
|
|
252
261
|
/**
|
|
253
262
|
* The minimum spacing between two requests, in milliseconds.
|
|
254
263
|
*
|
|
255
|
-
*
|
|
264
|
+
* @defaultValue {@linkcode CZ_CUZK_REQUEST_INTERVAL_MS}
|
|
256
265
|
*/
|
|
257
266
|
minRequestIntervalMs?: number;
|
|
258
267
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cuzk.d.ts","sourceRoot":"","sources":["../../../../lib/cz/tools/fetch/cuzk.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"cuzk.d.ts","sourceRoot":"","sources":["../../../../lib/cz/tools/fetch/cuzk.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDG;AAKH,OAAO,EAAE,SAAS,EAA+B,MAAM,qBAAqB,CAAA;AAM5E,OAAO,EAAe,KAAK,eAAe,EAAE,MAAM,SAAS,CAAA;AAG3D,OAAO,KAAK,EAAE,QAAQ,EAAY,MAAM,mBAAmB,CAAA;AAE3D,OAAO,KAAK,EAAE,gBAAgB,EAAE,YAAY,EAAE,wBAAwB,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAGrH;;GAEG;AACH,eAAO,MAAM,wBAAwB,uCAAuC,CAAA;AAQ5E;;GAEG;AACH,eAAO,MAAM,mBAAmB,sIAAqE,CAAA;AAErG;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB;aAC/B,WAAW,EAAE,QAAQ;aACrB,WAAW,EAAE,QAAQ;CACZ,CAAA;AAEV;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,OAAO,mBAAmB,CAAA;AAE/D;;;;;;GAMG;AACH,eAAO,MAAM,2BAA2B,MAAM,CAAA;AAqB9C;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACrC;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,KAAK,EAAE,MAAM,CAAA;IACb;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAA;IACf;;;OAGG;IACH,cAAc,EAAE,MAAM,CAAA;IACtB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;IACnB;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAA;CAChB;AAaD;;;;;;;;;GASG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;I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