Page MenuHomePhabricator

Analyze sample of PDFs and extract metadata
Closed, ResolvedPublic

Description

We exported a list of URLs from logstash. These URLs have all been tried by users because they wanted to add the respective citation to Citoid.

We want to have a look at the metadata of these PDFs to get a better understanding on how many PDFs have useful metadata.

Tasks

Outcome (to review)

Code: https://gitlab.com/wmde/technical-wishes/pdf-metadata-checker

Findings: overview of retrieved metadata

  • 16 of the 78 files could not be downloaded (possibly bot checks)
  • 2 were not PDFs but other formats
  • 2 contain a DOI in a "doi" field, another one is hidden inside another field
  • "useful metadata": 7 out of 68 (4 would need user interaction, 2 are unclear). 55 return no helpful metadata or none at all.

Open questions

  • Is our sample set representative enough? Or large enough? Should we look for even more?
  • Why are there 404s, that can be downloaded by hand? Are all of them bot checks?
  • Can we also use the DOIs in the PDF metadata to retrieve better metadata (see T429677: Improve the way how Citoid extracts DOIs from URLs (M))?
  • How can we decide what "useful" metadata is?

What I did not do (time)

  • web interface
  • check file size
  • check all 404 manually

Event Timeline

awight renamed this task from Stress test for PDF Metadata to Analyze sample of PDFs and extract metadata.Jun 25 2026, 6:46 AM
awight updated the task description. (Show Details)