DBTune.org

	NOTICE: A new SPARQL endpoint is coming soon!!!
Myspace RDF Service

0. Disclaimer

This is a non-commercial site. The information contained in this site has been collected from several sources and its accuracy cannot be guaranteed. No copyright has been intentionally violated. If you feel a copyright has been violated please contact kurtjx at gmail immediately. This service is in no way affiliated or endorsed by Myspace.com.

Please note this service may sometimes behave unexpectedly as Myspace makes changes to their page templates. Please contact kurtjx at gmail if you have any questions or notice any problems with this service.

1. Introduction

This service provides a live RDF representation of Myspace users. If the user is also an artist, then the corresponding tracks in the streaming audio cache are included in the RDF. Note that only the top friends of the target Myspace user are included in the RDF.

This representations is designed using the Music Ontology, FOAF, and a small Myspace Ontology. PLEASE NOTE: not all the properties specified in the ontology are supported in the wrapper. If there is functionality missing, you can help add it by joining the MoTools project.

2. Using this service

Starting from a Myspace user name:

http://myspace.com/<user name>
Just get the following URI:

http://dbtune.org/myspace/<user name>
Alternatively, you can use the Myspace user id directly:
http://dbtune.org/myspace/uid/<userID>

For example, the following URI identifies a band in MySpace:


http://dbtune.org/myspace/lesversaillaisesamoustache

If you have a MySpace account, you can add the corresponding information to your FOAF profile by adding the following statement in it:

<my URI> owl:sameAs <http://dbtune.org/myspace/<user name>

3. SPARQL Endpoint

This service caches wrapper results in a SPARQL endpoint powered by Open Link's Virtuoso triple store. Both the endpoint and a webinterface are accessible at http://virtuoso.dbtune.org/sparql.

When possible, the endpoint includes links to Musicbrainz and BBC Music artists. The linkage is performed off-line using a modified version of GNATlib.

For music artists, links to the Geonames URI of the country specified on their Myspace page are provided. The mapping of Myspace countries to Geonames URIs can be found in the countries_geonames.tsv file or in the code as a Python pickled dictionary.

Here is an example query against the enpoint selecting all music artists from Hungary who specify their genre as Hip Hop. The results are ordered by number of friends:


PREFIX mysp:<http://purl.org/ontology/myspace#>
PREFIX foaf:<http://xmlns.com/foaf/0.1/>
PREFIX mo:<http://purl.org/ontology/mo/>

SELECT ?name ?friends from <http://dbtune.org/myspace/>
WHERE {?artist foaf:based_near <http://sws.geonames.org/719819/> ;
 a mo:MusicArtist ;
 foaf:name ?name ;
 mysp:totalFriends ?friends ;
 mysp:genreTag <http://purl.org/ontology/myspace#Hip%20Hop> .
}
ORDER BY DESC (?friends)

4. Code

As usual, all the code running this service is open source and based on Python, MoPy , BeautifulSoup, and CherryPy.