everypolitician / commons-builder

Build scripts for Democratic Commons repositories
MIT License
1 stars 0 forks source link

Roles with multiple superclasses lead to duplicate membership objects #93

Open alexdutton opened 6 years ago

alexdutton commented 6 years ago

The President of Brazil has two superclasses: head of government, and president. The superclasses have disjoint inheritances, so we can't exclude one for being in the inheritance graph of the other.

At the moment our executive query returns multiple sets of bindings, one for each role superclass. We need a way to pick the more sensible of the two, and only output one membership object.

This problem may also apply to legislative roles.

crowbot commented 6 years ago

I guess another option here is to allow more than one role_superclass element, although I'm not sure how meaningful that would be.

crowbot commented 6 years ago

Decide what to do about roles with multiple role superclasses