Skip to content

Instantly share code, notes, and snippets.

View mromanello's full-sized avatar

Matteo Romanello mromanello

View GitHub Profile
@mromanello
mromanello / ajax_synopsis.json
Last active November 23, 2023 13:52
Synopsis of Sophocle's Ajax with section titles in DE, EN, FR, IT and line references as CTS URNs. Labels contain some markdown mark-up (e.g. italics).
{
"synopsis": [
{
"label": {
"de": null,
"en": "Prologue",
"fr": "Prologue",
"it": "Prologo"
},
"passage_urn": "urn:cts:greekLit:tlg0011.tlg003.ajmc-lj:1-133",
@mromanello
mromanello / SCoData_books_v1.2_2022-01.csv
Created July 4, 2023 10:41
Books dataset from the Shakespeare and Company Project
We can't make this file beautiful and searchable because it's too large.
uri,title,author,editor,translator,introduction,illustrator,photographer,year,format,uncertain,ebook_url,volumes_issues,notes,event_count,borrow_count,purchase_count,circulation_years,updated
https://shakespeareandco.princeton.edu/books/malory-morte-darthur/,Le Morte d'Arthur,"Malory, Thomas",,,,,,1485,Book,False,https://archive.org/details/mortedarthur02malo,,,7,7,0,1930;1932;1937;1938;1939,2021-11-14T13:57:51.282365+00:00
https://shakespeareandco.princeton.edu/books/more-utopia/,Utopia,"More, Thomas",,,,,,1516,Book,False,https://archive.org/details/utopiamo00more,,,2,2,0,1930;1950;1951,2021-10-31T17:47:49.103296+00:00
https://shakespeareandco.princeton.edu/books/norton-gorboduc/,Gorboduc,"Norton, Thomas",,,,,,1561,Book,False,,,,1,1,0,1950,2020-06-29T03:49:47+00:00
https://shakespeareandco.princeton.edu/books/lyly-euphues-anatomy-wit/,Euphues: The Anatomy of Wit,"Lyly, John",,,,,,1578,Book,False,https://archive.org/details/cu31924013122084,,,1,1,0,1941,2021-06-05T15:37:07+00:00
https://shakespeareandco.princ
@mromanello
mromanello / .gitignore
Last active March 1, 2023 17:25
AjMC: demo of PageLayoutAnalysis with YOLOv5
.python-version
__pycache__/
images/
runs/

Digital scholarly publications as APIs: the case of the Structures of Epic Poetry compendium

Matteo Romanello (École polytechnique fédérale de Lausanne)

Simone Finkmann (University of Rostock)

Abstract

Indices (e.g. locorum, nominum, rerum) facilitate the readers' orientation within a printed publication and help them find the information they are looking for. While the transition to digitalpublishing does not render indices less useful, it does require us to find an adequate adaptation of such indices for a digital publishing environment. What should an index of a digital scholarly publication look like? As argued by McGuire (2013), the natural translation of a printed index in a digital environment is an API (Application Programming Interface) — i.e. a machine-friendly interface aimed at enabling the programmatic access to content published on the Web — and the job of “good publishers of the future” is to provide APIs for their publications.

@mromanello
mromanello / Work with impresso images.ipynb
Created March 11, 2019 13:40
Minimal example to work with image information in impresso canonical data stored in S3
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mromanello
mromanello / 20190207.ipynb
Created March 8, 2019 09:36
Instructions to query the VeniceScholar API to find out what are the cited publications for which we have the full-text.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mromanello
mromanello / process BMCR.ipynb
Created November 23, 2017 11:23
Quick and dirty notebook to demonstrate the extraction of canonical references from one BMCR record.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns:dme="https://schereg.de.dariah.eu/namespaces/595b4c53127321587b2db26d/" xmlns:ns1="http://www.opengis.net/kml/2.2" xmlns:ns2="http://www.w3.org/2001/XMLSchema">
<Document>
<Placemark>
<name>Befund: 1114; Form: Kanne (, hellenistisch)</name>
<TimeSpan>
<begin>-336</begin>
<end>-30</end>
</TimeSpan>
<name>Befund: 31355; Form: Formschüssel (, )</name>
@mromanello
mromanello / AWOL-index language distribution.ipynb
Created November 18, 2016 11:50
A quick-and-dirty hack to see the language distribution of journals listed in the AWOL Index <http://isaw.nyu.edu/publications/awol-index/index.html>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mromanello
mromanello / desert_castle_levant.kml
Last active August 29, 2015 14:08
Mashup of data related to desert castles in the Levant using DAI's gazetteer and library catalogue. This mashup was created for This dataset was created for Sabine Thänert's presentation at the EVA 2014 conference (Berlin, 5-7 Nov. 2014). The visualization can be viewed at <http://geobrowser.de.dariah.eu/?csv=http://geobrowser.de.dariah.eu/stora…
<?xml version="1.0" encoding="utf-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document>
<!--
<ExtendedData xmlns:dc="http://purl.org/dc/elements/1.1/">
<dc:description>
This dataset was created for a presentation by Sabine Thänert at the EVA 2014 conferece (Berlin, 5-7 Nov. 2014).
The dataset contains data about data about publications contained in DAI's library catalog (Zenon)
that are related to desert castles of the Levant. This dataset can be visualized using <a href=" http://geobrowser.de.dariah.eu">DARIAH's geobrowser</a> to explore
the data through the dimensions of time and space.