选票

使用 BallotSelection 标识竞赛中的选票选择,例如将候选人和政党与其得票数相关联时。

本文档讨论了 BallotSelection 及其子实体:

  • BallotSelection
    • CandidateSelection
    • PartySelection
    • BallotMeasureSelection
    • SpecialBallotSelection

选择以下一种 Feed 类型,详细了解如何将 BallotSelection 及其固有元素与该类型的 Feed 搭配使用。


SpecialBallotSelection

此类型的 BallotSelection 用于得票数汇总(例如,将多位候选人汇总到“其他”)和不同类型的非投票(即空白选票、无效或废弃选票,以及“以上皆非”投票)。

SpecialBallotSelection 不应在 Contest 的常规 BallotSelection 子元素中使用,而应在 Contest 上使用自己的不同字段, 即 AggregateBallotSelectionBlankBallotSelectionNoneOfTheAboveBallotSelectionNullBallotSelection。如需了解详情,请参阅 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>