選挙レポート

ルート エンティティとして ElectionReport を使用します。レポートのステータス、形式、生成日時に関する項目を定義します。

ElectionReport には、次の主要要素が含まれています。

Election と同様に、ElectionReport は、Election を除く要素の出現をコンテナ要素で「ラップ」します。これにより、XML ビューアやエディタでインスタンス ファイルを簡単に操作できます。

役職や政党など、項目の特定の並べ替えスキームを維持することが重要な場合があります。このような場合、生成アプリケーションは、すでに設定されている順序付けスキームに従ってこれらの要素を定義する必要があります。

要素

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

要素 重複 タイプ 説明
CommitteeCollection 0 または 1 なし Committee 定義のラッパー要素。詳細については、コレクション エンティティをご覧ください。
Election 0 以上 Election レポートに選挙を関連付けます。
ElectoralCommissionCollection 0 または 1 なし ElectoralCommission 定義のラッパー要素。詳細については、コレクション エンティティをご覧ください。
ExternalIdentifiers 0 または 1 ExternalIdentifiers レポートに ID を関連付けます。
Format 1 ReportDetailLevel レポートの詳細レベル(選挙の概要や選挙区レベルの結果など)を指定します。
GeneratedDate 1 dateTime 選挙レポートが生成された日時を示します。
GpUnitCollection 0 または 1 なし GpUnit 定義のラッパー要素。詳細については、コレクション エンティティをご覧ください。
Issuer 1 string レポート発行者の ID。
IssuerAbbreviation 1 string レポート発行元の略称(結果が報告されている州や選挙区の略称など)。
IsTest 0 または 1 boolean レポートがテストレポートかどうかを示します。この要素が存在しない場合、デフォルト値は false です。
Notes 0 または 1 string レポートに任意のメッセージを含める際に使用します。
OfficeCollection 0 または 1 なし Office 定義のラッパー要素。詳細については、コレクション エンティティをご覧ください。
GovernmentBodyCollection 0 または 1 なし GovernmentBody 定義のラッパー要素。詳細については、コレクション エンティティをご覧ください。
PartyCollection 0 または 1 なし Party 定義のラッパー要素。詳細については、コレクション エンティティをご覧ください。
PersonCollection 0 または 1 なし Person 定義のラッパー要素。詳細については、コレクション エンティティをご覧ください。
SequenceStart 1 integer レポートの番号(レポートの連続性を表す)。この要素は SequenceEnd とともに使用され、「1/1」、「1/2」、「2/2」のように読み取られます。1 で始まります。
SequenceEnd 1 integer 一連のレポートの上限。たとえば、レポートが 1 つの場合は 1、シーケンスに 2 つのレポートがある場合は 2 です。
Status 1 ResultsStatus 選挙レポートのステータス(選挙前、非公式など)。
TestType 0 または 1 string テストの種類の説明(事前選択、ロジック、精度など)。
VendorApplicationID 1 string 選挙レポートを生成するベンダー アプリケーションの識別子。例: X-EMS version 3.1.a
VoterInformationCollection 0 または 1 なし VoterInformation 定義のラッパー要素。詳細については、コレクション エンティティをご覧ください。

XML

    <ElectionReport xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <Election>…</Election>
      <GpUnitCollection>
        <GpUnit objectId="ru-gpu0">…</GpUnit>
        <GpUnit objectId="ru-gpu1">…</GpUnit>
      </GpUnitCollection>
      <OfficeCollection>
        <Office objectId="off0001a">…</Office>
      </OfficeCollection>
      <GovernmentBodyCollection>
        <GovernmentBody objectId="gov0001a">…</GovernmentBody>
      </GovernmentBodyCollection>
      <PartyCollection>
        <Party objectId="par001">…</Party>
        <Party objectId="par002">…</Party>
      </PartyCollection>
      <PersonCollection>
        <Person objectId="per001">…</Person>
        <Person objectId="per002">…</Person>
      </PersonCollection>
      <Issuer>Example Data Provider</Issuer>
      <IssuerAbbreviation>EDP</IssuerAbbreviation>
      <Format>summary-contest</Format>
      <GeneratedDate>2013-11-05T14:25:28</GeneratedDate>
      <Status>unofficial-partial</Status>
      <VendorApplicationId>Hand-Generated v0.1</VendorApplicationId>
      <SequenceStart>1</SequenceStart>
      <SequenceEnd>1</SequenceEnd>
    </ElectionReport>

JSON

    {
      "@type": "ElectionReport",
      "Election": [
        ...
      ],
      "GpUnitCollection": {
        "GpUnit": [
          {...},
          {...}
        ]
      },
      "OfficeCollection": {
        "Office": [
          {
            "objectId": "off0001a",
            ...
          }
        ]
      },
      "PartyCollection": {
        "Party": [
          {
            "objectId": "par001",
            ...
          },
          {
            "objectId": "par002",
            ...
          }
        ]
      },
      "PersonCollection": {
        "Person": [
          {
            "objectId": "per001",
            ...
          },
          {
            "objectId": "per002",
            ...
          }
        ]
      },
      "Issuer": "Example Data Provider",
      "IssuerAbbreviation": "EDP",
      "Format": "summary-contest",
      'GeneratedDate": "2013-11-05T14:25:28",
      "Status": "unofficial-partial",
      "VendorApplicationId": "Hand-Generated v0.1",
      "SequenceStart": 1,
      "SequenceEnd": 1
    }