W3C home > Mailing lists > Public > public-rdf-in-xhtml-tf@w3.org > January 2005

WBS form from RDF via python, XSLT, GRDDL... WSDL?

From: Dan Connolly <connolly@w3.org>
Date: Fri, 14 Jan 2005 16:08:06 -0600
To: Dominique HazaŽl-Massieux <dom@w3.org>
Cc: RDF in XHTML task force <public-rdf-in-xhtml-tf@w3.org>
Message-Id: <1105740486.7473.319.camel@localhost>

Dom,

In preparation for a WG ftf meeting, I wanted to use WBS
to get each WG member's position on each issue in our
issues list:

  Issues List: RDF Data Access Working Group
  http://www.w3.org/2001/sw/DataAccess/issues

I couldn't bear the thought of doing it by hand, so I GRDDL'd
the page with
  http://www.w3.org/2001/sw/DataAccess/grokIssues.xsl
  v 1.1 2005/01/14 14:49:02

Then I wrote a little python ditty (167 lines incl. comments):
  http://www.w3.org/2001/sw/DataAccess/pollIssues.py
   v 1.3 2005/01/14 21:23:07

using redland and python's urllib2 to add a question
per issue and a choice per proposal.

I invoked it ala:

$ python pollIssues.py 35463 issues-ftf4 issues-formal.rdf \
   http://www.w3.org/2001/sw/DataAccess/issues#thisGroup \
   connolly _PASSWD_ 2>,diag

and it fleshed out the survey. Tada! It was fun!

But I did see a few more opportunities for automation...

    # hmm... WSDL tools should give me this code for free, no?
    def addStrawPoll(self, quid, shortdesc, text, comment=0, rationale=0):


-- 
Dan Connolly, W3C http://www.w3.org/People/Connolly/
D3C2 887B 0F92 6005 C541  0875 0F91 96DE 6E52 C29E
Received on Friday, 14 January 2005 22:07:37 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:14:59 GMT