Użyj typu treści Person
, aby zdefiniować informacje o osobach. Może to być kandydat, urzędnik wyborczy lub organ jednostki raportującej. Element ElectionReport
zawiera element PersonCollection
, który zawiera pełny zestaw obiektów Person
w tym pliku danych. Te obiekty Person
są używane w Candidate
i GpUnit
. PersonCollection
opcjonalnie zawiera ContactInformation
, aby powiązać informacje kontaktowe.
Atrybuty
W tabeli poniżej opisano atrybuty elementu Person
:
Atrybut | Wymagany? | Typ | Opis |
---|---|---|---|
objectId |
Wymagane | ID |
Unikalny wewnętrzny identyfikator używany przez inne elementy do odwoływania się do tego elementu. |
Elementy
W tabeli poniżej opisano elementy Person
:
Element | Mnogość | Typ | Opis |
---|---|---|---|
ContactInformation |
0 lub więcej | ContactInformation |
Powiązanie danych kontaktowych z osobą. Musi on zawierać otagowany adres URI z oznaczeniem Jeśli dodasz zdjęcie osoby, dodaj do identyfikatora URI adnotację |
DateOfBirth
|
0 lub 1 | PartialDate |
Data urodzenia danej osoby. |
ExternalIdentifiers |
1 | ExternalIdentifiers |
Powiązanie identyfikatora z osobą. Wymagany jest stabilny identyfikator. |
FirstName |
0 lub 1 | string |
Imię danej osoby. |
FullName |
1 | InternationalizedText |
Imię i nazwisko osoby. Szczegółowe informacje o obsługiwaniu pełnych nazw w różnych językach znajdziesz w artykule Treści w języku lokalnym. |
Gender |
0 lub 1 | string |
Płeć danej osoby. Dostępne są te wartości:
|
LastName |
0 lub 1 | string |
Nazwisko (nazwę) osoby. |
MiddleName |
0 lub więcej | string |
Drugie imię. |
Nickname |
0 lub 1 | string |
pseudonim powiązany z osobą, jeśli ma on powszechnie znany pseudonim; |
PartyId |
1 lub więcej | IDREF |
Unikalny identyfikator elementuParty . Przypisuje partii politycznej daną osobę. Podaj objectId Party , z którym powiązana jest ta osoba. |
Prefix |
0 lub 1 | string |
Wstępujący przed imieniem i nazwiskiem, np.Pan lub Dr. |
Profession |
0 lub 1 | InternationalizedText |
Zawód danej osoby. |
Suffix |
0 lub 1 | string |
przyrostek powiązany z osobą, np. Jr.; |
Title |
0 lub 1 | InternationalizedText |
Tytuł powiązany z osobą. |
Przykłady
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"] } ]