Methodology

Python and XSLT were used extensively in our research process to do larger-scale data transformation. These files, along with a brief description, are supplied below for simple viewing and download.

Scripts and Stylesheets

insertHeader:

Insert text into the header element of all the XMLs in the directory. Used in this project to attach music files as well as links to xml and html files.

nonedownload

schema:

Used to attach schema to all XML files in the directory

nonedownload

rapMain:

Used to generate gefx file (Gephi graph)

nonedownload

refs:

Generate a list of lines from songs that have a particular ref in them, as well as the list of songs for which that ref is the most common one (see our References page here)

nonedownload

renamer:

Tiny but useful. Acts like a find and replace within a directory of files on file names.

nonedownload

svg:

Takes static SVG export from Gephi and animates it (add fading/enhancing). Will work on any proper SVG export, but the file size will grow exponentially with the increasing number of nodes.

nonedownload

converter:

Used to transform our marked up xml files to html and generate javascript enabled svg graphs based on ref counts

nonedownload

refConverter:

Used to convert ref info supplied by another script into the html found on our References page, available again here

nonedownload

wideBarConverter:

Used to convert percentage info supplied by another script into the wide comparative graph found on our graphs page (the first one-click here)

nonedownload

bigSvgConverter:

Essentially an xsl to produce an enlarged, rotated, and classier version of the svg graphs on each song page with larger input data ranges.

nonedownload