popolo-project / popolo-spec

International legislative data specifications
http://www.popoloproject.com/
99 stars 18 forks source link

Job sharing #16

Closed dracos closed 11 years ago

dracos commented 11 years ago

If a parliament allows two people to jobshare the post of Member of Parliament for Avalon (a mooted proposal of at least one party here in the UK), and in general any Post that is shared between multiple people, how would this be modelled?

jpmckinney commented 11 years ago

The ORG ontology allows organizations to hold posts: http://www.w3.org/TR/vocab-org/ and it does that because the UK govt needed it to model its civil servants correctly. Update: The ORG ontology also does not prevent multiple people from holding a post.

In Popolo, I introduce a restriction to prevent that usage, in order to make the JSON and MongoDB serialization simpler, given that in the vast majority of cases, it's a single person holding a post: http://popoloproject.com/data.html#restrictions

We can lift that restriction and give Post a person_ids field which is an array of IDs, at the expense of making the data model more complex. Alternatively, we can keep the singular person_id and describe in which cases you might prefer to use person_ids.

How does that sound?

Update: Having potentially both person_id and person_ids means that you'd have to query both - an argument in favor of just picking one.

jpmckinney commented 11 years ago

Ok, taken care of by this proposal: https://github.com/opennorth/popolo-standard/wiki/2013-02-28-Rework-Membership-and-Post

Feel free to add comments on the proposal here or on the wiki page.

jpmckinney commented 11 years ago

Currently integrating that proposal into the spec. Continuing in #15