Skip to main content
Have a personal or library account? Click to login
Petroleum and Press – Concepts about Oil in Polish Periodical Press, 1853–1918 Cover

Petroleum and Press – Concepts about Oil in Polish Periodical Press, 1853–1918

By:  and    
Open Access
|Jun 2026

Full Article

1 Overview

Repository location

The dataset is published in the Max Planck Digital Library Keeper system. Due to the overall size of the dataset, only a random sample has been published on Zenodo. To access the data without a login to the Keeper system a share link is provided.

Context

Work to produce this dataset commenced as part of the research project “Modelling Socio-Epistemic Networks” (ModelSEN), see (Kaye et al., 2024) for the theoretical background. The authors continued the work after the project’s funding period ended. Currently, this work is linked to the “Petroleum, Press, and Politics” project at the Max Planck Institute of Geoanthropology. The authors are analysing the data with the intention of publishing a research article investigating how discourses around petroleum developed and changed over time in the Polish periodical press, from 1853 when first commercial petroleum wells were drilled in Bóbrka, Galicia (Eastern Europe), to 1918, which marked the end of the First World War and the regaining of independence by the Polish state.

2 Method

The dataset was created with the following steps: data gathering, layout detection, Optical Character Recognition (OCR), and corpus formatting. For each step, data processing scripts were written. Due to the amount of processed data, some steps had to be separated into sub-steps.

Steps

Data gathering

The first step was to identify and download the relevant documents from the Polona digital library. Since April 2023, there have been two versions of Polona, each on a separate domain: polona.pl and polona2.pl. This dataset stems from the older version (polona2.pl). To find the relevant documents these keywords (including all their declensions) were chosen: nafta [petroleum], nafciarz [oil man], ropa [crude oil], rafineria [refinery], bitum [bitumen]. The words were chosen for their relatively unambiguous meaning associated with petroleum extraction. Nonetheless, the word ropa produced some noise, as without the adjective naftowa [of petroleum] that typically follows it, ropa can also mean pus, and it is also the latter part of the word Europa [Europe], which is problematic in documents where the original OCR was poor. Various filters were applied to the search including: only documents in the public domain, documents produced between 1853 and 1918, and falling into the category of serials (which included newspapers and periodicals). This produced almost 114,000 relevant results. To download these documents at scale, the Polona API and a Python wrapper were used. The downloading had to be done in batches of 150 at a time due to the API’s limitations. The downloaded PDF batches were accompanied by JSON files containing metadata of individual documents, including a short text snippet of the keyword context. It transpired that in the daily publications, petroleum was often mentioned in passing in news items or in lists of market prices of various commodities, whereas in serial press that appeared at a lower frequency, mentions of petroleum were, overall, found in longer, more in-depth articles. In the interest of the research project, it was determined that, in the first instance, further work would be conducted on periodicals only. By excluding daily publications, the number of relevant documents was reduced to 18,361, which are represented in this dataset, see Figure 1.

Figure 1

Maps with present-day borders, and a timeline visualising the geographical and chronological distribution of the periodical issues contained in the dataset. Figure created with the DARIAH-DE Geo-browser and datasheet editor (DARIAH-DE, 2021).

The downloaded PDFs had mixed OCR quality, from documents where OCR was good, with recognised diacritics, appropriately spaced words, and the column layout of the text retained, to ones with very low OCR quality.

Document segmentation

To improve OCR quality across all documents and reduce noise, re-detecting the layout and reading order of each periodical page was necessary. Each PDF document was split into one image per page using the ImageMagic convert function

convert -density 200 paper.pdf -quality 100 output-%d.jpg

and the resulting images have been copied into a folder named by the identifier of the source PDF, assigned by the Polona archive.

Layout detection

Using the Eynollah software package, the layout of each image file was detected and saved in PAGE-XML format, see the file run_eynollah.py in the published datasets scripts folder (Rezanezhad et al., 2023). While the runtime for this was very long with approximately four minutes per page, the returned quality and reading order detection justified the invested time. Since the used implementation of Eynollah returned layout detection but no OCR itself, the produced layout data in PAGE XML format (Pletschacher & Antonacopoulos, 2010) was transferred together with the split JPG images into a suitable format for the OCR-D workflow (Engl, 2020). To get the ordering of pages correctly the image names had to be changed to have prepended zeros in the page number, see batch_rename.sh. For consistency, the folder structure was renamed as well. This led to changes in the PAGE-XML file as well, see fix_imagepaths.sh.

METS-MODS creation

For each periodical folder an OCR-D workspace with a corresponding Metadata Encoding & Transmission Standard/Metadata Object Description Schema (METS/MODS) XML file was created and all layout and image data added into the XML file.1 To enable the workflow creation, the process was parallelised with the Docker-based OCR-D workflow framework2 and run on a high-performance computing cluster.

docker run~--rm -u $(id -u) -v $PWD:/data -v ocrd-models:/models \~-- ocrd/all:maximum ocrd-make -j 24 -f ocr-workflow.mk

with the workflow given as a MakeFile, see ocr-workflow.mk.

OCR

For the OCR, Tesseract for the Polish language was used (Smith, 2007), and the resulting data was transformed into Analyzed Layout and Text Object (ALTO) and plain text format, see Figure 2.

Figure 2

An example of a processed page of one of the periodicals in the dataset, Bluszcz: pismo tygodniowe illustrowane dla kobiet [Ivy: Illustrated Weekly Journal for Women], showing page segmentation of regions and words, with the keyword highlighted, in Page Viewer software (PRImA & Clausner, 2019). Shown here is page 120 of the document with ID: NDc2OTEyNDc (Odkrycie, 1866).

Dataset creation and preservation

The final output for each periodical after the full workflow consists of subfolders for images, layout, OCR, text files, and XML in ALTO format.3 To facilitate uploading the large dataset (approx. 470GB) to the Max Planck Digital Library (MPDL) Keeper system, the RDM Helper tool was used, see upload_to_archive.py (Vogl & Benne, 2024).

Data overview and access

To provide an easier access to the found text parts, an overview file of all detected text regions containing any inflection of the above target words was created and merged with the respective metadata of the periodicals and is part of the full dataset in JSON-L format (file polona_matching_text_regions.json in folder example). An example use of this extracted data is shown in Figure 3. All scripts for the full workflow are included in the published dataset in the subfolder scripts.

Figure 3

An example of the type of analysis that can be conducted using the dataset: BERTopic topic modelling (Grootendorst, 2022). Visualisation of topics found in sections related to petroleum in periodicals in the dataset.

Quality control

The resulting dataset was spot checked for quality using the OCR-D browser.4 This qualitative evaluation showed excellent OCR quality. Individual confidence scores of Tesseract OCR for words, lines and text regions are encoded in each PAGE XML file.

3 Dataset Description

Repository name

MPDL Keeper system https://keeper.mpdl.mpg.de/

Object name

Set of ZIP files containing folders named after the unique identifier of the periodical, subfolders for all file types.

Format names and versions

XML in METS/MODS, PAGE XML and ALTO format as well as TXT and JPG image files.

Creation dates

2023-05-01 to 2026-04-14.

Dataset creators

Aleksandra Kaye and Malte Vogl (Max Planck Institute of Geoanthropology), Raphael Schlattmann (Technical University Berlin)

Language

The articles in the dataset are in Polish. Metadata labels are in English.

License

CC0.

Publication date

Originally published on 2025-12-02. Updated on 2026-04-14.

4 Reuse Potential

The presented data has significant reuse potential for digital humanities scholars, historians of science, energy, economic and environmental historians, as well as others keen to better understand the foundations, technological transformations, and regional dynamics that have shaped the region’s petro-environmental landscapes.

Between 1885 and 1909, the Kingdom of Galicia and Lodomeria, a constituent possession under Austrian control that nonetheless retained a degree of provincial autonomy, became the world’s third-largest oil producer (Frank, 2007; Graniczny et al., 2015). The period from which most of the publications in the dataset originate, that is, between 1880 and 1910, coincides with the period of intense oil exploitation and the growth of the Polish print industry, marked by the proliferation of new periodicals (Wrona, 2007).

As a large corpus of Polish periodicals from the period with good layout and thereby enabling region detection, it allows, for example, the extraction of advertisements, illustrative images, and classifieds from the time. Experts in socio-linguistics could follow the evolution of the Polish language aimed at different audiences, while AI/ML researchers could use the corpus as a silver standard to test novel object detection algorithms. Those looking for a challenge may wish to figure out a way to link the segmented sense units, at times separated over different pages or even issues of a periodical, into rejoined full articles.

The dataset also allows for studying public discourses in connection to extractivism, including the associated set of beliefs, values, and ways of knowing that were used to justify and perpetuate the extraction of oil and other associated resources from the environment. See for example, in a different geographical context, the special issue of Journal of Energy History, on petrocultures (Åabergberg et al., 2023) and in particular the article therein on manifestations of oil in 1920s Scandinavian newspapers (Furuseth, 2023). A further interesting line of investigation opened by this dataset is the examination of early criticisms of the environmental and social harm of oil mining, which may have foreshadowed contemporary discourses related to the hydrocarbon industry and mining more broadly.

Notes

[1] See https://ocr-d.de/en/user_guide [last accessed 4th May 2026] for an excellent user guide describing the process in detail and https://www.loc.gov/standards/mods/ [last accessed 4th May 2026] and https://www.loc.gov/standards/mets/ [last accessed 4th May 2026] for the MODS and METS standard definition.

[2] See https://github.com/bertsky/workflow-configuration [last accessed 4th May 2026] for details.

[3] Folders are named OCR-D-EX with EX: IMG, SEG, OCR, TXT, ALTO.

[4] See https://github.com/hnesk/browse-ocrd [last accessed 4th May 2026].

Acknowledgements

We are grateful for the discussions and support from Clemens Neudecker (Eynollah) and Hassan el-Hajj (initial layout detection work).

Author Contributions

Aleksandra Kaye (Conceptualisation, Data curation, Formal analysis, Validation, Visualisation, Writing – original draft)

Malte Vogl (Data curation, Methodology, Software, Validation, Visualisation, Writing – original draft)

DOI: https://doi.org/10.5334/johd.502 | Journal eISSN: 2059-481X
Language: English
Page range: 80 - 80
Submitted on: Dec 16, 2025
Accepted on: Apr 22, 2026
Published on: Jun 23, 2026
Published by: Ubiquity Press
In partnership with: Paradigm Publishing Services

© 2026 Aleksandra Kaye, Malte Vogl, published by Ubiquity Press
This work is licensed under the Creative Commons Attribution 4.0 License.