ใช้เอนทิตี Person
เพื่อกำหนดข้อมูลเกี่ยวกับบุคคล บุคคลดังกล่าวอาจเป็นผู้สมัคร เจ้าหน้าที่การเลือกตั้ง หรือหน่วยงานที่รายงาน องค์ประกอบ ElectionReport
ประกอบด้วย PersonCollection
ซึ่งมีออบเจ็กต์ Person
ครบชุดในฟีดนี้ มีการอ้างอิงออบเจ็กต์ Person
เหล่านี้ใน Candidate
และ GpUnit
PersonCollection
(ไม่บังคับ) จะมี ContactInformation
เพื่อเชื่อมโยงข้อมูลติดต่อ
Attributes
ตารางต่อไปนี้อธิบายแอตทริบิวต์สำหรับองค์ประกอบ Person
แอตทริบิวต์ | จำเป็นหรือไม่ | Type | คำอธิบาย |
---|---|---|---|
objectId |
จำเป็น | ID |
ตัวระบุภายในที่ไม่ซ้ำกันซึ่งองค์ประกอบอื่นๆ ใช้เพื่ออ้างอิงองค์ประกอบนี้ |
องค์ประกอบ
ตารางต่อไปนี้อธิบายองค์ประกอบสำหรับ Person
องค์ประกอบ | ความหลากหลาย | Type | คำอธิบาย |
---|---|---|---|
ContactInformation |
0 ขึ้นไป | ContactInformation |
เชื่อมโยงข้อมูลติดต่อกับบุคคลนั้น ซึ่งต้องมี URI ที่มีคำอธิบายประกอบที่มีคำอธิบายประกอบ หากใส่รูปภาพของบุคคล ให้ระบุคำอธิบายประกอบ URI ด้วยคำอธิบายประกอบ |
DateOfBirth
|
0 หรือ 1 | PartialDate |
วันเกิดของผู้ใช้ |
ExternalIdentifiers |
1 | ExternalIdentifiers |
เชื่อมโยงบัตรประจำตัวกับบุคคลนั้น คุณต้องมีตัวระบุแบบคงที่ |
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 เชื่อมโยงพรรคการเมืองกับบุคคลดังกล่าว ระบุ objectId ของ Party ที่เชื่อมโยงกับบุคคลนี้ |
Prefix |
0 หรือ 1 | string |
คำนำหน้าที่เชื่อมโยงกับบุคคล เช่น นายหรือดร. |
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> </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" } ]