@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
|
@@ -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
|
|
8
|
-
*
|
|
9
|
-
* The ATOM service at `https://b5m.gipuzkoa.eus/inspire/download/addresses.xml`
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
* 68,744
|
|
18
|
-
*
|
|
19
|
-
* reference features are written last, beginning at byte 306,440,816. Holding an address until the
|
|
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.
|
|
7
|
+
* the one zipped GML that holds the whole province.
|
|
8
|
+
*
|
|
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.
|
|
14
|
+
*
|
|
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
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
* and the number `003`, and the references it carries are `AU_ADMINISTRATIVEUNIT_34162020056`,
|
|
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.
|
|
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.
|
|
42
|
+
*
|
|
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 { PathBuilder } from "path-ts";
|
|
58
50
|
import { Globerator } from "spliterator/node/fs";
|
|
@@ -73,7 +65,8 @@ export const ES_GIPUZKOA_ADAPTER_ID = "es-gipuzkoa";
|
|
|
73
65
|
/**
|
|
74
66
|
* The jurisdiction this adapter emits.
|
|
75
67
|
*
|
|
76
|
-
* Coverage is the province of Gipuzkoa
|
|
68
|
+
* Coverage is the province of Gipuzkoa.
|
|
69
|
+
* The feed states that as the dataset's whole extent.
|
|
77
70
|
*/
|
|
78
71
|
export const ES_GIPUZKOA_COUNTRIES = ["ES"];
|
|
79
72
|
/**
|
|
@@ -81,15 +74,15 @@ export const ES_GIPUZKOA_COUNTRIES = ["ES"];
|
|
|
81
74
|
*
|
|
82
75
|
* Gipuzkoa states four things, and the register elects the one addressing this dataset:
|
|
83
76
|
* the `otherConstraints` of its ISO 19139 dataset record, `CC BY-SA 4.0`.
|
|
84
|
-
* Its feed states attribution
|
|
85
|
-
*
|
|
86
|
-
*
|
|
77
|
+
* Its feed states attribution only and its website states CC BY 4.0, and the register records
|
|
78
|
+
* why the stricter reading is the one to err towards: the share-alike filter reads this label,
|
|
79
|
+
* so recording CC BY 4.0 would hide an obligation the publisher may hold.
|
|
87
80
|
*
|
|
88
81
|
* The value is the SPDX identifier the register elected rather than the license's title,
|
|
89
82
|
* because `licenseVerdict` resolves an identifier and reads a title as unrecognized.
|
|
90
83
|
* Under `LicensePolicy.ShareAlikeFree` the title returns `{refusal: null, mentionsShareAlike: false}`
|
|
91
|
-
* and `CC-BY-SA-4.0` returns
|
|
92
|
-
*
|
|
84
|
+
* and `CC-BY-SA-4.0` returns a share-alike refusal, so the title admits these rows
|
|
85
|
+
* to a corpus assembled to hold no share-alike source.
|
|
93
86
|
*/
|
|
94
87
|
export const ES_GIPUZKOA_LICENSE = "CC-BY-SA-4.0";
|
|
95
88
|
/**
|
|
@@ -154,20 +147,20 @@ export function createESGipuzkoaAdapter() {
|
|
|
154
147
|
};
|
|
155
148
|
}
|
|
156
149
|
/**
|
|
157
|
-
* One address's row, or
|
|
150
|
+
* One address's row, or null when it holds too little to render.
|
|
158
151
|
*
|
|
159
152
|
* The reference index is complete before this is called, so a reference resolving to no
|
|
160
153
|
* feature is a value the reader asked for and could not read, and it raises.
|
|
161
154
|
*/
|
|
162
155
|
function composeRow(address, referenced) {
|
|
163
|
-
const addressID = address.attributes["gml:id"]?.trim();
|
|
156
|
+
const addressID = address.attributes["gml:id"]?.trim() ?? null;
|
|
164
157
|
if (voidDesignatorTypes(address).has(HOUSE_NUMBER_TYPE)) {
|
|
165
158
|
throw new VoidDesignatorError(ES_GIPUZKOA_ADAPTER_ID, addressID, HOUSE_NUMBER_TYPE);
|
|
166
159
|
}
|
|
167
|
-
let street;
|
|
168
|
-
let postcode;
|
|
169
|
-
let locality;
|
|
170
|
-
let settlement;
|
|
160
|
+
let street = null;
|
|
161
|
+
let postcode = null;
|
|
162
|
+
let locality = null;
|
|
163
|
+
let settlement = null;
|
|
171
164
|
for (const href of componentHrefs(address)) {
|
|
172
165
|
const key = componentJoinKey(href);
|
|
173
166
|
if (key && referenceStatesNoValue(key))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.js","sourceRoot":"","sources":["../../../../lib/es/adapters/gipuzkoa/adapter.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"adapter.js","sourceRoot":"","sources":["../../../../lib/es/adapters/gipuzkoa/adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AAGH,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,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AACvF,OAAO,EACN,cAAc,EACd,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,EACb,SAAS,EACT,oBAAoB,EACpB,gBAAgB,EAChB,mBAAmB,GACnB,MAAM,kB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QACxE,QAAQ;QACR,QAAQ;QACR,UAAU;QACV,SAAS;KACT,EACD,EAAE,SAAS,EAAE,sBAAsB,EAAE,OAAO,EAAE,mBAAmB,EAAE,CACnE,CAAA;AACF,CAAC;AAED;;;;;;;;GAQG;AACH,KAAK,UAAU,YAAY,CAAC,SAA0B;IACrD,MAAM,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA;IACxC,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC,WAAW,EAAE,CAAA;IAE9C,IAAI,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC;QAAE,OAAO,CAAC,IAAI,CAAC,CAAA;IAEzE,MAAM,KAAK,GAAG,MAAM,UAAU,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,GAAG,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAA;IAExG,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;QACnB,MAAM,IAAI,KAAK,CAAC,GAAG,sBAAsB,aAAa,IAAI,CAAC,QAAQ,EAAE,uCAAuC,CAAC,CAAA;IAC9G,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"}
|
|
@@ -9,15 +9,15 @@
|
|
|
9
9
|
* The ATOM service at
|
|
10
10
|
* `https://filescartografia.navarra.es/2_CARTOGRAFIA_TEMATICA/2_7_CATASTRO/2_7_3_INSPIRE_ATOM/2_7_3_3_AD/Addresses_ServiceATOM_Navarra.xml`
|
|
11
11
|
* is 671,131 bytes and splits the province across 272 entries. Every entry is titled `Address
|
|
12
|
-
* Navarra`,
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
12
|
+
* Navarra`, and the feed states no place for a partition. The three measured each held one
|
|
13
|
+
* municipality: partition 1 Abáigar, partition 100 Eulate and partition 250 Bera. The feed states
|
|
14
|
+
* no such mapping and this adapter claims none. It reads one archive or a directory of them. A
|
|
15
|
+
* caller harvests all 272 by pointing it at the directory.
|
|
16
16
|
*
|
|
17
17
|
* This publisher is read entirely from its references' titles, and that is what separates it from
|
|
18
18
|
* every other INSPIRE reader here. Its own file publishes no `AD:ThoroughfareName`,
|
|
19
19
|
* `AD:PostalDescriptor` or `AD:AdminUnitName` feature at all: partition 1 holds 29 distinct element
|
|
20
|
-
* names across 115 addresses and none of them is a component feature. Each address instead
|
|
20
|
+
* names across 115 addresses and none of them is a component feature. Each address instead holds
|
|
21
21
|
* six `AD:component` references whose `xlink:title` states the value:
|
|
22
22
|
*
|
|
23
23
|
* | `xlink:href` | `xlink:title` | read as |
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
* | `PostalDescriptor` | `31280` | the postcode |
|
|
31
31
|
*
|
|
32
32
|
* The counts are exact and regular: 690 references over 115 addresses in partition 1, 1,728 over 288
|
|
33
|
-
* in partition 100 and 6,324 over 1,054 in partition 250
|
|
33
|
+
* in partition 100 and 6,324 over 1,054 in partition 250. Each address holds six references, one of
|
|
34
34
|
* each shape above.
|
|
35
35
|
*
|
|
36
36
|
* The two place titles are not the same value. In Abáigar and Eulate the `5thOrder` title repeats the
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
* dependent locality where it differs from the municipality and left out where it repeats it.
|
|
40
40
|
*
|
|
41
41
|
* `Comunidad Foral de Navarra` is the autonomous community's own name rather than the province name a
|
|
42
|
-
* Spanish address writes, and the publisher's own address layer
|
|
42
|
+
* Spanish address writes, and the publisher's own address layer has no region column, so no
|
|
43
43
|
* `region` is written.
|
|
44
44
|
*
|
|
45
45
|
* The publisher's own rendering is in a different service, and it agrees. `IDENA` publishes
|
|
@@ -47,12 +47,12 @@
|
|
|
47
47
|
* `VIA` and `PORTAL`. Partition 1's `AD.Address.1` composes `CALLE CALLEJA, 4, 31280 Abáigar`, and
|
|
48
48
|
* that layer's `DIRECC_Txt_Direcciones.1` reads `MUNICIPIO` `Abáigar`, `ENTIDAD` `Abáigar`,
|
|
49
49
|
* `CODPOSTAL` `31280`, `VIA` `CALLE CALLEJA`, `PORTAL` `4`. The adapter's integration test checks a
|
|
50
|
-
* sample of rows against that layer,
|
|
50
|
+
* sample of rows against that layer, the publisher-side oracle for this source.
|
|
51
51
|
*
|
|
52
52
|
* Two values state an absence rather than a value. A `PostalDescriptor` title of `0` is the publisher
|
|
53
|
-
* holding no postcode, measured in Bera
|
|
54
|
-
*
|
|
55
|
-
*
|
|
53
|
+
* holding no postcode, measured in Bera. A designator of `S/N` is *sin número*, and `#es/cadastre`
|
|
54
|
+
* reads it for all four Spanish cadastres. A designator may also hold a space-separated letter,
|
|
55
|
+
* `18 A` and `34 A` in Eulate. The adapter keeps that letter as the publisher wrote it.
|
|
56
56
|
*/
|
|
57
57
|
import { type MarkupElement } from "@mailwoman/core/html/elements";
|
|
58
58
|
import { type CorpusAdapter } from "#types";
|
|
@@ -74,20 +74,21 @@ export declare const ES_NAVARRA_COUNTRIES: readonly string[];
|
|
|
74
74
|
* Creative Commons Attribution 4.0 International (CC BY 4.0)`, and all 272 of its entries repeat it.
|
|
75
75
|
* The version is stated, so the register records `CC-BY-4.0` as the SPDX identifier.
|
|
76
76
|
*
|
|
77
|
-
* The row
|
|
78
|
-
* `licenseVerdict` resolves an identifier and reads a title as unrecognized
|
|
79
|
-
*
|
|
80
|
-
*
|
|
77
|
+
* The row states that identifier rather than the license's title.
|
|
78
|
+
* `licenseVerdict` resolves an identifier and reads a title as unrecognized.
|
|
79
|
+
*
|
|
80
|
+
* A row whose license resolves to no expression has unknown obligations rather than none.
|
|
81
|
+
* The build reports that separately from a refusal.
|
|
81
82
|
*/
|
|
82
83
|
export declare const ES_NAVARRA_LICENSE = "CC-BY-4.0";
|
|
83
84
|
/**
|
|
84
85
|
* What one address's references state, read from their titles.
|
|
85
86
|
*/
|
|
86
87
|
interface ReferencedTitles {
|
|
87
|
-
street
|
|
88
|
-
postcode
|
|
89
|
-
locality
|
|
90
|
-
settlement
|
|
88
|
+
street: string | null;
|
|
89
|
+
postcode: string | null;
|
|
90
|
+
locality: string | null;
|
|
91
|
+
settlement: string | null;
|
|
91
92
|
}
|
|
92
93
|
/**
|
|
93
94
|
* The street, postcode and place names an address's own references state.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../lib/es/adapters/navarra/adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AAEH,OAAO,EAAE,KAAK,aAAa,EAAwB,MAAM,+BAA+B,CAAA;AAgBxF,OAAO,EAAuD,KAAK,aAAa,EAAiB,MAAM,QAAQ,CAAA;AAE/G;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,eAAe,CAAA;AAEjD;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,SAAS,MAAM,EAAW,CAAA;AAE7D
|
|
1
|
+
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../lib/es/adapters/navarra/adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AAEH,OAAO,EAAE,KAAK,aAAa,EAAwB,MAAM,+BAA+B,CAAA;AAgBxF,OAAO,EAAuD,KAAK,aAAa,EAAiB,MAAM,QAAQ,CAAA;AAE/G;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,eAAe,CAAA;AAEjD;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,SAAS,MAAM,EAAW,CAAA;AAE7D;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,kBAAkB,cAAc,CAAA;AAoD7C;;GAEG;AACH,UAAU,gBAAgB;IACzB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;CACzB;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,aAAa,GAAG,gBAAgB,CAoBhF;AAED,wBAAgB,sBAAsB,IAAI,aAAa,CA2CtD;AAoDD;;GAEG;AACH,eAAO,MAAM,gBAAgB,eAA2B,CAAA"}
|
|
@@ -9,15 +9,15 @@
|
|
|
9
9
|
* The ATOM service at
|
|
10
10
|
* `https://filescartografia.navarra.es/2_CARTOGRAFIA_TEMATICA/2_7_CATASTRO/2_7_3_INSPIRE_ATOM/2_7_3_3_AD/Addresses_ServiceATOM_Navarra.xml`
|
|
11
11
|
* is 671,131 bytes and splits the province across 272 entries. Every entry is titled `Address
|
|
12
|
-
* Navarra`,
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
12
|
+
* Navarra`, and the feed states no place for a partition. The three measured each held one
|
|
13
|
+
* municipality: partition 1 Abáigar, partition 100 Eulate and partition 250 Bera. The feed states
|
|
14
|
+
* no such mapping and this adapter claims none. It reads one archive or a directory of them. A
|
|
15
|
+
* caller harvests all 272 by pointing it at the directory.
|
|
16
16
|
*
|
|
17
17
|
* This publisher is read entirely from its references' titles, and that is what separates it from
|
|
18
18
|
* every other INSPIRE reader here. Its own file publishes no `AD:ThoroughfareName`,
|
|
19
19
|
* `AD:PostalDescriptor` or `AD:AdminUnitName` feature at all: partition 1 holds 29 distinct element
|
|
20
|
-
* names across 115 addresses and none of them is a component feature. Each address instead
|
|
20
|
+
* names across 115 addresses and none of them is a component feature. Each address instead holds
|
|
21
21
|
* six `AD:component` references whose `xlink:title` states the value:
|
|
22
22
|
*
|
|
23
23
|
* | `xlink:href` | `xlink:title` | read as |
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
* | `PostalDescriptor` | `31280` | the postcode |
|
|
31
31
|
*
|
|
32
32
|
* The counts are exact and regular: 690 references over 115 addresses in partition 1, 1,728 over 288
|
|
33
|
-
* in partition 100 and 6,324 over 1,054 in partition 250
|
|
33
|
+
* in partition 100 and 6,324 over 1,054 in partition 250. Each address holds six references, one of
|
|
34
34
|
* each shape above.
|
|
35
35
|
*
|
|
36
36
|
* The two place titles are not the same value. In Abáigar and Eulate the `5thOrder` title repeats the
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
* dependent locality where it differs from the municipality and left out where it repeats it.
|
|
40
40
|
*
|
|
41
41
|
* `Comunidad Foral de Navarra` is the autonomous community's own name rather than the province name a
|
|
42
|
-
* Spanish address writes, and the publisher's own address layer
|
|
42
|
+
* Spanish address writes, and the publisher's own address layer has no region column, so no
|
|
43
43
|
* `region` is written.
|
|
44
44
|
*
|
|
45
45
|
* The publisher's own rendering is in a different service, and it agrees. `IDENA` publishes
|
|
@@ -47,12 +47,12 @@
|
|
|
47
47
|
* `VIA` and `PORTAL`. Partition 1's `AD.Address.1` composes `CALLE CALLEJA, 4, 31280 Abáigar`, and
|
|
48
48
|
* that layer's `DIRECC_Txt_Direcciones.1` reads `MUNICIPIO` `Abáigar`, `ENTIDAD` `Abáigar`,
|
|
49
49
|
* `CODPOSTAL` `31280`, `VIA` `CALLE CALLEJA`, `PORTAL` `4`. The adapter's integration test checks a
|
|
50
|
-
* sample of rows against that layer,
|
|
50
|
+
* sample of rows against that layer, the publisher-side oracle for this source.
|
|
51
51
|
*
|
|
52
52
|
* Two values state an absence rather than a value. A `PostalDescriptor` title of `0` is the publisher
|
|
53
|
-
* holding no postcode, measured in Bera
|
|
54
|
-
*
|
|
55
|
-
*
|
|
53
|
+
* holding no postcode, measured in Bera. A designator of `S/N` is *sin número*, and `#es/cadastre`
|
|
54
|
+
* reads it for all four Spanish cadastres. A designator may also hold a space-separated letter,
|
|
55
|
+
* `18 A` and `34 A` in Eulate. The adapter keeps that letter as the publisher wrote it.
|
|
56
56
|
*/
|
|
57
57
|
import { streamMarkupElements } from "@mailwoman/core/html/elements";
|
|
58
58
|
import { PathBuilder } from "path-ts";
|
|
@@ -82,10 +82,11 @@ export const ES_NAVARRA_COUNTRIES = ["ES"];
|
|
|
82
82
|
* Creative Commons Attribution 4.0 International (CC BY 4.0)`, and all 272 of its entries repeat it.
|
|
83
83
|
* The version is stated, so the register records `CC-BY-4.0` as the SPDX identifier.
|
|
84
84
|
*
|
|
85
|
-
* The row
|
|
86
|
-
* `licenseVerdict` resolves an identifier and reads a title as unrecognized
|
|
87
|
-
*
|
|
88
|
-
*
|
|
85
|
+
* The row states that identifier rather than the license's title.
|
|
86
|
+
* `licenseVerdict` resolves an identifier and reads a title as unrecognized.
|
|
87
|
+
*
|
|
88
|
+
* A row whose license resolves to no expression has unknown obligations rather than none.
|
|
89
|
+
* The build reports that separately from a refusal.
|
|
89
90
|
*/
|
|
90
91
|
export const ES_NAVARRA_LICENSE = "CC-BY-4.0";
|
|
91
92
|
/**
|
|
@@ -127,7 +128,7 @@ const SETTLEMENT_LEVEL = "5thOrder";
|
|
|
127
128
|
/**
|
|
128
129
|
* The postcode title that states that the publisher holds none.
|
|
129
130
|
*
|
|
130
|
-
*
|
|
131
|
+
* Bera writes `0` beside its `31780`.
|
|
131
132
|
*/
|
|
132
133
|
const NO_POSTCODE_TITLE = "0";
|
|
133
134
|
/**
|
|
@@ -137,7 +138,7 @@ const NO_POSTCODE_TITLE = "0";
|
|
|
137
138
|
* order in the three partitions measured and that order is the publisher's rather than the schema's.
|
|
138
139
|
*/
|
|
139
140
|
export function navarraReferencedTitles(address) {
|
|
140
|
-
const titles = {};
|
|
141
|
+
const titles = { street: null, postcode: null, locality: null, settlement: null };
|
|
141
142
|
for (const { href, title } of componentLinks(address)) {
|
|
142
143
|
if (!title)
|
|
143
144
|
continue;
|
|
@@ -146,7 +147,7 @@ export function navarraReferencedTitles(address) {
|
|
|
146
147
|
titles.street = title;
|
|
147
148
|
}
|
|
148
149
|
else if (lowered === POSTAL_DESCRIPTOR_HREF) {
|
|
149
|
-
titles.postcode = title === NO_POSTCODE_TITLE ?
|
|
150
|
+
titles.postcode = title === NO_POSTCODE_TITLE ? null : title;
|
|
150
151
|
}
|
|
151
152
|
else if (codelistValue(href) === SETTLEMENT_LEVEL) {
|
|
152
153
|
titles.settlement = title;
|
|
@@ -196,16 +197,16 @@ export function createESNavarraAdapter() {
|
|
|
196
197
|
};
|
|
197
198
|
}
|
|
198
199
|
/**
|
|
199
|
-
* One address's row, or
|
|
200
|
+
* One address's row, or null when it holds too little to render.
|
|
200
201
|
*/
|
|
201
202
|
function composeRow(address) {
|
|
202
|
-
const addressID = address.attributes["gml:id"]?.trim();
|
|
203
|
+
const addressID = address.attributes["gml:id"]?.trim() ?? null;
|
|
203
204
|
if (voidDesignatorTypes(address).has(HOUSE_NUMBER_TYPE)) {
|
|
204
205
|
throw new VoidDesignatorError(ES_NAVARRA_ADAPTER_ID, addressID, HOUSE_NUMBER_TYPE);
|
|
205
206
|
}
|
|
206
207
|
const { street, postcode, locality, settlement } = navarraReferencedTitles(address);
|
|
207
|
-
// Navarra's settlement is a fifth-order title, a *concejo* within the municipality
|
|
208
|
-
// `cadastralRow` writes as a dependent locality only where it differs from the municipality.
|
|
208
|
+
// Navarra's settlement is a fifth-order title, a *concejo* within the municipality.
|
|
209
|
+
// `cadastralRow` writes it as a dependent locality only where it differs from the municipality.
|
|
209
210
|
return cadastralRow({
|
|
210
211
|
street,
|
|
211
212
|
house: spanishHouseNumber(designatorsByType(address), HOUSE_NUMBER_TYPE),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.js","sourceRoot":"","sources":["../../../../lib/es/adapters/navarra/adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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Spanish cadastre states that it holds no value. All four cadastres share them.
|
|
7
7
|
*
|
|
8
8
|
* Spain publishes the INSPIRE Addresses theme through four cadastres: the Dirección General del
|
|
9
9
|
* Catastro for 52 provinces, and the Diputación Foral de Bizkaia, the Diputación Foral de Gipuzkoa
|
|
@@ -17,20 +17,20 @@ import type { CanonicalRow } from "#types";
|
|
|
17
17
|
* Whether a designator value states that the address has no number.
|
|
18
18
|
*
|
|
19
19
|
* The whole value has to be the token.
|
|
20
|
-
* A value that
|
|
20
|
+
* A value that holds more, such as Gipuzkoa's `S/N-A`, `S/N-C` and `S/N-5`,
|
|
21
21
|
* states something further and is kept as the publisher wrote it: what the trailing part
|
|
22
22
|
* designates is not established, dropping it would merge several addresses of one building,
|
|
23
23
|
* and rewriting it would state a number the publisher did not.
|
|
24
24
|
*/
|
|
25
25
|
export declare function isSinNumero(value: string): boolean;
|
|
26
26
|
/**
|
|
27
|
-
* The house number a Spanish cadastre states, or
|
|
27
|
+
* The house number a Spanish cadastre states, or null where it states that there is none.
|
|
28
28
|
*
|
|
29
29
|
* @param types The publisher's own designator types, in the caller's order of precedence.
|
|
30
30
|
* The Dirección General del Catastro writes the type as the element text `1`, while Navarra
|
|
31
31
|
* and Gipuzkoa write the `LocatorDesignatorTypeValue/addressIdentifierGeneral` codelist URI.
|
|
32
32
|
*/
|
|
33
|
-
export declare function spanishHouseNumber(byType: ReadonlyMap<string, readonly string[]>, ...types: readonly string[]): string |
|
|
33
|
+
export declare function spanishHouseNumber(byType: ReadonlyMap<string, readonly string[]>, ...types: readonly string[]): string | null;
|
|
34
34
|
/**
|
|
35
35
|
* Whether a component reference's key states that the publisher holds no value for that component.
|
|
36
36
|
*
|
|
@@ -40,9 +40,7 @@ export declare function spanishHouseNumber(byType: ReadonlyMap<string, readonly
|
|
|
40
40
|
* Where the cadastre holds no postcode it writes the same identifier with that segment empty,
|
|
41
41
|
* `ES.SDGC.PD.55.101.` and `ES.GFA.PD.059.`, against no feature of that id.
|
|
42
42
|
*
|
|
43
|
-
* Those truncated references are the only unresolvable ones measured in either
|
|
44
|
-
* file: 70 of Ceuta's 8,126 addresses carry one, while its thoroughfare
|
|
45
|
-
* and administrative-unit references resolve 8,126 of 8,126 each.
|
|
43
|
+
* Those truncated references are the only unresolvable ones measured in either file.
|
|
46
44
|
* A reader taking every unresolved reference as an absence would also swallow a genuinely
|
|
47
45
|
* broken join, so the two are separated here and every other unresolved reference raises.
|
|
48
46
|
*/
|
|
@@ -57,27 +55,29 @@ export interface CadastralAddress {
|
|
|
57
55
|
/**
|
|
58
56
|
* The thoroughfare name the address references, absent where the publisher writes none.
|
|
59
57
|
*/
|
|
60
|
-
street: string |
|
|
58
|
+
street: string | null;
|
|
61
59
|
/**
|
|
62
60
|
* The house number this cadastre's own designator type states.
|
|
63
61
|
*/
|
|
64
|
-
house: string |
|
|
62
|
+
house: string | null;
|
|
65
63
|
/**
|
|
66
64
|
* The postal descriptor's code.
|
|
67
65
|
*/
|
|
68
|
-
postcode: string |
|
|
66
|
+
postcode: string | null;
|
|
69
67
|
/**
|
|
70
68
|
* The municipality-level administrative unit's name.
|
|
71
69
|
*/
|
|
72
|
-
locality: string |
|
|
70
|
+
locality: string | null;
|
|
73
71
|
/**
|
|
74
|
-
* The address-area name
|
|
72
|
+
* The address-area name.
|
|
73
|
+
* It is a settlement within the municipality.
|
|
75
74
|
*/
|
|
76
|
-
settlement: string |
|
|
75
|
+
settlement: string | null;
|
|
77
76
|
/**
|
|
78
|
-
* The publisher's own identifier for the address
|
|
77
|
+
* The publisher's own identifier for the address.
|
|
78
|
+
* It keys `source_id` where it exists.
|
|
79
79
|
*/
|
|
80
|
-
addressID: string |
|
|
80
|
+
addressID: string | null;
|
|
81
81
|
}
|
|
82
82
|
/**
|
|
83
83
|
* What distinguishes one cadastre's rows from another's.
|
|
@@ -99,11 +99,12 @@ export interface CadastralSource {
|
|
|
99
99
|
* The address area supplies a dependent locality only where the two differ.
|
|
100
100
|
* The line renders in Spain's order.
|
|
101
101
|
*
|
|
102
|
-
*
|
|
102
|
+
* Each adapter would otherwise repeat those 42 lines four times.
|
|
103
103
|
*
|
|
104
|
-
* Returns `
|
|
105
|
-
* nor an address area,
|
|
106
|
-
*
|
|
104
|
+
* Returns `null` in two cases.
|
|
105
|
+
* The address holds neither a municipality nor an address area, so the row would have no locality.
|
|
106
|
+
*
|
|
107
|
+
* Otherwise `formatAddressRow` returns `null` for the components it was given.
|
|
107
108
|
*/
|
|
108
|
-
export declare function cadastralRow(address: CadastralAddress, source: CadastralSource): CanonicalRow |
|
|
109
|
+
export declare function cadastralRow(address: CadastralAddress, source: CadastralSource): CanonicalRow | null;
|
|
109
110
|
//# sourceMappingURL=cadastre.d.ts.map
|
package/out/es/cadastre.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cadastre.d.ts","sourceRoot":"","sources":["../../lib/es/cadastre.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAMH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"cadastre.d.ts","sourceRoot":"","sources":["../../lib/es/cadastre.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAMH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAA;AAc1C;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAElD;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CACjC,MAAM,EAAE,WAAW,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC,EAC9C,GAAG,KAAK,EAAE,SAAS,MAAM,EAAE,GACzB,MAAM,GAAG,IAAI,CAMf;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAE3D;AAED;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAChC;;OAEG;IACH,MAAM,EAAE,MAAM,GAAG,IAAI,CAAA;IACrB;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB;;OAEG;IACH,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB;;OAEG;IACH,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB;;;OAGG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB;;;OAGG;IACH,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;CACxB;AAED;;;;;GAKG;AACH,MAAM,WAAW,eAAe;IAC/B,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;CACf;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,eAAe,GAAG,YAAY,GAAG,IAAI,CAiDpG"}
|
package/out/es/cadastre.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @license AGPL-3.0
|
|
4
4
|
* @author Teffen Ellis, et al.
|
|
5
5
|
*
|
|
6
|
-
* The two ways a Spanish cadastre states that it holds no value
|
|
6
|
+
* The two ways a Spanish cadastre states that it holds no value. All four cadastres share them.
|
|
7
7
|
*
|
|
8
8
|
* Spain publishes the INSPIRE Addresses theme through four cadastres: the Dirección General del
|
|
9
9
|
* Catastro for 52 provinces, and the Diputación Foral de Bizkaia, the Diputación Foral de Gipuzkoa
|
|
@@ -21,17 +21,16 @@ import { designator } from "#inspire/address";
|
|
|
21
21
|
* `S-N` is the Dirección General del Catastro's spelling, on 856 of Ceuta's 8,126 addresses.
|
|
22
22
|
* `S/N` is the Gobierno de Navarra's and the Diputación Foral de Gipuzkoa's.
|
|
23
23
|
*
|
|
24
|
-
*
|
|
25
|
-
* Neither is a number under any jurisdiction's rules, and
|
|
26
|
-
*
|
|
27
|
-
* so a reader scoped to the one spelling its own sample carried would write the other into a row.
|
|
24
|
+
* All four readers accept both.
|
|
25
|
+
* Neither is a number under any jurisdiction's rules, and a reader scoped to one
|
|
26
|
+
* spelling would write the other spelling into a row.
|
|
28
27
|
*/
|
|
29
28
|
const SIN_NUMERO = new Set(["s-n", "s/n"]);
|
|
30
29
|
/**
|
|
31
30
|
* Whether a designator value states that the address has no number.
|
|
32
31
|
*
|
|
33
32
|
* The whole value has to be the token.
|
|
34
|
-
* A value that
|
|
33
|
+
* A value that holds more, such as Gipuzkoa's `S/N-A`, `S/N-C` and `S/N-5`,
|
|
35
34
|
* states something further and is kept as the publisher wrote it: what the trailing part
|
|
36
35
|
* designates is not established, dropping it would merge several addresses of one building,
|
|
37
36
|
* and rewriting it would state a number the publisher did not.
|
|
@@ -40,7 +39,7 @@ export function isSinNumero(value) {
|
|
|
40
39
|
return SIN_NUMERO.has(value.trim().toLowerCase());
|
|
41
40
|
}
|
|
42
41
|
/**
|
|
43
|
-
* The house number a Spanish cadastre states, or
|
|
42
|
+
* The house number a Spanish cadastre states, or null where it states that there is none.
|
|
44
43
|
*
|
|
45
44
|
* @param types The publisher's own designator types, in the caller's order of precedence.
|
|
46
45
|
* The Dirección General del Catastro writes the type as the element text `1`, while Navarra
|
|
@@ -49,7 +48,7 @@ export function isSinNumero(value) {
|
|
|
49
48
|
export function spanishHouseNumber(byType, ...types) {
|
|
50
49
|
const value = designator(byType, ...types);
|
|
51
50
|
if (!value || isSinNumero(value))
|
|
52
|
-
return
|
|
51
|
+
return null;
|
|
53
52
|
return value;
|
|
54
53
|
}
|
|
55
54
|
/**
|
|
@@ -61,9 +60,7 @@ export function spanishHouseNumber(byType, ...types) {
|
|
|
61
60
|
* Where the cadastre holds no postcode it writes the same identifier with that segment empty,
|
|
62
61
|
* `ES.SDGC.PD.55.101.` and `ES.GFA.PD.059.`, against no feature of that id.
|
|
63
62
|
*
|
|
64
|
-
* Those truncated references are the only unresolvable ones measured in either
|
|
65
|
-
* file: 70 of Ceuta's 8,126 addresses carry one, while its thoroughfare
|
|
66
|
-
* and administrative-unit references resolve 8,126 of 8,126 each.
|
|
63
|
+
* Those truncated references are the only unresolvable ones measured in either file.
|
|
67
64
|
* A reader taking every unresolved reference as an absence would also swallow a genuinely
|
|
68
65
|
* broken join, so the two are separated here and every other unresolved reference raises.
|
|
69
66
|
*/
|
|
@@ -80,16 +77,17 @@ export function referenceStatesNoValue(key) {
|
|
|
80
77
|
* The address area supplies a dependent locality only where the two differ.
|
|
81
78
|
* The line renders in Spain's order.
|
|
82
79
|
*
|
|
83
|
-
*
|
|
80
|
+
* Each adapter would otherwise repeat those 42 lines four times.
|
|
84
81
|
*
|
|
85
|
-
* Returns `
|
|
86
|
-
* nor an address area,
|
|
87
|
-
*
|
|
82
|
+
* Returns `null` in two cases.
|
|
83
|
+
* The address holds neither a municipality nor an address area, so the row would have no locality.
|
|
84
|
+
*
|
|
85
|
+
* Otherwise `formatAddressRow` returns `null` for the components it was given.
|
|
88
86
|
*/
|
|
89
87
|
export function cadastralRow(address, source) {
|
|
90
88
|
const place = address.locality ?? address.settlement;
|
|
91
89
|
if (!place)
|
|
92
|
-
return
|
|
90
|
+
return null;
|
|
93
91
|
const components = {};
|
|
94
92
|
if (address.house) {
|
|
95
93
|
components.house_number = address.house;
|
|
@@ -103,22 +101,22 @@ export function cadastralRow(address, source) {
|
|
|
103
101
|
components.locality = place;
|
|
104
102
|
// The address area is a settlement within the municipality where the two names differ,
|
|
105
103
|
// and repeats the municipality where they do not.
|
|
106
|
-
//
|
|
104
|
+
// The repetition would state a dependent locality the publisher does not hold.
|
|
107
105
|
if (address.settlement && address.locality && address.settlement !== address.locality) {
|
|
108
106
|
components.dependent_locality = address.settlement;
|
|
109
107
|
}
|
|
110
108
|
const rendered = formatAddressRow(components, "ES", { singleLine: true });
|
|
111
109
|
if (!rendered)
|
|
112
|
-
return
|
|
110
|
+
return null;
|
|
113
111
|
const { raw, components: aligned } = rendered;
|
|
114
112
|
return {
|
|
115
113
|
raw,
|
|
116
114
|
components: aligned,
|
|
117
115
|
country: "ES",
|
|
118
116
|
locale: "es-ES",
|
|
119
|
-
//
|
|
120
|
-
//
|
|
121
|
-
//
|
|
117
|
+
// The row omits `register`.
|
|
118
|
+
// `runAdapter` stamps the adapter's own declaration onto it.
|
|
119
|
+
// A per-row `register` would repeat what the adapter already states once.
|
|
122
120
|
source: source.adapterID,
|
|
123
121
|
source_id: address.addressID
|
|
124
122
|
? `${source.adapterID}-${address.addressID}`
|