Person
エンティティを使用して、人物に関する情報を定義します。該当する人物は、候補者、選挙管理者、報告単位の機関である可能性があります。ElectionReport
要素には PersonCollection
が含まれます。これには、このフィード内の Person
オブジェクトの完全なセットが含まれます。これらの Person
オブジェクトは、Candidate
と GpUnit
で参照されます。PersonCollection
には、連絡先情報を関連付ける ContactInformation
を含めることができます。
属性
次の表に、Person
要素の属性を示します。
属性 | 必須かどうか | 型 | 説明 |
---|---|---|---|
objectId |
必須 | ID |
他の要素がこの要素を参照するために使用する一意の内部識別子。 |
要素
次の表に、Person
の要素を示します。
要素 | 重複 | タイプ | 説明 |
---|---|---|---|
ContactInformation |
0 以上 | ContactInformation |
連絡先情報をユーザーに関連付けます。 これには、 人物の画像を追加する場合は、URI に |
DateOfBirth
|
0 または 1 | PartialDate |
ユーザーの生年月日。 |
ExternalIdentifiers |
1 | ExternalIdentifiers |
ID をユーザーに関連付けます。安定した識別子が必要です。 |
FirstName |
0 または 1 | string |
お客様の名前(ファースト ネーム)。 |
FullName |
1 | InternationalizedText |
お客様の氏名。複数の言語でフルネームを処理する方法については、現地の言語コンテンツをご覧ください。 |
Gender |
0 または 1 | string |
個人の性別。
|
LastName |
0 または 1 | string |
お客様の姓(家族名)。 |
MiddleName |
0 以上 | string |
お客様のミドルネーム。 |
Nickname |
0 または 1 | string |
よく知られているエイリアスがある場合は、その人物に関連付けられているニックネーム。 |
PartyId |
1 以上 | IDREF |
Party 要素の一意の識別子。人物に政党を関連付けます。このユーザーが関連付けられている Party の objectId を指定します。 |
Prefix |
0 または 1 | string |
個人に関連付けられた接頭辞(「Mr.」や「Dr.」など) |
Profession |
0 または 1 | InternationalizedText |
人物の職業。 |
Suffix |
0 または 1 | string |
個人に関連付けられた接尾辞(Jr. など) |
Title |
0 または 1 | InternationalizedText |
人物に関連付けられた役職。 |
例
XML
<Person objectId="P12321"> <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>stable-pers-P12321</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>
JSON
"Person": [ { "objectId": "P12321", "ContactInformation": { "Uri": [ "Annotation": "candidate-image" "value": "https://example.come/candidates/ayron-silva.jpg" ], "Uri": [ "Annotation": "official-facebook" "value": "https://fb.com/ayronsilvasample/" ] "Uri": [ "Annotation": "official-instagram" "value": "https://www.instagram.com/ayron_silva_sample" ] "Uri": [ "Annotation": "official-twitter" "value": "https://twitter.com/ayronsilvasample" ] "Uri": [ "Annotation": "official-website" "value": "https://ayron-silva-sample.com/" ] "Uri": [ "Annotation": "official-youtube" "value": "https://www.youtube.com/user/ayron831/featured" ] "Uri": [ "Annotation": "wikipedia" "value": "https://en.wikipedia.org/wiki/Ayron-Silva-Sample" ] "Uri": [ "Annotation": "wikipedia" "value": "https://zh.wikipedia.org/zh/%E8%94%A1%E8%8B%B1%E6%96%87" ], "Uri": [ "Annotation": "campaign" "value": "https://ayronsilvacampaign.com" ] } "ExternalIdentifiers": { "ExternalIdentifier" : [ { "Type": "other", "OtherType": "stable", "Value": "stable-pers-P12321" } ] } "FullName": { "Text": [ { "value": "Ayrton Silva", "language": "pt" }, { "value": "Ayrton Silva", "language": "en" }, { "value": "एर्टन सेना", "language": "hi" }, { "value": "アイルトン・シルバ", "language": "ja" } ] }, "DateOfBirth": "1960-01-01", "Gender": "M", "LastName": "Silva" "PartyId": ["par-dpp","par-exp"] } ]