To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Revision:

root / bbc / playcount / playcount.html @ 11:d95267afa12a

History | View | Annotate | Download (4.88 KB)

1
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2

    
3
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4

    
5
<head>
6
<title>DBTune - Playcount data linking BBC /programmes and Musicbrainz</title>
7

    
8
<style type="text/css" media="all">
9
        @import url(style.css);
10
</style>
11

    
12
</head>
13

    
14
<body>
15

    
16

    
17
<a href="http://dbtune.org/"><h1 style="font-size: 250%;">DBTune.org</h1></a>
18

    
19
<div id="tagline">Playcount data linking BBC /programmes and Musicbrainz</div>
20

    
21
<h2><a name="intro" id="intro"></a>1. Introduction</h2>
22

    
23
<p><b>Note:</b> This service is down following changes to the upstream API. This page is retained for historical interest.</p>
24

    
25
<p>
26
The <a href="http://www.bbc.co.uk/">BBC</a> has <a href="http://mashed-audioandmusic.dyndns.org/">made available</a> a dataset of playcounts of artists 
27
per episode and brands in their <a href="http://www.bbc.co.uk/programmes">programmes catalogue</a>, for the <a href="http://mashed08.eventbrite.com/">Mashed 2008</a> event.
28
</p>
29

    
30
<p>
31
This service provides RDF links using these playcounts, to link the
32
<a href="http://dbtune.org/musicbrainz/">Musicbrainz linked data</a> and the 
33
<a href="http://bbc-programmes.dyndns.org/">BBC programmes linked data</a>.
34
The earlier is designed with the <a href="http://purl.org/ontology/mo/">Music Ontology</a>, the latter is designed with the <a href="http://www.bbc.co.uk/ontologies/programmes/">BBC Programmes ontology</a>.
35
</p>
36

    
37
<p>
38
This effort is part of the <a href="http://esw.w3.org/topic/SweoIG/TaskForces/CommunityProjects/LinkingOpenData">Linking
39
Open Data on the Semantic Web</a> community project, hosted by the <a href="http://www.w3.org/2001/sw/sweo/">Semantic
40
Web Education and Outreach</a> interest group.
41
</p>
42

    
43

    
44

    
45
<h2><a name="use" id="use"></a>2. Using this service</h2>
46
<p>
47
A playcount URI in this service looks like:
48
<pre>
49
http://dbtune.org/bbc/playcount/&lt;id&gt;_&lt;k&gt;
50
</pre>
51
Where &lt;id&gt; is the id of the episode or the brand, as in
52
<a href="http://www.bbc.co.uk/programmes">/programmes BBC catalogue</a>,
53
and &lt;k&gt; is a number between 0 and the number of playcounts
54
for the episode or the brand.
55
</p>
56

    
57
<p>
58
For example, the following URI corresponds to the playcount of 
59
<a href="http://dbtune.org/musicbrainz/resource/artist/070d193a-845c-479f-980e-bef15710653e">Prince</a> on
60
the <a href="http://bbc-programmes.dyndns.org/programmes/b006wk6f#brand">Fabio and Grooverider DJ show</a>.
61
<pre>
62
http://dbtune.org/bbc/playcount/b006wk6f_1
63
</pre>
64
</p>
65

    
66
<h2><a name="sparql" id="sparql"</a>3. Querying the dataset</a></h2>
67
<p>
68
We expose a <a href="http://dbtune.org/bbc/playcount/sparql/">SPARQL end-point</a> 
69
for querying this data, and also a <a href="http://dbtune.org/bbc/playcount/store/">web interface</a> for this end-point.
70
The SPARQL end-point also holds aggregated information (around 2 million triples) from 
71
Musicbrainz and the BBC Programmes service.
72
The end-point is available at:
73
<pre>http://dbtune.org:3062/sparql</pre>
74
</p>
75

    
76
<p>
77
An example query is the following one:
78
<pre>
79
SELECT ?brand ?title ?count
80
WHERE {
81
   ?artist a mo:MusicArtist;
82
      foaf:name "The Beatles". 
83
   ?pc pc:object ?artist;
84
       pc:count ?count.
85
   ?brand a po:Brand;
86
       pc:playcount ?pc;
87
       dc:title ?title 
88
    FILTER (?count&gt;10)}
89
</pre>
90
This will return every BBC brands in which The Beatles were featured at least ten times.
91
</p>
92

    
93
<h2><a name="onto" id="onto"></a>4. Playcount ontology</h2>
94
<p>
95
For the purpose of representing playcounts, we designed a really
96
small <a href="http://purl.org/ontology/playcount/">playcount ontology</a>.
97
This ontology defines one playcount concept, and three properties
98
to link it to the media in which we are counting something, the actual thing,
99
and actual  playcount. This ontology can be used as in the following
100
example:
101
</p>
102
<pre>
103
:radioepisode pc:playcount [a pc:Playcount; pc:count 12; pc:object :track].
104
</pre>
105

    
106
<h2><a name="code" id="code"></a>5. Code</h2>
107
<p>
108
As usual, <a href="http://motools.svn.sourceforge.net/viewvc/motools/dbtune/playcount">all the code running this service</a>
109
is open source and based
110
on <a href="http://www.swi-prolog.org">SWI-Prolog</a>
111
</p>
112

    
113
<h2><a name="stats" id="stats"></a>6. Statistics</h2>
114
<p>
115
<table border="1">
116
<tr><td>Triple count</td><td>1,954,786</td></tr>
117
<tr><td>Distinct <a href="http://bbc-programmes.dyndns.org/">BBC Programmes</a>
118
resources</td><td>6,863</td></tr>
119
<tr><td>Distinct <a href="http://dbtune.org/musicbrainz/">Musicbrainz</a>
120
resources</td><td>7,055</td></tr>
121
</table>
122
</p>
123

    
124

    
125
<script type="text/javascript">
126
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
127
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
128
</script>
129
<script type="text/javascript">
130
var pageTracker = _gat._getTracker("UA-3327144-3");
131
pageTracker._initData();
132
pageTracker._trackPageview();
133
</script>
134

    
135

    
136
</body>
137

    
138
</html>
139