Mit OfficeScope
-Entitäten wird angegeben, welche Niederlassungen ein ElectionEvent
- und
OfficeholderSubFeed
-Entität, der die Entität entspricht.
Elemente
Name | Tag | Typ | Hinweise | Multiplizität |
---|---|---|---|---|
Name der Fehlerbehebung | DebugName |
String |
Beschreibender Name für das Büro. | 0 oder 1 |
Büroebene | OfficeLevel |
OfficeLevel |
Gibt die Ebene der Büros innerhalb dieses Geltungsbereichs an:
Country für landesweit, Administrative Area 1
für ein Bundesland, eine Provinz usw. |
1 |
OCD-ID in Gerichtsbarkeit | JurisdictionOcdId |
Ocd Id |
Optional, wenn OfficeLevel den Wert Country hat,
sind nicht erforderlich. In diesem Feld können Sie die politische Region angeben.
Lautet der Bundesstaat beispielsweise Virginia gegen Pennsylvania oder Manitoba
gegen Ontario. |
0 oder 1 |
Office-Rollen | OfficeRoles |
OfficeRole |
Eine Liste der im Datensatz enthaltenen Rollen, insbesondere beschränkt auf für diese Büroebene, die OCD-ID für die Gerichtsbarkeit, usw. | Mindestens 1 |
ElectoralDistrictCollection | ElectoralDistrictCollection |
Ocd Id |
Die OCD-ID-Liste der Wahlbezirke, die für die aufgeführten Wahlbezirke stimmen Position im Büro. Eine leere Liste impliziert, dass der Geltungsbereich alle möglichen Bezirke für den angegebenen Wahlort oder Amtsträger. | 0 oder 1 |
Beispiele
Das folgende Beispiel zeigt eine Feed
, die ein ElectionEvent
mit
OfficeScope
Es gibt an, dass das Feed
-Objekt enthält (oder voraussichtlich enthalten sein wird).
Daten zu einer oder mehreren Wahlen zur Wahl des Präsidenten auf nationaler Ebene,
ein oder mehrere Sitze im Unterhaus und ein oder mehrere Sitze im Oberhaus:
XML
<OfficeScope> <DebugName>Scope of US general election</DebugName> <OfficeLevel>Country</OfficeLevel> <JurisdictionOcdId>ocd-division/country:us</JurisdictionOcdId> <OfficeRoles>president</OfficeRoles> <OfficeRoles>lower house</OfficeRoles> <OfficeRoles>upper house</OfficeRoles> </OfficeScope>
JSON
{ "OfficeScope": { "DebugName": "Scope of US general election", "OfficeLevel": "Country", "JurisdictionOcdId": "ocd-division/country:us", "OfficeRoles": [ "president", "lower house", "upper house" ] } }
Dieselbe ElectionEvent
kann zusätzliche OfficeScope
-Entitäten enthalten, die
mehrere Wahlen auf Bundesstaatenebene in Virginia und Pennsylvania für
verschiedene Rollen auf Bundesstaatenebene:
XML
<OfficeScope> <DebugName>Virginia election scope</DebugName> <OfficeLevel>Administrative Area 1</OfficeLevel> <JurisdictionOcdId>ocd-division/country:us/state:va</JurisdictionOcdId> <OfficeRoles>attorney general</OfficeRoles> <OfficeRoles>state executive</OfficeRoles> </OfficeScope> <OfficeScope> <DebugName>Pennsylvania election scope</DebugName> <OfficeLevel>Administrative Area 1</OfficeLevel> <JurisdictionOcdId>ocd-division/country:us/state:pa</JurisdictionOcdId> <OfficeRoles>state lower house</OfficeRoles> <OfficeRoles>state upper house</OfficeRoles> <OfficeRoles>state executive</OfficeRoles> </OfficeScope>
JSON
{ "OfficeScope": { "DebugName": "Virginia election scope", "OfficeLevel": "Administrative Area 1", "JurisdictionOcdId": "ocd-division/country:us/state:va", "OfficeRoles": [ "attorney general", "state executive" ] } } { "OfficeScope": { "DebugName": "Pennsylvania election scope", "OfficeLevel": "Administrative Area 1", "JurisdictionOcdId": "ocd-division/country:us/state:pa", "OfficeRoles": [ "state lower house", "state upper house", "state executive" ] } }
Die ElectionEvent
kann bei Bedarf OfficeScope
-Entitäten enthalten, die angeben,
Die Wahlbezirke, die für die genannte Position stimmen:
XML
<OfficeScope> <DebugName>US general election scope</DebugName> <OfficeLevel>National</OfficeLevel> <JurisdictionOcdId>ocd-division/country:us</JurisdictionOcdId> <OfficeRoles>upper house</OfficeRoles> <ElectoralDistrictCollection> <OcdId>ocd-division/country:us/state:ar</OcdId> <OcdId>ocd-division/country:us/state:ca</OcdId> <OcdId>ocd-division/country:us/state:ct</OcdId> <OcdId>ocd-division/country:us/state:de</OcdId> <OcdId>ocd-division/country:us/state:fl</OcdId> </ElectoralDistrictCollection> </OfficeScope>
JSON
{ "OfficeScope": { "DebugName" : "US general election scope", "OfficeLevel": "National", "JurisdictionOcdId": "ocd-division/country:us", "OfficeRoles": "upper house", "ElectoralDistrictCollection": { "OcdId" : [ "ocd-division/country:us/state:ar", "ocd-division/country:us/state:ca", "ocd-division/country:us/state:ct", "ocd-division/country:us/state:de", "ocd-division/country:us/state:fl" ] } } }