2007.09.29

Election charade 2007-09-29T16:33:34ZTitled entry permalink

The calling of an election is a charade. The events of the past few days and weeks prove only one thing.

We need a clear, set timetable of when elections take place. Politicians should not be allowed to call elections at times to suit their political convenience, or be forced by opposition parties to call one when faced with a crisis. The process of running elections should not be in the hands of any political party.

The United States has it right. Every four years. Not every four years give or take what the Prime Minister wants, or what Parliament wants. Political manipulation of election timing should be done away with and replaced by a clear amount of time each elected official governs for.

FOAF, OpenID and Python 2007-09-29T18:36:24ZTitled entry permalink

Jeremy Keith wrote up something I've had running on my blog since just before BarCamp Brighton. If I know you and I've added your details to my whitelist, when you login with your OpenID you get to see more about me - my full contact details. One of the most useful things about hCard is that people can pull it off the Web and use it in their address book and PIM applications, or in their phone etc.

Compiling the list is manual at the moment, but I've just written a Python script to automate it slightly. The script uses rdflib and BeautifulSoup for adding OpenIDs to a FOAF file. It just uses any 'delegate' URI. This is just a sort of very rough alpha, and I'll clean it up. There are lots of complexities I don't particularly want to bother with at the moment - YADIS and the associated XML format.

The other complication I came across writing it is that rdflib doesn't currently implement graph UNIONs as described in §7 of the SPARQL Query Language specification. This is the reason why there are two SPARQL queries instead of one. If one reimplements this in a language or framework which supports UNION, you could make the software a bit simpler.

The code is a bit fugly, but here it is. I'm sure RDF-inclined Pythonistas can do interesting things with it. Next time I publish my FOAF file, it'll contain OpenIDs for all my friends. You can invoke it from the command line and it'll return an RDF/XML file. Although you'll probably want to edit the script a bit so that it's specific for you.

RDF is playing an interesting role here. It's basically a big box where I can shove all my miscellaneous data (which is, you know, everything) and can then chuck through various processes - both on the Web, on my server and on my laptop. Next step is to get my RDF infrastructure to start reading both my pages and others and looking for microformats like XFN.

As for the whitelist specifically for looking at my contact details? I'm thinking of an algorithm to determine who I can trust enough to look at them. Probably something like if give or more of the people I follow on Twitter (or similar social network) follow you. Haven't decided yet. Then again, follow does not equal trust, so I'm not sure about that.

Tags: foaf openid xfn hcard

Links from del.icio.us

 

Login with your OpenID:
No. 675
Tom Morris
Currently in: Greater London, England
Usually in: East Sussex, United Kingdom
AIM: tommorris
YIM: tom.morris

I am a , an , like to code in and noodle about with and the . I also have a BA in philosophy from London, and am in preparation for an MA. My philosophical interests are in Victorian-era German philosophy, Kierkegaard, Robert Nozick, hermeneutics and current approaches to the demarcation problem in the philosophy of science. Musically, I like jazz fusion, soul and P-Funk. My musical nirvana would be a mixture of Beethoven, Miles Davis and George Clinton topped with a side-serving of Erykah, Jill and Angie.

Elsewhere:

  • GPG Key
  • del.icio.us
  • Flickr
  • Twitter
  • digg
  • Jaiku
  • LinkedIn
  • ma.gnolia
  • blip.tv
  • upcoming.org
  • MetaFilter
  • LiveJournal
  • CiteULike
  • Technorati Profile

RSS Feed Subscribe:

RDF

« September 2007 »
SuMoTuWeThFrSa
 1
2345678
9101112131415
16171819202122
23242526272829
30 

View in month context

On this day in: 2006