opencivicdata / scrapers-ca

Canadian legislative scrapers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Toronto: Find related agenda items

patcon opened this issue · comments

http://docs.opencivicdata.org/en/latest/data/bill.html#other-related-bills

Can probably do this via regex search of full text:

([A-Z]{2}\d+\.\d+)

Any thoughts on how we'd need to expand the spec to allow more than companion bills. Toronto has a bad habit of creating new agenda items when things come back from certain internal bodies (ie staff), so would be nice to explicitly connect all mentioned agenda items. We can figure out more semantic ways of associating them later.

Actually, I don't think those cover it. For my general purposes (ie before we know what time of relationship), I'd like to simply add a "relates-to". This could perhaps be a two-way relation, as it would be nice if a relation was added back to the one that mentions that other one.

Thoughts?

Would the best solution be to use add_related_bill and expand the options for BILL_RELATION_TYPES?