使用 Person 实体可定义有关个人的信息。此人可能是候选人、选举官员或报告单位的负责人。
ElectionReport 元素包含
PersonCollection,其中包含此
Feed 中的完整 Person 对象集。这些 Person 对象在
Candidate 和
GpUnit 中被引用。A 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 |
个人的性别。以下值可用于
|
ImageUri |
0 个或更多 | AnnotatedUri |
提供个人图片直接链接的 URI。该图片 必须获得第三方使用许可。 |
LastName |
0 或 1 | string |
个人的姓氏。 |
MiddleName |
0 个或更多 | string |
个人的中间名。 |
Nickname |
0 或 1 | string |
与个人关联的昵称(如果个人有常用 别名)。 |
PartyId |
1 个或更多 | IDREF |
元素的唯一标识符。Party将政党与个人相关联。提供与此人关联的
Party 的 objectId。 |
Prefix |
0 或 1 | string |
与个人关联的前缀,例如先生或 博士 |
Profession |
0 或 1 | InternationalizedText |
个人的职业。 |
Suffix |
0 或 1 | string |
与个人关联的后缀,例如“小”。 |
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"] } ]