Skip to content

v0.1.16: resolve_external_id: URL/whitespace normalization, datatype gate

Choose a tag to compare

@cyanheads cyanheads released this 14 Jul 23:36
v0.1.16
6f94dd9

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 bare doi: scheme, https://pubmed.ncbi.nlm.nih.gov/, https://orcid.org/) are stripped before the per-property switch in normalizeExternalId() (#18)
  • normalizeId() trims surrounding whitespace before the Q/P format check, fixing every tool and the wikidata://entity/{id} resource that inherit it; the resolve_external_id inline property check gets the same trim directly (#21)
  • value is trimmed ahead of the resolver-prefix strip, closing the padding gap that made a padded DOI or IMDb ID return match: null (#25)

Added:

  • not_external_id_property error on wikidata_resolve_external_id, thrown when a property does not exist or its data type is not external-id, backed by a new fetchPropertyDataType() REST call (#16)

203 tests pass; bun run devcheck clean.

CHANGELOG v0.1.16