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
java -jar sparql-anything-0.8.0-SNAPSHOT.jar -q queries/getMelodyParam.sparql -i filePaths.xml -p "EssenFolk/?fileName.csv" -f CSV
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
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
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
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