|
From: <ku...@us...> - 2009-02-18 12:51:33
|
Revision: 326
http://mypyspace.svn.sourceforge.net/mypyspace/?rev=326&view=rev
Author: kurtjx
Date: 2009-02-18 12:51:29 +0000 (Wed, 18 Feb 2009)
Log Message:
-----------
added foaf:primaryTopic to rdf, mostly cuz kingsley said to
Modified Paths:
--------------
musicGrabber/branches/webserv-branch/myspace2rdf.py
Modified: musicGrabber/branches/webserv-branch/myspace2rdf.py
===================================================================
--- musicGrabber/branches/webserv-branch/myspace2rdf.py 2009-02-05 15:06:38 UTC (rev 325)
+++ musicGrabber/branches/webserv-branch/myspace2rdf.py 2009-02-18 12:51:29 UTC (rev 326)
@@ -105,8 +105,10 @@
genrePresent = scrapePage(self.page, [genreTag[0]], genreTag[1])
if genrePresent:
self.subject = mopy.mo.MusicArtist(dbtuneMyspace+'uid/'+str(self.uid))
- #self.subjecttwo = mopy.foaf.Person('http://dbtune.org/myspace/uid/'+str(self.uid))
- #self.subject = mopy.mo.MusicArtist('http://dbtune.org/myspace/uid/'+str(self.uid))
+ # add foaf:primaryTopic
+ ppd = mopy.foaf.PersonalProfileDocument("")
+ ppd.primaryTopic.set(self.subject)
+ self.mi.add(ppd)
self.name = scrapePage(self.page, [nameTag[0]], nameTag[1])
if self.name:
self.subject.name.set(self.name)
@@ -117,6 +119,11 @@
else:
#self.subject = mopy.mo.Agent('http://dbtune.org/myspace/uid/'+str(self.uid))
self.subject = mopy.foaf.Person(dbtuneMyspace+'uid/'+str(self.uid))
+ self.subject = mopy.mo.MusicArtist(dbtuneMyspace+'uid/'+str(self.uid))
+ # add foaf:primaryTopic
+ ppd = mopy.foaf.PersonalProfileDocument("")
+ ppd.primaryTopic.set(self.subject)
+ self.mi.add(ppd)
self.name = scrapePage(self.page, [nameTag[0]], nameTag[1])
#print self.name
if self.name:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|