ds-pytools

[!WARNING] This notebook is no longer maintained. It has been replaced by erara-explorer (source repository), a browser tool for downloading metadata, full texts, entities and images from e-rara and e-manuscripta without programming.

▶ Open the tool: English · Deutsch

The notebook and the description below are kept for reference only and are no longer updated.

e-manuscripta: accessing metadata and fulltexts

Contents

The Python Jupyer notebook e_manuscripta_metadata_fulltext.ipynb aims to help you with accessing metadata and fulltexts of e-manuscripta, the platform for manuscript material from Swiss libraries and archives. It uses the OAI-PMH interface of the e-manuscripta service for retrieving metadata in different formats, and the e-manuscripta website in addition for downloading fulltexts.

No Python available on your machine? Use the online Jupyter notebook with Binder: Binder

Also, a static version of the notebook is available via Jupyter nbviewer.

The notebook consists of four parts:

  1. Introduction
  2. Metadata access with Polymatheia
  3. Direct metadata access via OAI-PMH
  4. Download fulltext files from e-manuscripta website.

You may start from the beginning and walk trough the whole notebook or jump to the section that suits you. Also, it’s a good idea to play around with the code in the cells and see what happens. Have fun!

Have any comments, questions and the like? Try kathi.woitas[at]unibe.ch.

0. Introduction

The introduction first offers an overview of the scope and contents of the notebook. After a short illustration of the e-manuscripta platform finally there is a summary of main concepts of the OAI-PMH protocol.

1. Metadata access with Polymatheia

The chapter introduces the Polymatheia library, which allows very convenient requests to the OAI interface by wrapping otherwise more elaborate code. Also, it offers methods to handle the retrieved data. Working with Polymatheia is an easy solution for quick access without going deep into coding. You might see the documentation of the Polymatheia library.

The chapter makes use of the following OAI verbs:

Then, it shows how to access certain metadata elements and how to save and recover the retrieved data.

2. Direct metadata access via OAI-PMH

The Polymatheia library doesn’t offer methods for all OAI verbs. For instance, there is no ListIdentifiers and no GetRecord wrapper. That’s where more manual coding is needed. On the other hand accessing the e-manuscripta OAI-PMH directly gives you more freedom how to interact with the interface, naturally. You can use the functions without deeper programming skills - nevertheless these might be helpful if you want to adapt those functions for yourself.

The chapter makes use of the follwing OAI verbs:

Therefore, it defines the following functions:

3. Download fulltext files from e-manuscripta website

Downloading e-manuscripta fulltetxts in PDF format can be done from the e-manuscripta website. When retrieving all fulltext files of a given OAI set, the OAI-PMH interface will be used in addition.

The chapter defines the following functions: