This repository contains digitised manuscripts sale catalogs encoded in XML-TEI at level 2.
The data have been cleaned (level 2) but not post-processed (level 3) yet.
You can find the ODD that validates the encoding in the repository Data_extraction (folder _schemas
).
Once the data have been cleaned, we can start to extract information from the desc
.
extractor-xml.py
extracts informations and then retrieves them in the same XML file (level 3).
The script transforms this
<item n="80" xml:id="CAT_000146_e80">
<num>80</num>
<name type="author">Cherubini (L.),</name>
<trait>
<p>l'illustre compositeur</p>
</trait>
<desc>L. a. s.; 1836, 1 p. in-8.</desc>
<measure commodity="currency" unit="FRF" quantity="12">12</measure>
</item>
into
<item n="80" xml:id="CAT_000146_e80">
<num>80</num>
<name type="author">Cherubini (L.),</name>
<trait>
<p>l'illustre compositeur</p>
</trait>
<desc>
<term>L. a. s.</term>;<date>1836</date>,
<measure type="length" unit="p" n="1">1 p.</measure>
<measure unit="f" type="format" n="8">in-8</measure>.
<measure commodity="currency" unit="FRF" quantity="12">12</measure>
</desc>
</item>
To carry this task we use extractor_xml.py
[available here].
* git clone https://github.com/katabase/2_CleanedData.git
* cd 2_CleanedData
* python3 -m venv my_env
* source my_env/bin/activate
* pip install -r requirements.txt
* cd script
* python3 extractor_xml.py directory_to_process
Note that you have to be in the folder script
to execute extractor_xml.py
and that the script only works with filenames ending with _clean.xml
(files must have been beforehand cleaned).
The output files will be in the folder output
.
- Scripts were created by Matthias Gille Levenson and improved by Alexandre Bartz with the help of Simon Gabay.
- The catalogs were encoded by Lucie Rondeau du Noyer, Simon Gabay, Matthias Gille Levenson, Ljudmila Petkovic and Alexandre Bartz.
Alexandre Bartz, Simon Gabay, Matthias Gille Levenson, Ljudmila Petkovic and Lucie Rondeau du Noyer, Manuscript sale catalogues, Neuchâtel: Université de Neuchâtel, 2020, https://github.com/katabase/2_CleanedData.
The catalogues are licensed under Creative Commons Attribution 4.0 International Licence and the code is licensed under GNU GPL-3.0.