I've been thinking about literate programming for government policy / laws. Composing law documents using python notebook/R markdown. This could allow citizen's to more easily draft, assess or monitor new laws. Or build services around the 'API' of the law. Having the wording and entities semantically defined in code would probably help move towards modelling you are interested in. Here's my blog about it
http://fozy81.github.io/2016/02/25/r-markdown-for-policy-doc...