Property talk:P5892

From Wikidata
Jump to navigation Jump to search

Documentation

UOL Eleições ID
іdentifier for elections in Brazil containing voting data for each position per State
Representspublic election (Q40231)
Associated itemUniverso Online (Q1783492)
Applicable "stated in" valueUniverso Online (Q1783492)
Data typeExternal identifier
Allowed values\d{4}/\d{2}/[A-Z]+
ExampleState elections in Acre in 2014 for Federal Deputy (Q51332426)2014/06/AC
State elections in Acre in 2014 for Senate (Q51330919)2014/05/AC
State elections in Acre in 2014 for Governor, first round (Q51333850)2014/03/AC
Sourcehttps://web.archive.org/web/20190218034552/https://noticias.uol.com.br/politica/politicos-brasil
Formatter URLhttps://wikidata-externalid-url.toolforge.org/?p=5892&url_prefix=https://noticias.uol.com.br/politica/politicos-brasil/resultado.htm?&id=$1
Tracking: usageCategory:Pages using Wikidata property P5892 (Q57342889)
See alsoPlacar UOL Eleições ID (P6672)
Lists
Proposal discussionProposal discussion
Current uses
Total483
Main statement48099.4% of uses
Qualifier30.6% of uses
Search for values
[create Create a translatable help page (preferably in English) for this property to be included here]
Single value: this property generally contains a single value. (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P5892#Single value, SPARQL
Distinct values: this property likely contains a value that is different from all other items. (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P5892#Unique value, SPARQL (every item), SPARQL (by value)
Format “20\d{2}/\d{2}/[A-Z]+: value must be formatted using this pattern (PCRE syntax). (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P5892#Format, SPARQL
Item “country (P17): Items with this property should also have “country (P17)”. (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P5892#Item P17, search, SPARQL
Allowed entity types are Wikibase item (Q29934200): the property may only be used on a certain entity type (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P5892#Entity types
Scope is as main value (Q54828448), as reference (Q54828450): the property must be used by specified way only (Help)
Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
List of violations of this constraint: Database reports/Constraint violations/P5892#Scope, SPARQL

New parameter

[edit]

Hi to all that might be reading this. Going through the Brazilian municipal elections, I found that the identifier will get a flag about the unicity of it, once every municipality of a state would have the same identifier "YEAR/POSITION_ID/STATE_ACRONYM" for the election. So looging in the website, I found the parameter &dados-municipio-ibge-id=<IBGE CODE OF THE MUNICIPALITY>. For example, the candidates for the mayor of Rio Branco in 2016 are listed by the identifier in https://noticias.uol.com.br/politica/politicos-brasil/resultado.htm?ano-eleicao=2016&dados-cargo-disputado-id=11&dados-uf-eleicao=AC&dados-municipio-ibge-id=1200401.

So, I propose modify the identifier to allow a optional fourth parameter. It would be like: Q286792512016/11/AC/1200401 Ederporto (talk) 06:47, 15 February 2019 (UTC)[reply]

Ah, ok. We definitely want it to be unique and the formatter URL to send you to the right place. I can update the formatter to work with this, but probably not until early next week. I don't think we need to consult with others on this, maybe just set a date when we'll make the change? ArthurPSmith (talk) 19:46, 15 February 2019 (UTC)[reply]
@ArthurPSmith: Thank you! The 19th, as you mentioned in your discussion page works perfectly! Once again, thanks! Ederporto (talk) 23:39, 15 February 2019 (UTC)[reply]
@Ederporto: I've made the change to the resolver, please test it out and let me know if it's what you need! ArthurPSmith (talk) 19:21, 19 February 2019 (UTC)[reply]
@ArthurPSmith: Thank you so much! Everything seems right. Volta Redonda municipal election, 2016 (Q60667680), Volta Redonda municipal election, 2016 for Councillor (Q60676126) and Volta Redonda mayoral election, 2016 - first round (Q60675995) are my models. Do you think that new examples should be added to the description of the property? Ederporto (talk) 11:37, 20 February 2019 (UTC)[reply]
You should probably add or replace at least one example that requires the additional parameter... ArthurPSmith (talk) 17:03, 20 February 2019 (UTC)[reply]