Package swaml :: Package classes :: Module foaf :: Class FOAFS
[show private | hide private]
[frames | no frames]

Class FOAFS


Collection of util services to SWAML
Method Summary
  __init__(self)
FOAF services constructor
string getFoaf(self, mail)
Services to obtain FOAF URI from an email address
string getFoafFromSha(self, mail_sha1sum)
Services to obtain FOAF URI from an email sha1sum
  getGeoPosition(self, foaf, sha1mail)
Obtain geography information from foaf
  getPic(self, foaf, sha1mail)
Get picture from FOAF
string getShaMail(self, mail)
Services to obtain encrypted email address
rdflib.sparqlGraph.SPARQLGraph __getGraph(self, foaf)
A simple mechanism to cache foaf graph

Method Details

__init__(self)
(Constructor)

FOAF services constructor

getFoaf(self, mail)

Services to obtain FOAF URI from an email address
Parameters:
mail - an email address
           (type=string)
Returns:
the FOAF URI of this email owner
           (type=string)

getFoafFromSha(self, mail_sha1sum)

Services to obtain FOAF URI from an email sha1sum
Parameters:
mail_sha1sum - an email address sha1sum
           (type=string)
Returns:
the FOAF URI of this email owner
           (type=string)

To Do: customize FOAF service

getGeoPosition(self, foaf, sha1mail)

Obtain geography information from foaf
Parameters:
foaf - a foaf uri
sha1mail - mail addess enconded
Returns:
coordinates

getPic(self, foaf, sha1mail)

Get picture from FOAF
Parameters:
foaf - a foaf uri
sha1mail - mail addess enconded
Returns:
picture url

getShaMail(self, mail)

Services to obtain encrypted email address
Parameters:
mail - an email address
           (type=string)
Returns:
encryted mail on foaf:mbox_sha1sum format
           (type=string)

__getGraph(self, foaf)

A simple mechanism to cache foaf graph
Parameters:
foaf - a foaf uri
Returns:
the graph with the foaf loaded
           (type=rdflib.sparqlGraph.SPARQLGraph)

Generated by Epydoc 2.1 on Thu Dec 28 16:31:10 2006 http://epydoc.sf.net