Skip to content

Instantly share code, notes, and snippets.

View raffazizzi's full-sized avatar
🌈

Raffaele Viglianti raffazizzi

🌈
View GitHub Profile
{
"@context": "http://iiif.io/api/presentation/3/context.json",
"id": "https://dlib.biblhertz.it/iiif/bncrges1323/manifest.json",
"type": "Manifest",
"label": {
"en": [
"Zucchi, Philosophia magnetica"
]
},
"metadata": [
@raffazizzi
raffazizzi / CRIM_Mass_0001.xml
Created June 29, 2020 20:14
Interdependent MEI files, one for the mass and one for each movement without duplication of data
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="https://music-encoding.org/schema/4.0.1/mei-CMN.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
<?xml-model href="https://music-encoding.org/schema/4.0.1/mei-CMN.rng" type="application/xml" schematypens="http://purl.oclc.org/dsdl/schematron"?>
<mei xmlns="http://www.music-encoding.org/ns/mei" xmlns:xi="http://www.w3.org/2001/XInclude"
xml:id="CRIM_MASS-0001">
<meiHead xmlns="http://www.music-encoding.org/ns/mei" xml:id="CRIM_MASS-0001">
<altId>CRIM_MASS-0001</altId>
<fileDesc>
<titleStmt>
<title>Missa Confitemini</title>
@raffazizzi
raffazizzi / CRIM_Mass_0001.xml
Created June 29, 2020 20:13
Split MEI file where the Mass is the main file, pointing to movement files encoded as fragments
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="https://music-encoding.org/schema/4.0.1/mei-CMN.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
<?xml-model href="https://music-encoding.org/schema/4.0.1/mei-CMN.rng" type="application/xml" schematypens="http://purl.oclc.org/dsdl/schematron"?>
<mei xmlns="http://www.music-encoding.org/ns/mei" xmlns:xi="http://www.w3.org/2001/XInclude" xml:id="CRIM_MASS-0001">
<meiHead>
<altId>CRIM_MASS-0001</altId>
<fileDesc>
<titleStmt>
<title>Missa Confitemini</title>
<respStmt>
@raffazizzi
raffazizzi / CRIM_Mass_0001_1.xml
Created June 29, 2020 20:10
Example of CRIM metadata in single movement file
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="https://music-encoding.org/schema/4.0.1/mei-CMN.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
<?xml-model href="https://music-encoding.org/schema/4.0.1/mei-CMN.rng" type="application/xml" schematypens="http://purl.oclc.org/dsdl/schematron"?>
<mei xmlns="http://www.music-encoding.org/ns/mei" xml:id="CRIM_MASS-0001_1">
<meiHead>
<!-- Since we don't have ONE file for the mass, but the database does,
I think it'd be useful to have both mass and movement ids-->
<altId>CRIM_MASS-0001</altId>
<altId>CRIM_MASS-0001_1</altId>
<fileDesc>
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0">
<teiHeader>
<fileDesc>
<titleStmt>
<title>Herbsttag</title>
<author>Rainer Maria Rilke</author>
</titleStmt>
<publicationStmt>
@raffazizzi
raffazizzi / hipsterTEI.xml
Last active August 17, 2021 22:11
Pagination with CETEIcean
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
<?xml-model href="http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng" type="application/xml"
schematypens="http://purl.oclc.org/dsdl/schematron"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0">
<teiHeader>
<fileDesc>
<titleStmt>
<title>Hipster TEI (paginated)</title>
</titleStmt>
@raffazizzi
raffazizzi / mei.xml
Created March 10, 2018 21:17
A basic MEI template
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="https://raw.githubusercontent.com/music-encoding/music-encoding/develop/schemata/mei-CMN.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
<?xml-model href="https://raw.githubusercontent.com/music-encoding/music-encoding/develop/schemata/mei-CMN.rng" type="application/xml" schematypens="http://purl.oclc.org/dsdl/schematron"?>
<mei xmlns="http://www.music-encoding.org/ns/mei">
<meiHead>
<fileDesc>
<titleStmt>
<title></title>
</titleStmt>
<pubStmt></pubStmt>
@raffazizzi
raffazizzi / template.xml
Created February 20, 2018 21:41
TEI template
<?xml version="1.0" encoding="UTF-8"?>
<?xml-model href="http://www.tei-c.org/Vault/P5/current/xml/tei/custom/schema/relaxng/tei_all.rng" type="application/xml" schematypens="http://relaxng.org/ns/structure/1.0"?>
<?xml-model href="http://www.tei-c.org/Vault/P5/current/xml/tei/custom/schema/relaxng/tei_all.rng" type="application/xml" schematypens="http://purl.oclc.org/dsdl/schematron"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0">
<teiHeader>
<fileDesc>
<titleStmt>
<title>Title</title>
</titleStmt>
<publicationStmt>
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:math="http://www.w3.org/2005/xpath-functions/math"
xmlns:tei="http://www.tei-c.org/ns/1.0"
exclude-result-prefixes="xs math"
version="2.0">
<xsl:output method="text"/>
@raffazizzi
raffazizzi / crim.json
Last active June 13, 2017 17:24
Example CRIM data structure
{
"relationships": [{
"types": {
"rt-nm": {
"label": "New Material"
}
},
"scoreA": "c10",
"scoreB": "c24",
"scoreA_ema": "2-4/1,1,1/@3,@1-3,@1",