choco
choco copied to clipboard
Experimental queries with ChoCo's new model
This is a thread to collect the new queries in ChoCo+MusicMeta, following the ongoing update.
1.1 README Query: Michelle
Give me the first 10 chord occurrences in an annotation of "Michelle"
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX jams: <http://w3id.org/polifonia/ontology/jams/>
PREFIX mm: <http://w3id.org/polifonia/ontology/music-entity/>
PREFIX core: <http://w3id.org/polifonia/ontology/core/>
SELECT DISTINCT ?observationValue ?startTime ?startTimeType ?duration ?durationType
WHERE {
?musicentity a mm:MusicEntity ;
core:title "Michelle" ;
jams:hasJAMSAnnotation ?annotation .
?annotation jams:includesObservation ?observation ;
jams:hasAnnotationType "chord" .
?observation rdfs:label ?observationValue ;
jams:hasMusicTimeInterval [jams:hasMusicTimeDuration [ jams:hasValue ?duration ; jams:hasValueType ?durationType ] ;
jams:hasMusicTimeStartIndex [ jams:hasMusicTimeIndexComponent [ jams:hasValue ?startTime ; jams:hasValueType ?startTimeType ]]] .
}
ORDER BY (?startTime)
LIMIT 10