Module:Technique/WikidataLUT

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Documentation for this module may be created at Module:Technique/WikidataLUT/doc

--[=[
Inital mappings taken from [[Template:Technique/WikidataLUT]]
using vim with substitution command
":%s/|\(.\{-}\)\_s*= \(Q\d\+\).*$/['\1'] = '\2',/g".

This is a page separate from [[Template:Technique/WikidataLUT]] because that
page supplies Wikidata with Commons information via QuickStatements.
Since this page is work in progress it is intended to unify them once this page
has reached a sufficiently stable state.

Perhaps some can be taken from [[Module:Technique/mappings]].

See also [[Module:Artwork/Technique LUT]].
]=]

local p = {}

p.nouns = {
	['abalone'] = 'Q190093', -- non-tree-taxon
	['alder'] = 'Q1355553', -- wood, taxon Q25239 would need P1843 value for label in en
	['aleppo pine'] = 'Q211457', -- en needs P1843 value for label
	['almandine'] = 'Q273663',
	['almandine'] = 'Q79058',
--	['amethysts'] = 'Q79058', but plural, of 'amethyst'
	['antique laid paper'] = 'Q66433004', -- fallback: probably Q1513685, or Q1021843??; TODO: adjust subclass and that of Q66433050
	['aqua marine'] = 'Q58959',
--	['aquatint'] = 'Q473236', -- process
--	['argyrotype'] = 'Q652970', -- process
	['bamboo'] = 'Q27891820', -- material; taxon: Q35922
	['barbotine'] = 'Q3322690',
	['billon'] = 'Q911380',
	['bismuth'] = 'Q942',
--	['black-figure'] = 'Q629602', -- not a material
	['broadcloth'] = 'Q1866550',
	['cabochon'] = 'Q615008',
	['chamois leather'] = 'Q1450533',
	['chifon'] = 'Q691189',
	['cowry'] = 'Q66377180', -- cowrie shell, dewiki says they aren't "Muscheln"
	['eclogite'] = 'Q729546',
	['european ash'] = 'Q66429738', -- wood
	['goatskin'] = 'Q198779',
	['lapis'] = 'Q216798',
	['milk glass'] = 'Q1543091',
	['moire'] = 'Q1752512',
	['mudstone'] = 'Q6642424',
--	['opus tessellatum'] = 'Q644084', -- process/technique
	['organza'] = 'Q1683724',
	['orichalcum'] = 'Q731033',
	['papier mache'] = 'Q899363',
	['peperino'] = 'Q166987',
	['peridot'] = 'Q288732',
	['shakudo'] = 'Q912435',
	['slip'] = 'Q1971493',
	['soapstone'] = 'Q707896',
	['tortoise'] = 'Q2141546',
	['wadmal'] = 'Q1861737',

	['acrylic'] = 'Q207849',
	['actinolite'] = 'Q104692',
	['agate'] = 'Q123314',
	['alabaster'] = 'Q143447',
	['albumen print'] = 'Q580807',
	['alcohol'] = 'Q156',
	['alloy'] = 'Q37756',
	['aluminium'] = 'Q663',
	['amber'] = 'Q25381',
	['amethyst'] = 'Q79058',
	['andesite'] = 'Q181908',
	['antimony'] = 'Q1099',
	['antler'] = 'Q29838581',
	['aquamarine'] = 'Q58959',
	['aragonite'] = 'Q23775',
	['arkose'] = 'Q673812',
	['art board'] = 'Q1164918',
	['azulejo'] = 'Q3179385',
	['bakelite'] = 'Q146578',
	['baleen'] = 'Q275426',
	['bark'] = 'Q184453',
	['basalt'] = 'Q43338',
	['bead'] = 'Q1053956',
	['beech wood'] = 'Q998316',
	['birch'] = 'Q865564',
	['birch bark'] = 'Q253671',
	['bisque'] = 'Q804070',
	['bistre'] = 'Q774061',
	['black chalk'] = 'Q3387833',
	['blood'] = 'Q494268',
	['bluestone'] = 'Q325173',
	['board'] = 'Q18668582',
	['bone'] = 'Q814769',
	['boxwood'] = 'Q2534695',
	['brass'] = 'Q39782',
	['breccia'] = 'Q191250',
	['brick'] = 'Q40089',
	['bristol board'] = 'Q2916879',
	['brocade'] = 'Q649022',
	['bronze'] = 'Q34095',
	['brush'] = 'Q614467',
	['burin'] = 'Q1900443',
	['calcite'] = 'Q171917',
	['canvas'] = 'Q12321255',
	['canvas board'] = 'Q18704961',
	['card stock'] = 'Q6432723',
	['cardboard'] = 'Q389782',
	['carnelian'] = 'Q324369',
	['carrara marble'] = 'Q40088',
	['cast iron'] = 'Q483269',
	['cedar wood'] = 'Q5056949',
	['ceramic'] = 'Q45621',
	['chalcedony'] = 'Q170448',
	['chalk'] = 'Q147690',
	['charcoal'] = 'Q1424515',
	['chromolithograph'] = 'Q1121337',
	['clay'] = 'Q42302',
	['cloth'] = 'Q2144394',
	['coconut'] = 'Q3342808',
	['collage'] = 'Q170593',
	['collotype'] = 'Q1572315',
	['color pencil'] = 'Q1783255',
	['composition board'] = 'Q18667172',
	['concrete'] = 'Q22657',
	['copper'] = 'Q753',
	['copper alloy'] = 'Q518350',
	['coral'] = 'Q171446',
	['cotton'] = 'Q11607438',
	['crayon'] = 'Q69158',
	['crystal'] = 'Q43533',
	['cypress wood'] = 'Q28942717',
	['daguerreotype'] = 'Q179744',
	['damask'] = 'Q912142',
	['diamond'] = 'Q5283',
	['diorite'] = 'Q187408',
	['distemper'] = 'Q1169888',
	['dry plate'] = 'Q1459304',
	['dry plate collodion'] = 'Q898735',
	['dye'] = 'Q189720',
	['earthenware'] = 'Q1377111',
	['ebonite'] = 'Q461714',
	['ebony'] = 'Q156005',
	['electrum'] = 'Q239481',
	['elephant ivory'] = 'Q29838213',
	['elm wood'] = 'Q29472910',
	['embroidery'] = 'Q28966302',
	['emerald'] = 'Q43513',
	['enamel'] = 'Q213371',
	['enamel paint'] = 'Q2386424',
	['encaustic painting'] = 'Q17443567',
	['fabric'] = 'Q5295538',
	['faience'] = 'Q209671',
	['feather'] = 'Q50998618',
	['felt'] = 'Q189964',
	['fiber'] = 'Q161',
	['fiberboard'] = 'Q1397443',
	['fiberglass'] = 'Q7224880',
	['filigree'] = 'Q1001313',
	['fir wood'] = 'Q746026',
	['flint'] = 'Q83087',
	['fresco'] = 'Q25631150', -- see also [[:sr:Фреска]]
	['frit'] = 'Q383361',
	['fur'] = 'Q197204',
	['garnet'] = 'Q105368',
	['gemstone'] = 'Q83437',
	['gesso'] = 'Q1514256',
	['gilding'] = 'Q1334300',
	['glass'] = 'Q11469',
	['glass fiber'] = 'Q5861',
	['glass paste'] = 'Q3411508',
	['glaze'] = 'Q335404',
	['glue-size'] = 'Q3374395',
	['gold'] = 'Q897',
	['gold leaf'] = 'Q929186',
	['gouache'] = 'Q204330',
	['granite'] = 'Q3115353',
	['granodiorite'] = 'Q215690',
	['graphite'] = 'Q5309',
	['gravel'] = 'Q133833',
	['greenstone'] = 'Q5604583',
	['greywacke'] = 'Q917545',
	['grisaille'] = 'Q750197',
	['gum arabic'] = 'Q535814',
	['gypsum'] = 'Q82658',
	['hair'] = 'Q28472',
	['hardboard'] = 'Q1251688',
	['hard-paste porcelain'] = 'Q1587663',
	['hardwood'] = 'Q2266509',
	['hematite'] = 'Q103223',
	['hemp'] = 'Q7150699',
	['hide'] = 'Q3291230',
	['highlight'] = 'Q2412125',
	['horn'] = 'Q29838373',
	['horsehair'] = 'Q964736',
	['india ink'] = 'Q12981547',
	['ink'] = 'Q127418',
	['ink wash'] = 'Q756712',
	['iron'] = 'Q677',
	['ivory'] = 'Q82001',
	['jade'] = 'Q175089',
	['jadeite'] = 'Q422173',
	['jasper'] = 'Q201175',
	['jute'] = 'Q107211',
	['lace'] = 'Q231250',
	['lacquer'] = 'Q11236878',
	['laid paper'] = 'Q1513685',
	['lampas'] = 'Q2269650',
	['lapis lazuli'] = 'Q216798',
	['larch wood'] = 'Q1879281',
	['lead'] = 'Q708',
	['lead glass'] = 'Q392551',
	['leather'] = 'Q286',
	['limestone'] = 'Q23757',
	['linen'] = 'Q1426327',
	['lithograph'] = 'Q15123870',
	['lithography'] = 'Q133036',
	['mahogany'] = 'Q239788',
	['mail'] = 'Q29000384',
	['maiolica'] = 'Q622753',
	['mammoth ivory'] = 'Q11224919',
	['maple'] = 'Q402516',
	['marble'] = 'Q40861',
	['marquetry'] = 'Q1049923',
	['masonite'] = 'Q1808397',
	['metal'] = 'Q11426',
	['metallic thread'] = 'Q3510770',
	['mica'] = 'Q114675',
	['mixed media'] = 'Q1902763',
	['morocco leather'] = 'Q2118555',
	['muschelkalk'] = 'Q1543962',
	['muslin'] = 'Q725457',
	['nacre'] = 'Q215865',
	['nephrite'] = 'Q138979',
	['newsprint'] = 'Q11032',
	['nickel silver'] = 'Q203874',
	['niello'] = 'Q1164661',
	['oak wood'] = 'Q2075708',
	['obsidian'] = 'Q53754',
	['ochre'] = 'Q194191',
	['oil'] = 'Q296955',
	['onyx'] = 'Q180884',
	['paint'] = 'Q174219',
	['panel'] = 'Q1348059',
	['paper'] = 'Q11472',
	['paperboard'] = 'Q14934005',
	['papier-mâché'] = 'Q899363',
	['parchment'] = 'Q226697',
	['parian marble'] = 'Q2052367',
	['pastel'] = 'Q189085',
	['patina'] = 'Q428352',
	['pearl'] = 'Q43436',
	['pearwood'] = 'Q1964340',
	['pebble'] = 'Q14673',
	['pen'] = 'Q165447',
	['pencil'] = 'Q14674',
	['pentelic marble'] = 'Q673492',
	['photocopy'] = 'Q49465334',
	['photograph'] = 'Q125191',
	['photographic paper'] = 'Q912760',
	['pietra dura'] = 'Q1044853',
	['pigment'] = 'Q161179',
	['pine'] = 'Q1503211',
	['plaster'] = 'Q274988',
	['plastic'] = 'Q11474',
	['platinum'] = 'Q880',
	['plywood'] = 'Q219803',
	['polychromy'] = 'Q183127',
	['polyester resin'] = 'Q146559',
	['poplar wood'] = 'Q291034',
	['porcelain'] = 'Q130693',
	['porphyry'] = 'Q337238',
	['print'] = 'Q11060274',
	['pyrite'] = 'Q50769',
	['quartz'] = 'Q43010',
	['quartzite'] = 'Q237883',
	['rattan'] = 'Q323021',
	['reed pen'] = 'Q1349162',
	['resin'] = 'Q145205',
	['rhyolite'] = 'Q190727',
	['rice paper'] = 'Q1066536',
	['rope'] = 'Q31029',
	['rose granite'] = 'Q2167119',
	['rosewood'] = 'Q122421',
	['ruby'] = 'Q43088',
	['sacrificial matter'] = 'Q28738320',
	['sand'] = 'Q34679',
	['sandstone'] = 'Q13085',
	['sanguine'] = 'Q901944',
	['sapphire'] = 'Q127583',
--	['sardonyx'] = 'Q3428905' or 'Q9333877',
	['satin'] = 'Q14298',
	['sculpture'] = 'Q860861',
	['schist'] = 'Q15315',
	['screen-printing'] = 'Q22569957',
	['sepia'] = 'Q767608',
	['sheet iron'] = 'Q1312705',
	['sheet metal'] = 'Q211367',
	['shell'] = 'Q213096',
	['shellac'] = 'Q429659',
	['silk'] = 'Q37681',
	['silver'] = 'Q1090',
	['silver-gilt'] = 'Q390584',
	['slate'] = 'Q207079',
	['soft-paste porcelain'] = 'Q17105928',
	['softwood'] = 'Q252108',
	['spruce'] = 'Q2046308',
	['stained glass'] = 'Q1473346',
	['stainless steel'] = 'Q172587',
	['steatite'] = 'Q707896',
	['steel'] = 'Q11427',
	['sterling silver'] = 'Q31576',
	['stone'] = 'Q22731',
	['stoneware'] = 'Q830894',
	['straw'] = 'Q160066',
	['stucco'] = 'Q33526',
	['taffeta'] = 'Q909391',
	['tapestry'] = 'Q184296',
	['teak'] = 'Q2048129',
	['tempera'] = 'Q175166',
	['terracotta'] = 'Q60424',
	['textile'] = 'Q28823',
	['tin'] = 'Q1096',
	['topaz'] = 'Q134985',
	['tracing paper'] = 'Q1143474',
	['travertine'] = 'Q187156',
	['tufa'] = 'Q193685',
	['tulle'] = 'Q646051',
	['turquoise'] = 'Q165254',
	['varnish'] = 'Q81683',
	['vellum'] = 'Q378274',
	['velvet'] = 'Q243519',
	['walnut'] = 'Q208021',
	['walnut wood'] = 'Q2288038',
	['watercolor'] = 'Q22915256',
	['wax'] = 'Q124695',
	['wire'] = 'Q551997',
	['wood'] = 'Q287',
	['wool'] = 'Q11547758',
	['worsted'] = 'Q572813',
	['wove paper'] = 'Q21279007',
	['wrought iron'] = 'Q860451',
	['yew wood'] = 'Q28942722',
	['zinc'] = 'Q758',
}

p.adjectives = {
	['black'] = 'Q23445',
	['blue'] = 'Q1088',
}

return p