Property talk:P2549

Latest comment: 1 year ago by Popperipopp in topic ID format

Documentation

Italian Senate of the Republic ID
identifier for incumbent and former senators from the Italian Senate of the Republic
Representsmember of the Italian Senate (Q13653224)
Applicable "stated in" valuesenato.it (Q106874649)
Data typeExternal identifier
Corresponding templateno label (Q20829094)
Allowed values[1-9]\d*
ExampleGaetano Mancini (Q3757035)6812
Pietro Grasso (Q2503364)29110
Formatter URLhttps://dati.senato.it/senatore/$1.html
Tracking: usageCategory:Pages using Wikidata property P2549 (Q50823494)
Related to country  Italy (Q38) (See 396 others)
See alsoItalian Chamber of Deputies dati ID (P1341), Senate of the Kingdom of Italy ID (obsolete) (P3954), Chamber of Deputies of Italy storia ID (P3935), senato.archivioluce.it person ID (P9646)
Lists
Proposal discussionProposal discussion
Current uses
Total4,009
Main statement3,27381.6% of uses
Qualifier2<0.1% of uses
Reference73418.3% of uses
Search for values
[create Create a translatable help page (preferably in English) for this property to be included here]
Format “[1-9]\d*: 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/P2549#Format, SPARQL
Distinct values: this property likely contains a value that is different from all other items. (Help)
List of violations of this constraint: Database reports/Constraint violations/P2549#Unique value, hourly updated report, SPARQL (every item), SPARQL (by value)
Item “instance of (P31): human (Q5): Items with this property should also have “instance of (P31): human (Q5)”. (Help)
List of violations of this constraint: Database reports/Constraint violations/P2549#Item P31, hourly updated report, search, SPARQL
Item “sex or gender (P21): Items with this property should also have “sex or gender (P21)”. (Help)
List of violations of this constraint: Database reports/Constraint violations/P2549#Item P21, hourly updated report, search, SPARQL
Item “country of citizenship (P27): Italy (Q38): Items with this property should also have “country of citizenship (P27): Italy (Q38)”. (Help)
List of violations of this constraint: Database reports/Constraint violations/P2549#Item P27, hourly updated report, search, SPARQL
Item “occupation (P106): politician (Q82955): Items with this property should also have “occupation (P106): politician (Q82955)”. (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/P2549#Item P106, search, SPARQL
Item “given name (P735): Items with this property should also have “given name (P735)”. (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/P2549#Item P735, search, SPARQL
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/P2549#Item P1412, search, SPARQL
Item “member of political party (P102): Items with this property should also have “member of political party (P102)”. (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/P2549#Item P102, search, SPARQL
Item “date of birth (P569): Items with this property should also have “date of birth (P569)”. (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/P2549#Item P569, 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/P2549#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/P2549#Scope, SPARQL
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/P2549#Single value, SPARQL
Format “[1-9]\d*: 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/P2549#Format, SPARQL
Label required in languages: it: Entities using this property should have labels in one of the following languages: it (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/P2549#Label in 'it' language, search, SPARQL
 

Please notify projects that use this property before big changes (renaming, deletion, merge with another property, etc.)


Formatter URL/P1921 edit

I removed the formatter URL, as it only points to real webpages of senators of the XVII legislature, not the previous ones. The URI with formatter URI for RDF resource (P1921) doesn't seem to work either :(. Removed. Lymantria (talk) 08:33, 6 August 2016 (UTC)Reply

We could repair the formatter URL perhaps, by including the legislaturenumber. In the former formatter URL, the legislature number and the ID were quite far apart. Btu there is also the format http://www.senato.it/loc/link.asp?tipodoc=sattsen&leg=17&id=2553. The "leg=17&id=2553" could then be the ID and senators might have several id's (in particular those "for life"). Perhaps creator @Epìdosis: could share his view. Lymantria (talk) 08:43, 6 August 2016 (UTC)Reply
I agree with your proposal. --Epìdosis 09:33, 6 August 2016 (UTC)Reply

ID format edit

  Notified participants of WikiProject Italy In the Project chat it has been made a proposal (Wikidata:Project chat#Outdated external ID) by @Popperipopp: to change the format of the IDs and the formatter URL of this property. As of now the format is:

The proposed new format is:

This format would be the same as Italian Chamber of Deputies dati ID (P1341) and is very simple, so I would surely support it.

However, I would like to pose a little problem regarding Italian Wikipedia: as of now, while the template it:Template:Camera.it is still used in order to create external links to the single pages of politicians in each legislature (because P1341 doesn't in its ID the legislature, it is stored locally on Italian Wikipedia), the corresponding template it:Template:Senato.it has been widely substituted by it:Template:Collegamenti esterni which reads both the ID and the legislature from Wikidata; in this way, switching from the current IDs (containing the legislature) to the easier IDs (not containing the legislature) would in fact force Italian Wikipedia to link to dati.senato.it (which is probably not a good solution for the reader, as it isn't linking to dati.camera.it), unless the legislatures are reimported to Italian Wikipedia from Wikidata. In conclusion, I would propose the following solution:

  1. bot-reimporting the IDs to the "Collegamenti esterni" sections of Italian Wikipedia articles using it:Template:Senato.it (I hope @Horcrux: could do this)
  2. then switching this property to dati.senato.it and consequently simplifying the IDs, aligning this property to its twin P1341

Opinions? Thanks, --Epìdosis 17:46, 24 January 2022 (UTC)Reply

Wait ... I have checked better dati.senato.it using its SPARQL endpoint at https://dati.senato.it/sito/23. It seems that, while the website is pretty complete for recent legislatures (18th, 17th), it is very incomplete for past legislatures: 32 senators for the 10th, none for the 1st. In fact, the example I initially tried (https://dati.senato.it/senatore/6812, 5th legislature) failed. I don't know if the website will be completed (it would be very desirable, of course), but as of now it is impossible changing the format of this ID: it would mean linking to a website where most of the new IDs don't exist (yet?). So I think we should keep the current format of IDs, hoping that the links are restored soon (depending on when the Phab ticket will be solved). I postpone my proposal above to when the website will hopefully offer a complete coverage of Italian senators from the 1st legislature onward. --Epìdosis 17:57, 24 January 2022 (UTC)Reply
I propose a slightly different solution:
  1. Copy via bot the information about the "legislatura" from Italian Senate of the Republic ID (P2549) to position held (P39)'s quantifiers, where missing (this should be done regardless!).
  2. Leave in Italian Senate of the Republic ID (P2549) only the numerical identifier (if and when the incompleteness problem will be solved).
  3. Modify the template Senato.it on it.wiki so that writing {{Senato.it|legislatura=tutte}} it prints a list of all the links, which can be horizontal (as the current template {{Collegamenti esterni}} does) or vertical (as done for {{Camera.it}}). The template will take the numerical identifier from P2549 and all the "legislatura" from P39 quantifiers.
  4. Add the row * {{Senato.it|legislatura=tutte}} in all the articles whose item has a value for property P2549.
Anyway, I'd point out that both the solutions assume that there cannot exist two different identifiers (maybe one per "legislatura") for the same senator. Fortunately, this assumption does hold. --Horcrux (talk) 19:28, 24 January 2022 (UTC)Reply
I agree that we should leave this property untouched until the data at dati.senato.ti is more or less complete. I wasn't aware of the limitation before writing on Project Chat. Fortunately, it's still possible to match existing Wikidata items with the data over at data.senato.it using some regex. As for point 1 Horcrux I'm currently in the process of adding relevant qualifiers to all existing senate P39 statements. Popperipopp (talk) 21:19, 24 January 2022 (UTC)Reply
Great, so this list should be emptied. Thank you! --Horcrux (talk) 09:15, 25 January 2022 (UTC)Reply
Correct me if I'm wrong but that list should exclude senators with P39 -> Italian senator for life (Q826589), right? Since those positions can span over multiple terms, it doesn't make sense to qualify them with a term. Popperipopp (talk) 17:44, 25 January 2022 (UTC)Reply
@Popperipopp: You may be correct, but it may also be useful to know in which legislative terms the Italian senator for life (Q826589) has been in charge. Could we add all the terms as qualifiers for the same statement? --Horcrux (talk) 11:01, 26 January 2022 (UTC)Reply
Good question. That may be the best solution here. In any case, the list above is now almost empty (except for the senators for life). Popperipopp (talk) 18:52, 29 January 2022 (UTC)Reply
Hm, @Epìdosis:, I ran two queries for senators of the 10th and 1st legislature and they return 359 and 371 senators in result. How did you arrive at "32 senators for the 10th, none for the 1st"? Popperipopp (talk) 22:17, 9 May 2022 (UTC)Reply
@Popperipopp: Probably through their query service, although I'm not 100% sure to remember well. Anyway, now their query services shows these results, which seem complete. An update of the website probably happened in the meanwhile, very much welcome! --Epìdosis 07:46, 10 May 2022 (UTC)Reply
@Epìdosis: Great, so maybe we can proceed with changing the identifier format now. What do you think? Popperipopp (talk) 09:31, 10 May 2022 (UTC)Reply
@Popperipopp: you can proceed, I think. Write here when you have finished and @Horcrux: and I will fix uses on it.wiki. In fact the single ID of the person will have one or more legislature qualifiers. --Epìdosis 16:57, 10 May 2022 (UTC)Reply
I'm finished now. At this point we should have almost all positions as P39 statements, divided by legislature. And a single senator ID per politician. Popperipopp (talk) 11:29, 11 May 2022 (UTC)Reply
@Epìdosis:, @Horcrux:. Popperipopp (talk) 06:47, 12 May 2022 (UTC)Reply
Great, thank you! If I'm not missing anything, on Wikidata side we're done. I'm currently working on implementing a smarter version of the it:t:senato.it template on it.wiki. --Horcrux (talk) 07:53, 12 May 2022 (UTC)Reply
Anyway, what an odd coincidence, I was just asking why senato.it was not working anymore... --Horcrux (talk) 08:55, 12 May 2022 (UTC)Reply
Looks like it's up again. But yes, odd indeed. Popperipopp (talk) 13:10, 12 May 2022 (UTC)Reply
Return to "P2549" page.