ontologies

2021 - Week 36

Our first enquiry

So, the first thing you need to know is the House of Commons Library - and indeed the House of Lords Library - is a research library. It’s possible this is common knowledge. But looking in from the outside, at least one of your correspondents must confess he had no idea. The photographs you tend to see are of the Members’ Library. Which makes some sense. It’s all leather bound volumes on high shelves with curvy staircases and is definitely more picturesque than the bit we work in. And when you tell people you work in a library, this is the kind of thing they tend to imagine. But, as ever, the bits you can’t see are as important as the bits you can.

Whilst the Government has the might of the Civil Service to collect the data, analyse the data and inform the debate, backbench Members tend to rely on a dribble of Short Money to pay for staff and so on, and the research services provided by the Library. Not that our team of crack librarians work directly in the service of Members. We model and manage parliamentary data which goes inside the computers and provides a service to the Library researchers who, in turn, provide a research service to the Members. It is services all the way down.

The second thing you need to know is that said team of crack librarians have just taken over the management of data about Commons Members in our oddly named Members’ Names Information Service. Oddly named because their names are probably the least interesting data we manage. And with data management pleasures come enquiry handling duties. And last Tuesday, at lunchtime on the first day of summer no less, we had our first ever request from a researcher to help out with an enquiry from a Member. Because this is all rather new to us - and because we don’t necessarily know all the assorted APIs, how they’re constrained and how best to approach them - this threw even our highly trained librarians into something of a tailspin. Lunchtime in the park plans were abandoned and downed tools un-downed. By some combination of hook and crook we managed to get our heads around the API and pull an answer from the XML hat. And all within an hour. Possibly two. Go us!

The route to the answer took us through the introductory guides to the public MNIS API, whereupon we discovered options to filter the result set and options to include additional information for each result returned. All - somewhat oddly - set out as slash URLs and not parameters. And - more oddly still - separated by pipes rather than the more traditional ampersands. Now, our eyes are not getting any younger. And trying to hack a URL bar with pipe separated values is not for the faint of eyes. Which led to Michael spending most of the rest of the week wrapping a web form around the API, parsing the results to HTML and pumping the XML to a handy third party service to convert the results to CSV. Because, to be honest, who doesn’t prefer a CSV to some XML? There is still work to do to add more filter parameters and more include parameters. The many and varied combinations of filter options and the manner in which they combine makes writing the form text rather tricky. What’s there could definitely use an intervention from young Robert’s tiny chisel. Another post-vacation job for him to look forward to. Once all that’s done, we hope that future enquiries will be more easily handled, with our librarians not forced to squint at pipes and XML. Who knows, it may even be of use to other people.

Fettling our SI maps

On more mundane matters, we also spent a wee while polishing our statutory instrument maps and data. I mean, of course we did. What else would you expect us to be doing? Despite claiming completion last week, it would be naive of our reader to expect accuracy on such matters. We’ve shouted ‘done’ so many times the definition of ‘done’ may have slipped a little. This week, Librarian Jayne and Michael realised that, whilst they’d added a summation step for revocation in both our made negative and made affirmative procedures, they’d forgotten to make use of it in the Commons. That is now fixed.

In a similar vein, they also realised that they’d forgotten to add a summation step for withdrawal from the Commons in our draft negative and draft affirmative maps. Which made everything noisier than necessary. That is also fixed.

Finally, more noise was cancelled in our CRaG treaty procedure as our component Lords’ Committee map gained a summation step to gather up EU Committee and sub-committee allocations.

We had hoped to move on to mapping the draft composite procedure of Census Act fame. We had erroneously believed this to be a cut and shut job of the draft negative and the draft affirmative procedures. Except that in this case, amendments to the approval motion in the affirmative half of the procedure amend not only the motion but also the questions in the Census. So long as both Houses agree. How agreement between the Houses might be orchestrated remains unclear. A handful of emails later and the fine minds of JO Jane, TO Matt and JO Mike have promised to ponder.

So for now, we are SI done. Definitely. Absolutely. Finally. Til next week.

Back to public bills

Even before the popping of champagne corks ceased to ring in our ears, we were ready to pick up the public bill baton. We have a rough map dating from pre-lockdown days - thanks David, thanks Paul, thanks Martyn - but that was drawn using our old-style, route-based procedure model. So we’ve begun to convert the bits we can convert to our new-style, step-type-based model. For now, that means we have maps and data for legislative consent motions in the Northern Ireland Assembly and the Welsh Parliament. Which may not be the most interesting part of the procedure but is, at least, newsworthy. More public bill news to follow. Much more.

Being good citizens

In other news, our Jianhan has been chipping away at our redirects. Since the SI and treaty services first went live, both TNA and Parliament have converted their websites from HTTP to HTTPS. Our links still worked - or at least mostly worked (don’t ask) - but only via the medium of redirects. And if we are anything, we are good web citizens. Every redirect that doesn’t need to happen is a computer doing work it doesn’t need to do. And we can hardly laugh at the blockchain bros when we’re wasting compute and electricity on redirects. So now our links are stored as HTTPS and served as HTTPS and the computers can take a break. Proof of work being no substitute for work.

Kind hearts / Coronets

Finally, progress has continued to be made on our efforts to port David’s peerage data into the History of Parliament Trust website. We’ve spent a fair bit of time reshaping the data to allow us to capture subsequent holders of peerages as well as peerages created in the Kingdoms of England, Ireland and Great Britain. And Scotland should we ever find a data source. James has been busy repurposing the code he wrote for the Rush database into something more suitable for peerages. Which led to librarian Ned and Michael spending a small part of the week clicking and testing and testing and clicking. Most of the bugs are now squished and most of the feature requests fulfilled. More testing beckons next week and - give or take our requirement for a new data dump from David and some nudging of identifiers - we should be ready to go live soon.