人物

使用 Person 實體定義人物相關資訊。這個人可能是候選人、選舉官員或回報單位的權威人士。ElectionReport 元素包含 PersonCollection,其中含有這個動態饋給中的完整 Person 物件組合。Candidate 和 GpUnit 會參照這些 Person 物件。PersonCollection 可選用 ContactInformation 聯絡資訊,以建立關聯。

屬性

下表說明 Person 元素的屬性:

屬性 是否必要? 類型 說明
objectId 必填 ID 其他元素用來參照這個元素的專屬內部 ID。

元素

下表說明 Person 的元素:

元素 多重性 類型 說明
Alias 0 以上 InternationalizedText 此人的其他名稱。
ContactInformation 0 以上 ContactInformation

將聯絡資訊與使用者建立關聯。

這項資訊必須包含加上註解的 URI,該 URI 須以 wikipedia 加上註解,並指定該人物的標準維基百科頁面 (如有)。並提供任何其他已知的個人社群媒體 URI 或網站。這項資訊必須專指該人員,而非其辦公室或部門。

DateOfBirth 0 或 1 PartialDate 出生日期。
ExternalIdentifiers 1 ExternalIdentifiers 將 ID 與使用者建立關聯。必須提供穩定 ID。
FirstName 0 或 1 string 使用者的名字。
FullName 1 InternationalizedText 該人員的全名。如要瞭解如何處理多種語言的全名,請參閱「當地語言內容」。
Gender 0 或 1 string

人物的性別。Gender 的可用值如下:

  • 男性:m、male 或 man
  • 女性:f、female 或 woman
  • 其他性別:o、x、other 或 nonbinary
ImageUri 0 以上 AnnotatedUri 提供人物圖片直接連結的 URI。圖片必須授權給第三方使用。
LastName 0 或 1 string 使用者的姓氏。
MiddleName 0 以上 string 使用者的中間名。
Nickname 0 或 1 string 與人物相關聯的暱稱 (如果對方有廣為人知的別名)。
PartyId 須為 1 以上 IDREF Party 元素的專屬 ID。將政黨與該人員建立關聯。提供與該使用者相關聯的objectIdParty。
Prefix 0 或 1 string 與使用者相關聯的前置字元,例如「Mr.」或「Dr.」
Profession 0 或 1 InternationalizedText 使用者的職業。
Suffix 0 或 1 string 與該使用者相關聯的後置詞,例如 Jr.
Title 0 或 1 InternationalizedText 與人物相關聯的職稱。

範例

XML

    <Person objectId="per-12321">
      <ContactInformation>
        <Uri Annotation="candidate-image">https://example.come/candidates/ayron-silva.jpg</Uri>
        <Uri Annotation="official-facebook">https://fb.com/ayronsilvasample/</Uri>
        <Uri Annotation="official-instagram">https://www.instagram.com/ayron_silva_sample/</Uri>
        <Uri Annotation="official-twitter">https://twitter.com/ayronsilvasample</Uri>
        <Uri Annotation="official-website">https://ayron-silva-sample.com/</Uri>
        <Uri Annotation="official-youtube">https://www.youtube.com/user/ayron831/featured</Uri>
        <Uri Annotation="wikipedia">https://en.wikipedia.org/wiki/Ayron-Silva-Sample</Uri>
        <Uri Annotation="wikipedia">https://zh.wikipedia.org/zh/%E8%94%A1%E8%8B%B1%E6%96%87</Uri>
        <Uri Annotation="campaign">https://ayronsilvacampaign.com</Uri>
      </ContactInformation>
      <ExternalIdentifiers>
        <ExternalIdentifier>
          <Type>other</Type>
          <OtherType>stable</OtherType>
          <Value>per-12321</Value>
        </ExternalIdentifier>
      </ExternalIdentifiers>
      <FullName>
        <Text language="pt">Ayrton Silva</Text>
        <Text language="en">Ayrton Silva</Text>
        <Text language="hi">एर्टन सेना</Text>
        <Text language="ja">アイルトン・シルバ</Text>
      </FullName>
      <DateOfBirth>1960-01-01</DateOfBirth>
      <Gender>M</Gender>
      <LastName>Silva</LastName>
      <PartyId>par-dpp</PartyId>
      <PartyId>par-exp</PartyId>
    </Person>