1 PREFIX mo: <http://purl.org/ontology/mo/> 2 PREFIX sim: <http://purl.org/ontology/sim/> 3 PREFIX foaf: <http://xmlns.com/foaf/0.1/> 4 SELECT DISTINCT ?level ?similar_artist_name 5 WHERE 6 { 7 ?artist a mo:MusicArtist; 8 foaf:name "Shakira". 9 ?artist sim:link ?blank. 10 ?blank sim:relation mo:similar_to; 11 sim:level ?level; 12 sim:to ?similar_artist. 14 ?similar_artist a mo:MusicArtist; 16 foaf:name ?similar_artist_name. 17 }
<mo:MusicArtist rdf:about="http://zitgist.com/music/artist/bf24ca37-25f4-4e34-9aec-460b94364cfc"
<foaf:name>Shakira</foaf:name>
> To unsubscribe from this group, send email to
<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:rss="http://purl.org/rss/1.0/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns:mo="http://purl.org/ontology/mo/"
xmlns:sim="http://purl.org/ontology/similarity/">
<mo:MusicArtist rdf:about="http://zitgist.com/music/artist/bf24ca37-25f4-4e34-9aec-460b94364cfc">
<foaf:name>Shakira</foaf:name>
</mo:MusicArtist>
<mo:MusicArtist rdf:about="http://zitgist.com/music/artist/f4d5cc07-3bc9-4836-9b15-88a08359bc63">
<foaf:name>Beyonce</foaf:name>
</mo:MusicArtist>
<sim:Similarity>
<sim:element rdf:about="http://zitgist.com/music/artist/bf24ca37-25f4-4e34-9aec-460b94364cfc"/>
<sim:element rdf:about="http://zitgist.com/music/artist/f4d5cc07-3bc9-4836-9b15-88a08359bc63"/>
<sim:weight>0.9</sim:weight>
</sim:Similarity>
</rdf:RDF>
I have a few questions. For the similarity, should I have an rdf:about= the similarity link from the last.fm wrapper? Or am I just complicating things too much?
While music brainz looks like a great database, I think I'm getting to caught up in all the data available, since I only have the artists' names and not their mbid.
I tried querying it using n3 format, however I keep getting errors from the jean api, since I don't think it can handle parsing those formats, so I'm stuck using rdf/xml.
Naomi
> To unsubscribe from this group, send email to