Skip to content

Latest commit

 

History

History
43 lines (34 loc) · 1.85 KB

README.md

File metadata and controls

43 lines (34 loc) · 1.85 KB

DOI

Showcase MusicXML

Get list of XML files

This generates a file with the list of local paths (note: it will be different on each execution environment!)

java -jar sparql-anything-0.8.0-SNAPSHOT.jar -q queries/getXMLPaths.sparql -o filePaths.xml -f XML

Generate melodies from the AltDeu10 book of the music21 Essen Folk Collection.

java -jar sparql-anything-0.8.0-SNAPSHOT.jar -q queries/getMelodyParam.sparql -i filePaths.xml -p "EssenFolk/?fileName.csv" -f CSV

Get list of CSV melodies files

This generates a file with the list of local CSVs (note: it will be different on each execution environment!)

java -jar sparql-anything-0.8.0-SNAPSHOT.jar -q queries/getCSVPaths.sparql

Generate Knowledge Graph (3-Grams)

This generates a knowledge graph, for each loaded file, in Turtle syntax, of the 3-grams that can be constructed for each given melody.

java -jar sparql-anything-0.8.0-SNAPSHOT.jar -q queries/trigKGBuildParam.sparql -i csvPaths.xml -f TTL -o EssenFolk/EssenFolkTrigramKG/trigKG-?fileName.ttl

Analyse the 3-grams from the AltDeu10 book of the music21 Essen Folk Collection

This generates a CSV file, containing the 3-gram, its frequency in the AltDeu10 book and its probability.

java -jar sparql-anything-0.8.0-SNAPSHOT.jar -q queries/trigramAnalysis.sparql -l EssenFolk/EssenFolkTrigramKG -f CSV -o trigramAnalysis.csv

Generate Knowledge Graph (Note Ontology Population)

java -jar sparql-anything-0.8.0-SNAPSHOT.jar -q queries/populateOntology.sparql -v filePaths.xml -p "knowledge-graph/?fileName.ttl" -f TTL

to test a single file:

java -jar sparql-anything-0.8.0-SNAPSHOT.jar -q queries/populateOntology.sparql -v filePath="./musicXMLFiles/AltDeu10/AltDeu-017.musicxml" -v fileName="AltDeu-017" -f TTL