@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
package/out/adapters.d.ts
CHANGED
|
@@ -16,16 +16,16 @@
|
|
|
16
16
|
* cadastre et de la topographie under `lu`, the State Address Register under `lv`, Kartverket's Matrikkelen
|
|
17
17
|
* under `no`, EMUiA under `pl`, Romania's school network under `ro`, and the FCC and USGov readers under `us`. A national publisher
|
|
18
18
|
* stays there even when its own files cover that state's dependencies, because the publisher is
|
|
19
|
-
* what the adapter reads: BAN
|
|
20
|
-
* Norway and Svalbard, and Ryhti's one national file
|
|
19
|
+
* what the adapter reads: BAN covers France and ten overseas jurisdictions, Matrikkelen covers
|
|
20
|
+
* Norway and Svalbard, and Ryhti's one national file covers Åland beside the Finnish mainland.
|
|
21
21
|
*
|
|
22
22
|
* Flanders is the counter-case worth stating. Its adapter sits under `be` and covers the Flemish
|
|
23
|
-
* Region
|
|
23
|
+
* Region only, because Brussels and Wallonia publish the INSPIRE theme through their own
|
|
24
24
|
* services, so Belgium needs three adapters rather than one.
|
|
25
25
|
*
|
|
26
26
|
* Spain needs four, for the same reason. `es-catastro` reads the Dirección General del Catastro's
|
|
27
|
-
* 52 provinces
|
|
28
|
-
* state their own terms
|
|
27
|
+
* 52 provinces. `es-bizkaia`, `es-gipuzkoa` and `es-navarra` read the foral cadastres. Those
|
|
28
|
+
* cadastres state their own terms. The national feed links them rather than serving them.
|
|
29
29
|
*
|
|
30
30
|
* An adapter reading a publisher that is not any one country's lives here, at `lib/adapters/<id>/`.
|
|
31
31
|
* That is the aggregators, `./openaddresses/`, `./osm/`, `./overture/`, `./geonames/` and `./wof/`,
|
package/out/adapters.js
CHANGED
|
@@ -16,16 +16,16 @@
|
|
|
16
16
|
* cadastre et de la topographie under `lu`, the State Address Register under `lv`, Kartverket's Matrikkelen
|
|
17
17
|
* under `no`, EMUiA under `pl`, Romania's school network under `ro`, and the FCC and USGov readers under `us`. A national publisher
|
|
18
18
|
* stays there even when its own files cover that state's dependencies, because the publisher is
|
|
19
|
-
* what the adapter reads: BAN
|
|
20
|
-
* Norway and Svalbard, and Ryhti's one national file
|
|
19
|
+
* what the adapter reads: BAN covers France and ten overseas jurisdictions, Matrikkelen covers
|
|
20
|
+
* Norway and Svalbard, and Ryhti's one national file covers Åland beside the Finnish mainland.
|
|
21
21
|
*
|
|
22
22
|
* Flanders is the counter-case worth stating. Its adapter sits under `be` and covers the Flemish
|
|
23
|
-
* Region
|
|
23
|
+
* Region only, because Brussels and Wallonia publish the INSPIRE theme through their own
|
|
24
24
|
* services, so Belgium needs three adapters rather than one.
|
|
25
25
|
*
|
|
26
26
|
* Spain needs four, for the same reason. `es-catastro` reads the Dirección General del Catastro's
|
|
27
|
-
* 52 provinces
|
|
28
|
-
* state their own terms
|
|
27
|
+
* 52 provinces. `es-bizkaia`, `es-gipuzkoa` and `es-navarra` read the foral cadastres. Those
|
|
28
|
+
* cadastres state their own terms. The national feed links them rather than serving them.
|
|
29
29
|
*
|
|
30
30
|
* An adapter reading a publisher that is not any one country's lives here, at `lib/adapters/<id>/`.
|
|
31
31
|
* That is the aggregators, `./openaddresses/`, `./osm/`, `./overture/`, `./geonames/` and `./wof/`,
|
|
@@ -73,7 +73,7 @@ export function createGNAFAdapter() {
|
|
|
73
73
|
if (opts.limit !== undefined && emitted >= opts.limit)
|
|
74
74
|
break;
|
|
75
75
|
const t = tryParsingJSON(line);
|
|
76
|
-
if (t
|
|
76
|
+
if (!t)
|
|
77
77
|
continue;
|
|
78
78
|
if (!t.house_number || !t.street || !t.locality || !t.postcode)
|
|
79
79
|
continue;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.js","sourceRoot":"","sources":["../../../../lib/au/adapters/gnaf/adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH;;4GAE4G;AAE5G,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAA;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAE7C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAC3C,OAAO,EAAE,WAAW,EAA8D,aAAa,EAAE,MAAM,QAAQ,CAAA;AAE/G;;;;GAIG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAA;AACrC;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,WAAW,CAAA;AAU/C;;;;;;GAMG;AACH,SAAS,YAAY,CAAC,CAAY;IACjC,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC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I,CAAC,CAAC,MAAM,EAAE,CAAC;oBAC7B,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,MAAM,CAAA;gBAC7B,CAAC;gBAED,+EAA+E;gBAC/E,0EAA0E;gBAC1E,MAAM,OAAO,GAAG,mBAAmB,CAAC,UAAU,EAAE,GAAG,CAAC,CAAA;gBAEpD,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM;oBAAE,SAAQ;gBAE1C,MAAM;oBACL,GAAG;oBACH,UAAU,EAAE,OAAO;oBACnB,OAAO,EAAE,IAAI;oBACb,MAAM,EAAE,OAAO;oBACf,MAAM,EAAE,eAAe;oBACvB,SAAS,EAAE,GAAG,cAAc,CAAC,eAAe,EAAE,OAAO,CAAC,KAAK,KAAK,EAAE;oBAClE,cAAc,EAAE,EAAE;oBAClB,OAAO,EAAE,oBAAoB;iBAC7B,CAAA;gBAED,OAAO,EAAE,CAAA;YACV,CAAC;QACF,CAAC;KACD,CAAA;AACF,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,iBAAiB,EAAE,CAAA"}
|
|
@@ -141,15 +141,15 @@ export declare const BRUSSELS_COUNTRIES: readonly string[];
|
|
|
141
141
|
* The license label recorded on every row.
|
|
142
142
|
*
|
|
143
143
|
* The register's source `be-property-building-3` elects `CC-BY-4.0` for Paradigm, read from
|
|
144
|
-
* the `gmd:useConstraints` of ISO 19139 record `260abd6f-c5b4-4a79-aa80-d6c265002d65
|
|
145
|
-
*
|
|
146
|
-
*
|
|
147
|
-
* the BeSt Brussels register, which is CC0-1.0.
|
|
144
|
+
* the `gmd:useConstraints` of ISO 19139 record `260abd6f-c5b4-4a79-aa80-d6c265002d65`.
|
|
145
|
+
* That record lists `URBIS_ADM_Adresses.zip` among its distributions and governs this archive
|
|
146
|
+
* rather than Paradigm's other address product, the BeSt Brussels register, licensed CC0-1.0.
|
|
148
147
|
*
|
|
149
148
|
* The value is the SPDX identifier rather than the license's title, because
|
|
150
149
|
* `licenseVerdict` resolves an identifier and reads a title as unrecognized.
|
|
151
|
-
*
|
|
152
|
-
*
|
|
150
|
+
* The constant must not hold a placeholder such as `unreviewed-be-brussels-urbis`.
|
|
151
|
+
*
|
|
152
|
+
* That value resolves to no expression, so these rows would reach a build as unknown obligations.
|
|
153
153
|
*/
|
|
154
154
|
export declare const BRUSSELS_DEFAULT_LICENSE = "CC-BY-4.0";
|
|
155
155
|
/**
|
|
@@ -161,12 +161,12 @@ export declare const BRUSSELS_DEFAULT_LICENSE = "CC-BY-4.0";
|
|
|
161
161
|
* a prefix the publisher writes rather than parsing a name: a changed shape must reach a
|
|
162
162
|
* reader as the publisher's own value instead of as a guess at what the name inside might be.
|
|
163
163
|
*
|
|
164
|
-
* A value of that shape whose parentheses hold an empty string answers `
|
|
164
|
+
* A value of that shape whose parentheses hold an empty string answers `null`,
|
|
165
165
|
* so the caller refuses the row rather than writing a NIS code into a locality.
|
|
166
166
|
*
|
|
167
|
-
* @returns The name, or `
|
|
167
|
+
* @returns The name, or `null` for an absent value and for a code with an empty name.
|
|
168
168
|
*/
|
|
169
|
-
export declare function placeNameWithoutNISCode(value: string |
|
|
169
|
+
export declare function placeNameWithoutNISCode(value: string | null): string | null;
|
|
170
170
|
/**
|
|
171
171
|
* The components an address references, keyed by the `gml:id` its `#` fragment names.
|
|
172
172
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../lib/be/adapters/brussels/adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiHG;AAsBH,OAAO,EAAe,KAAK,cAAc,EAAqB,KAAK,aAAa,EAAiB,MAAM,QAAQ,CAAA;AAE/G;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,aAA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AM,CAAC,CAAA;CAC3C;AAED;;;;;;;;GAQG;AACH,wBAAsB,sBAAsB,CAC3C,SAAS,EAAE,cAAc,CAAC,WAAW,CAAC,EACtC,MAAM,CAAC,EAAE,WAAW,GAClB,OAAO,CAAC,sBAAsB,CAAC,CAwEjC;AAkCD,wBAAgB,qBAAqB,IAAI,aAAa,CAqJrD;AAED;;GAEG;AACH,eAAO,MAAM,eAAe,eAA0B,CAAA"}
|
|
@@ -150,15 +150,15 @@ export const BRUSSELS_COUNTRIES = ["BE"];
|
|
|
150
150
|
* The license label recorded on every row.
|
|
151
151
|
*
|
|
152
152
|
* The register's source `be-property-building-3` elects `CC-BY-4.0` for Paradigm, read from
|
|
153
|
-
* the `gmd:useConstraints` of ISO 19139 record `260abd6f-c5b4-4a79-aa80-d6c265002d65
|
|
154
|
-
*
|
|
155
|
-
*
|
|
156
|
-
* the BeSt Brussels register, which is CC0-1.0.
|
|
153
|
+
* the `gmd:useConstraints` of ISO 19139 record `260abd6f-c5b4-4a79-aa80-d6c265002d65`.
|
|
154
|
+
* That record lists `URBIS_ADM_Adresses.zip` among its distributions and governs this archive
|
|
155
|
+
* rather than Paradigm's other address product, the BeSt Brussels register, licensed CC0-1.0.
|
|
157
156
|
*
|
|
158
157
|
* The value is the SPDX identifier rather than the license's title, because
|
|
159
158
|
* `licenseVerdict` resolves an identifier and reads a title as unrecognized.
|
|
160
|
-
*
|
|
161
|
-
*
|
|
159
|
+
* The constant must not hold a placeholder such as `unreviewed-be-brussels-urbis`.
|
|
160
|
+
*
|
|
161
|
+
* That value resolves to no expression, so these rows would reach a build as unknown obligations.
|
|
162
162
|
*/
|
|
163
163
|
export const BRUSSELS_DEFAULT_LICENSE = "CC-BY-4.0";
|
|
164
164
|
/**
|
|
@@ -223,19 +223,19 @@ const NIS_CODED_NAME = /^(\d+)\s*\((.*)\)$/u;
|
|
|
223
223
|
* a prefix the publisher writes rather than parsing a name: a changed shape must reach a
|
|
224
224
|
* reader as the publisher's own value instead of as a guess at what the name inside might be.
|
|
225
225
|
*
|
|
226
|
-
* A value of that shape whose parentheses hold an empty string answers `
|
|
226
|
+
* A value of that shape whose parentheses hold an empty string answers `null`,
|
|
227
227
|
* so the caller refuses the row rather than writing a NIS code into a locality.
|
|
228
228
|
*
|
|
229
|
-
* @returns The name, or `
|
|
229
|
+
* @returns The name, or `null` for an absent value and for a code with an empty name.
|
|
230
230
|
*/
|
|
231
231
|
export function placeNameWithoutNISCode(value) {
|
|
232
232
|
const trimmed = value?.trim();
|
|
233
233
|
if (!trimmed)
|
|
234
|
-
return
|
|
234
|
+
return null;
|
|
235
235
|
const coded = NIS_CODED_NAME.exec(trimmed);
|
|
236
236
|
if (!coded)
|
|
237
237
|
return trimmed;
|
|
238
|
-
return coded[2].trim() ||
|
|
238
|
+
return coded[2].trim() || null;
|
|
239
239
|
}
|
|
240
240
|
/**
|
|
241
241
|
* Indexes the three component types in one pass over the member's head.
|
|
@@ -268,19 +268,19 @@ export async function readBrusselsComponents(inputPath, signal) {
|
|
|
268
268
|
seen.add(id);
|
|
269
269
|
if (feature.name === "ad:ThoroughfareName") {
|
|
270
270
|
const street = thoroughfareName(feature);
|
|
271
|
-
if (street
|
|
271
|
+
if (street) {
|
|
272
272
|
streets.set(id, street);
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
275
|
else if (feature.name === "ad:PostalDescriptor") {
|
|
276
276
|
const postcode = postalDescriptorCode(feature);
|
|
277
|
-
if (postcode
|
|
277
|
+
if (postcode) {
|
|
278
278
|
postcodes.set(id, postcode);
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
else if (adminUnitLevel(feature) === MUNICIPALITY_LEVEL) {
|
|
282
282
|
const municipality = placeNameWithoutNISCode(placeName(feature));
|
|
283
|
-
if (municipality
|
|
283
|
+
if (municipality) {
|
|
284
284
|
municipalities.set(id, municipality);
|
|
285
285
|
}
|
|
286
286
|
}
|
|
@@ -338,9 +338,9 @@ export function createBrusselsAdapter() {
|
|
|
338
338
|
if (opts.limit !== undefined && emitted >= opts.limit)
|
|
339
339
|
break;
|
|
340
340
|
// `designatorsByType` leaves out a designator the publisher marked void, so a void number
|
|
341
|
-
// and an absent one both read as
|
|
341
|
+
// and an absent one both read as null and `voidDesignatorTypes` separates them below.
|
|
342
342
|
const house = designator(designatorsByType(address), HOUSE_NUMBER_DESIGNATOR);
|
|
343
|
-
if (house
|
|
343
|
+
if (!house) {
|
|
344
344
|
// A void number is a value this run could not read and an absent one is
|
|
345
345
|
// a number the publisher states the address has none of.
|
|
346
346
|
// Neither is emitted, and the two are counted apart so a run reports which it met.
|
|
@@ -356,12 +356,12 @@ export function createBrusselsAdapter() {
|
|
|
356
356
|
// the difference between seven slots and seven readable references is
|
|
357
357
|
// exactly the nine addresses whose postal zone is empty.
|
|
358
358
|
const slots = componentHrefs(address);
|
|
359
|
-
let street;
|
|
360
|
-
let postcode;
|
|
361
|
-
let locality;
|
|
359
|
+
let street = null;
|
|
360
|
+
let postcode = null;
|
|
361
|
+
let locality = null;
|
|
362
362
|
for (const href of slots) {
|
|
363
363
|
const key = componentJoinKey(href);
|
|
364
|
-
if (key
|
|
364
|
+
if (!key)
|
|
365
365
|
continue;
|
|
366
366
|
street = index.streets.get(key) ?? street;
|
|
367
367
|
postcode = index.postcodes.get(key) ?? postcode;
|
|
@@ -369,7 +369,7 @@ export function createBrusselsAdapter() {
|
|
|
369
369
|
// so they reach here with no municipality and are not defects.
|
|
370
370
|
locality = index.municipalities.get(key) ?? locality;
|
|
371
371
|
}
|
|
372
|
-
if (postcode
|
|
372
|
+
if (!postcode && slots.length < COMPONENTS_PER_ADDRESS) {
|
|
373
373
|
// The publisher wrote the postal-zone reference empty.
|
|
374
374
|
// The row is refused and reported rather than yielded with the postcode missing,
|
|
375
375
|
// because an unstated value is not an address without a postcode.
|
|
@@ -378,7 +378,7 @@ export function createBrusselsAdapter() {
|
|
|
378
378
|
}
|
|
379
379
|
// A component the index cannot answer is a street, postcode or locality this run could not read.
|
|
380
380
|
// A row emitted without it would record an absence the publisher never stated.
|
|
381
|
-
if (street
|
|
381
|
+
if (!street || !postcode || !locality) {
|
|
382
382
|
refused.unjoined++;
|
|
383
383
|
continue;
|
|
384
384
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.js","sourceRoot":"","sources":["../../../../lib/be/adapters/brussels/adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiHG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAA;AAClE,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAA;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAEpD,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,EAChB,mBAAmB,GACnB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAC3C,OAAO,EAAE,WAAW,EAA8D,aAAa,EAAE,MAAM,QAAQ,CAAA;AAE/G;;;;;GAKG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG,UAAU,CAAA;AAE7C;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,cAAc,CAAC,wBAAwB,CAAA;AAE/E;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAsB,CAA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Ae,OAAO,eAAe,OAAO,WAAW;wBACtD,IAAI,OAAO,CAAC,UAAU,4CAA4C;wBAClE,GAAG,OAAO,CAAC,QAAQ,+CAA+C;wBAClE,GAAG,OAAO,CAAC,eAAe,8BAA8B;wBACxD,GAAG,OAAO,CAAC,iBAAiB,0BAA0B;wBACtD,GAAG,OAAO,CAAC,UAAU,oBAAoB,CAC1C,CAAA;gBACF,CAAC;YACF,CAAC;QACF,CAAC;KACD,CAAA;AACF,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,qBAAqB,EAAE,CAAA"}
|
|
@@ -10,24 +10,24 @@
|
|
|
10
10
|
* through their own services, so this adapter emits `BE` on every row it yields, and a Belgian build needs
|
|
11
11
|
* two more sources beside it.
|
|
12
12
|
*
|
|
13
|
-
* The schema-level reading is `#inspire/address
|
|
14
|
-
* publishers spell alike. This module holds only
|
|
15
|
-
* references need, the homonym discriminator its street names
|
|
16
|
-
* values
|
|
13
|
+
* The schema-level reading is `#inspire/address`. That module owns every part of an `ad:Address` the
|
|
14
|
+
* publishers spell alike. This module holds only Flanders' own additions: the `resourceId` rewrite
|
|
15
|
+
* its references need, the homonym discriminator appended to its street names, and the lost
|
|
16
|
+
* characters in its values.
|
|
17
17
|
*
|
|
18
18
|
* The adapter records `Modellicentie voor gratis hergebruik Vlaanderen` on every row, the terms the
|
|
19
19
|
* address-source register elects for `be-property-building-1` in `electedTerms`. Article 3 grants
|
|
20
20
|
* reproduction, adaptation and commercial exploitation for any lawful purpose. Article 4 makes
|
|
21
|
-
* attribution the only condition, in the form the licensor specifies, so the model card must
|
|
21
|
+
* attribution the only condition, in the form the licensor specifies, so the model card must state
|
|
22
22
|
* `Bron: Digitaal Vlaanderen`.
|
|
23
23
|
*
|
|
24
24
|
* The capabilities document's `ows:Fees` and `ows:AccessConstraints` state what calling the service
|
|
25
25
|
* costs and who may call it. They describe the service rather than licensing the data, so the
|
|
26
|
-
* license comes from the register and this adapter reads the capabilities for feature types
|
|
26
|
+
* license comes from the register and this adapter reads the capabilities only for feature types.
|
|
27
27
|
*
|
|
28
28
|
* ## Why the input is a harvest rather than the service
|
|
29
29
|
*
|
|
30
|
-
* An `ad:Address`
|
|
30
|
+
* An `ad:Address` states its house number inline and everything else by reference. Each address
|
|
31
31
|
* holds exactly four `ad:component/@xlink:href` values, measured over 1,000 addresses at six
|
|
32
32
|
* `startIndex` offsets with all four prefixes occurring 1,000 times each. The references are
|
|
33
33
|
* absolute URIs that resolve back into the same service under the `resourceId` rewrite that
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
* | `https://data.vlaanderen.be/id/gemeentenaam/44083` | `gemeentenaam_44083` | `ad:AdminUnitName` |
|
|
41
41
|
* | `http://vocab.belgif.be/auth/refnis1995/1000#id` | `refnis1995_1000` | `ad:AdminUnitName` |
|
|
42
42
|
*
|
|
43
|
-
*
|
|
43
|
+
* A per-address resolution would cost four requests per row against 4,563,062 addresses. The component
|
|
44
44
|
* types are small — 167,218 thoroughfare names, 1,190 postal descriptors, 609 administrative-unit
|
|
45
45
|
* names — so the harvest takes each component type whole and the adapter joins locally.
|
|
46
46
|
*
|
|
@@ -77,17 +77,19 @@ export declare const VLAANDEREN_ADAPTER_ID = "vlaanderen";
|
|
|
77
77
|
/**
|
|
78
78
|
* The terms the address-source register elects for `be-property-building-1`.
|
|
79
79
|
*
|
|
80
|
-
* The
|
|
81
|
-
* `unchecked-access-free-be-agentschap-digitaal-vlaanderen
|
|
82
|
-
* so `electedLicenseLabel` answers this string
|
|
80
|
+
* The register's `electedTerms` for license
|
|
81
|
+
* `unchecked-access-free-be-agentschap-digitaal-vlaanderen` states this value.
|
|
82
|
+
* That license has no `spdx`, so `electedLicenseLabel` answers this string
|
|
83
|
+
* and the share-alike prefix filter matches it.
|
|
83
84
|
*/
|
|
84
85
|
export declare const VLAANDEREN_DEFAULT_LICENSE = "Modellicentie voor gratis hergebruik Vlaanderen";
|
|
85
86
|
/**
|
|
86
87
|
* The one jurisdiction this adapter emits.
|
|
87
88
|
*
|
|
88
89
|
* The service publishes the Flemish Region.
|
|
89
|
-
* ISO 3166-1 assigns that region no code of its own, so
|
|
90
|
-
*
|
|
90
|
+
* ISO 3166-1 assigns that region no code of its own, so the set holds one code.
|
|
91
|
+
*
|
|
92
|
+
* A caller that requests any other gets {@linkcode UnsupportedCountryError} rather than zero rows.
|
|
91
93
|
*/
|
|
92
94
|
export declare const VLAANDEREN_COUNTRIES: readonly string[];
|
|
93
95
|
/**
|
|
@@ -171,24 +173,19 @@ export declare function componentResourceID(href: string): string | null;
|
|
|
171
173
|
/**
|
|
172
174
|
* A Flemish street name read apart from the homonym discriminator that follows it.
|
|
173
175
|
*
|
|
174
|
-
* `gn:text` on an `ad:ThoroughfareName`
|
|
176
|
+
* `gn:text` on an `ad:ThoroughfareName` states more than the street name: the name,
|
|
175
177
|
* an underscore, and a discriminator that is usually empty.
|
|
176
|
-
* Over 20,000 values at twenty offsets, 19,979 end with `_` and the remaining
|
|
177
|
-
* discriminator after it
|
|
178
|
-
*
|
|
179
|
-
*
|
|
180
|
-
*
|
|
181
|
-
*
|
|
182
|
-
*
|
|
183
|
-
*
|
|
184
|
-
*
|
|
185
|
-
* The
|
|
186
|
-
*
|
|
187
|
-
* everything from the `_` onward is bookkeeping rather than name.
|
|
188
|
-
*
|
|
189
|
-
* So the split takes the last `_` and keeps the head.
|
|
190
|
-
* Stripping only a trailing `_` would leave `Rue de Cronwez_01` in a corpus,
|
|
191
|
-
* and keeping the whole value would leave `Acacialaan_`.
|
|
178
|
+
* Over 20,000 values at twenty offsets, 19,979 end with `_` and the remaining
|
|
179
|
+
* 21 have a discriminator after it.
|
|
180
|
+
*
|
|
181
|
+
* Exactly 21 values have an `_` somewhere other than the end.
|
|
182
|
+
* Those same 21 values hold the only discriminators, so the field has one separator at one position.
|
|
183
|
+
*
|
|
184
|
+
* The same streets read through `ad:AddressRepresentation/ad:thoroughfare` have no separator, 0 of 10,000.
|
|
185
|
+
* The publisher's own data therefore marks everything from the `_` onward as bookkeeping.
|
|
186
|
+
*
|
|
187
|
+
* The split takes the last `_` and keeps the head.
|
|
188
|
+
* That drops a trailing separator and any discriminator in one step.
|
|
192
189
|
*/
|
|
193
190
|
export interface SplitStreetName {
|
|
194
191
|
/**
|
|
@@ -203,24 +200,24 @@ export interface SplitStreetName {
|
|
|
203
200
|
/**
|
|
204
201
|
* Splits an `ad:ThoroughfareName` `gn:text` value into its {@link SplitStreetName}.
|
|
205
202
|
*
|
|
206
|
-
* @throws {@linkcode VlaanderenHarvestError} when the value
|
|
207
|
-
*
|
|
208
|
-
* That
|
|
209
|
-
* it would write a bookkeeping suffix into every row sharing the new shape.
|
|
203
|
+
* @throws {@linkcode VlaanderenHarvestError} when the value has no `_`.
|
|
204
|
+
* Every one of the 20,000 measured values had one.
|
|
205
|
+
* That would be a change in the publisher's field.
|
|
206
|
+
* A guess at it would write a bookkeeping suffix into every row sharing the new shape.
|
|
210
207
|
*/
|
|
211
208
|
export declare function splitStreetName(value: string): SplitStreetName;
|
|
212
209
|
/**
|
|
213
|
-
* The house number an address states inline, or `
|
|
210
|
+
* The house number an address states inline, or `null` when it states none this adapter can use.
|
|
214
211
|
*
|
|
215
212
|
* `designatorsByType` skips a designator the publisher marked void, so a void number
|
|
216
|
-
* and an absent one both answer `
|
|
213
|
+
* and an absent one both answer `null` here.
|
|
217
214
|
* Both are refusals rather than addresses with no number, and the caller counts
|
|
218
215
|
* them together for that reason.
|
|
219
216
|
*
|
|
220
217
|
* `ad:designator` was present and populated on 1,000 of 1,000 addresses sampled,
|
|
221
218
|
* so neither condition has been seen on this service.
|
|
222
219
|
*/
|
|
223
|
-
export declare function houseNumberOf(address: MarkupElement): string |
|
|
220
|
+
export declare function houseNumberOf(address: MarkupElement): string | null;
|
|
224
221
|
/**
|
|
225
222
|
* Reads the harvest manifest and checks that it names what the adapter needs.
|
|
226
223
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../lib/be/adapters/vlaanderen/adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkEG;AAKH,OAAO,EAAE,KAAK,aAAa,EAAwB,MAAM,+BAA+B,CAAA;AAExF,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAerC,OAAO,EAAuD,KAAK,aAAa,EAAiB,MAAM,QAAQ,CAAA;AAE/G;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,eAAe,CAAA;AAEjD
|
|
1
|
+
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../lib/be/adapters/vlaanderen/adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkEG;AAKH,OAAO,EAAE,KAAK,aAAa,EAAwB,MAAM,+BAA+B,CAAA;AAExF,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAerC,OAAO,EAAuD,KAAK,aAAa,EAAiB,MAAM,QAAQ,CAAA;AAE/G;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,eAAe,CAAA;AAEjD;;;;;;;GAOG;AACH,eAAO,MAAM,0BAA0B,oDAAoD,CAAA;AAE3F;;;;;;;GAOG;AACH,eAAO,MAAM,oBAAoB,EAAE,SAAS,MAAM,EAAW,CAAA;AAkE7D;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IACjC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAA;IACf;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAA;IACpB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAA;IACnB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAA;IACpB;;;;;;;OAOG;IACH,UAAU,EAAE;QACX,gBAAgB,EAAE,SAAS,MAAM,EAAE,CAAA;QACnC,gBAAgB,EAAE,SAAS,MAAM,EAAE,CAAA;QACnC,aAAa,EAAE,SAAS,MAAM,EAAE,CAAA;KAChC,CAAA;IACD;;OAEG;IACH,YAAY,EAAE,SAAS;QACtB,UAAU,EAAE,MAAM,CAAA;QAClB,IAAI,EAAE,MAAM,CAAA;QACZ;;;;;WAKG;QACH,cAAc,EAAE,MAAM,CAAA;KACtB,EAAE,CAAA;CACH;AAED;;;;;;GAMG;AACH,qBAAa,sBAAuB,SAAQ,KAAK;IAChD,YAAY,OAAO,EAAE,MAAM,EAI1B;CACD;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAc/D;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,WAAW,eAAe;IAC/B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,aAAa,EAAE,MAAM,CAAA;CACrB;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,eAAe,CAY9D;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,aAAa,GAAG,MAAM,GAAG,IAAI,CAEnE;AAgGD;;GAEG;AACH,wBAAsB,qBAAqB,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAsBzF;AA0BD,wBAAgB,uBAAuB,IAAI,aAAa,CA2KvD;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,eAA4B,CAAA"}
|
|
@@ -10,24 +10,24 @@
|
|
|
10
10
|
* through their own services, so this adapter emits `BE` on every row it yields, and a Belgian build needs
|
|
11
11
|
* two more sources beside it.
|
|
12
12
|
*
|
|
13
|
-
* The schema-level reading is `#inspire/address
|
|
14
|
-
* publishers spell alike. This module holds only
|
|
15
|
-
* references need, the homonym discriminator its street names
|
|
16
|
-
* values
|
|
13
|
+
* The schema-level reading is `#inspire/address`. That module owns every part of an `ad:Address` the
|
|
14
|
+
* publishers spell alike. This module holds only Flanders' own additions: the `resourceId` rewrite
|
|
15
|
+
* its references need, the homonym discriminator appended to its street names, and the lost
|
|
16
|
+
* characters in its values.
|
|
17
17
|
*
|
|
18
18
|
* The adapter records `Modellicentie voor gratis hergebruik Vlaanderen` on every row, the terms the
|
|
19
19
|
* address-source register elects for `be-property-building-1` in `electedTerms`. Article 3 grants
|
|
20
20
|
* reproduction, adaptation and commercial exploitation for any lawful purpose. Article 4 makes
|
|
21
|
-
* attribution the only condition, in the form the licensor specifies, so the model card must
|
|
21
|
+
* attribution the only condition, in the form the licensor specifies, so the model card must state
|
|
22
22
|
* `Bron: Digitaal Vlaanderen`.
|
|
23
23
|
*
|
|
24
24
|
* The capabilities document's `ows:Fees` and `ows:AccessConstraints` state what calling the service
|
|
25
25
|
* costs and who may call it. They describe the service rather than licensing the data, so the
|
|
26
|
-
* license comes from the register and this adapter reads the capabilities for feature types
|
|
26
|
+
* license comes from the register and this adapter reads the capabilities only for feature types.
|
|
27
27
|
*
|
|
28
28
|
* ## Why the input is a harvest rather than the service
|
|
29
29
|
*
|
|
30
|
-
* An `ad:Address`
|
|
30
|
+
* An `ad:Address` states its house number inline and everything else by reference. Each address
|
|
31
31
|
* holds exactly four `ad:component/@xlink:href` values, measured over 1,000 addresses at six
|
|
32
32
|
* `startIndex` offsets with all four prefixes occurring 1,000 times each. The references are
|
|
33
33
|
* absolute URIs that resolve back into the same service under the `resourceId` rewrite that
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
* | `https://data.vlaanderen.be/id/gemeentenaam/44083` | `gemeentenaam_44083` | `ad:AdminUnitName` |
|
|
41
41
|
* | `http://vocab.belgif.be/auth/refnis1995/1000#id` | `refnis1995_1000` | `ad:AdminUnitName` |
|
|
42
42
|
*
|
|
43
|
-
*
|
|
43
|
+
* A per-address resolution would cost four requests per row against 4,563,062 addresses. The component
|
|
44
44
|
* types are small — 167,218 thoroughfare names, 1,190 postal descriptors, 609 administrative-unit
|
|
45
45
|
* names — so the harvest takes each component type whole and the adapter joins locally.
|
|
46
46
|
*
|
|
@@ -86,17 +86,19 @@ export const VLAANDEREN_ADAPTER_ID = "vlaanderen";
|
|
|
86
86
|
/**
|
|
87
87
|
* The terms the address-source register elects for `be-property-building-1`.
|
|
88
88
|
*
|
|
89
|
-
* The
|
|
90
|
-
* `unchecked-access-free-be-agentschap-digitaal-vlaanderen
|
|
91
|
-
* so `electedLicenseLabel` answers this string
|
|
89
|
+
* The register's `electedTerms` for license
|
|
90
|
+
* `unchecked-access-free-be-agentschap-digitaal-vlaanderen` states this value.
|
|
91
|
+
* That license has no `spdx`, so `electedLicenseLabel` answers this string
|
|
92
|
+
* and the share-alike prefix filter matches it.
|
|
92
93
|
*/
|
|
93
94
|
export const VLAANDEREN_DEFAULT_LICENSE = "Modellicentie voor gratis hergebruik Vlaanderen";
|
|
94
95
|
/**
|
|
95
96
|
* The one jurisdiction this adapter emits.
|
|
96
97
|
*
|
|
97
98
|
* The service publishes the Flemish Region.
|
|
98
|
-
* ISO 3166-1 assigns that region no code of its own, so
|
|
99
|
-
*
|
|
99
|
+
* ISO 3166-1 assigns that region no code of its own, so the set holds one code.
|
|
100
|
+
*
|
|
101
|
+
* A caller that requests any other gets {@linkcode UnsupportedCountryError} rather than zero rows.
|
|
100
102
|
*/
|
|
101
103
|
export const VLAANDEREN_COUNTRIES = ["BE"];
|
|
102
104
|
/**
|
|
@@ -106,18 +108,18 @@ export const VLAANDEREN_COUNTRIES = ["BE"];
|
|
|
106
108
|
* rather than by position.
|
|
107
109
|
* Flanders uses one type across 1,000 addresses sampled.
|
|
108
110
|
*
|
|
109
|
-
* Czechia and Brussels write `buildingIdentifier` and the Netherlands `addressNumber` for
|
|
110
|
-
*
|
|
111
|
+
* Czechia and Brussels write `buildingIdentifier` and the Netherlands `addressNumber` for the same part.
|
|
112
|
+
* `#inspire/address` therefore leaves the vocabulary to the caller.
|
|
111
113
|
*/
|
|
112
114
|
const HOUSE_NUMBER_DESIGNATOR = "addressIdentifierGeneral";
|
|
113
115
|
/**
|
|
114
|
-
* The `ad:level` of the administrative unit that
|
|
116
|
+
* The `ad:level` of the administrative unit that states the municipality name.
|
|
115
117
|
*
|
|
116
118
|
* An address references two `ad:AdminUnitName` features.
|
|
117
119
|
* `gemeentenaam_44083` is `5thOrder` and resolves to the municipality `Deinze`.
|
|
118
120
|
*
|
|
119
121
|
* `refnis1995_1000` is `1stOrder` and resolves to the country (`België`).
|
|
120
|
-
*
|
|
122
|
+
* A reader that takes whichever arrives first would write `België` into the `locality` of some rows.
|
|
121
123
|
*/
|
|
122
124
|
const MUNICIPALITY_LEVEL = "5thOrder";
|
|
123
125
|
/**
|
|
@@ -130,8 +132,8 @@ const MUNICIPALITY_LEVEL = "5thOrder";
|
|
|
130
132
|
* for `straatnaam_138007`, with zero bytes above 0x7F in either body.
|
|
131
133
|
*
|
|
132
134
|
* Measured over 20,000 `ad:ThoroughfareName` values at twenty offsets,
|
|
133
|
-
* 1,657
|
|
134
|
-
* `ad:AdminUnitName`
|
|
135
|
+
* 1,657 have a `?` and 0 have any non-ASCII character.
|
|
136
|
+
* `ad:AdminUnitName` has 34 of 609 and `ad:PostalDescriptor` 161 of 1,189 — and `ad:AdminUnitName`
|
|
135
137
|
* also serves `België` intact, so the loss is per-value rather than a service-wide transcode.
|
|
136
138
|
*
|
|
137
139
|
* No address component is written with a question mark, so a value holding one
|
|
@@ -181,10 +183,10 @@ export function componentResourceID(href) {
|
|
|
181
183
|
/**
|
|
182
184
|
* Splits an `ad:ThoroughfareName` `gn:text` value into its {@link SplitStreetName}.
|
|
183
185
|
*
|
|
184
|
-
* @throws {@linkcode VlaanderenHarvestError} when the value
|
|
185
|
-
*
|
|
186
|
-
* That
|
|
187
|
-
* it would write a bookkeeping suffix into every row sharing the new shape.
|
|
186
|
+
* @throws {@linkcode VlaanderenHarvestError} when the value has no `_`.
|
|
187
|
+
* Every one of the 20,000 measured values had one.
|
|
188
|
+
* That would be a change in the publisher's field.
|
|
189
|
+
* A guess at it would write a bookkeeping suffix into every row sharing the new shape.
|
|
188
190
|
*/
|
|
189
191
|
export function splitStreetName(value) {
|
|
190
192
|
const separator = value.lastIndexOf("_");
|
|
@@ -196,10 +198,10 @@ export function splitStreetName(value) {
|
|
|
196
198
|
return { street: value.slice(0, separator).trim(), discriminator: value.slice(separator + 1).trim() };
|
|
197
199
|
}
|
|
198
200
|
/**
|
|
199
|
-
* The house number an address states inline, or `
|
|
201
|
+
* The house number an address states inline, or `null` when it states none this adapter can use.
|
|
200
202
|
*
|
|
201
203
|
* `designatorsByType` skips a designator the publisher marked void, so a void number
|
|
202
|
-
* and an absent one both answer `
|
|
204
|
+
* and an absent one both answer `null` here.
|
|
203
205
|
* Both are refusals rather than addresses with no number, and the caller counts
|
|
204
206
|
* them together for that reason.
|
|
205
207
|
*
|
|
@@ -224,7 +226,7 @@ async function readComponentFiles(root, files, typeName, read, signal) {
|
|
|
224
226
|
throw new VlaanderenHarvestError(`a ${typeName} feature in ${filePath.toString()} carries no gml:id, so nothing can reference it`);
|
|
225
227
|
}
|
|
226
228
|
const value = read(feature);
|
|
227
|
-
if (value !==
|
|
229
|
+
if (value !== null) {
|
|
228
230
|
index.set(id, value);
|
|
229
231
|
}
|
|
230
232
|
}
|
|
@@ -242,7 +244,7 @@ async function readComponentIndex(root, harvest, signal) {
|
|
|
242
244
|
// so it lists the places a code serves rather than a locality.
|
|
243
245
|
// The locality comes from `ad:AdminUnitName`.
|
|
244
246
|
postalDescriptorCode, signal);
|
|
245
|
-
const municipalities = await readComponentFiles(root, harvest.components.AdminUnitName, "ad:AdminUnitName", (feature) => (adminUnitLevel(feature) === MUNICIPALITY_LEVEL ? placeName(feature) :
|
|
247
|
+
const municipalities = await readComponentFiles(root, harvest.components.AdminUnitName, "ad:AdminUnitName", (feature) => (adminUnitLevel(feature) === MUNICIPALITY_LEVEL ? placeName(feature) : null), signal);
|
|
246
248
|
for (const [typeName, index] of [
|
|
247
249
|
["ad:ThoroughfareName", streets],
|
|
248
250
|
["ad:PostalDescriptor", postcodes],
|
|
@@ -319,27 +321,27 @@ export function createVlaanderenAdapter() {
|
|
|
319
321
|
if (opts.limit !== undefined && emitted >= opts.limit)
|
|
320
322
|
break;
|
|
321
323
|
const house = houseNumberOf(address);
|
|
322
|
-
if (house
|
|
324
|
+
if (!house) {
|
|
323
325
|
refused.noHouseNumber++;
|
|
324
326
|
continue;
|
|
325
327
|
}
|
|
326
|
-
let street;
|
|
327
|
-
let postcode;
|
|
328
|
-
let locality;
|
|
328
|
+
let street = null;
|
|
329
|
+
let postcode = null;
|
|
330
|
+
let locality = null;
|
|
329
331
|
let unreadable = false;
|
|
330
332
|
for (const href of componentHrefs(address)) {
|
|
331
333
|
const id = componentResourceID(href);
|
|
332
|
-
if (id
|
|
334
|
+
if (!id) {
|
|
333
335
|
unreadable = true;
|
|
334
336
|
break;
|
|
335
337
|
}
|
|
336
338
|
const streetValue = index.streets.get(id);
|
|
337
|
-
if (streetValue
|
|
339
|
+
if (streetValue) {
|
|
338
340
|
street = streetValue;
|
|
339
341
|
continue;
|
|
340
342
|
}
|
|
341
343
|
const postcodeValue = index.postcodes.get(id);
|
|
342
|
-
if (postcodeValue
|
|
344
|
+
if (postcodeValue) {
|
|
343
345
|
postcode = postcodeValue;
|
|
344
346
|
continue;
|
|
345
347
|
}
|
|
@@ -349,8 +351,8 @@ export function createVlaanderenAdapter() {
|
|
|
349
351
|
}
|
|
350
352
|
// A reference the harvest cannot answer is a street, postcode
|
|
351
353
|
// or locality this run could not read.
|
|
352
|
-
//
|
|
353
|
-
if (unreadable || street
|
|
354
|
+
// A row emitted without it would record an absence the publisher never stated.
|
|
355
|
+
if (unreadable || !street || !postcode || !locality) {
|
|
354
356
|
refused.unjoined++;
|
|
355
357
|
continue;
|
|
356
358
|
}
|
|
@@ -388,8 +390,8 @@ export function createVlaanderenAdapter() {
|
|
|
388
390
|
emitted++;
|
|
389
391
|
}
|
|
390
392
|
// A short page is a page this run could not read whole.
|
|
391
|
-
//
|
|
392
|
-
//
|
|
393
|
+
// A smaller-page read would drop its tail silently, and a harvest of
|
|
394
|
+
// 457 pages hides one missing tail.
|
|
393
395
|
const bounded = opts.limit !== undefined || Boolean(opts.signal?.aborted);
|
|
394
396
|
if (!bounded && seen !== page.numberReturned) {
|
|
395
397
|
throw new VlaanderenHarvestError(`${pagePath.toString()} holds ${seen} ad:Address features where the harvest records ` +
|