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
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Bob Ferris  
View profile  
 More options Sep 14 2012, 4:14 am
From: Bob Ferris <z...@smiy.org>
Date: Fri, 14 Sep 2012 10:14:32 +0200
Local: Fri, Sep 14 2012 4:14 am
Subject: Re: Using The Music Ontology for Finding Similar Users
Hi Naomi,

this is more a generic SPARQL question rather than a Music Ontology
related question. Anyway, I'll give you a hint ;)
You should utilise the FILTER clause [2] of SPARQL to reduce your result
set to artists that have a similarity level of 80%+
This looks like that you have to insert a

FILTER (?level > 0.8)

near the end of your query.

Cheers,

Bo

PS: btw, as source for music artist information you could leverage e.g.
MusicBrainz (includes RDFa in their sites), DBPedia (a partial enhanced
RDF mapping of Wikipedia), or you write an RDF wrapper for the Echo Nest API

[2] http://www.w3.org/TR/sparql11-query/#scopeFilters

On 09/14/2012 01:13 AM, nomush wrote:

> I have been playing around with the Characteristic Ontology and was able
> to combine it with the Similarity Ontology and Music Ontology as well.
> In the Music Ontology they have an example query for getting the name's
> of the artists similar to the given artist to at least 80%.

>   Finding the names of the Artists similar to another Artist to at least 80%

>   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       }

> First of all, I'm a little confused about the working of this query.
> Should it return the artists that are at least 80% similar to the given
> artist?
> If this is what it should return, I'm confused about how it does so,
> since when I run the query on my rdf I just get back all the artists, no
> matter their level of similarity.
> How can I filter the result so it will only return those artists that
> have a similarity level of at least 0.8?

> Thanks in advance,
> Naomi

> 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 must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.