Example 1
Retrieve all the tracks in the Salami dataset that correspond to MusicBrainz tracks
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX mo: <http://purl.org/ontology/mo/>
PREFIX salami: <http://nema.lis.illinois.edu/salamiEndpoint/>
SELECT ?o
WHERE {
?s mo:derived_from ?o.
}
Execute Sparql Query
Example 2
Overview of the predicates in the tripple-store
PREFIX mo: <http://purl.org/ontology/mo/>
PREFIX salami: <http://nema.lis.illinois.edu/salamiEndpoint/>
SELECT ?p (COUNT(?p) AS ?pCount)
WHERE {
?s ?p ?o.
}
GROUP BY ?p
ORDER BY ?p
Execute Sparql Query
Example 3
Find out the distribution between mono and stereo tracks.
PREFIX mo: <http://purl.org/ontology/mo/>
PREFIX salami: <http://nema.lis.illinois.edu/salamiEndpoint/>
SELECT (STR(?channel) as ?channelStr) (COUNT(?channel) AS ?freqCount)
WHERE {
?signalID a mo:DigitalSignal ;
mo:channels ?channel.
}
GROUP BY ?channel
Execute Sparql Query