Help:Import Template:Bio from itwiki

From Wikidata
Jump to navigation Jump to search
Progetto Biografie at Italian Wikipedia

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]

available fields Template:Bio's fields are:

  • Titolo =
  • Nome = (list of values)
  • Cognome =
  • CognomePrima =
  • PostCognome =
  • PostCognomeVirgola =
  • ForzaOrdinamento =
  • PreData =
  • Sesso =
  • LuogoNascita =
  • NoteMorte =
  • Epoca =
  • Epoca2 =
  • PreAttività =
  • Attività = (list of values)
  • Attività2 =
  • Attività3 =
  • AttivitàAltre =
  • Nazionalità = (list of values)
  • NazionalitàNaturalizzato =
  • Cittadinanza =
  • PostNazionalità =
  • Categorie =
  • FineIncipit =
  • Punto =
  • Immagine =
  • Didascalia =
  • Didascalia2 =
  • DimImmagine =

See also: it:Progetto:Biografie/Parametri (from 2012)


Mappings[edit]

instance definition Instance definition

items mapping Items mapping

field mapping Fields mapping

values mapping Values mapping

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), two people (Q15618652) and 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:

  • articles being linked from disambiguation items
  • individual biography articles linked from items for bands.

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]

import steps 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.

  1. Login to Widar, PLtools
  2. Create items for articles missing them: with PetScan
  3. Complete instance of (P31). Please check the lists and process manually articles of duos.
    1. Add P31=Q5 to items without any statements: with PetScan
    2. Add P31=Q5 to items without instance of (P31): with PetScan
  4. Sesso > sex or gender (P21)
    1. it:Categoria:Voci con template Bio e sesso (M) assente su Wikidata (category includes link for AutoList)
    2. it:Categoria:Voci con template Bio e sesso (F) assente su Wikidata (category includes link for AutoList)
  5. LuogoNascitaLink, LuogoNascita > place of birth (P19)
    1. it:Categoria:Voci con template Bio e LuogoNascitaLink assente su Wikidata
    2. it:Categoria:Voci con template Bio e LuogoNascita assente su Wikidata
  6. LuogoMorteLink, LuogoMorte > place of death (P20)
    1. it:Categoria:Voci con template Bio e LuogoMorteLink assente su Wikidata (category includes link for Harvest Templates; some remain as some places are redlinks )
    2. it:Categoria:Voci con template Bio e LuogoMorte assente su Wikidata (category includes link for Harvest Templates; some remain as some places are redlinks)
  7. GiornoMeseNascita with AnnoNascita > date of birth (P569)
    1. TBD (Harvest Templates), it:Categoria:Voci con template Bio e AnnoNascita assente su Wikidata
    2. century-precision dates, see #Links for centuries
  8. GiornoMeseMorte with AnnoMorte > date of death (P570)
    1. TBD (Harvest Templates), it:Categoria:Voci con template Bio e AnnoMorte assente su Wikidata
    2. century-precision dates, see #Links for centuries
    3. it:Categoria:Anno di morte sconosciuto and Autolist
  9. Immagine > image (P18) (or other image properties)
    1. it:Categoria:Voci con template Bio e Immagine assente su Wikidata
  10. Nazionalità > country of citizenship (P27)}
    1. it:Categoria:Voci con template Bio e nazionalità assente su Wikidata (handled by bot early 2014)
    2. it:Categoria:Voci con template Bio e Nazionalità italiana assente su Wikidata (if born/died >1861)
    3. it:Categoria:Voci con template Bio e Nazionalità statunitense assente su Wikidata‎ (if born/died >1776)
  11. Attività > occupation (P106)}
    • Mostly imported already, categories for some of the more frequent ones:
    1. it:Categoria:Voci con template Bio e Attività assente su Wikidata (attore)
    2. it:Categoria:Voci con template Bio e Attività assente su Wikidata (calciatore)‎
    3. it:Categoria:Voci con template Bio e Attività assente su Wikidata (politico)
  12. 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.ListYOBQuickStatementsCat.YODListQuickStatements
1II[1]1 P569 +00000000001-00-00T00:00:00Z/7I100[2] P570 +00000000100-00-00T00:00:00Z/7
2IIII[3]101 P569 +00000000101-00-00T00:00:00Z/7II200[4] P570 +00000000200-00-00T00:00:00Z/7
3IIIIII[5]201 P569 +00000000201-00-00T00:00:00Z/7III300[6] P570 +00000000300-00-00T00:00:00Z/7
4IVIV[7]301 P569 +00000000301-00-00T00:00:00Z/7IV400[8] P570 +00000000400-00-00T00:00:00Z/7
5VV[9]401 P569 +00000000401-00-00T00:00:00Z/7V500[10] P570 +00000000500-00-00T00:00:00Z/7
6VIVI[11]501 P569 +00000000501-00-00T00:00:00Z/7VI600[12] P570 +00000000600-00-00T00:00:00Z/7
7VIIVII[13]601 P569 +00000000601-00-00T00:00:00Z/7VII700[14] P570 +00000000700-00-00T00:00:00Z/7
8VIIIVIII[15]701 P569 +00000000701-00-00T00:00:00Z/7VIII800[16] P570 +00000000800-00-00T00:00:00Z/7
9IXIX[17]801 P569 +00000000801-00-00T00:00:00Z/7IX900[18] P570 +00000000900-00-00T00:00:00Z/7
10XX[19]901 P569 +00000000901-00-00T00:00:00Z/7X1000[20] P570 +00000001000-00-00T00:00:00Z/7
11XIXI[21]1001 P569 +00000001001-00-00T00:00:00Z/7XI1100[22] P570 +00000001100-00-00T00:00:00Z/7
12XIIXII[23]1101 P569 +00000001101-00-00T00:00:00Z/7XII1200[24] P570 +00000001200-00-00T00:00:00Z/7
13XIIIXIII[25]1201 P569 +00000001201-00-00T00:00:00Z/7XIII1300[26] P570 +00000001300-00-00T00:00:00Z/7
14XIVXIV[27]1301 P569 +00000001301-00-00T00:00:00Z/7XIV1400[28] P570 +00000001400-00-00T00:00:00Z/7
15XVXV[29]1401 P569 +00000001401-00-00T00:00:00Z/7XV1500[30] P570 +00000001500-00-00T00:00:00Z/7
16XVIXVI[31]1501 P569 +00000001501-00-00T00:00:00Z/7XVI1600[32] P570 +00000001600-00-00T00:00:00Z/7
17XVIIXVII[33]1601 P569 +00000001601-00-00T00:00:00Z/7XVII1700[34] P570 +00000001700-00-00T00:00:00Z/7
18XVIIIXVIII[35]1701 P569 +00000001701-00-00T00:00:00Z/7XVIII1800[36] P570 +00000001800-00-00T00:00:00Z/7
19XIXXIX[37]1801 P569 +00000001801-00-00T00:00:00Z/7XIX1900[38] P570 +00000001900-00-00T00:00:00Z/7
20XXXX[39]1901 P569 +00000001901-00-00T00:00:00Z/7XX2000[40] P570 +00000002000-00-00T00:00:00Z/7

Not imported[edit]

not imported 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]

checks

  1. 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 (P527) linking to each person.
    • This lists some items that might need checking. A series of possible values for P31 are already excluded.
  2. Wikidata:Database reports/identical birth and death dates/1
  3. Items without P21

Statistics[edit]

statistics Some maintenance category sizes before the above import steps (April 2016):

See also:

Reference reports[edit]

reports it:Progetto:Biografie/Wikidata summarizes statements available at Wikidata for items with P31=Q5 and an article in Italian Wikipedia.

Tools[edit]

tools Tools used for the import include:



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.