Package TalkManagement
[show private | hide private]
[frames | no frames]

Package TalkManagement

Package to manage W3C talks. In a sence, the toughest issue (in my view) is to produce a decent English sentence that includes all the information given by the RDF resource. This is what is done in this package. The rest of the talk management is sparql over sparql to determine which talks are to be displayed.</p>

The main class is the Talk class. When initialized, it gathers all the information from the RDF triplets, compounded with some sanity check. It has a separate toHTML method method that puts the content into an HTML fragment. There is also a toText method to output clean text (eg, for an RSS feed).

The package heavily depends on two other modules/packages: Both can be found in my public PythonLib on W3C's CVS. These modules also rely on two external packages: PyXML and RDFLib.

Author: Ivan Herman

Organization: World Wide Web Consortium (W3C)

License: This software is available for use under the W3C Software License

Submodules

Function Summary
  factorTalks(triplets, talksOrig)
Factor a list of talks.
  generateCalendar(fname, triplets, query, CGIUri)
Generate an iCalendar file.
  generateRSS(fname, triplets, query, CGIUri)
Generate an RSS file.

Variable Summary
str __version__ = '1.0'

Function Details

factorTalks(triplets, talksOrig)

Factor a list of talks. The goal is to group those talks that happen at the same event; these will be put on the news as one news item. Two events are the same if they have the same name, and they share the same city and country data (regardless of date).
Parameters:
triplets - a myTripleStore instance
talksOrig - an array of RDFLib resources, each representing a specific talk
Returns:
a list of either Talk or FactoredTalks instances. The two classes share the method names to display them, so the outside user can use them in a common fashion.

generateCalendar(fname, triplets, query, CGIUri)

Generate an iCalendar file. The real class is in in another module
Parameters:
fname - file name for the output
triplets - myTripleStore instance
query - a GraphPattern for a SPARQL Query to be used to retrieve the talks
CGIUri - the URI of the CGI (relative URI for talks), to be put into the calendar file as further info

generateRSS(fname, triplets, query, CGIUri)

Generate an RSS file. The real class is in in another module
Parameters:
fname - file name for the RSS file
triplets - myTripleStore instance
query - a GraphPattern for a SPARQL Query to be used to retrieve the talks
CGIUri - the URI of the CGI (relative URI for talks), to be put into the RSS file as further info

Variable Details

__version__

Type:
str
Value:
'1.0'                                                                  

Generated by Epydoc 2.1 on Sat Aug 06 12:38:26 2005 http://epydoc.sf.net