Skip to content

PDF Inventory where title is PMID #22

@joshlawrimore

Description

@joshlawrimore

Josh will upload the existing inventory of PDFs to the S3 bucket osm-pdf-uploads. Each PDF from the IRP inventory will have PMID as its filename. Task is to:

Write code that parses the S3 bucket’s inventory to create a document entry, a works entry, and a identifier entry based on the document filehash and the PMID in the title. The upload should create an entry in the provenance table and the provenance_id should be included in the works, document, and identifier tables.

Code should be written to iterate over S3 inventory to ensure that PDF inventory in S3 and document’s table are synced. Any missing file hashes should be able to be reported and either added or removed from the documents table. If a PDF is removed, then all references to a missing pdf are removed from foreign keys from tables.
Run the oddpub code on the inventory to generate the oddpub metrics table.

The resultant database should be in an AWS postgres database.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions