Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Using The Music Ontology for Finding Similar Users

 Group <music-ontology-specification-group@googlegroups.com>
Received: by 10.58.151.104 with SMTP id up8mr417735veb.6.1347665439934;
        Fri, 14 Sep 2012 16:30:39 -0700 (PDT)
X-BeenThere: music-ontology-specification-group@googlegroups.com
Received: by 10.220.154.17 with SMTP id m17ls3886239vcw.1.gmail; Fri, 14 Sep
 2012 16:30:39 -0700 (PDT)
Received: by 10.58.64.16 with SMTP id k16mr754989ves.4.1347665439419;
        Fri, 14 Sep 2012 16:30:39 -0700 (PDT)
Received: by 10.58.64.16 with SMTP id k16mr754988ves.4.1347665439408;
        Fri, 14 Sep 2012 16:30:39 -0700 (PDT)
Return-Path: <kur...@gmail.com>
Received: from mail-vb0-f44.google.com (mail-vb0-f44.google.com [209.85.212.44])
        by gmr-mx.google.com with ESMTPS id ef10si94157vdb.3.2012.09.14.16.30.39
        (version=TLSv1/SSLv3 cipher=OTHER);
        Fri, 14 Sep 2012 16:30:39 -0700 (PDT)
Received-SPF: pass (google.com: domain of kur...@gmail.com designates 209.85.212.44 as permitted sender) client-ip=209.85.212.44;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of kur...@gmail.com designates 209.85.212.44 as permitted sender) smtp.mail=kur...@gmail.com; dkim=pass header...@gmail.com
Received: by vbbfc26 with SMTP id fc26so7230794vbb.17
        for <music-ontology-specification-group@googlegroups.com>; Fri, 14 Sep 2012 16:30:39 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=mime-version:in-reply-to:references:date:message-id:subject:from:to
         :content-type;
        bh=kvcii9aF/QFQbwJWjpzPdSQwo8d0h5EI+9uFY7ng4Ys=;
        b=YB/ATssApoV9BDQK+66m+zZz9Zy00xvJibugfBXanTmAwGaUV/BHAQHZIv61e3XpGd
         n4O552KzcLCQxGKyNVip/UkEKc+/TrloNdy76Qz/BVaCnGCq8q/NEiCHgtFubrsX2/ts
         JtynwRsb/V6HzQ1BZsK6yBqvP5I8rLzCufPuK3WKpIusubfdLA/4qpENeDrWlFnYvpWU
         VfSk9FTJz2xfHkbnRfpTpUi/JU5dlhkiSNsP4y2P6H07ndx57XFPoFlsX1YFFAOuVHEb
         ZJ8etMJc/WzNVJoI6wjFZzwfN8hvkoSy8tCnT14uNaaNwdrD6N1ySGxPNdMr0bUE6f2j
         rtZA==
MIME-Version: 1.0
Received: by 10.52.35.174 with SMTP id i14mr438128vdj.87.1347665439029; Fri,
 14 Sep 2012 16:30:39 -0700 (PDT)
Received: by 10.58.181.202 with HTTP; Fri, 14 Sep 2012 16:30:38 -0700 (PDT)
In-Reply-To: <CAAaEK51CnDVGOeQdGLp0p5Oe_d05cyM+Z0uPaY9sBznXXh-...@mail.gmail.com>
References: <a3c80941-f1c4-4627-9ae5-0daf54c1edc4@googlegroups.com>
	<0ebff0d1-457f-4109-9387-e430df473bad@googlegroups.com>
	<24ce12ae-26f1-45db-b595-1bdb1c922b59@googlegroups.com>
	<CAAaEK51CnDVGOeQdGLp0p5Oe_d05cyM+Z0uPaY9sBznXXh-...@mail.gmail.com>
Date: Fri, 14 Sep 2012 19:30:38 -0400
Message-ID: <CAAaEK50GZZca1Fv5Q9Ab3SEo9mDX6wsSV0Vec6A1Sr-=KWg...@mail.gmail.com>
Subject: Re: Using The Music Ontology for Finding Similar Users
From: Kurt J <kur...@gmail.com>
To: music-ontology-specification-group@googlegroups.com
Content-Type: text/plain; charset=ISO-8859-1

Sorry, yet again i posted wrong N3 - i cut out a large portion.  This
is the valid N3:

@prefix mo: <http://purl.org/ontology/mo/> .
@prefix sim: <http://purl.org/ontology/similarity/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .

<http://zitgist.com/music/artist/bf24ca37-25f4-4e34-9aec-460b94364cfc>
a mo:MusicArtist;
  foaf:name "Shakira" .

<http://zitgist.com/music/artist/f4d5cc07-3bc9-4836-9b15-88a08359bc63>
a mo:MusicArtist;
  foaf:name "Beyonce".

:mysim a sim:Similarity;
  sim:element <http://zitgist.com/music/artist/f4d5cc07-3bc9-4836-9b15-88a08359bc63>;
  sim:element <http://zitgist.com/music/artist/bf24ca37-25f4-4e34-9aec-460b94364cfc>;
  sim:weight "0.9" .


And the XML was mangled a bit too b/c i put incorrect (but valid) N3
in the translator:

<?xml version="1.0"?>
<rdf:RDF xmlns:mo="http://purl.org/ontology/mo/"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:sim="http://purl.org/ontology/similarity/">
	<sim:Similarity rdf:about="#mysim">
		<sim:element>
			<mo:MusicArtist
rdf:about="http://zitgist.com/music/artist/f4d5cc07-3bc9-4836-9b15-88a08359bc63">
				<foaf:name>Beyonce</foaf:name>
			</mo:MusicArtist>
		</sim:element>
		<sim:element>
			<mo:MusicArtist
rdf:about="http://zitgist.com/music/artist/bf24ca37-25f4-4e34-9aec-460b94364cfc">
				<foaf:name>Shakira</foaf:name>
			</mo:MusicArtist>
		</sim:element>
		<sim:weight>0.9</sim:weight>
	</sim:Similarity>
</rdf:RDF>


On Fri, Sep 14, 2012 at 7:17 PM, Kurt J <kur...@gmail.com> wrote:
> Sorry, my RDF is a bit rusty.  Look at this tool - it is your friend:
>
> http://www.rdfabout.com/demo/validator/
>
> So I put my N3 in here - edited it till it was valid and matched yours
> (i think):
>
> @prefix mo: <http://purl.org/ontology/mo/> .
> @prefix sim: <http://purl.org/ontology/similarity/> .
> @prefix foaf: <http://xmlns.com/foaf/0.1/> .
>
> <http://zitgist.com/music/artist/bf24ca37-25f4-4e34-9aec-460b94364cfc>
> a mo:MusicArtist;
>   foaf:name "Shakira" .
>
> <http://zitgist.com/music/artist/f4d5cc07-3bc9-4836-9b15-88a08359bc63>
> a mo:MusicArtist;
>   foaf:name "Beyonce".
>
> and the xml version is like:
>
> <?xml version="1.0"?>
> <rdf:RDF xmlns:mo="http://purl.org/ontology/mo/"
> xmlns:foaf="http://xmlns.com/foaf/0.1/"
> xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
> 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 rdf:about="#mysim">
>                 <sim:element rdf:resource="#beyonce" />
>                 <sim:element rdf:resource="#shakira" />
>                 <sim:weight>0.9</sim:weight>
>         </sim:Similarity>
> </rdf:RDF>
>
> I would really invest the effort to learn and work in N3 - this is
> really the "zen" syntax of RDF.  If you have valid N3, Jena will
> definitely swallow it happily enough.  What I posted in my email was
> "pseudo n3" and not valid.
>
> Hope this helps!
>
> -kurt
>
>
>
>
>
> On Fri, Sep 14, 2012 at 6:04 PM, nomush <naomiya...@gmail.com> wrote:
>> Hello again,
>>
>> I have tried using the similarity query, however, I never get any
>> information back. I'm assuming this is due to my rdf file.
>> Here it is:
>>
>> <?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
>>
>>
>> On Friday, September 14, 2012 12:27:11 PM UTC-7, nomush wrote:
>>>
>>> Thanks that actually helped a lot!
>>>
>>> On Wednesday, September 12, 2012 10:39:41 PM UTC-7, nomush wrote:
>>>>
>>>> Hello Everyone!
>>>>
>>>> I have just started learning about ontologies and am a bit confused as to
>>>> how to go about implementing actual applications that utilize the music
>>>> ontology and the Similarity ontology in order to find musical similarities
>>>> between users. I'm collecting user's music likes (in the form of the
>>>> artist's/band's name). Here is where it gets a bit fuzzy.
>>>> Is the next next to create an RDF file for each artist/band stating their
>>>> genre and similar artists/bands and then through the Jena API (I would like
>>>> to code in Java if possible) query the knowledge base, meaning that if I
>>>> enter a user's music preferences I would be able to output users with
>>>> similar musical preferences.
>>>>
>>>> Thanks in advance,
>>>> Naomi
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Music Ontology Specification Group" group.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msg/music-ontology-specification-group/-/1Tqp2vrbY0kJ.
>>
>> To post to this group, send email to
>> music-ontology-specification-group@googlegroups.com.
>> To unsubscribe from this group, send email to
>> music-ontology-specification-group+unsubscribe@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/music-ontology-specification-group?hl=en.