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 / myspace / old-myspace.html

History | View | Annotate | Download (3.24 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 - Myspace RDF Service</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">Myspace RDF Service</div>
20

    
21
<p><b>Warning:</b> This service is currently broken, MySpace changed a number of things that break the scrapping.</p>
22
<p><b>Update:</b> The FOAF view of MySpace data is back online.</p>
23
<h2><a name="intro" id="intro"></a>1. Introduction</h2>
24

    
25
<p>
26
<!--<b>This service is down at the moment.</b> MySpace changed their
27
HTML, so the scraping doesn't work as expected anymore.
28
</p>-->
29

    
30
<p>
31

    
32
This service provides a live RDF representation of <a href="http://www.myspace.com/">Myspace</a> users.  
33
If the user is also an <i>artist</i>, then the corresponding tracks in the streaming audio cache are included in the RDF.  
34
Note that only the <i>top friends</i> in the target Myspace page are included in the RDF.
35
</p>
36

    
37

    
38
<p>
39
This representations is designed using the <a href="http://musicontology.com/">
40
Music Ontology</a> and <a href="http://xmlns.com/foaf/0.1/">FOAF</a>. The scraping is handled by the 
41
<a href="http://sourceforge.net/projects/mypyspace/">MyPySpace</a>.
42
</p>
43

    
44
<!--><p>
45
This effort is part of the <a href="http://esw.w3.org/topic/SweoIG/TaskForces/CommunityProjects/LinkingOpenData">Linking
46
Open Data on the Semantic Web</a> community project, hosted by the <a href="http://www.w3.org/2001/sw/sweo/">Semantic
47
Web Education and Outreach</a> interest group.
48
</p>-->
49

    
50

    
51

    
52
<h2><a name="use" id="use"></a>2. Using this service</h2>
53

    
54
<p>
55
Starting from a Myspace user name:
56
<pre>
57
http://myspace.com/&lt;user name&gt;
58
</pre>
59
Just get the following URI:
60
<pre>
61
http://dbtune.org/myspace/&lt;user name&gt;
62
</pre>
63
Alternatively, you can use the Myspace user id directly:
64
<pre>
65
http://dbtune.org/myspace/uid/&lt;userID&gt;
66
</pre>
67

    
68
</p>
69

    
70
<p>For example, the following URI identifies a <a href="http://myspace.com/lesversaillaisesamoustache">band in MySpace</a>:
71
<pre>
72
http://dbtune.org/myspace/lesversaillaisesamoustache
73
</pre>
74
</p>
75

    
76

    
77
<p>
78
If you have a MySpace account, you can
79
add the corresponding information to your <a href="http://xmlns.com/foaf/0.1/">FOAF profile</a> by adding the following statement in it:
80
<pre>
81
&lt;my URI&gt; owl:sameAs &lt;http://dbtune.org/myspace/&lt;user name&gt;
82
</pre>
83
</p>
84

    
85
<h2><a name="code" id="code"></a>3. Code</h2>
86
<p>
87
As usual, <a href="http://motools.svn.sourceforge.net/viewvc/mypyspace/musicGrabber/branches/webserv-branch/">all the code running this service</a>
88
is open source and based
89
on <a href="http://www.python.org">Python</a> and <a href="http://www.swi-prolog.org">SWI-Prolog</a>
90

    
91
</p>
92

    
93

    
94
<script type="text/javascript">
95
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
96
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
97
</script>
98
<script type="text/javascript">
99
var pageTracker = _gat._getTracker("UA-3327144-3");
100
pageTracker._initData();
101
pageTracker._trackPageview();
102
</script>
103

    
104

    
105

    
106
</body>
107

    
108
</html>
109

    
110