風船選択

BallotSelection を使用して、候補者や政党を投票数にリンクする場合など、選挙の投票選択肢を特定します。

このドキュメントでは、BallotSelection とそのサブエンティティについて説明します。

  • BallotSelection
    • CandidateSelection
    • PartySelection
    • BallotMeasureSelection
    • SpecialBallotSelection

次のいずれかのフィードタイプを選択して、BallotSelection とその固有の要素をそのタイプのフィードで使用する方法の詳細をご覧ください。


SpecialBallotSelection

このタイプの BallotSelection は、投票数の集計(複数の候補者を「その他」に集計するなど)や、さまざまな種類の無効票(白票、無効票、破損票、「上記のいずれでもない」票など)に使用されます。

SpecialBallotSelection は、Contest の一般的な BallotSelection サブ要素で使用しないでください。代わりに、Contest に独自のフィールド(AggregateBallotSelection、BlankBallotSelection、NoneOfTheAboveBallotSelection、NullBallotSelection)があります。詳しくは、Contest 要素をご覧ください。

要素

次の表に、SpecialBallotSelection の要素を示します。

要素 重複 タイプ 説明
CountedInTotal 0 または 1 boolean エンティティの選択の投票数が、注目に値すると見なされる合計投票数にカウントされるかどうか。指定しない場合は true と見なされます。
ExternalIdentifiers 0 または 1 ExternalIdentifiers 投票法案の選択に ID を関連付けます。安定した識別子が必要です。
Selection 1 InternationalizedText この投票選択肢の名前(「その他」、「上記のいずれでもない」など)を指定します。

例

XML

    <AggregateBallotSelection objectId="sbs-3">
      <Selection>
        <Text language="en">Other Candidates</Text>
      </Selection>
      <ExternalIdentifiers>
        <ExternalIdentifier>
          <Type>other</Type>
          <OtherType>stable</OtherType>
          <Value>sbs-3</Value>
        </ExternalIdentifier>
      </ExternalIdentifiers>
    </AggregateBallotSelection>
    <!-- Counts of ballots left blank -->
    <BlankBallotSelection objectId="sbs-4">
      <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>sbs-4</Value>
        </ExternalIdentifier>
      </ExternalIdentifiers>
    </BlankBallotSelection>
    <!-- Votes for "None of the above" option on the ballot -->
    <NoneOfTheAboveBallotSelection objectId="sbs-5">
      <!--
        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>sbs-5</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="sbs-6">
      <!--
        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>sbs-6</Value>
        </ExternalIdentifier>
      </ExternalIdentifiers>
    </NullBallotSelection>