Skip to content

Remove dead PMC full-text code from sources/pmid.py (superseded by PMCFullTextProvider) #52

@cmungall

Description

@cmungall

Follow-up from the review of #48.

PMIDSource.fetch no longer fetches PMC full text — that logic now lives in PMCFullTextProvider (etl/fulltext/pmc.py). The following methods in src/linkml_reference_validator/etl/sources/pmid.py are now dead (no live caller; _fetch_pmc_fulltext is only defined, never invoked):

  • _fetch_pmc_fulltext (~L257)
  • _get_pmcid (~L283)
  • _fetch_pmc_xml (~L323)
  • _fetch_pmc_html (~L359)

Scope

  • Delete the four methods (lines ~257–390).
  • Remove tests/test_sources.py::test_get_pmcid_handles_entrez_error (it covers the dead _get_pmcid).
  • Add an equivalent error-path test for PMCFullTextProvider._resolve_pmcid (Entrez elink failure → None) so PMC-ID resolution error handling stays covered.
  • Drop the stale references in src/linkml_reference_validator/plugins/REVIEW.md.

Deferred out of #48 to keep that PR focused (it was already flagged as a follow-up in the PR description, and noted again in the #48 review).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions