Help:Import Template:Bio from itwiki
Biography articles in Italian Wikipedia (Q11920) (itwiki) start with a lead section and an infobox generated by Module:Bio (Q20056553) from Template:Infobox person (Q6249834).
it:Categoria:BioBot includes these articles (about 300,000 as of April 2016). The data can be queried with BioQuery (Q23894606).
To import the data, this page summarizes the mappings and steps. The steps can be repeated once in a while.
Discussion on itwiki is at it:Discussioni progetto:Biografie/Sviluppi. Note also Wikidata:Bot requests#Importing data from template Bio to Wikidata (2015/2016), Wikidata:Bot requests/Italian Wikipedia person data (2013/2014)
Available fields
[edit]Template:Bio's fields are:
|
|
|
|
See also: it:Progetto:Biografie/Parametri (from 2012)
Mappings
[edit]Which value to use for instance of (P31)? | Which items to use? | Which properties to use? | Which values for these properties? |
Almost all articles with the template (99.93%) have instance of (P31) = human (Q5). The some 200 exceptions included notably sibling duo (Q14073567), duo (Q15618652) and legendary figure (Q15966903), mythical character (Q4271324). |
Existing sitelinks to itwiki have been used. A few items for articles missing them needed to be created. A few mismatches were found:
|
see #Import steps below |
This is mainly done by Harvest Templates (Q21914398). Manually for sex or gender (P21), occupation (P106), country of citizenship (P27) |
Import steps
[edit]Some steps have been identified to import this to Wikidata. Code has been added to Module:Bio to populate maintenance categories.
These steps are current as of April 2016.
- Login to Widar, PLtools
- Create items for articles missing them: with PetScan
- Complete instance of (P31). Please check the lists and process manually articles of duos.
- Add P31=Q5 to items without any statements: with PetScan
- Add P31=Q5 to items without instance of (P31): with PetScan
- Sesso > sex or gender (P21)
- it:Categoria:Voci con template Bio e sesso (M) assente su Wikidata (category includes link for AutoList)
- it:Categoria:Voci con template Bio e sesso (F) assente su Wikidata (category includes link for AutoList)
- LuogoNascitaLink, LuogoNascita > place of birth (P19)
- LuogoMorteLink, LuogoMorte > place of death (P20)
- it:Categoria:Voci con template Bio e LuogoMorteLink assente su Wikidata (category includes link for Harvest Templates; some remain as some places are redlinks )
- it:Categoria:Voci con template Bio e LuogoMorte assente su Wikidata (category includes link for Harvest Templates; some remain as some places are redlinks)
- GiornoMeseNascita with AnnoNascita > date of birth (P569)
- TBD (Harvest Templates), it:Categoria:Voci con template Bio e AnnoNascita assente su Wikidata
- century-precision dates, see #Links for centuries
- GiornoMeseMorte with AnnoMorte > date of death (P570)
- TBD (Harvest Templates), it:Categoria:Voci con template Bio e AnnoMorte assente su Wikidata
- century-precision dates, see #Links for centuries
- it:Categoria:Anno di morte sconosciuto and Autolist
- Immagine > image (P18) (or other image properties)
- Nazionalità > country of citizenship (P27)}
- it:Categoria:Voci con template Bio e cittadinanza Regno d'Italia assente su Wikidata (for persons lived or born before 1946)
- it:Categoria:Voci con template Bio e cittadinanza Italia assente su Wikidata (for persons lived/died after 1946)
- it:Categoria:Voci con template Bio e nazionalità assente su Wikidata (handled by bot early 2014)
- it:Categoria:Voci con template Bio e Nazionalità italiana assente su Wikidata (if born/died >1861)
- it:Categoria:Voci con template Bio e Nazionalità statunitense assente su Wikidata (if born/died >1776)
- it:Categoria:Voci con template Bio e Nazionalità francese assente su Wikidata
- Attività > occupation (P106)}
- Mostly imported already, categories for some of the more frequent ones:
- Purge it:Template:Bio with linkupdate to update category counts (can take hours)
Links for centuries
[edit]The lists can be used to add corresponding statements with QuickStatements
Century | Births (compare with AnnoNascita assente) | Deaths (compare with AnnoMorte assente) | |||||||
---|---|---|---|---|---|---|---|---|---|
# | Rom. | Cat. | List | YOB | QuickStatements | Cat. | YOD | List | QuickStatements |
1 | I | I | [1] | 1 | P569 +00000000001-00-00T00:00:00Z/7 | I | 100 | [2] | P570 +00000000100-00-00T00:00:00Z/7 |
2 | II | II | [3] | 101 | P569 +00000000101-00-00T00:00:00Z/7 | II | 200 | [4] | P570 +00000000200-00-00T00:00:00Z/7 |
3 | III | III | [5] | 201 | P569 +00000000201-00-00T00:00:00Z/7 | III | 300 | [6] | P570 +00000000300-00-00T00:00:00Z/7 |
4 | IV | IV | [7] | 301 | P569 +00000000301-00-00T00:00:00Z/7 | IV | 400 | [8] | P570 +00000000400-00-00T00:00:00Z/7 |
5 | V | V | [9] | 401 | P569 +00000000401-00-00T00:00:00Z/7 | V | 500 | [10] | P570 +00000000500-00-00T00:00:00Z/7 |
6 | VI | VI | [11] | 501 | P569 +00000000501-00-00T00:00:00Z/7 | VI | 600 | [12] | P570 +00000000600-00-00T00:00:00Z/7 |
7 | VII | VII | [13] | 601 | P569 +00000000601-00-00T00:00:00Z/7 | VII | 700 | [14] | P570 +00000000700-00-00T00:00:00Z/7 |
8 | VIII | VIII | [15] | 701 | P569 +00000000701-00-00T00:00:00Z/7 | VIII | 800 | [16] | P570 +00000000800-00-00T00:00:00Z/7 |
9 | IX | IX | [17] | 801 | P569 +00000000801-00-00T00:00:00Z/7 | IX | 900 | [18] | P570 +00000000900-00-00T00:00:00Z/7 |
10 | X | X | [19] | 901 | P569 +00000000901-00-00T00:00:00Z/7 | X | 1000 | [20] | P570 +00000001000-00-00T00:00:00Z/7 |
11 | XI | XI | [21] | 1001 | P569 +00000001001-00-00T00:00:00Z/7 | XI | 1100 | [22] | P570 +00000001100-00-00T00:00:00Z/7 |
12 | XII | XII | [23] | 1101 | P569 +00000001101-00-00T00:00:00Z/7 | XII | 1200 | [24] | P570 +00000001200-00-00T00:00:00Z/7 |
13 | XIII | XIII | [25] | 1201 | P569 +00000001201-00-00T00:00:00Z/7 | XIII | 1300 | [26] | P570 +00000001300-00-00T00:00:00Z/7 |
14 | XIV | XIV | [27] | 1301 | P569 +00000001301-00-00T00:00:00Z/7 | XIV | 1400 | [28] | P570 +00000001400-00-00T00:00:00Z/7 |
15 | XV | XV | [29] | 1401 | P569 +00000001401-00-00T00:00:00Z/7 | XV | 1500 | [30] | P570 +00000001500-00-00T00:00:00Z/7 |
16 | XVI | XVI | [31] | 1501 | P569 +00000001501-00-00T00:00:00Z/7 | XVI | 1600 | [32] | P570 +00000001600-00-00T00:00:00Z/7 |
17 | XVII | XVII | [33] | 1601 | P569 +00000001601-00-00T00:00:00Z/7 | XVII | 1700 | [34] | P570 +00000001700-00-00T00:00:00Z/7 |
18 | XVIII | XVIII | [35] | 1701 | P569 +00000001701-00-00T00:00:00Z/7 | XVIII | 1800 | [36] | P570 +00000001800-00-00T00:00:00Z/7 |
19 | XIX | XIX | [37] | 1801 | P569 +00000001801-00-00T00:00:00Z/7 | XIX | 1900 | [38] | P570 +00000001900-00-00T00:00:00Z/7 |
20 | XX | XX | [39] | 1901 | P569 +00000001901-00-00T00:00:00Z/7 | XX | 2000 | [40] | P570 +00000002000-00-00T00:00:00Z/7 |
Not imported
[edit]A few fields are not imported.
- Nome > given name (P735): this is currently defined directly by other means, partially imported in 2014
- Cognome > family name (P734): tbd
- Punto, DimImmagine: of use only at itwiki
Checks
[edit]- Items without P31=Q5: articles can have other values in P31 than human (Q5), e.g. legendary figures, duos, etc. Duos should generally also have has part(s) (P527) linking to each person.
- This lists some items that might need checking. A series of possible values for P31 are already excluded.
- Wikidata:Database reports/identical birth and death dates/1
- Items without P21
Statistics
[edit]Some maintenance category sizes before the above import steps (April 2016):
- it:Categoria:BioBot (about 300,000)
- Items with P31:Q5 and an article on itwiki (301,380)
- it:Categoria:Voci con template Bio e sesso (M) assente su Wikidata (about 600)
- it:Categoria:Voci con template Bio e sesso (F) assente su Wikidata (about 100)
- it:Categoria:Voci con template Bio e LuogoNascita assente su Wikidata (10351)
- it:Categoria:Voci con template Bio e LuogoNascitaLink assente su Wikidata (2281)
- it:Categoria:Voci con template Bio e LuogoMorte assente su Wikidata (5867)
- it:Categoria:Voci con template Bio e LuogoMorteLink assente su Wikidata (950)
- it:Categoria:Voci con template Bio e AnnoNascita assente su Wikidata (19492)
- it:Categoria:Voci con template Bio e AnnoMorte assente su Wikidata (about 10000)
- it:Categoria:Anno di morte sconosciuto (includes 7,974 without P570)
- it:Categoria:Voci con template Bio e Nazionalità italiana assente su Wikidata (3252)
- it:Categoria:Voci con template Bio e Nazionalità statunitense assente su Wikidata (506)
- it:Categoria:Voci con template Bio e Attività assente su Wikidata (attore) (463)
- it:Categoria:Voci con template Bio e Attività assente su Wikidata (calciatore) (520)
- it:Categoria:Voci con template Bio e Attività assente su Wikidata (politico) (820)
See also:
Reference reports
[edit]it:Progetto:Biografie/Wikidata summarizes statements available at Wikidata for items with P31=Q5 and an article in Italian Wikipedia.
Tools
[edit]Tools used for the import include:
- PetScan (Q23665536)
- Harvest Templates (Q21914398)
- WikiData Free Image Search Tool (Q21283216)
- Autolist (Q21640555)
Summary
[edit](May 8, 2016) The above steps allowed to import at least 30000 statements in April/May 2016. Earlier imports already covered much. By refining the steps further or importing some information manually, further statements can still be added.
As Italian Wikipedia grows by some 500+ articles per 10 days, repeating the steps weekly or monthly can help adding the corresponding data to Wikidata.