Usa la entidad Person
para definir información sobre una persona. La persona puede ser un candidato, un funcionario electoral o una autoridad para una unidad de mando. El elemento ElectionReport
incluye PersonCollection
, que contiene el conjunto completo de objetos Person
de este feed. Se hace referencia a estos objetos Person
en Candidate
y GpUnit
. De manera opcional, un PersonCollection
incluye ContactInformation
para asociar la información de contacto.
Atributos
En la siguiente tabla, se describen los atributos del elemento Person
:
Atributo | ¿Es obligatorio? | Tipo | Descripción |
---|---|---|---|
objectId |
Obligatorias | ID |
Identificador interno único que otros elementos usan para hacer referencia a este elemento. |
Elementos
En la siguiente tabla, se describen los elementos de Person
:
Elemento | Multiplicidad | Tipo | Descripción |
---|---|---|---|
ContactInformation |
0 o más | ContactInformation |
Asocia la información de contacto con la persona. Esto debe incluir un URI anotado anotado con Si incluyes una imagen de la persona, anota el URI con la anotación |
DateOfBirth
|
0 o 1 | PartialDate |
La fecha de nacimiento de la persona. |
ExternalIdentifiers |
1 | ExternalIdentifiers |
Asocia un ID con la persona. Se requiere un identificador estable. |
FirstName |
0 o 1 | string |
El nombre de la persona. |
FullName |
1 | InternationalizedText |
El nombre completo de la persona. Para obtener detalles sobre cómo manejar nombres completos en varios idiomas, consulta Contenido en idioma local. |
Gender |
0 o 1 | string |
El género de la persona. Los siguientes valores están disponibles para
|
LastName |
0 o 1 | string |
El apellido de la persona. |
MiddleName |
0 o más | string |
El segundo nombre de la persona. |
Nickname |
0 o 1 | string |
Es el sobrenombre asociado con la persona, siempre que esta tenga un alias conocido. |
PartyId |
1 | IDREF |
Es el identificador único de un elemento Party . Asocia un partido político con la persona. Proporciona el objectId del Party con el que está asociada esta persona. |
Prefix |
0 o 1 | string |
Un prefijo asociado a la persona, como Sr. o Dr. |
Profession |
0 o 1 | InternationalizedText |
La profesión de la persona. |
Suffix |
0 o 1 | string |
Un sufijo asociado con la persona, como Jr. |
Title |
0 o 1 | InternationalizedText |
Es un cargo asociado con la persona. |
Ejemplos
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" } ]