使用 Person 实体定义有关人员的信息。此人可能是报告单位的候选人、选举官员或主管机关。ElectionReport 元素包含 PersonCollection,后者包含相应 Feed 中的完整 Person 对象集。这些 Person 对象在 Candidate 和 GpUnit 中引用。PersonCollection 可选地包含 ContactInformation 以关联联系信息。
属性
下表介绍了 Person 元素的属性:
| 属性 | 是否必需? | 类型 | 说明 |
|---|---|---|---|
objectId |
必需 | ID |
供其他元素引用此元素的唯一内部标识符。 |
元素
下表介绍了 Person 的元素:
| 元素 | 多样性 | 类型 | 说明 |
|---|---|---|---|
ContactInformation |
0 个或更多 | ContactInformation |
将联系信息与人员相关联。 这必须包含一个带注释的 URI,该 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"] } ]