rest.cgi - REST interface to parts of parlparse Set the 'command' URL parameter to one of the functions described below. Parameters are simple URL parameters. The return value is in plain text. The first line will contain just the word "OK" if the command succeeded, or "ERROR" upon failure. The latin1 (ISO-8859-1) character set is used throughout. Contact francis@flourish.org with any questions. If you'd like some more functions I can easily add them. For example to match constituencies, return person ids and so on. mp-full-cons-match ------------------ Finds MP identifier for a full name such as "Tony Blair", constituency name and date when the MP was mentioned. Put the values in 'name', 'constituency' and 'date' URL parameters. Returns value id, canonical name, canonical constituency and person id on four lines. http://ukparse.kforge.net/parlparse/rest.cgi?command=mp-full-cons-match&name=Tony%20Blair&constituency=Sedgefield&date=1997-09-01 http://ukparse.kforge.net/parlparse/rest.cgi?command=mp-full-cons-match&name=Sion%20Simon&date=2005-01-01&constituency=Birmingham%20Erdington