Verwenden Sie BallotSelection, um die Wahlauswahl in einem Wettbewerb zu identifizieren, z. B. wenn Sie Kandidaten und Parteien mit ihren Stimmenzahlen verknüpfen.
In diesem Dokument werden BallotSelection und die zugehörigen untergeordneten Einheiten behandelt:
BallotSelectionCandidateSelectionPartySelectionBallotMeasureSelectionSpecialBallotSelection
Wählen Sie einen der folgenden Feedtypen aus, um mehr darüber zu erfahren, wie Sie BallotSelection und die zugehörigen Elemente mit diesem Feedtyp verwenden.
SpecialBallotSelection
Dieser Typ von BallotSelection wird für die Aggregation von Stimmen verwendet, z.B. um mehrere Kandidaten in „Andere“ zu aggregieren, sowie für verschiedene Arten von Nicht-Stimmen, z.B. leere Stimmzettel, ungültige oder verdorbene Stimmzettel und Stimmen für „Keiner der oben genannten“.
SpecialBallotSelection sollte nicht im allgemeinen Unterelement BallotSelection von Contest verwendet werden, sondern hat eigene Felder in Contest, nämlich AggregateBallotSelection, BlankBallotSelection, NoneOfTheAboveBallotSelection und NullBallotSelection. Weitere Informationen finden Sie unter Contest-Elemente.
Elemente
In der folgenden Tabelle werden die Elemente für SpecialBallotSelection beschrieben:
| Element | Multiplizität | Typ | Beschreibung |
|---|---|---|---|
CountedInTotal |
0 oder 1 | boolean |
Ob die Stimmen der ausgewählten Entität in die Gesamtzahl der Stimmen einfließen, die als bemerkenswert gelten. Wenn nicht angegeben, wird true angenommen.
|
ExternalIdentifiers |
0 oder 1 | ExternalIdentifiers |
Weist der Auswahl der Abstimmung eine ID zu. Eine stabile Kennung ist erforderlich. |
Selection |
1 | InternationalizedText |
Gibt einen Namen für diese Auswahl an, z. B. „Andere“ oder „Keine der oben genannten Optionen“. |
Beispiele
XML
<AggregateBallotSelection objectId="selection3"> <Selection> <Text language="en">Other Candidates</Text> </Selection> <ExternalIdentifiers> <ExternalIdentifier> <Type>other</Type> <OtherType>stable</OtherType> <Value>selection3</Value> </ExternalIdentifier> </ExternalIdentifiers> </AggregateBallotSelection> <!-- Counts of ballots left blank --> <BlankBallotSelection objectId="selection4"> <Selection> <Text language="en">Blank ballots</Text> </Selection> <!-- These ballots count in the total and can affect majorities --> <CountedInTotal>true</CountedInTotal> <ExternalIdentifiers> <ExternalIdentifier> <Type>other</Type> <OtherType>stable</OtherType> <Value>selection4</Value> </ExternalIdentifier> </ExternalIdentifiers> </BlankBallotSelection> <!-- Votes for "None of the above" option on the ballot --> <NoneOfTheAboveBallotSelection objectId="selection5"> <!-- The NOTA selection optiona as it appears on the ballot, often "None of the above", "None", or "Uncommitted" --> <Selection> <Text language="en">None</Text> </Selection> <!-- These ballots count in the total and can affect majorities --> <CountedInTotal>true</CountedInTotal> <ExternalIdentifiers> <ExternalIdentifier> <Type>other</Type> <OtherType>stable</OtherType> <Value>selection5</Value> </ExternalIdentifier> </ExternalIdentifiers> </NoneOfTheAboveBallotSelection> <!-- Counts of null or spoiled ballots, i.e. ballots that have been marked in a way that the vote cannot be counted --> <NullBallotSelection objectId="selection5"> <!-- How these ballots are often called in a given country, often "null" or "spoiled" --> <Selection> <Text language="en">Spoiled ballots</Text> </Selection> <!-- These ballots do count in the total and are treated as the same as if this vote did not happen at all --> <CountedInTotal>false</CountedInTotal> <ExternalIdentifiers> <ExternalIdentifier> <Type>other</Type> <OtherType>stable</OtherType> <Value>selection5</Value> </ExternalIdentifier> </ExternalIdentifiers> </NullBallotSelection>
JSON
"AggregateBallotSelection": { "objectId": "selection3", "Selection": { "Text": { "@language": "en", "#text": "Other Candidates" } }, "ExternalIdentifiers": { "ExternalIdentifier": { "Type": "other", "OtherType": "stable", "Value": "selection3" } }, }, "BlankBallotSelection": { "objectId": "selection4", "Selection": { "Text": { "@language": "en", "#text": "Blank Ballots" } }, "CountedInTotal": true, "ExternalIdentifiers": { "ExternalIdentifier": { "Type": "other", "OtherType": "stable", "Value": "selection4" } } }, "NoneOfTheAboveBallotSelection": { "objectId": "selection5", "Selection": { "Text": { "@language": "en", "#text": "None" } }, "CountedInTotal": true, "ExternalIdentifiers": { "ExternalIdentifier": { "Type": "other", "OtherType": "stable", "Value": "selection5" } } }, "NullBallotSelection": { "objectId": "selection5", "Selection": { "Text": { "@language": "en", "#text": "Spoiled ballots" } }, "CountedInTotal": false, "ExternalIdentifiers": { "ExternalIdentifier": { "Type": "other", "OtherType": "stable", "Value": "selection5" } } }