RDFa

21 views
Skip to first unread message

Lucas Gonze

unread,
Nov 3, 2009, 3:01:56 PM11/3/09
to music-ontology-sp...@googlegroups.com
Hello folks,

Are there RDFa versions of the examples?

There was discussion among Playdar people of MO support, but
http://wiki.musicontology.com/index.php/Here_is_a_basic_document_describing_a_music_group
and other sources don't come in RDFa.

Also, are there examples of usage in the wild to use as test cases?

Thanks in advance.

If you want to have a direct conversation, stop by #playdar on irc.freenode.net.

zazi

unread,
Nov 3, 2009, 6:34:24 PM11/3/09
to music-ontology-sp...@googlegroups.com
Hi Lucas,

I very welcome your plans to use the Music Ontology for Playdar. Here is
just a first try of a RDFa translation:

<div xmlns:mo="http://purl.org/ontology/mo/"
xmlns:sim="http://purl.org/ontology/sim/"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
typeof="mo:MusicGroup"

about="http://zitgist.com/music/artist/65f4f0c5-ef9e-490c-aee3-909e7ae6b2ab">
<span property="foaf:name">
<a rel="foaf:homepage" href="http://www.metallica.com">Metallica</a>
</span>
<img rel="mo:image" src="http://metallica.com/images/MySpace/logo.gif"
resource="http://metallica.com/images/MySpace/logo.gif" />
<a rel="mo:discogs"
href="http://www.discogs.com/artist/Metallica">@Discogs</a>
<a rel="mo:musicmoz"
href="http://musicmoz.org/Bands_and_Artists/M/Metallica/">@Musicmoz</a>
<a rel="mo:wikipedia"
href="http://en.wikipedia.org/wiki/Metallica">@Wikipedia</a>
<span rel="mo:performed"
resource="http://zitgist.com/music/track/f415a50d-4594-4d39-b84d-57afd433ef6d"
/>
<span rel="foaf:member"
resource="http://zitgist.com/music/artist/2f58d07c-4ed6-4f29-8b10-95266e16fe1b"
/>
<span rel="mo:similar_to"
resource="http://zitgist.com/music/artist/b2d122f9-eadb-4930-a196-8f221eeb0c66"
/>
<span rel="sim:link" property="rdf:parseType" content="Resource">
<span rel="sim:relation"
resource="http://purl.org/ontology/mo/similar_to" />
<span property=""sim:level">0.9</span>
<span rel="sim:to"
resource="http://zitgist.com/music/artist/b2d122f9-eadb-4930-a196-8f221eeb0c66"
/>
</span>
<span rel="mo:similar_to"
resource="http://zitgist.com/music/artist/5dfdca28-9ddc-4853-933c-8bc97d87beec"
/>
<span rel="sim:link" property="rdf:parseType" content="Resource">
<span rel="sim:relation"
resource="http://purl.org/ontology/mo/similar_to" />
<span property="sim:level">0.8</span>
<span rel="sim:to"
resource="http://zitgist.com/music/artist/5dfdca28-9ddc-4853-933c-8bc97d87beec"
/>
</span>
</div>

I'm not quite sure about the modelling of the sim:link relation.

Cheers,

zazi

Lucas Gonze schrieb:

Yves Raimond

unread,
Nov 4, 2009, 4:34:40 AM11/4/09
to music-ontology-sp...@googlegroups.com
Hello!

I would just replace the mo:performed by foaf:maker in the example,
but that looks great! Can you put it on the wiki? We must try to put
more RDFa in the Wiki examples (ultimately, all the examples should
come in RDFa as well).

Cheers!
y

Yves Raimond

unread,
Nov 4, 2009, 4:35:53 AM11/4/09
to music-ontology-sp...@googlegroups.com
Yes, me neither. Kurt might have an opinion on this - he wrote an
extension of MO dealing with such similarity statements:
http://purl.org/ontology/similarity/

Cheers,
y

za...@elbklang.net

unread,
Nov 4, 2009, 5:44:02 AM11/4/09
to music-ontology-sp...@googlegroups.com

> Yes, me neither. Kurt might have an opinion on this - he wrote an
> extension of MO dealing with such similarity statements:
> http://purl.org/ontology/similarity/
>
> Cheers,
> y

Yes, I know. In general, the example of the wiki might be a little bit out
of date. I just tried a simple RDFa translation (my first one ;) ). Of
course, some examples in the wiki can be updated ...

Cheers,

zazi

Lucas Gonze

unread,
Nov 5, 2009, 1:36:26 PM11/5/09
to music-ontology-sp...@googlegroups.com
Result of this conversation was a flurry of related work in IRC
#playdar, like this from skikeymo:

"hello! i've made a quick hack to playdar.js to support the RDFa we'll
be adding to bbc.co.uk/programmes tracklists at some point in the
future: http://github.com/mjstallard/playdar.js/commit/9e72bb0adca2f221fe493ada6034f03d8475ef48"

So, basically, the process of getting MO support is now in gear.

Yves Raimond

unread,
Nov 5, 2009, 2:39:12 PM11/5/09
to music-ontology-sp...@googlegroups.com
Yes, and the shape of the RDFa we'll be adding is available on the MO wiki:

http://wiki.musicontology.com/index.php/Here_is_an_RDFa_document_describing_an_artist_and_one_of_its_track

It took some time to get the RDFa right - I hope there's no mistake!

Cheers,
y

za...@elbklang.net

unread,
Nov 6, 2009, 3:40:59 AM11/6/09
to music-ontology-sp...@googlegroups.com
Hi,

I put the requested example translation also to that wiki page:

http://wiki.musicontology.com/index.php/Here_is_a_basic_document_describing_a_music_group

Cheers,

zazi

PS: please feel free to correct it (currently it is RDFa/XHTML validated,
but I do not really know whether the validator checks also the RDF
namespace usage)

Gregg

unread,
Nov 7, 2009, 5:43:03 PM11/7/09
to Music Ontology Specification Group
This is a version I made with an envelope to get it through my parser:
http://kellogg-assoc.com/mo.html.

You can try it with my Ruby RDFa distiller at http;//kellogg-assoc.com/
distiller. Feel free to download the Ruby GEM at http://gemcutter.org/gems/rdfa_parser.

Gregg

On Nov 6, 12:40 am, z...@elbklang.net wrote:
> Hi,
>
> I put the requested example translation also to that wiki page:
>
> http://wiki.musicontology.com/index.php/Here_is_a_basic_document_desc...
>
> Cheers,
>
> zazi
>
> PS: please feel free to correct it (currently it is RDFa/XHTML validated,
> but I do not really know whether the validator checks also the RDF
> namespace usage)
>
>
>
>
>
> > Yes, and the shape of the RDFa we'll be adding is available on the MO
> > wiki:
>
> >http://wiki.musicontology.com/index.php/Here_is_an_RDFa_document_desc...
>
> > It took some time to get the RDFa right - I hope there's no mistake!
>
> > Cheers,
> > y
>
> > On Thu, Nov 5, 2009 at 6:36 PM, Lucas Gonze <lucas.go...@gmail.com> wrote:
>
> >> Result of this conversation was a flurry of related work in IRC
> >> #playdar, like this from skikeymo:
>
> >> "hello! i've made a quick hack to playdar.js to support the RDFa we'll
> >> be adding to bbc.co.uk/programmes tracklists at some point in the
> >> future:
> >>http://github.com/mjstallard/playdar.js/commit/9e72bb0adca2f221fe493a..."
>
> >> So, basically, the process of getting MO support is now in gear.
>

Lucas Gonze

unread,
Nov 8, 2009, 11:57:46 PM11/8/09
to music-ontology-sp...@googlegroups.com
Hey there Gregg, it's good to run into you here.

jwheare's checkin to support MO RDFa:
http://github.com/jwheare/playdar.js/commit/6824f2c9a534e40b0a13894af248b2e13f7de846

I think that should work against http://kellogg-assoc.com/mo.html
Reply all
Reply to author
Forward
0 new messages