Utilizza l'entità Person
per definire le informazioni su una persona. La persona potrebbe
essere un candidato, un funzionario elettorale o un'autorità per un'unità segnalante. L'elemento
ElectionReport
include
PersonCollection
, che contiene l'insieme completo di Person
oggetti in questo
feed. A questi oggetti Person
viene fatto riferimento in
Candidate
e
GpUnit
. Un PersonCollection
include facoltativamente ContactInformation
per associare le informazioni di contatto.
Attributi
Nella tabella seguente vengono descritti gli attributi per l'elemento Person
:
Attributo | Campo obbligatorio? | Tipo | Descrizione |
---|---|---|---|
objectId |
Obbligatorie | ID |
Identificatore interno univoco utilizzato da altri elementi per fare riferimento a questo elemento. |
Elementi
Nella tabella seguente vengono descritti gli elementi di Person
:
Elemento | Molteplicità | Tipo | Descrizione |
---|---|---|---|
ContactInformation |
0 o più | ContactInformation |
Associa le informazioni di contatto alla persona in questione. Deve includere un URI annotato con Se includi un'immagine della persona, annota l'URI con l'annotazione |
DateOfBirth
|
0 o 1 | PartialDate |
La data di nascita della persona. |
ExternalIdentifiers |
1 | ExternalIdentifiers |
Associa un ID alla persona. È richiesto un identificatore stabile. |
FirstName |
0 o 1 | string |
Il nome della persona. |
FullName |
1 | InternationalizedText |
Il nome completo della persona. Per maggiori dettagli su come gestire nomi completi in più lingue, vedi Contenuti in lingua locale. |
Gender |
0 o 1 | string |
Il genere della persona. Per
|
LastName |
0 o 1 | string |
Il cognome della persona. |
MiddleName |
0 o più | string |
Il secondo nome della persona. |
Nickname |
0 o 1 | string |
Nickname associato alla persona se questa ha un alias comunemente noto. |
PartyId |
1 | IDREF |
Identificatore univoco per un elemento Party . Associa un partito politico alla persona. Fornisci il
objectId di Party a cui è
associata questa persona. |
Prefix |
0 o 1 | string |
Un prefisso associato alla persona, ad esempio Sig. o Dott. |
Profession |
0 o 1 | InternationalizedText |
La professione della persona. |
Suffix |
0 o 1 | string |
Un suffisso associato alla persona, ad esempio Jr. |
Title |
0 o 1 | InternationalizedText |
Un titolo associato alla persona. |
Esempi
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" } ]