Module:Bases recherche

Από τη Βικιπαίδεια, την ελεύθερη εγκυκλοπαίδεια
Documentation icon Τεκμηρίωση module[δημιουργία]
local p = {}
local wikidata = require "Module:Wikidata"

local bases = {
-- { nom, propriété Wikidata, format URL}

{"AcademiaNet", "P2080", "http://www.academia-net.org/profil/wd/$1"},
{"Academia Europaea", "P5463", "https://www.ae-info.org/ae/Member/$1"},
{"The Academic Family Tree", "P2381", "https://academictree.org/math/peopleinfo.php?pid=$1"},
{"Académie des inscriptions et belles-lettres", "P4716", "http://www.aibl.fr/membres/academiciens-depuis-1663/article/$1"},
{"Académie des sciences d'outre-mer", "P5374", "http://www.academieoutremer.fr/academiciens/fiche.php?aId=$1"},
{"Académie des sciences de Heidelberg", "P2273", "http://www.haw.uni-heidelberg.de/akademie/member.en.html?id=$1"},
{"Académie des sciences de la république d'Arménie", "P5212", "https://www.sci.am/membersview.php?id=$1&d=&l=&langid=2"},
{"Académie des sciences de Saxe", "P3411", "https://www.saw-leipzig.de/de/mitglieder/$1"},
{"Académie des sciences morales et politiques", "P5362", "https://www.asmp.fr/fiches_academiciens/$1"},
{"Académie hongroise des sciences", "P3226", "http://mta.hu/koztestuleti_tagok?PersonId=$1"},
-- {"Académie nationale de médecine", "P3956", "http://bibliotheque.academie-medecine.fr/membres/membre/?mbreid=$1"},
{"Académie nationale des sciences", "P5380", "http://www.nasonline.org/member-directory/members/$1.html"},
{"Académie royale de médecine de Belgique", "P5329", "http://www.armb.be/index.php?id=$1"},
{"Académie royale suédoise des belles-lettres, d'histoire et des antiquités", "P3389", "http://www.vitterhetsakad.se/ledamoter/matrikel/$1"},
{"Académie serbe des sciences et des arts", "P3475", "http://www.vi.sanu.ac.rs/Clanstvo/IstClan.aspx?arg=$1"},
{"Accademia della Crusca", "P4585", "http://www.accademicidellacrusca.org/scheda.asp?IDN=$1"},
{"ACM Digital Library", "P864", "https://dl.acm.org/author_page.cfm?id=$1"},
{"Akadem", "P5378", "http://www.akadem.org/conferencier/$1.php"},
{"ALCUIN", "P3126", "http://www-app.uni-regensburg.de/Fakultaeten/PKGG/Philosophie/Gesch_Phil/alcuin/philosopher.php?id=$1"},
{"arXiv", "P4594", "https://arxiv.org/a/$1.html"},
{"Atomic Heritage Foundation", "P4590", "https://www.atomicheritage.org/profile/$1"},
{"Authorea", "P5039", "https://www.authorea.com/users/$1"},
{"Bérose", "P5333", "http://www.berose.fr/?-$1-"},
{"Bibliothek für Bildungsgeschichtliche Forschung", "P1650", "http://archivdatenbank.bbf.dipf.de/actaproweb/archive.xhtml?id=Vz++++++$1#Vz______$1"},
{"Bibliothèque interuniversitaire de santé", "P5375", "http://www.biusante.parisdescartes.fr/histoire/biographies/index.php?cle=$1"},
{"Biodiversity Heritage Library", "P687", "http://biodiversitylibrary.org/page/$1"},
{"Biodiversity Heritage Library", "P4081", "http://www.biodiversitylibrary.org/creator/$1"},
{"Biographies of the Entomologists of the World", "P5370", "http://sdei.senckenberg.de/biographies/information.php?id=$1"},
{"Biographisches Archiv der Psychiatrie", "P5450", "https://biapsy.de/index.php/de/9-biographien-a-z/$1"},
{"Cairn", "P4369", "https://www.cairn.info/publications-de-wd--$1.htm"},
{"Canal-U", "P5243", "https://www.canal-u.tv/auteurs/$1"},
{"Catalogus Professorum Academiae Groninganae", "P2016", "http://hoogleraren.ub.rug.nl/hoogleraren/$1"},
{"Catalogus Professorum Academiae Rheno-Traiectinae", "P2862", "https://profs.library.uu.nl/index.php/profrec/getprofdata/$1"},
{"Catalogus Professorum Halensis", "P2005", "http://www.catalogus-professorum-halensis.de/$1.html"},
{"Catalogus Professorum Rostochiensium", "P2940", "http://cpr.uni-rostock.de/metadata/cpr_person_$1"},
{"Les Classiques des sciences sociales", "P5390", "http://classiques.uqac.ca/classiques/$1/$1.html"},
{"Collège de France", "P5443", "https://www.college-de-france.fr/site/$1/index.htm"},
{"Collège royal de chirurgie", "P2944", "https://livesonline.rcseng.ac.uk/biogs/$1.htm"},
{"Consejo Nacional de Investigaciones Científicas y Técnicas", "P3900", "http://www.conicet.gov.ar/new_scp/detalle.php?id=$1&datos_academicos=yes"},
{"Conselho Nacional de Desenvolvimento Científico e Tecnológico", "P1007", "http://lattes.cnpq.br/$1"},
{"Cristin", "P2287", "http://www.cristin.no/as/WebObjects/cristin.woa/wa/personVis?type=PERSON&action=sok&pnr=$1&la=en"},
{"Database of Classical Scholars", "P1935", "https://dbcs.rutgers.edu/index.php?page=person&id=$1"},
{"Dialnet", "P1607", "https://dialnet.unirioja.es/servlet/autor?codigo=$1"},
{"Diccionario de científicos argentinos Dra. Cecilia Grierson", "P3946", "http://www.caicyt-conicet.gov.ar/cientificos/items/show/$1"},
{"Dictionary of Art Historians", "P2332", "http://arthistorians.info/$1"},
{"Dictionnaire critique des historiens de l'art actifs en France de la Révolution à la Première Guerre mondiale", "P5372", "https://www.inha.fr/fr/ressources/publications/publications-numeriques/dictionnaire-critique-des-historiens-de-l-art/$1.html"},
{"Dictionnaire prosopographique de l'EPHE", "P4890", "https://prosopo.ephe.fr/$1"},
{"Digital Bibliography & Library Project", "P2456", "https://dblp.org/pid/$1"},
{"Eesti Teadusinfosüsteem", "P2953", "https://www.etis.ee/Portal/Persons/Display/$1"},
{"Encyclopædia Herder", "P5441", "https://encyclopaedia.herdereditorial.com/wiki/Autor:$1"},
{"Encyclopædia Universalis", "P5369", "https://www.universalis.fr/auteurs/$1"},
{"Encyclopedia of Australian Science", "P4228", "http://www.eoas.info/biogs/$1.htm"},
{"Fichier central des thèses", "P4285", "https://www.theses.fr/$1"},
{"Figshare", "P4232", "https://figshare.com/authors/_/$1"},
{"La France savante", "P2383", "http://cths.fr/an/prosopo.php?id=$1"},
{"Fundação de Amparo à Pesquisa do Estado de São Paulo", "P4598", "http://www.bv.fapesp.br/pt/pesquisador/$1"},
{"Geförderte Projekte Informationssystem", "P4872", "http://gepris.dfg.de/gepris/person/$1"},
{"GONIAT", "P5211", "http://www.goniat.org/showAut.html?AutId=$1"},
{"Google Scholar", "P1960", "https://scholar.google.com/citations?user=$1"},
{"HAL", "P4450", "https://cv.archives-ouvertes.fr/$1"},
{"Historia de la Medicina", "P5468", "https://www.historiadelamedicina.org/$1.html"},
{"History of Modern Biomedicine", "P3885", "http://www.histmodbiomed.org/taxonomy/term/$1"},
{"INSPIRE-HEP", "P2930", "https://inspirehep.net/author/profile/$1"},
{"Institut Max-Planck d'histoire des sciences", "P5516", "http://vlp.mpiwg-berlin.mpg.de/people/data?id=per$1"},	
{"Institut Pasteur", "P5418", "https://webext.pasteur.fr/archives/$1.html"},	
{"Institut universitaire de France", "P5320", "http://www.iufrance.fr/les-membres-de-liuf/membre/$1.html"},	
{"International Plant Names Index", "P586", "http://www.ipni.org/ipni/idAuthorSearch.do?id=$1"},
{"Isidore", "P4491", "https://www.rechercheisidore.fr/search/?author=$1"},
{"Leidse Hoogleraren", "P2861", "http://hoogleraren.leidenuniv.nl/id/$1"},
{"Leopoldina", "P3413", "http://www.leopoldina.org/de/mitglieder/mitgliederverzeichnis/member/$1/"},
{"Loop", "P2798", "https://loop.frontiersin.org/people/$1/overview"},
{"MacTutor", "P1563", "http://www-history.mcs.st-andrews.ac.uk/Biographies/$1.html"},
{"Magyar Tudományos Művek Tára", "P2492", "https://vm.mtmt.hu/search/slist.php?AuthorID=$1"},
{"Marburger Professorenkatalog", "P3187", "http://www.uni-marburg.de/uniarchiv/pkat/details?id=$1"},
{"Math-Net.Ru", "P4252", "http://www.mathnet.ru/eng/person$1"},
{"''Mathematical Reviews''", "P4955", "https://mathscinet.ams.org/mathscinet/MRAuthorID/$1"},
{"Mathematics Genealogy Project", "P549", "http://www.genealogy.ams.org/id.php?id=$1"},
{"Medicina", "P5376", "http://www.biusante.parisdescartes.fr/histoire/medicina/?auteur=$1"},
{"Médicos históricos", "P5496", "https://webs.ucm.es/BUCM/med/archivo/ficha_medico.php?id_medico=$1"},
{"Mendeley", "P3835", "https://mendeley.com/profiles/$1"},
{"''Munk's Roll''", "P2941", "http://munksroll.rcplondon.ac.uk/Biography/Details/$1"},
{"Nauka Polska", "P3124", "http://nauka-polska.pl/#/profile/scientist?id=$1"},
{"ORCID", "P496", "https://orcid.org/$1"},
{"Persée", "P2732", "http://www.persee.fr/author/persee_$1"},
{"Professeurs des facultés des lettres et sciences…", "P5462", "http://facultes19.ish-lyon.cnrs.fr/fiche.php?indice=$1"},
{"Professorenkatalog der Universität Leipzig", "P3409", "https://www.uni-leipzig.de/unigeschichte/professorenkatalog/leipzig/$1/"},
{"Publons", "P3829", "https://publons.com/author/$1/"},
{"Real Academia Nacional de Medicina", "P3945", "http://www.ranm.es/academicos/$1"},
{"Rendez-vous de l'histoire", "P5406", "http://www.rdv-histoire.com/intervenants/$1"},
{"Research Papers in Economics", "P2428", "https://authors.repec.org/pro/$1"},
{"ResearchGate", "P2038", "https://www.researchgate.net/profile/$1"},
{"Researchmap", "P5029", "https://researchmap.jp/$1"},
{"ResearcherID", "P1053", "https://www.researcherid.com/rid/$1"},
{"Royal Society", "P2070", "https://royalsociety.org/people/$1/"},
{"Science Museum", "P4389", "https://collection.sciencemuseum.org.uk/people/$1"},
{"Scopus", "P1153", "https://www.scopus.com/authid/detail.uri?authorId=$1"},
{"Semantic Scholar", "P4012", "https://www.semanticscholar.org/author/$1"},
{"Siprojuris", "P4892", "http://siprojuris.symogih.org/siprojuris/enseignant/$1"},
{"Social Science Research Network", "P3747", "https://ssrn.com/author=$1"},
{"Southern Africa Association for the Advancement of Science", "P3807", "http://www.s2a3.org.za/bio/Biograph_final.php?serial=$1"},
{"Thèses de doctorat ès lettres soutenues en France de 1808 à 1940", "P5459", "http://rhe.ish-lyon.cnrs.fr/?q=theses-record/$1"},
{"UGentMemorialis", "P3159", "http://www.ugentmemorialis.be/catalog/$1"},
{"Univ-droit", "P5175", "https://univ-droit.fr/universitaires/$1"},
{"Université Masaryk", "P1803", "http://is.muni.cz/osoba/$1"},
{"''Who Named It?''", "P5415", "http://www.whonamedit.com/doctor.cfm/$1.html"},
{"ZbMATH", "P1556", "https://zbmath.org/authors/?q=ai:$1"},
{"ZooBank", "P2006", "http://zoobank.org/Authors/$1"},
}

function p.main(frame)	
	local id = frame.args.id
	if id == "" then
		id = nil
	end

	local entity = mw.wikibase.getEntityObject(id)
	if not entity then
		return nil
	end
	local vals = {}
	for i, base in pairs(bases) do
		local val = wikidata.formatStatements{entity = entity, text = base[1], property = base[2], urlpattern = base[3], numval = 1, addcat = true}
		if val then 
			table.insert(vals, val)
		end
	end
	if #vals == 0 then
		return nil
	end
	local header = ''
	if #vals > 1 then
		header = "Ressources relatives à la recherche : "
	else
		header = 'Ressource relative à la recherche : '
	end
	return wikidata.addLinkBack(header .. table.concat( vals, ' • ' ), entity, "identifiers" ) -- lien vers la section approriété de Wikidata
end

return p