diff --git a/followthemoney/schema/Occupancy.yaml b/followthemoney/schema/Occupancy.yaml new file mode 100644 index 000000000..ac85dab7c --- /dev/null +++ b/followthemoney/schema/Occupancy.yaml @@ -0,0 +1,40 @@ +Occupancy: + label: "Occupancy" + plural: "Occupancies" + extends: Interval + matchable: false + description: > + The occupation of a position by a person for a specific period of time. + featured: + - holder + - post + required: + - holder + - post + edge: + source: holder + label: holds + target: post + directed: true + caption: + - startDate + - endDate + properties: + holder: + label: "Holder" + reverse: + name: positionOccupancies + label: "Position Occupancies" + type: entity + range: Person + post: + label: "Position occupied" + reverse: + name: occupancies + label: "Occupancies" + type: entity + range: Position + status: + label: "Status" + type: string + diff --git a/followthemoney/schema/Position.yaml b/followthemoney/schema/Position.yaml new file mode 100644 index 000000000..ae2154c35 --- /dev/null +++ b/followthemoney/schema/Position.yaml @@ -0,0 +1,48 @@ +Position: + label: "Position" + plural: "Positions" + extends: Thing + matchable: false + # cf. https://www.popoloproject.com/specs/post.html + description: > + A post, role or position within an organization or body. + This describes a position one or more people may occupy + and not the occupation of the post by a specific individual at a + specific point in time. + + 'subnationalArea' should be used to further restrict the scope of the + position. It should not simply represent some regional aspect of the + role - e.g. the constituency of a national member of parliament - when + their legislative jurisdiction is nationwide. + featured: + - name + - organization + caption: + - name + required: + - name + temporalExtent: + start: + - inceptionDate + end: + - dissolutionDate + properties: + organization: + label: "Organization" + type: entity + reverse: + name: positions + label: Positions + range: Organization + inceptionDate: + label: Inception date + type: date + dissolutionDate: + label: Dissolution date + type: date + subnationalArea: + label: Subnational jurisdiction name or code + type: string + numberOfSeats: + label: Total number of seats + type: number