annotate myspace/old-myspace.html @ 1:2d859f5e3676

ClioPatria instances now have path prefixes that match those of the instance within the main server, so that internal links work
author Chris Cannam
date Tue, 31 Oct 2017 11:47:10 +0000
parents 1e44d666ced1
children
rev   line source
Chris@0 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Chris@0 2
Chris@0 3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
Chris@0 4
Chris@0 5 <head>
Chris@0 6 <title>DBTune - Myspace RDF Service</title>
Chris@0 7
Chris@0 8 <style type="text/css" media="all">
Chris@0 9 @import url(style.css);
Chris@0 10 </style>
Chris@0 11
Chris@0 12 </head>
Chris@0 13
Chris@0 14 <body>
Chris@0 15
Chris@0 16
Chris@0 17 <a href="http://dbtune.org/"><h1 style="font-size: 250%;">DBTune.org</h1></a>
Chris@0 18
Chris@0 19 <div id="tagline">Myspace RDF Service</div>
Chris@0 20
Chris@0 21 <p><b>Warning:</b> This service is currently broken, MySpace changed a number of things that break the scrapping.</p>
Chris@0 22 <p><b>Update:</b> The FOAF view of MySpace data is back online.</p>
Chris@0 23 <h2><a name="intro" id="intro"></a>1. Introduction</h2>
Chris@0 24
Chris@0 25 <p>
Chris@0 26 <!--<b>This service is down at the moment.</b> MySpace changed their
Chris@0 27 HTML, so the scraping doesn't work as expected anymore.
Chris@0 28 </p>-->
Chris@0 29
Chris@0 30 <p>
Chris@0 31
Chris@0 32 This service provides a live RDF representation of <a href="http://www.myspace.com/">Myspace</a> users.
Chris@0 33 If the user is also an <i>artist</i>, then the corresponding tracks in the streaming audio cache are included in the RDF.
Chris@0 34 Note that only the <i>top friends</i> in the target Myspace page are included in the RDF.
Chris@0 35 </p>
Chris@0 36
Chris@0 37
Chris@0 38 <p>
Chris@0 39 This representations is designed using the <a href="http://musicontology.com/">
Chris@0 40 Music Ontology</a> and <a href="http://xmlns.com/foaf/0.1/">FOAF</a>. The scraping is handled by the
Chris@0 41 <a href="http://sourceforge.net/projects/mypyspace/">MyPySpace</a>.
Chris@0 42 </p>
Chris@0 43
Chris@0 44 <!--><p>
Chris@0 45 This effort is part of the <a href="http://esw.w3.org/topic/SweoIG/TaskForces/CommunityProjects/LinkingOpenData">Linking
Chris@0 46 Open Data on the Semantic Web</a> community project, hosted by the <a href="http://www.w3.org/2001/sw/sweo/">Semantic
Chris@0 47 Web Education and Outreach</a> interest group.
Chris@0 48 </p>-->
Chris@0 49
Chris@0 50
Chris@0 51
Chris@0 52 <h2><a name="use" id="use"></a>2. Using this service</h2>
Chris@0 53
Chris@0 54 <p>
Chris@0 55 Starting from a Myspace user name:
Chris@0 56 <pre>
Chris@0 57 http://myspace.com/&lt;user name&gt;
Chris@0 58 </pre>
Chris@0 59 Just get the following URI:
Chris@0 60 <pre>
Chris@0 61 http://dbtune.org/myspace/&lt;user name&gt;
Chris@0 62 </pre>
Chris@0 63 Alternatively, you can use the Myspace user id directly:
Chris@0 64 <pre>
Chris@0 65 http://dbtune.org/myspace/uid/&lt;userID&gt;
Chris@0 66 </pre>
Chris@0 67
Chris@0 68 </p>
Chris@0 69
Chris@0 70 <p>For example, the following URI identifies a <a href="http://myspace.com/lesversaillaisesamoustache">band in MySpace</a>:
Chris@0 71 <pre>
Chris@0 72 http://dbtune.org/myspace/lesversaillaisesamoustache
Chris@0 73 </pre>
Chris@0 74 </p>
Chris@0 75
Chris@0 76
Chris@0 77 <p>
Chris@0 78 If you have a MySpace account, you can
Chris@0 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:
Chris@0 80 <pre>
Chris@0 81 &lt;my URI&gt; owl:sameAs &lt;http://dbtune.org/myspace/&lt;user name&gt;
Chris@0 82 </pre>
Chris@0 83 </p>
Chris@0 84
Chris@0 85 <h2><a name="code" id="code"></a>3. Code</h2>
Chris@0 86 <p>
Chris@0 87 As usual, <a href="http://motools.svn.sourceforge.net/viewvc/mypyspace/musicGrabber/branches/webserv-branch/">all the code running this service</a>
Chris@0 88 is open source and based
Chris@0 89 on <a href="http://www.python.org">Python</a> and <a href="http://www.swi-prolog.org">SWI-Prolog</a>
Chris@0 90
Chris@0 91 </p>
Chris@0 92
Chris@0 93
Chris@0 94 <script type="text/javascript">
Chris@0 95 var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
Chris@0 96 document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
Chris@0 97 </script>
Chris@0 98 <script type="text/javascript">
Chris@0 99 var pageTracker = _gat._getTracker("UA-3327144-3");
Chris@0 100 pageTracker._initData();
Chris@0 101 pageTracker._trackPageview();
Chris@0 102 </script>
Chris@0 103
Chris@0 104
Chris@0 105
Chris@0 106 </body>
Chris@0 107
Chris@0 108 </html>
Chris@0 109
Chris@0 110