Timeline for RSS feeds
When playing with Timeline, I thaught it could be a nice interface for RSS feeds, especially for weblogs or planets.
So, I wrote an ”RSS to Timeline” service, that takes any RSS/Atom feed as an input, and translates it into the correct JSON / Timeline format. Just put the correct URL as a data source for your Timeline, and you’ll get it !
Eg:
As you can see, I’ve also setup a demo service where you can see your feed in action. Everything is described in details here.
Regarding the implementation, the script is written in Python, using feedparser and mod_python. I first started in PHP with MagpieRSS, but it doesn’t provide universal methods to access feed/items informations, so the way to access content depends on the feed format. Yet, with feedparser, methods and properties are the same whatever your feed: is RSS 0.9, RSS 1.0, Atom … which is really interesting for writing universal agregators / translators.
It was also the first time I used mod_python, and I must say the Publisher handler is also very easy to use, with a templating system and interaction between the interface and the script.
La Poste et Firefox
humm humm …

Donc pas de recommandé sous Firefox, mais surtout obligation d’installer IE et de passer sous Win ou OSX - je doute de la facilité d’installation de Wine / CrossOver + IE pour le novice, mais tant mieux si je me trompe
Superbe pour un service public !
Et histoire d’en rajouter une couche, les liens vers l’aide en ligne et la FAQ depuis la page contact renvoient vers 2 erreurs 404 …
Courrier envoyé, on verra si j’ai une réponse:
Madame, Monsieur,
Souhaitant utiliser votre service de recommandé electronique, je suis surpris de voir que celui-ci ne tourne que sous Internet Explorer. Il existe pourtant de nombreux autres navigateurs performants et stables (Firefox, Safari, Opera …), que votre service refuse d’accepter.
Ceci impose donc à l’utilisateur d’installer IE (dont les failles de sécurité et autres spywares sont pourtant plus importants que les navigateurs cités précédamment), mais surtout d’utiliser Windows ou Mac OSX. Que faites vous des utilisateurs sous Linux ? Sont ils les seuls à devoir continuer à faire la queue à la Poste pour déposer leur courrier ?
Il existe certes des solutions pour faire tourner IE sous Linux, mais celles-ci sont loin d’être simples pour les novices.
Je suppose que je ne suis pas le premier à vous contacter à ce sujet, j’espère donc que La Poste se plongera sur le problème et mettra en ligne un service acceptant l’ensemble des navigateurs “modernes”, afin de permettre à tous d’accéder à son site sans contraintes techniques.
Cordialement,
A. Passant
NB: Les liens FAQ et Aide en ligne de la page contact sont HS
Edit 24/07 22:55
Réponse du service Lettre Recommandé Electronique de la poste à peine une heure après l’envoi du message précédent, bravo !
Bonjour,
Je vous remercie de l’intérêt que vous portez au service de La Lettre Recommandée Electronique.
Vous manifestez votre déception quant au choix du navigateur utilisé pour accéder à ce service.
A ce jour, l’ exploitation du service de la lettre recommandée électronique est pleinement garantie par nos techniciens sous >Internet Explorer de Microsoft (version 5 ou supérieure). En effet, avant son lancement,le service de la Lettre Recommandée >Electronique a été testé sous ce navigateur.
Notre service est également compatible avec d’autres navigateurs sans garantie de fonctionnement sur le site. La Poste >soucieuse des remarques de ses clients travaille actuellement à leur compatibilité pour la prochaine version du service. Celle-ci >est prévue prochainement.
From Here to Eternity
Another Timeline example, displaying The Clash discography from Wikipedia.
Here are the few steps used to produce this timeline:
- Use Solvent to create a scraper for the Wikipedia page;
- Run it to get the discography in RDF;
- Convert the RDF into Timeline/XML using Python and Redland, and while translating, get each linked page and parse it to get the album cover image;
- Finally, put the data into Timeline.
And here it is: The Clash discography Timeline !
SPARQL/JSON into Timeline
Timeline seems to be the tool of the moment in the SemWeb area. Indeed, this is a really nice JavaScript tool to display temporal data, so we could imagine a lot of usages for it.
Timeline first used its own XML format for data, then JSON was introduced. Yet, the JSON format needed is different from the one defined by JSON serialization of SPARQL results, as Joseki does - among others RDF stores.
I’ve wrote a function based on the original JSON one to load data formatted according to the previous specs: http://apassant.net/home/2006/07/sioc-timeline/sparqljson.js
Just before, Morten Frederiksen also wrote a SPARQL/XML loader for timeline.
So, now, you’ve got the choice: either load XML / JSON data into Timeline (aventually using Danny Ayers’ XSLT), or use SPARQL/XML or SPARQL/JSON loader. You don’t have any excuse anymore for not loading some data into your Timeline
Here’s an example of Timeline loading on-the-fly generated JSON data from a SPARQL endpoint (using SIOC-enabled websites as data sources): http://apassant.net/home/2006/07/sioc-timeline/.
Uldis also wrote a SIOC Timeline, with a nice design and the complete blog posts text.
So … Timeline offers another cool way to see Semantic Web in action !
