ontologies

2020 - Week 40

Expanding the family

Librarians Anya, Jayne and Claire, together with computational specialist Michael, dedicated Wednesday to interviews, with candidate librarians forming a stack pattern before coming into land in Microsoft Teams. Of all places. Everything went surprisingly well. No technical glitches were experienced, broadband stayed upright and presentations delivered were both informative and entertaining. More of the same on Monday and Tuesday.

Procedure mapping

Our Jianhan continued his quest to make time bound procedural routes a thing that exists in code. He’s applied a final coat of varnish to our work package visualisations, based on some pseudocode scribbled a fortnight back. Librarian Jayne has tested and declared herself quite content. We await integration testing with our colleagues in Software Engineering, to check we don’t inadvertently break the Statutory instrument and treaty websites. And once that’s done, our time bound routes card can finally move to the done pile. It’s marvellous having Jianhan back in the fold.

At some point during the week, Anya had cause to share a SPARQL query. SPARQL queries tend to be on the long side. And now that Librarian Jayne has taken to adding comments, they’ve got longer still. Which reminded us that Samu once built a rather snazzy link shortener. Which, at some point, stopped working. A ticket had been raised back in February, but that was when development effort on the data platform was paused. So we enquired of Jianhan, and within an hour it was fixed. Samu - should he still be reading these notes - will be delighted to hear he had “done this elegantly” and it was “easy to spot the issue”. Which turned out to be a token in need of renewal. A reminder has been set for next time. It really, really is marvellous having Jianhan back.

Our Ben has managed to pick up a project investigating how the Lords might digitise their ‘hanging files’. This might take some explanation. The ‘hanging files’ are indeed files. They’re called ‘hanging files’ because they hang. In a cupboard. Alongside an index that looks not unlike a hotel visitors book, except it’s loose-leaf and lists references pointing toward yet more cupboards. The files themselves form part of the institutional memory of the Lords and a historian could probably lose the rest of their lives in there. Michael jotted notes and sketched out a fag packet data model. We’re under the impression that there’s a similar set up in the Commons. If you have access to their “hanging files” and are happy for us to take a peep, we’d be delighted.

In terms of actual mapping, Librarian Jayne and Michael put in a solid hour on Thursday ticking off assorted tidy up tasks. Journal Office Jane pointed out we’d been a little overenthusiastic adding requires routes in our negative procedures, from decisions on motions to decisions taken by committees. There is a Standing Order that prevents their Lordships taking a decision on an affirmative motion before the Joint Committee on Statutory Instruments has reported, but there is no such restriction in the negative procedures. So we’ve removed those routes. For those interested, the Lords public Standing Order for affirmative instruments is number 72. But anchor links appear to have been removed from Standing Orders. So we can’t link to it. You’ll have to take our word.

A bunch of requires routes had also entered our procedures, stating that debates and decisions in the Commons could not happen before EVEL certification. But reading the applicable Standing Orders we could spot no such explicit requirement. So these routes have also been removed.

A couple of weeks back, Jayne and Michael added a new route in the made affirmative map from ‘Instrument remains law’ to ‘Instrument comes into force as law’. This to cope with Class ii) affirmative instruments - which are laid after being made and cannot come into force unless the instrument is approved - under the Local Government Finance Act 1988. This had the unfortunate side-effect of creating free floating bubbles in all our other made affirmative visualisations. That route has been removed, and a new allows route added from ‘Local Government Finance Report (England) approved’ to the coming into force step. Which seems to have fixed everything but made us wonder if we need a whole new procedure to describe Class ii) affirmative instruments. Time will tell.

Another floating bubble rose up from the Greater Manchester Combined Authority (Fire and Rescue Functions) (Amendment) Order 2020 which, rather than being debated, went straight to the question being put in both Houses. This happened this way as it is a copy and paste of an earlier SI which had successfully passed through Parliament, but which government had forgotten to make. No debate took place because the previous instrument had been debated, and nothing had changed since. So we now have an allows route from the tabling of the motion directly to the question being put, bypassing any debate. And one less floating bubble.

A couple of weeks back, assorted librarians and Michael agreed that the ‘Approval period ends’ step of any SI under the Local Government Finance Act 1988 should not be actualised with a date, as the date is of a ‘this date, unless this thing happens first’ variety. Anya disagreed and made her disagreement known. End dates are only ever anticipated. So that rule has now been updated and the one instrument we’ve seen so far re-indexed. She is, after all, the boss.

Away from procedural maps and with one foot firmly in the door of precedence, Robert has been busy writing a Glitch script to load SPARQL queries from Gists, run them against our SPARQL endpoint and return the results as JSON. So now we have another way to share queries. Top work Robert.

Things we did nothing about

Librarian Jayne recently spotted that most rare of things: an Early Day Motion to take note of an SI. After checking in with Martyn and Peter, it was decided that a take note motion on an SI - at least in the Commons - is as procedurally pertinent as a written question being asked about it. So we decided on the easiest and most correct course of action. And did nothing.

Following a brief exchange on Twitter, Arabella kindly agreed to take a look at our treaty map and double check our Standing Order and legislation citation blobs. She suggested we might be missing a route from a committee recommending that the treaty should not be ratified, to the tabling of a motion to not ratify. Jayne and Michael sat down to squint at the map and came to the conclusion that such a route might make sense if the map were to be read as a flowchart. But, given the maps are intended to act more like state diagrams, and that the motion to not ratify is already ‘in play’, they once again came to the conclusion that the route would be redundant and decided to do nothing.

Your weekly egg timer update

In more elevated circles the start of the month is marked by pinching, punching and shouting, “RABBITS!”. In our corner of the world, the beginning of a new month heralds our free Heroku account recovering some tokens and living to fight another day. After running out of two pence pieces somewhere around the 20th of September, the egg timer took a break and our tinkering was rather hard to test. But now it’s back online. At least until we run out of tokens again. This time it has new calculations informed by all the things we’ve learnt from our clerkly and lawyerly friends.

Robert and Michael have been hard at work translating assorted bits of legislation into software. And not only that. The comments are all written in Markdown, with citation links to any informing legislation, which we then pass through Robert’s shiny new Markdown parser to build HTML pages. And more Markdown, of course. Which hopefully means our logic is legible to both clerks and lawyers. If not, we’re more than happy to spend time reading through and translating. Think about it though: legislation as software, with comments, in Markdown, with links, to legislation, parsed into Markdown. Sometimes we thrill ourselves. We now have new calculations for Proposed Negative Statutory Instruments, bicameral and Commons only SIs under the Statutory Instruments Act 1946, and treaties.

On Thursday, Arabella kindly invited Librarian Jayne and Michael to a meeting on how Parliament plans to approach scrutiny of the forthcoming Japan / UK trade deal. Which caused Michael to over excitedly share the egg timer. Whereupon he noticed that it wasn’t working. Because we hadn’t populated the calendar far enough in advance. Jayne leapt to the rescue and populated our assorted calendars up to and including the 22nd of December 2020. At which point, our sync script failed. So Michael spent all of Friday attempting to debug that. And realised at around 6pm the first thing he’d changed at 10am had actually fixed it. But he’d been running the wrong version of Ruby all day. A pretty advanced level of computational cockup. Even by his standards.

Calendars populated, sync script working, code deployed, we now have an anticipated end date for scrutiny falling out of our data and software pipes. It’s a different date to the date currently doing the email rounds. Which either means someone has not spotted scrutiny starts on the first joint sitting day following laying. Or our code is wrong. Again. Next week we plan to sit down with coffee, calendar and abacus and double, triple, quadruple check what’s happening here. Wish us luck. We also plan to plan what our plan is for keeping the calendar up to date. A task to be officially supported by our crack team of librarians.

Our three research departments are keen to improve the quality of search across their output. To this end, we suggested repurposing Robert’s Bing based search, this time scoped to three subdomains. Possibly four. Our Jianhan spent part of last week tinkering with the backend to scope to publishers. And part of this week scoping to types of research papers, based on a list of URL clues provided by Oli. Thanks Oli. Robert has started work on a front end that takes JSON from the Open Search API and renders it. We hope to build a wee form to hook up to Jianhan’s new parameters and present the results as a quick and dirty demo. But this week Jianhan hit a snag. We have a requirement to toggle between listing by relevancy and listing by recency. But Bing isn’t being fed enough data to deal with the latter. So for now the work is on hold, awaiting a meeting next week between Lina and Robert. Or this week, as Anya would say. Once more expressing her own idiosyncratic sense of time.

Strolls

Back in the glory days of weeknotes - when we still wrote with a gentle self-depracating humour and a lightness of touch that now evades us - we regularly made room for recollections of our many strolls. On Tuesday, Anya, Robert and Michael took the afternoon off and headed into The City for a decent stroll that started at Temple, took in a Hawksmoor and ended at the Prospect of Whitby. It was wonderful to see the wheels of commerce spin back into life and a sense of normality finally return. If you’re Edgar Allan Poe anyway.