Format Specification Elections
As file formats, CSV, XLS or XLSX files are accepted, which are generated by “Wabsti elections and votes (VRSG)” or by the web application itself. If a table is to be created by hand, then the format of the web application (OneGov) is the easiest.
Content
Preface
Entities
An entity is either a municipality (cantonal instances, communal instances without quarters) or a quarter (communal instances with quarters).
Tacit Elections
Tacit elections can be uploaded by using the OneGov format with every vote set to 0
.
Regional Elections
When uploading results of a regional election, only entities of one district are excepted to be present, if the corresponding option is set on the election.
Formats
Onegov
The format, which will be used by the web application for the export, consists of a single file per election. There is a row for each municipality and candidate.
Columns
The following columns will be evaluated and should exist:
Name |
Description |
---|---|
|
Absolute majority of the election, only if Majorz election. |
|
Status of the election. |
|
BFS number of the municipality. A value of |
|
|
|
Number of persons entitled to vote in municipality. |
|
Number of expats in the unit. Optional. |
|
Number of submitted ballots in municipality. |
|
Number empty ballots in municipality. |
|
Number invalid ballots in municipality. |
|
Number empty votes in municipality. |
|
Number invalid votes in municipality. Zero if Proporz election. |
|
Name of list of candidate. Only with Proporz elections. |
|
ID of the list of the candidate. Only with Proporz elections. Can be numeric or alphanumeric. |
|
The color of the list as a hexadecimal value, e.g. |
|
Total number of mandates of the list. Only with Proporz elections. |
|
Number of list votes per municipality. Only with Proporz elections. |
|
ID of the list connection or superordinate list connection (in case list_connection_parent is present). Only with Proporz elections. |
|
ID of the superordinate list connection. Only with Proporz elections. Must be empty if not subordinates lists are present. |
|
ID of the candidate. |
|
Surname of the candidate. |
|
First name of the candidate. |
|
True, if the candidate was elected. |
|
The name of the party. |
|
The color of the party as a hexadecimal value, e.g. |
|
The gender of the candidate: |
|
The year of the candidate. Optional. |
|
Number of candidate votes in municipality. |
List panachage results
The results may contain list panachage results by adding one column per list:
Name |
Description |
---|---|
|
The number of votes the list got from the list with |
Candidate panachage results
The results may contain candidate panachage results by adding one column per list:
Name |
Description |
---|---|
|
The number of votes the candidate got from the list with |
Temporary results
Municipalities are deemed not to have been counted yet if one of the following two conditions apply:
counted = false
the municipality is not included in the results
If the status is
interim
, the whole election is considered not yet completedfinal
, the whole election is considered completedunknown
, the whole election is considered completed, if all (expected) municipalities are counted
Election compounds
The results of election compounds can be uploaded in a bundle by providing a single file with all the rows of the results of each election.
Template
WabstiCExport Majorz
Version >= 2.2
is supported, please refer to the documentation provided by the exporter program for more information about the columns of the different files.
WabstiCExport Proporz
Version >= 2.2
is supported, please refer to the documentation provided by the exporter program for more information about the columns of the different files.
Party results
Each (proporz) election and each election compound may contain party results. These results are independent of the other results and typically contain the already aggregated results of the different lists of a party.
The following columns will be evaluated and should exist:
Name |
Description |
---|---|
|
The domain of influence to which the line applies. Optional. |
|
The unit of the domain of influence to which the line applies. Optional. |
|
The year of the election. |
|
The total votes of the election. |
|
The name of the party in the default language. Optional*. |
|
Translated name of the party, e.g. |
|
ID of the party (any number). |
|
The color of the party as a hexadecimal value, e.g. |
|
The number of mandates. |
|
The number of votes. |
|
Voters count. The cumulative number of votes per total number of mandates per election. For election compounds only. |
|
Voters count (percentage). The cumulative number of votes per total number of mandates per election (percentage). For election compounds only. |
Domain of influence
domain
and domain_segment
allow to provide party results for a different domain of influence other than that of the election or the compound. domain
corresponds to a subdomain of influence of the election or compound, e.g. for cantonal parliamentary elections superregion
, region
, district
or municipality
depending on the canton. domain_segment
corresponds to a unit in this subdomain of influence, e.g. Region 1
, Bergün
, Toggenburg
or Zug
. Normally, both domain
and domain_segment
can be empty or omitted. Normally both domain
and segment_domain
can be left blank or omitted; in this case domain
is implicitly set to the domain
of the election or compound. Currently, only the domain
of the election or compound is supported, as well as domain='superregion
for compounds.
Panachage results
The results may contain panachage results by adding one column per party:
Name |
Description |
---|---|
|
The number of votes the party got from the party with |
Panachage results are only added if:
year
matches the year of the electionid (XX)
does not match theid
of the row