@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
|
@@ -8,17 +8,17 @@
|
|
|
8
8
|
*
|
|
9
9
|
* The ATOM service at `https://apli.bizkaia.eus/apps/Danok/INSPIRE/addresses.xml` lists 112
|
|
10
10
|
* municipality entries, one zipped GML each. Catastro's national feed links this service rather than
|
|
11
|
-
* serving its data
|
|
11
|
+
* serving its data. The publisher is therefore a register of its own.
|
|
12
12
|
*
|
|
13
|
-
* The archives
|
|
13
|
+
* The archives hold only addresses. That shapes this reader. Abadiño's
|
|
14
14
|
* `ES.BFA.AD.001.zip` holds one member, `ES.BFA.AD.gml`, whose 1,360 `ad:Address` features write
|
|
15
15
|
* 4,080 `ad:component` references and not one `ad:ThoroughfareName`, `ad:PostalDescriptor` or
|
|
16
16
|
* `ad:AdminUnitName` feature. Every reference is a stored-query URL on
|
|
17
17
|
* `https://geo.bizkaia.eus/arcgisserverinspire/…` addressing an `adComponent.<n>` the ATOM feed never
|
|
18
|
-
* publishes. A reader
|
|
18
|
+
* publishes. A reader given only those archives therefore writes every address in the province without
|
|
19
19
|
* its street, its postcode or its municipality.
|
|
20
20
|
*
|
|
21
|
-
* Those features are on the publisher's WFS
|
|
21
|
+
* Those features are on the publisher's WFS. It serves the whole province in one request per type. The
|
|
22
22
|
* service answers `ad:ThoroughfareName` with `numberMatched="6921"`, `ad:PostalDescriptor` with
|
|
23
23
|
* `96` and `ad:AdminUnitName` with `113`, and a `GetFeature` with `COUNT=10000` returns each type
|
|
24
24
|
* whole: 6,921 thoroughfare names arrive in one 13,916,056-byte document. One request per type is
|
|
@@ -32,14 +32,14 @@
|
|
|
32
32
|
* addresses. An unresolved reference is a value the reader asked for and could not read, and it
|
|
33
33
|
* raises.
|
|
34
34
|
*
|
|
35
|
-
* Two of the publisher's own spellings decide what a row
|
|
35
|
+
* Two of the publisher's own spellings decide what a row records.
|
|
36
36
|
*
|
|
37
37
|
* A thoroughfare name is a cadastral field rather than a street name:
|
|
38
38
|
* `BO\TRAÑA-MATIENA(1)` is the street-type abbreviation `BO`, a backslash, the name, and the
|
|
39
39
|
* street's own sequence code in parentheses. All 6,921 take that form. The row keeps the
|
|
40
40
|
* abbreviation, as the Dirección General del Catastro's own rendered line does with `CL SANTIAGO
|
|
41
|
-
* APOSTOL`, writes a space where the cadastre writes its separator, and drops the sequence code
|
|
42
|
-
*
|
|
41
|
+
* APOSTOL`, writes a space where the cadastre writes its separator, and drops the sequence code
|
|
42
|
+
* because it is an identifier rather than part of the name.
|
|
43
43
|
*
|
|
44
44
|
* The house number is the last of the four dot-separated fields of the designator, and the
|
|
45
45
|
* designator is a cadastral code: `48.001.00026.003` is municipality 48001, street 00026 and number
|
|
@@ -57,10 +57,9 @@
|
|
|
57
57
|
* The first three are an ordinary Spanish number, a number with a letter, and a number with a
|
|
58
58
|
* *bis*, *izquierda* or *derecha* qualifier. The fourth is two fields concatenated and what its
|
|
59
59
|
* second field designates is not established: it is three digits wide like the number itself, and
|
|
60
|
-
* no document the publisher publishes
|
|
61
|
-
* publisher's own concatenation with its padding removed
|
|
62
|
-
*
|
|
63
|
-
* not hold.
|
|
60
|
+
* no document the publisher publishes states what it counts. The row therefore writes the
|
|
61
|
+
* publisher's own concatenation with its padding removed. A split on a guessed separator would
|
|
62
|
+
* state a number the cadastre does not hold.
|
|
64
63
|
*
|
|
65
64
|
* The municipality is `ad:AdminUnitName` at `3rdOrder`, which is the only level the service
|
|
66
65
|
* publishes: 113 of 113 of its administrative-unit features state it, and their names are padded
|
|
@@ -71,14 +70,14 @@
|
|
|
71
70
|
* `48 001 CL\TRAÑAETXOSTE(00066) 002` for the address whose designator is `48.001.00066.002`. It
|
|
72
71
|
* restates the municipality code, the street type and name, the street code zero-padded to five, and
|
|
73
72
|
* the number field, and it is written inside the archive while the street itself comes from a
|
|
74
|
-
* separate WFS document.
|
|
75
|
-
*
|
|
73
|
+
* separate WFS document. The adapter's test compares the resolved street and the composed number
|
|
74
|
+
* against it to check that the right feature was joined. The register's
|
|
76
75
|
* personal-data review reads these values as internal cadastral references rather than names, and
|
|
77
76
|
* the adapter writes none of them into a row.
|
|
78
77
|
*
|
|
79
78
|
* No service either publisher runs was found to render a postal address for this province: the
|
|
80
|
-
* ArcGIS layer behind the WFS exposes INSPIRE fields
|
|
81
|
-
* stays
|
|
79
|
+
* ArcGIS layer behind the WFS exposes only INSPIRE fields. The number's unexplained second field
|
|
80
|
+
* therefore stays open.
|
|
82
81
|
*/
|
|
83
82
|
import { openReadStream } from "@mailwoman/core/fs/streams";
|
|
84
83
|
import { streamMarkupElements } from "@mailwoman/core/html/elements";
|
|
@@ -104,24 +103,24 @@ export const ES_BIZKAIA_COUNTRIES = ["ES"];
|
|
|
104
103
|
/**
|
|
105
104
|
* The license the address-source register elected for this publisher.
|
|
106
105
|
*
|
|
107
|
-
* Bizkaia
|
|
108
|
-
* publisher's own words. Its INSPIRE metadata
|
|
106
|
+
* Bizkaia states no license instrument, so no SPDX identifier is written and this records the
|
|
107
|
+
* publisher's own words. Its INSPIRE metadata states the controlled values `No limitations to
|
|
109
108
|
* public access` and `No conditions to access and use`, and its feed-level `rights` adds the
|
|
110
109
|
* condition that authorship and ownership of the BFA be stated as «©Bizkaiko Foru Aldundia». The
|
|
111
110
|
* register records two contradictions it did not resolve: all 112 municipality entries also read
|
|
112
111
|
* `Copyright (c) 2017", ES.BFA; all rights reserved`, and Catastro's national feed labels this
|
|
113
|
-
* publisher `CC BY 3.0 ES
|
|
112
|
+
* publisher `CC BY 3.0 ES`. No document Bizkaia publishes states that label.
|
|
114
113
|
*/
|
|
115
114
|
export const ES_BIZKAIA_LICENSE = "No conditions to access and use, with attribution to «©Bizkaiko Foru Aldundia»";
|
|
116
115
|
/**
|
|
117
116
|
* The member of a municipality's archive that holds the GML.
|
|
118
117
|
*
|
|
119
|
-
* Each archive ships one member,
|
|
120
|
-
* so the extension selects it and the archive's own name
|
|
118
|
+
* Each archive ships one member, `ES.BFA.AD.gml` whichever municipality it holds,
|
|
119
|
+
* so the extension selects it and the archive's own name identifies the municipality.
|
|
121
120
|
*/
|
|
122
121
|
const GML_MEMBER = /\.gml$/iu;
|
|
123
122
|
/**
|
|
124
|
-
* The feature types the saved WFS documents
|
|
123
|
+
* The feature types in the saved WFS documents, indexed before any address is read.
|
|
125
124
|
*/
|
|
126
125
|
const COMPONENT_ELEMENTS = [
|
|
127
126
|
"ad:ThoroughfareName",
|
|
@@ -144,7 +143,7 @@ const MUNICIPALITY_LEVEL = "3rdOrder";
|
|
|
144
143
|
*/
|
|
145
144
|
const HOUSE_NUMBER_TYPE = "buildingIdentifier";
|
|
146
145
|
/**
|
|
147
|
-
* How many dot-separated fields a designator
|
|
146
|
+
* How many dot-separated fields a designator has.
|
|
148
147
|
*
|
|
149
148
|
* Municipality, street, number: `48.001.00026.003` splits the municipality code across two.
|
|
150
149
|
*/
|
|
@@ -154,32 +153,33 @@ const DESIGNATOR_FIELDS = 4;
|
|
|
154
153
|
*
|
|
155
154
|
* `BO\TRAÑA-MATIENA(1)` answers `BO TRAÑA-MATIENA`.
|
|
156
155
|
* The backslash is the cadastre's separator between the street-type abbreviation
|
|
157
|
-
* and the name, and the trailing parenthesis holds the street's sequence code
|
|
158
|
-
* which the address's own designator repeats as its third field.
|
|
156
|
+
* and the name, and the trailing parenthesis holds the street's sequence code.
|
|
159
157
|
*
|
|
160
|
-
*
|
|
158
|
+
* The address's own designator repeats that code as its third field.
|
|
159
|
+
*
|
|
160
|
+
* @returns The street, or null where the feature states no name.
|
|
161
161
|
*/
|
|
162
162
|
export function bizkaiaStreet(feature) {
|
|
163
163
|
const text = thoroughfareName(feature);
|
|
164
164
|
if (!text)
|
|
165
|
-
return
|
|
165
|
+
return null;
|
|
166
166
|
const street = text
|
|
167
167
|
.replace(/\((\d+)\)\s*$/u, "")
|
|
168
168
|
.replaceAll("\\", " ")
|
|
169
169
|
.replaceAll(/\s+/gu, " ")
|
|
170
170
|
.trim();
|
|
171
|
-
return street ||
|
|
171
|
+
return street || null;
|
|
172
172
|
}
|
|
173
173
|
/**
|
|
174
174
|
* The street's sequence code a thoroughfare feature states, as the feature writes it.
|
|
175
175
|
*
|
|
176
|
-
* The code the address's designator joins on
|
|
177
|
-
* `ad:LocatorName`
|
|
176
|
+
* The code the address's designator joins on.
|
|
177
|
+
* The publisher's own `ad:LocatorName` therefore checks the join rather than copying it.
|
|
178
178
|
*
|
|
179
|
-
* @returns The digits inside the trailing parentheses, or
|
|
179
|
+
* @returns The digits inside the trailing parentheses, or null where there are none.
|
|
180
180
|
*/
|
|
181
181
|
export function bizkaiaStreetCode(feature) {
|
|
182
|
-
return /\((\d+)\)\s*$/u.exec(thoroughfareName(feature) ?? "")?.[1];
|
|
182
|
+
return /\((\d+)\)\s*$/u.exec(thoroughfareName(feature) ?? "")?.[1] ?? null;
|
|
183
183
|
}
|
|
184
184
|
/**
|
|
185
185
|
* The house number the designator's fourth field states.
|
|
@@ -189,17 +189,17 @@ export function bizkaiaStreetCode(feature) {
|
|
|
189
189
|
*
|
|
190
190
|
* This module's header tabulates the four shapes it takes, with their counts.
|
|
191
191
|
*
|
|
192
|
-
* @returns The number, or
|
|
192
|
+
* @returns The number, or null where the designator is absent or does not have four fields.
|
|
193
193
|
*/
|
|
194
194
|
export function bizkaiaHouseNumber(byType) {
|
|
195
195
|
const code = designator(byType, HOUSE_NUMBER_TYPE);
|
|
196
196
|
if (!code)
|
|
197
|
-
return
|
|
197
|
+
return null;
|
|
198
198
|
const fields = code.split(".");
|
|
199
199
|
if (fields.length !== DESIGNATOR_FIELDS)
|
|
200
|
-
return
|
|
200
|
+
return null;
|
|
201
201
|
const number = fields[DESIGNATOR_FIELDS - 1].replace(/^0+(?=.)/u, "");
|
|
202
|
-
return number ||
|
|
202
|
+
return number || null;
|
|
203
203
|
}
|
|
204
204
|
export function createESBizkaiaAdapter() {
|
|
205
205
|
return {
|
|
@@ -252,17 +252,17 @@ export function createESBizkaiaAdapter() {
|
|
|
252
252
|
};
|
|
253
253
|
}
|
|
254
254
|
/**
|
|
255
|
-
* One address's row, or
|
|
255
|
+
* One address's row, or null when it has too little to render.
|
|
256
256
|
*/
|
|
257
257
|
function composeRow(address, referenced) {
|
|
258
|
-
const addressID = address.attributes["gml:id"]?.trim();
|
|
258
|
+
const addressID = address.attributes["gml:id"]?.trim() ?? null;
|
|
259
259
|
if (voidDesignatorTypes(address).has(HOUSE_NUMBER_TYPE)) {
|
|
260
260
|
throw new VoidDesignatorError(ES_BIZKAIA_ADAPTER_ID, addressID, HOUSE_NUMBER_TYPE);
|
|
261
261
|
}
|
|
262
|
-
let street;
|
|
263
|
-
let postcode;
|
|
264
|
-
let locality;
|
|
265
|
-
let settlement;
|
|
262
|
+
let street = null;
|
|
263
|
+
let postcode = null;
|
|
264
|
+
let locality = null;
|
|
265
|
+
let settlement = null;
|
|
266
266
|
for (const href of componentHrefs(address)) {
|
|
267
267
|
const key = componentJoinKey(href);
|
|
268
268
|
const feature = key ? referenced.get(key) : undefined;
|
|
@@ -308,8 +308,8 @@ function memberChunks(path) {
|
|
|
308
308
|
* The two passes read the same list, so an input holding addresses and an input holding
|
|
309
309
|
* component features need not be told apart: a municipality archive contributes addresses
|
|
310
310
|
* to the second pass and no feature to the first, and a saved WFS page the reverse.
|
|
311
|
-
*
|
|
312
|
-
*
|
|
311
|
+
* Extension cannot decide: a hand-assembled input can hold both, and the
|
|
312
|
+
* publisher's own naming distinguishes neither.
|
|
313
313
|
*
|
|
314
314
|
* A path holding no input raises rather than yielding zero rows, so a wrong path
|
|
315
315
|
* reports itself instead of reading as an empty publisher.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.js","sourceRoot":"","sources":["../../../../lib/es/adapters/bizkaia/adapter.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"adapter.js","sourceRoot":"","sources":["../../../../lib/es/adapters/bizkaia/adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgFG;AAEH,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,EAAsB,oBAAoB,EAAE,MAAM,+BAA+B,CAAA;AACxF,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,YAAY,EAAE,MAAM,cAAc,CAAA;AAC3C,OAAO,EACN,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,UAAU,EACV,iBAAiB,EACjB,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,EAAE,CAAC,WAAW,EAAE,CAAA;IAE9C,IAAI,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC;QAAE,OAAO,CAAC,IAAI,CAAC,CAAA;IAEtG,MAAM,KAAK,GAAG,MAAM,UAAU,CAAC,IAAI,CAAC,iBAAiB,EAAE,EAAE,GAAG,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAA;IAE5G,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;QACnB,MAAM,IAAI,mBAAmB,CAAC,qBAAqB,EAAE,GAAG,IAAI,CAAC,QAAQ,EAAE,0CAA0C,CAAC,CAAA;IACnH,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,gBAAgB,GAAG,sBAAsB,EAAE,CAAA"}
|
|
@@ -7,32 +7,32 @@
|
|
|
7
7
|
* from its per-municipality zipped GML.
|
|
8
8
|
*
|
|
9
9
|
* The ATOM service at `https://www.catastro.hacienda.gob.es/INSPIRE/Addresses/ES.SDGC.AD.atom.xml`
|
|
10
|
-
* lists 55 entries
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* or a directory of them.
|
|
10
|
+
* lists 55 entries. 52 are the Dirección General del Catastro's own provinces. Three link the foral
|
|
11
|
+
* cadastres of Bizkaia, Gipuzkoa and Navarra. Those three state their own terms and have an adapter
|
|
12
|
+
* each. Every DGC entry links a province feed listing one zipped GML per municipality, so a caller
|
|
13
|
+
* harvests municipality by municipality and this adapter reads one archive or a directory of them.
|
|
15
14
|
*
|
|
16
15
|
* Three properties of the file decide the reader, and each of the three would silently empty a row
|
|
17
16
|
* if it were read the way the other INSPIRE publishers are read.
|
|
18
17
|
*
|
|
19
|
-
* The archive
|
|
18
|
+
* The archive holds two members. `A.ES.SDGC.AD.<code>.gml` is the data and
|
|
20
19
|
* `A.ES.SDGC.AD.MD.<code>.xml` is its ISO 19139 metadata record. A member selector matching `.xml`
|
|
21
|
-
* therefore selects the metadata record. That record
|
|
20
|
+
* therefore selects the metadata record. That record holds no `AD:Address` at all, so
|
|
22
21
|
* {@linkcode GML_MEMBER} matches the extension that holds the features.
|
|
23
22
|
*
|
|
24
|
-
* The GML declares `<?xml version="1.0" encoding="ISO-8859-1"?>` and is not valid UTF-8
|
|
25
|
-
* 11,861,975-byte member
|
|
26
|
-
* `streamMarkupElements` decodes with a UTF-8 `TextDecoder
|
|
27
|
-
*
|
|
28
|
-
* declaration rather than trusting this note, because a publisher that re-encodes its
|
|
29
|
-
* otherwise have every accented name mojibaked under a reader that still claimed to be
|
|
23
|
+
* The GML declares `<?xml version="1.0" encoding="ISO-8859-1"?>` and is not valid UTF-8. Ceuta's
|
|
24
|
+
* 11,861,975-byte member holds 26 bytes above 0x7F, one of which is the `Ñ` of a street name.
|
|
25
|
+
* `streamMarkupElements` decodes with a UTF-8 `TextDecoder`. That decoder answers those bytes with
|
|
26
|
+
* U+FFFD. The bytes therefore pass through `decodeByteStream` first. {@linkcode assertLatin1Declaration}
|
|
27
|
+
* reads the declaration rather than trusting this note, because a publisher that re-encodes its
|
|
28
|
+
* output would otherwise have every accented name mojibaked under a reader that still claimed to be
|
|
29
|
+
* right.
|
|
30
30
|
*
|
|
31
31
|
* The file binds the INSPIRE namespaces to upper-case prefixes, `AD:Address` and `GN:text`, and
|
|
32
32
|
* states a designator type and an administrative level as element text rather than as a codelist
|
|
33
33
|
* URI. `#inspire/address` matches an element by its local name and accepts either form of a coded
|
|
34
34
|
* value, so the readers there serve this publisher. Only the element names this module passes to the
|
|
35
|
-
* markup stream
|
|
35
|
+
* markup stream hold the upper-case prefix.
|
|
36
36
|
*
|
|
37
37
|
* Each address references exactly three features by local `#` fragment, measured as 8,126 of 8,126
|
|
38
38
|
* addresses in Ceuta carrying one `ES.SDGC.PD`, one `ES.SDGC.TN` and one `ES.SDGC.AU` reference.
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
* | `9744803TE8794S` | `13` | `CL SANTIAGO APOSTOL 13 51002 CEUTA (CEUTA)` |
|
|
53
53
|
* | `9745701TE8794S` | `13D` | `CL SANTIAGO APOSTOL 13(D) 51002 CEUTA (CEUTA)` |
|
|
54
54
|
*
|
|
55
|
-
* So the designator is `pnp` with `plp` appended, and the street is `tv` followed by `nv
|
|
56
|
-
* the `AD:ThoroughfareName` text verbatim once its leading space is trimmed. The
|
|
57
|
-
* in the street component because the publisher writes it in its own rendered
|
|
58
|
-
*
|
|
55
|
+
* So the designator is `pnp` with `plp` appended, and the street is `tv` followed by `nv`. That
|
|
56
|
+
* street matches the `AD:ThoroughfareName` text verbatim once its leading space is trimmed. The
|
|
57
|
+
* abbreviation stays in the street component because the publisher writes it in its own rendered
|
|
58
|
+
* line. `Calle` would state something the Cadastre did not.
|
|
59
59
|
*
|
|
60
60
|
* `S-N` is *sin número*, the publisher stating that the address has no number, and it is 856 of
|
|
61
61
|
* Ceuta's 8,126 designators. A row carrying it writes no `house_number`, because the string is a
|
|
@@ -87,13 +87,12 @@ export declare const ES_CATASTRO_COUNTRIES: readonly string[];
|
|
|
87
87
|
*
|
|
88
88
|
* The register elects the titled instrument, `Licencia de acceso y uso de los servicios y conjuntos
|
|
89
89
|
* de datos INSPIRE de la Dirección General del Catastro` at version 1.0, rather than the older
|
|
90
|
-
* `all rights reserved` template the feed still
|
|
91
|
-
*
|
|
92
|
-
* own title.
|
|
90
|
+
* `all rights reserved` template the feed still shows. No Creative Commons label or SPDX identifier
|
|
91
|
+
* covers that instrument, so the row records the instrument's own title.
|
|
93
92
|
*
|
|
94
|
-
*
|
|
93
|
+
* The register reads `refused` for `redistribute-data`: clause 1 withholds distribution
|
|
95
94
|
* of the information as supplied, and requires transformation before any public use.
|
|
96
|
-
* Ingest, transformation and training are permitted,
|
|
95
|
+
* Ingest, transformation and training are permitted, and this adapter performs those.
|
|
97
96
|
*/
|
|
98
97
|
export declare const ES_CATASTRO_LICENSE = "Licencia de acceso y uso de los servicios y conjuntos de datos INSPIRE de la Direcci\u00F3n General del Catastro";
|
|
99
98
|
export declare function createESCatastroAdapter(): CorpusAdapter;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../lib/es/adapters/catastro/adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqEG;AAyBH,OAAO,EAAuD,KAAK,aAAa,EAAiB,MAAM,QAAQ,CAAA;AAE/G;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,gBAAgB,CAAA;AAEnD;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,EAAE,SAAS,MAAM,EAAW,CAAA;AAE9D
|
|
1
|
+
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../lib/es/adapters/catastro/adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqEG;AAyBH,OAAO,EAAuD,KAAK,aAAa,EAAiB,MAAM,QAAQ,CAAA;AAE/G;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,gBAAgB,CAAA;AAEnD;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,EAAE,SAAS,MAAM,EAAW,CAAA;AAE9D;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,mBAAmB,qHAC8E,CAAA;AAmG9G,wBAAgB,uBAAuB,IAAI,aAAa,CAyCvD;AA6ED;;GAEG;AACH,eAAO,MAAM,iBAAiB,eAA4B,CAAA"}
|
|
@@ -7,32 +7,32 @@
|
|
|
7
7
|
* from its per-municipality zipped GML.
|
|
8
8
|
*
|
|
9
9
|
* The ATOM service at `https://www.catastro.hacienda.gob.es/INSPIRE/Addresses/ES.SDGC.AD.atom.xml`
|
|
10
|
-
* lists 55 entries
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* or a directory of them.
|
|
10
|
+
* lists 55 entries. 52 are the Dirección General del Catastro's own provinces. Three link the foral
|
|
11
|
+
* cadastres of Bizkaia, Gipuzkoa and Navarra. Those three state their own terms and have an adapter
|
|
12
|
+
* each. Every DGC entry links a province feed listing one zipped GML per municipality, so a caller
|
|
13
|
+
* harvests municipality by municipality and this adapter reads one archive or a directory of them.
|
|
15
14
|
*
|
|
16
15
|
* Three properties of the file decide the reader, and each of the three would silently empty a row
|
|
17
16
|
* if it were read the way the other INSPIRE publishers are read.
|
|
18
17
|
*
|
|
19
|
-
* The archive
|
|
18
|
+
* The archive holds two members. `A.ES.SDGC.AD.<code>.gml` is the data and
|
|
20
19
|
* `A.ES.SDGC.AD.MD.<code>.xml` is its ISO 19139 metadata record. A member selector matching `.xml`
|
|
21
|
-
* therefore selects the metadata record. That record
|
|
20
|
+
* therefore selects the metadata record. That record holds no `AD:Address` at all, so
|
|
22
21
|
* {@linkcode GML_MEMBER} matches the extension that holds the features.
|
|
23
22
|
*
|
|
24
|
-
* The GML declares `<?xml version="1.0" encoding="ISO-8859-1"?>` and is not valid UTF-8
|
|
25
|
-
* 11,861,975-byte member
|
|
26
|
-
* `streamMarkupElements` decodes with a UTF-8 `TextDecoder
|
|
27
|
-
*
|
|
28
|
-
* declaration rather than trusting this note, because a publisher that re-encodes its
|
|
29
|
-
* otherwise have every accented name mojibaked under a reader that still claimed to be
|
|
23
|
+
* The GML declares `<?xml version="1.0" encoding="ISO-8859-1"?>` and is not valid UTF-8. Ceuta's
|
|
24
|
+
* 11,861,975-byte member holds 26 bytes above 0x7F, one of which is the `Ñ` of a street name.
|
|
25
|
+
* `streamMarkupElements` decodes with a UTF-8 `TextDecoder`. That decoder answers those bytes with
|
|
26
|
+
* U+FFFD. The bytes therefore pass through `decodeByteStream` first. {@linkcode assertLatin1Declaration}
|
|
27
|
+
* reads the declaration rather than trusting this note, because a publisher that re-encodes its
|
|
28
|
+
* output would otherwise have every accented name mojibaked under a reader that still claimed to be
|
|
29
|
+
* right.
|
|
30
30
|
*
|
|
31
31
|
* The file binds the INSPIRE namespaces to upper-case prefixes, `AD:Address` and `GN:text`, and
|
|
32
32
|
* states a designator type and an administrative level as element text rather than as a codelist
|
|
33
33
|
* URI. `#inspire/address` matches an element by its local name and accepts either form of a coded
|
|
34
34
|
* value, so the readers there serve this publisher. Only the element names this module passes to the
|
|
35
|
-
* markup stream
|
|
35
|
+
* markup stream hold the upper-case prefix.
|
|
36
36
|
*
|
|
37
37
|
* Each address references exactly three features by local `#` fragment, measured as 8,126 of 8,126
|
|
38
38
|
* addresses in Ceuta carrying one `ES.SDGC.PD`, one `ES.SDGC.TN` and one `ES.SDGC.AU` reference.
|
|
@@ -52,10 +52,10 @@
|
|
|
52
52
|
* | `9744803TE8794S` | `13` | `CL SANTIAGO APOSTOL 13 51002 CEUTA (CEUTA)` |
|
|
53
53
|
* | `9745701TE8794S` | `13D` | `CL SANTIAGO APOSTOL 13(D) 51002 CEUTA (CEUTA)` |
|
|
54
54
|
*
|
|
55
|
-
* So the designator is `pnp` with `plp` appended, and the street is `tv` followed by `nv
|
|
56
|
-
* the `AD:ThoroughfareName` text verbatim once its leading space is trimmed. The
|
|
57
|
-
* in the street component because the publisher writes it in its own rendered
|
|
58
|
-
*
|
|
55
|
+
* So the designator is `pnp` with `plp` appended, and the street is `tv` followed by `nv`. That
|
|
56
|
+
* street matches the `AD:ThoroughfareName` text verbatim once its leading space is trimmed. The
|
|
57
|
+
* abbreviation stays in the street component because the publisher writes it in its own rendered
|
|
58
|
+
* line. `Calle` would state something the Cadastre did not.
|
|
59
59
|
*
|
|
60
60
|
* `S-N` is *sin número*, the publisher stating that the address has no number, and it is 856 of
|
|
61
61
|
* Ceuta's 8,126 designators. A row carrying it writes no `house_number`, because the string is a
|
|
@@ -98,13 +98,12 @@ export const ES_CATASTRO_COUNTRIES = ["ES"];
|
|
|
98
98
|
*
|
|
99
99
|
* The register elects the titled instrument, `Licencia de acceso y uso de los servicios y conjuntos
|
|
100
100
|
* de datos INSPIRE de la Dirección General del Catastro` at version 1.0, rather than the older
|
|
101
|
-
* `all rights reserved` template the feed still
|
|
102
|
-
*
|
|
103
|
-
* own title.
|
|
101
|
+
* `all rights reserved` template the feed still shows. No Creative Commons label or SPDX identifier
|
|
102
|
+
* covers that instrument, so the row records the instrument's own title.
|
|
104
103
|
*
|
|
105
|
-
*
|
|
104
|
+
* The register reads `refused` for `redistribute-data`: clause 1 withholds distribution
|
|
106
105
|
* of the information as supplied, and requires transformation before any public use.
|
|
107
|
-
* Ingest, transformation and training are permitted,
|
|
106
|
+
* Ingest, transformation and training are permitted, and this adapter performs those.
|
|
108
107
|
*/
|
|
109
108
|
export const ES_CATASTRO_LICENSE = "Licencia de acceso y uso de los servicios y conjuntos de datos INSPIRE de la Dirección General del Catastro";
|
|
110
109
|
/**
|
|
@@ -112,7 +111,8 @@ export const ES_CATASTRO_LICENSE = "Licencia de acceso y uso de los servicios y
|
|
|
112
111
|
*
|
|
113
112
|
* The archive ships two members and the other is `A.ES.SDGC.AD.MD.<code>.xml`,
|
|
114
113
|
* the ISO 19139 metadata record.
|
|
115
|
-
* A selector matching `.xml` reads that record
|
|
114
|
+
* A selector matching `.xml` reads that record.
|
|
115
|
+
* That record holds no `AD:Address`.
|
|
116
116
|
*/
|
|
117
117
|
const GML_MEMBER = /\.gml$/iu;
|
|
118
118
|
/**
|
|
@@ -146,10 +146,12 @@ const MUNICIPALITY_LEVELS = new Set(["4", "4thOrder"]);
|
|
|
146
146
|
/**
|
|
147
147
|
* The designator type the publisher writes on every address.
|
|
148
148
|
*
|
|
149
|
-
* Measured over Ceuta: 8,126 of 8,126 addresses
|
|
149
|
+
* Measured over Ceuta: 8,126 of 8,126 addresses hold exactly one designator,
|
|
150
150
|
* and its `AD:type` is the text `1`.
|
|
151
|
-
* The value is the house number
|
|
152
|
-
*
|
|
151
|
+
* The value is the house number.
|
|
152
|
+
*
|
|
153
|
+
* `Consulta_DNPRC`'s `pnp` and `plp` fields confirm that for the two addresses
|
|
154
|
+
* tabulated in this module's header.
|
|
153
155
|
*/
|
|
154
156
|
const HOUSE_NUMBER_TYPE = "1";
|
|
155
157
|
/**
|
|
@@ -219,20 +221,20 @@ export function createESCatastroAdapter() {
|
|
|
219
221
|
};
|
|
220
222
|
}
|
|
221
223
|
/**
|
|
222
|
-
* One address's row, or
|
|
224
|
+
* One address's row, or null when it holds too little to render.
|
|
223
225
|
*
|
|
224
226
|
* The reference index is complete before this is called, so a reference resolving to no
|
|
225
227
|
* feature is a value the reader asked for and could not read, and it raises.
|
|
226
228
|
*/
|
|
227
229
|
function composeRow(address, referenced) {
|
|
228
|
-
const addressID = address.attributes["gml:id"]?.trim();
|
|
230
|
+
const addressID = address.attributes["gml:id"]?.trim() ?? null;
|
|
229
231
|
if (voidDesignatorTypes(address).has(HOUSE_NUMBER_TYPE)) {
|
|
230
232
|
throw new VoidDesignatorError(ES_CATASTRO_ADAPTER_ID, addressID, HOUSE_NUMBER_TYPE);
|
|
231
233
|
}
|
|
232
|
-
let street;
|
|
233
|
-
let postcode;
|
|
234
|
-
let locality;
|
|
235
|
-
let settlement;
|
|
234
|
+
let street = null;
|
|
235
|
+
let postcode = null;
|
|
236
|
+
let locality = null;
|
|
237
|
+
let settlement = null;
|
|
236
238
|
for (const href of componentHrefs(address)) {
|
|
237
239
|
const key = componentJoinKey(href);
|
|
238
240
|
if (key && referenceStatesNoValue(key))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.js","sourceRoot":"","sources":["../../../../lib/es/adapters/catastro/adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;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AAI,CAAC,QAAQ,EAAE,wBAAwB,CAAC,CAAA;IAC/F,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,iBAAiB,GAAG,uBAAuB,EAAE,CAAA"}
|
|
@@ -4,21 +4,18 @@
|
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*
|
|
6
6
|
* `es-gipuzkoa`: the INSPIRE Addresses theme the Diputación Foral de Gipuzkoa publishes, read from
|
|
7
|
-
* the one zipped GML that
|
|
7
|
+
* the one zipped GML that holds the whole province.
|
|
8
8
|
*
|
|
9
|
-
* The ATOM service at `https://b5m.gipuzkoa.eus/inspire/download/addresses.xml`
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
* 313,162,472 bytes, a ratio of 39, so the member is read as a chunk sequence and never buffered.
|
|
9
|
+
* The ATOM service at `https://b5m.gipuzkoa.eus/inspire/download/addresses.xml` holds a single entry
|
|
10
|
+
* for the province and links its dataset through `rel="alternate"` rather than `rel="enclosure"`, so
|
|
11
|
+
* a fetcher that looks only for an enclosure finds no dataset here. The adapter is handed the
|
|
12
|
+
* archive and the feed is acquisition's concern. The archive holds one 313 MB GML member. The
|
|
13
|
+
* adapter reads that member as a chunk sequence and never buffers it.
|
|
15
14
|
*
|
|
16
|
-
* The member is self-contained and its order decides the reader.
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* document ends would therefore hold all 68,744, so the adapter reads the member twice through
|
|
21
|
-
* {@linkcode streamIndexedInspireRows} and indexes 4,516 features instead.
|
|
15
|
+
* The member is self-contained and its order decides the reader. Addresses number 68,744, and the
|
|
16
|
+
* 4,516 reference features they point at are written last. An address held until the document ends
|
|
17
|
+
* would keep all 68,744 pending, so the adapter reads the member twice through
|
|
18
|
+
* {@linkcode streamIndexedInspireRows} and indexes the 4,516 references instead.
|
|
22
19
|
*
|
|
23
20
|
* A reference is a WFS stored-query URL whose `ID` parameter equals the target's `gml:id`, written
|
|
24
21
|
* against the internal host `http://b5mdev/` and with the id repeated as the URL's fragment:
|
|
@@ -28,31 +25,26 @@
|
|
|
28
25
|
*
|
|
29
26
|
* A postal-descriptor reference whose final segment is empty, `…&ID=ES.GFA.PD.059. #…`, states that
|
|
30
27
|
* the publisher holds no postcode, and `referenceStatesNoValue` separates it from a broken join.
|
|
31
|
-
* The Cadastre writes the same form
|
|
28
|
+
* The Cadastre writes the same form. The predicate therefore has one home.
|
|
32
29
|
*
|
|
33
|
-
* The locator vocabulary is one type
|
|
34
|
-
* `LocatorDesignatorTypeValue/addressIdentifierGeneral
|
|
35
|
-
*
|
|
36
|
-
* its 88 municipalities.
|
|
30
|
+
* The locator vocabulary is one type,
|
|
31
|
+
* `LocatorDesignatorTypeValue/addressIdentifierGeneral`. The municipality is the only
|
|
32
|
+
* `ad:AdminUnitName` level published, `4thOrder`.
|
|
37
33
|
*
|
|
38
34
|
* The publisher writes its street names in Basque, with the street type as a trailing word rather
|
|
39
35
|
* than a leading abbreviation: `Samikolla ibilbidea`. The name is taken as written.
|
|
40
36
|
*
|
|
41
|
-
* `ad:LocatorName`
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
* resting on the stronger claim that the name is safe to publish as address text.
|
|
37
|
+
* `ad:LocatorName` holds a building name as a Basque and Spanish pair, `Gasolinera` with
|
|
38
|
+
* `Gasolindegia` and `Agirre, baserria` with `Agirre, caserío`. The adapter writes none of them: the
|
|
39
|
+
* address-source register's personal-data review reads `absent` because these identify the building
|
|
40
|
+
* rather than its occupant, and a Basque *baserri* name is commonly also a surname. The review
|
|
41
|
+
* therefore does not rest on the stronger claim that the name is safe to publish as address text.
|
|
47
42
|
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
* `ES.GFA.TN.056.1110` and `ES.GFA.PD.056.20830`. The adapter's test checks the composed street and
|
|
54
|
-
* number against that identifier, which is a check that the right features were joined rather than a
|
|
55
|
-
* check of the address the publisher would print.
|
|
43
|
+
* The address `gml:id` `ES.GFA.AD.056_1110_003` concatenates the municipality code `056`, the
|
|
44
|
+
* thoroughfare code `1110` and the number `003`, and holds references
|
|
45
|
+
* `AU_ADMINISTRATIVEUNIT_34162020056`, `ES.GFA.TN.056.1110` and `ES.GFA.PD.056.20830`. The
|
|
46
|
+
* adapter's test checks the composed street and number against that identifier. That check confirms
|
|
47
|
+
* the right features were joined. It does not check the address the publisher would print.
|
|
56
48
|
*/
|
|
57
49
|
import { type CorpusAdapter } from "#types";
|
|
58
50
|
/**
|
|
@@ -64,7 +56,8 @@ export declare const ES_GIPUZKOA_ADAPTER_ID = "es-gipuzkoa";
|
|
|
64
56
|
/**
|
|
65
57
|
* The jurisdiction this adapter emits.
|
|
66
58
|
*
|
|
67
|
-
* Coverage is the province of Gipuzkoa
|
|
59
|
+
* Coverage is the province of Gipuzkoa.
|
|
60
|
+
* The feed states that as the dataset's whole extent.
|
|
68
61
|
*/
|
|
69
62
|
export declare const ES_GIPUZKOA_COUNTRIES: readonly string[];
|
|
70
63
|
/**
|
|
@@ -72,15 +65,15 @@ export declare const ES_GIPUZKOA_COUNTRIES: readonly string[];
|
|
|
72
65
|
*
|
|
73
66
|
* Gipuzkoa states four things, and the register elects the one addressing this dataset:
|
|
74
67
|
* the `otherConstraints` of its ISO 19139 dataset record, `CC BY-SA 4.0`.
|
|
75
|
-
* Its feed states attribution
|
|
76
|
-
*
|
|
77
|
-
*
|
|
68
|
+
* Its feed states attribution only and its website states CC BY 4.0, and the register records
|
|
69
|
+
* why the stricter reading is the one to err towards: the share-alike filter reads this label,
|
|
70
|
+
* so recording CC BY 4.0 would hide an obligation the publisher may hold.
|
|
78
71
|
*
|
|
79
72
|
* The value is the SPDX identifier the register elected rather than the license's title,
|
|
80
73
|
* because `licenseVerdict` resolves an identifier and reads a title as unrecognized.
|
|
81
74
|
* Under `LicensePolicy.ShareAlikeFree` the title returns `{refusal: null, mentionsShareAlike: false}`
|
|
82
|
-
* and `CC-BY-SA-4.0` returns
|
|
83
|
-
*
|
|
75
|
+
* and `CC-BY-SA-4.0` returns a share-alike refusal, so the title admits these rows
|
|
76
|
+
* to a corpus assembled to hold no share-alike source.
|
|
84
77
|
*/
|
|
85
78
|
export declare const ES_GIPUZKOA_LICENSE = "CC-BY-SA-4.0";
|
|
86
79
|
export declare function createESGipuzkoaAdapter(): CorpusAdapter;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../lib/es/adapters/gipuzkoa/adapter.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../lib/es/adapters/gipuzkoa/adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AAuBH,OAAO,EAAuD,KAAK,aAAa,EAAiB,MAAM,QAAQ,CAAA;AAE/G;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,gBAAgB,CAAA;AAEnD;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,EAAE,SAAS,MAAM,EAAW,CAAA;AAE9D;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,mBAAmB,iBAAiB,CAAA;AAkCjD,wBAAgB,uBAAuB,IAAI,aAAa,CAqCvD;AA+ED;;GAEG;AACH,eAAO,MAAM,iBAAiB,eAA4B,CAAA"}
|