Person
항목을 사용하여 사람에 관한 정보를 정의합니다. 이 사람은 후보, 선거 공무원 또는 보고 단위의 기관일 수 있습니다. ElectionReport
요소에는 이 피드의 전체 Person
객체 세트를 포함하는 PersonCollection
가 포함됩니다. 이러한 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"] } ]