v0.1.16: resolve_external_id: URL/whitespace normalization, datatype gate
resolve_external_id: URL/whitespace normalization, datatype gate
Four issue fixes harden identifier normalization and validation in wikidata_resolve_external_id.
Fixed:
- Identifier-resolver URL prefixes (
https://doi.org/,https://dx.doi.org/, a baredoi:scheme,https://pubmed.ncbi.nlm.nih.gov/,https://orcid.org/) are stripped before the per-property switch innormalizeExternalId()(#18) normalizeId()trims surrounding whitespace before theQ/Pformat check, fixing every tool and thewikidata://entity/{id}resource that inherit it; theresolve_external_idinlinepropertycheck gets the same trim directly (#21)valueis trimmed ahead of the resolver-prefix strip, closing the padding gap that made a padded DOI or IMDb ID returnmatch: null(#25)
Added:
not_external_id_propertyerror onwikidata_resolve_external_id, thrown when a property does not exist or its data type is notexternal-id, backed by a newfetchPropertyDataType()REST call (#16)
203 tests pass; bun run devcheck clean.