katabase / 4_TaggedData

Tagged catalogues.
GNU General Public License v3.0
0 stars 0 forks source link

Tagged Data - level 3

This repository contains digitised manuscripts sale catalogs encoded in XML-TEI at level 3.

The data have been cleaned (level 2) and post-processed (level 3).

Schema

You can find the ODD that validates the encoding in the repository Data_extraction (folder _schemas).

Workflow

Once the data have been cleaned and post-processed, we can check them. Some errors may appear and some corrections may be needed.

From this data, extractor-json.py extracts informations and retrieves them in an JSON file, available here.

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>
      <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>

into

{
"CAT_000146_e80_d1": {
    "desc": "L. a. s.; 1836, 1 p. in-8. 12",
    "price": 12.0,
    "author": "Cherubini",
    "date": "1836",
    "number_of_pages": 1.0,
    "format": 8,
    "term": 7,
    "sell_date": "1893-03"
  }
}

From export.json, we can proceed at the reconciliation of the catalogues entries.

If you want to learn more about the reconciliation, visite this repository.

If you want to query the database, don't hesitate to try our application.

Installation and use

* git clone https://github.com/katabase/3_TaggedData.git
* cd 3_TaggedData
* python3 -m venv my_env
* source my_env/bin/activate
* pip install -r requirements.txt
* cd script 
* python3 extractor_json.py

Note that you have to be in the folder scriptto execute extractor_json.py.

The output file, export.json, is in the folder output.

Unittest

If you want run some unittests, try in the folder script:

python3 test.py

Credits

Cite this repository

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/3_TaggedData.

Licence

Licence Creative Commons gnugpl


The catalogues are licensed under Creative Commons Attribution 4.0 International Licence and the code is licensed under GNU GPL-3.0.