User:Daniel/Queries: Difference between revisions

From MaRDI portal
Line 81: Line 81:
**:This looks like a good dataset to work with, paving the way for disambiguating strings with initials later with more confidence.
**:This looks like a good dataset to work with, paving the way for disambiguating strings with initials later with more confidence.
** [https://query.wikidata.org/#SELECT%0A%20%20%23%20Number%20of%20works%20with%20the%20author%0A%20%20%3Fcount%0A%0A%20%20%23%20Author%20score%20-%203%20points%20for%20authoring%20a%20work%2C%201%20for%20being%20cited%0A%20%20%3Fscore%0A%0A%20%20%23%20Author%20as%20a%20string%0A%20%20%3Fauthor%0A%0A%20%20%23%20Build%20URL%20to%20the%20Author%20disambiguator%20tool%0A%20%20%28URI%28CONCAT%28%0A%20%20%20%20%20%20%27https%3A%2F%2Fauthor-disambiguator.toolforge.org%2Fnames_oauth.php%3Fdoit%3DLook%2Bfor%2Bauthor%26name%3D%27%2C%0A%20%20%20%20%20%20ENCODE_FOR_URI%28%3Fauthor%29%29%29%20AS%20%3Fresolver_url%29%0AWITH%20%7B%0A%20%20SELECT%20DISTINCT%20%3Fwork%20WHERE%20%7B%0A%20%20%20%20%3Fwork%20wdt%3AP894%20%3Fzbm_doc.%0A%20%20%7D%0A%20%20LIMIT%2010000%0A%7D%20AS%20%25works%0AWITH%20%7B%0A%20%20SELECT%0A%20%20%20%20%28COUNT%28%3Fwork%29%20AS%20%3Fcount%29%0A%20%20%20%20%3Fauthor%0A%20%20WHERE%20%7B%0A%20%20%20%20INCLUDE%20%25works%0A%20%20%20%20%3Fwork%20wdt%3AP2093%20%3Fauthor%20.%0A%20%20%7D%0A%20%20GROUP%20BY%20%3Fauthor%0A%7D%20AS%20%25result%0A%0A%23%20Generate%20a%20score%20for%20each%20author%0AWITH%20%7B%0A%20%20SELECT%20%28SUM%28%3Fscore_%29%20AS%20%3Fscore%29%20%3Fauthor%0A%20%20WHERE%20%7B%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%23%20Assign%20them%203%20points%20if%20they%20are%20an%20author%20of%20a%20work%20on%20the%20subject%0A%20%20%20%20%20%20SELECT%20%283%20AS%20%3Fscore_%29%20%3Fauthor%20%3Fwork%20WHERE%20%7B%0A%20%20%20%20%20%20%20%20%3Fwork%20wdt%3AP2093%20%3Fauthor%20.%0A%20%20%20%20%20%20%20%20%3Fwork%20wdt%3AP894%20%3Fzbm_doc.%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%20%20%20UNION%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%23%20Assign%20them%201%20point%20if%20they%20are%20the%20author%20of%20a%20work%20that%20is%20cited%20by%20a%20work%20on%20the%20subject%0A%20%20%20%20%20%20SELECT%20%281%20AS%20%3Fscore_%29%20%3Fauthor%20%3Fwork%20WHERE%20%7B%0A%20%20%20%20%20%20%20%20%3Fwork%20wdt%3AP2093%20%3Fauthor%20.%0A%20%20%20%20%20%20%20%20%3Fciting_work%20wdt%3AP2860%20%3Fwork%20.%0A%20%20%20%20%20%20%20%20%3Fciting_work%20wdt%3AP894%20%3Fzbm_doc.%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%20%7D%0A%20%20GROUP%20BY%20%3Fauthor%0A%7D%20AS%20%25scores%0A%0AWHERE%20%7B%0A%20%20INCLUDE%20%25result%0A%20%20INCLUDE%20%25scores%0A%0A%20%20%23%20Label%20the%20result%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22%20.%20%7D%0A%7D%0AORDER%20BY%20DESC%28%3Fcount%29%20DESC%28%3Fscore%29%0ALIMIT%20200%0A Common author name strings on documents that have a zbMATH document ID]
** [https://query.wikidata.org/#SELECT%0A%20%20%23%20Number%20of%20works%20with%20the%20author%0A%20%20%3Fcount%0A%0A%20%20%23%20Author%20score%20-%203%20points%20for%20authoring%20a%20work%2C%201%20for%20being%20cited%0A%20%20%3Fscore%0A%0A%20%20%23%20Author%20as%20a%20string%0A%20%20%3Fauthor%0A%0A%20%20%23%20Build%20URL%20to%20the%20Author%20disambiguator%20tool%0A%20%20%28URI%28CONCAT%28%0A%20%20%20%20%20%20%27https%3A%2F%2Fauthor-disambiguator.toolforge.org%2Fnames_oauth.php%3Fdoit%3DLook%2Bfor%2Bauthor%26name%3D%27%2C%0A%20%20%20%20%20%20ENCODE_FOR_URI%28%3Fauthor%29%29%29%20AS%20%3Fresolver_url%29%0AWITH%20%7B%0A%20%20SELECT%20DISTINCT%20%3Fwork%20WHERE%20%7B%0A%20%20%20%20%3Fwork%20wdt%3AP894%20%3Fzbm_doc.%0A%20%20%7D%0A%20%20LIMIT%2010000%0A%7D%20AS%20%25works%0AWITH%20%7B%0A%20%20SELECT%0A%20%20%20%20%28COUNT%28%3Fwork%29%20AS%20%3Fcount%29%0A%20%20%20%20%3Fauthor%0A%20%20WHERE%20%7B%0A%20%20%20%20INCLUDE%20%25works%0A%20%20%20%20%3Fwork%20wdt%3AP2093%20%3Fauthor%20.%0A%20%20%7D%0A%20%20GROUP%20BY%20%3Fauthor%0A%7D%20AS%20%25result%0A%0A%23%20Generate%20a%20score%20for%20each%20author%0AWITH%20%7B%0A%20%20SELECT%20%28SUM%28%3Fscore_%29%20AS%20%3Fscore%29%20%3Fauthor%0A%20%20WHERE%20%7B%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%23%20Assign%20them%203%20points%20if%20they%20are%20an%20author%20of%20a%20work%20on%20the%20subject%0A%20%20%20%20%20%20SELECT%20%283%20AS%20%3Fscore_%29%20%3Fauthor%20%3Fwork%20WHERE%20%7B%0A%20%20%20%20%20%20%20%20%3Fwork%20wdt%3AP2093%20%3Fauthor%20.%0A%20%20%20%20%20%20%20%20%3Fwork%20wdt%3AP894%20%3Fzbm_doc.%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%20%20%20UNION%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%23%20Assign%20them%201%20point%20if%20they%20are%20the%20author%20of%20a%20work%20that%20is%20cited%20by%20a%20work%20on%20the%20subject%0A%20%20%20%20%20%20SELECT%20%281%20AS%20%3Fscore_%29%20%3Fauthor%20%3Fwork%20WHERE%20%7B%0A%20%20%20%20%20%20%20%20%3Fwork%20wdt%3AP2093%20%3Fauthor%20.%0A%20%20%20%20%20%20%20%20%3Fciting_work%20wdt%3AP2860%20%3Fwork%20.%0A%20%20%20%20%20%20%20%20%3Fciting_work%20wdt%3AP894%20%3Fzbm_doc.%0A%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%20%7D%0A%20%20GROUP%20BY%20%3Fauthor%0A%7D%20AS%20%25scores%0A%0AWHERE%20%7B%0A%20%20INCLUDE%20%25result%0A%20%20INCLUDE%20%25scores%0A%0A%20%20%23%20Label%20the%20result%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22%20.%20%7D%0A%7D%0AORDER%20BY%20DESC%28%3Fcount%29%20DESC%28%3Fscore%29%0ALIMIT%20200%0A Common author name strings on documents that have a zbMATH document ID]
* Find zbMATH author IDs to be added to Wikidata author items: [https://query.wikidata.org/#%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%0A%23%20Wikidata%20items%20of%20authors%20for%20which%20Wikidata%20does%20not%20know%20the%20zbMATH%20author%20ID%20but%20%23%20%20%0A%23%20the%20zbMATH%20author%20ID%20of%20at%20least%20two%20co-authors%20on%20a%20paper%20with%20zbMATH%20document%20ID%2C%20%23%0A%23%20from%20which%20the%20missing%20zbMATH%20author%20ID%20may%20be%20inferred.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%23%0A%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%0A%0ASELECT%20DISTINCT%20%3Fauthor3%20%0A%28URI%28CONCAT%28%0A%20%20%27https%3A%2F%2Fzbmath.org%2F%27%2C%0A%20%20ENCODE_FOR_URI%28%3Fzbm_doc%29%29%29%20AS%20%3Fresolver_url%29%0A%3Fauthor3Label%0A%3Fitem%20%3FitemLabel%20%3Fstatements3%20%20%20%20%0AWITH%20%7B%0A%20%20SELECT%20DISTINCT%20%3Fauthor3%20%3Fzbm_doc%20%3Fitem%20WHERE%20%7B%0A%20%20%0A%20%20SERVICE%20bd%3Asample%20%7B%20%3Fitem%20wdt%3AP894%20%3Fzbm_doc%20.%20bd%3AserviceParam%20bd%3Asample.limit%2030000%20%7D%0A%20%20%3Fitem%20wdt%3AP50%20%3Fauthor1%20%2C%20%3Fauthor2%2C%20%3Fauthor3%20.%0A%20%20%3Fauthor1%20wdt%3AP1556%20%3Fzbm_au1%20.%0A%20%20%3Fauthor2%20wdt%3AP1556%20%3Fzbm_au2%20.%0A%20%20FILTER%20%28%3Fauthor1%20%21%3D%20%3Fauthor2%29%0A%20%20FILTER%20%28%3Fauthor1%20%21%3D%20%3Fauthor3%29%0A%20%20FILTER%20%28%3Fauthor2%20%21%3D%20%3Fauthor3%29%0A%20%20FILTER%20NOT%20EXISTS%20%7B%20%3Fauthor3%20wdt%3AP1556%20%3Fzbm_au%20%7D%0A%20%20%20%20%7D%0A%7D%20AS%20%25prep%0AWHERE%20%7B%0A%20%20INCLUDE%20%25prep%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%0A%20%20%3Fauthor3%20wikibase%3Astatements%20%3Fstatements3%20.%0A%7D%0AORDER%20BY%20DESC%28%3Fstatements3%29%0A%23%20LIMIT%201000 Wikidata items of authors for which Wikidata does not know the zbMATH author ID but the zbMATH author ID of at least two co-authors on a paper with zbMATH document ID, from which the missing zbMATH author ID may be inferred.]
* Find zbMATH author IDs to be added to Wikidata author items: [https://query.wikidata.org/#%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%0A%23%20Wikidata%20items%20of%20authors%20for%20which%20Wikidata%20does%20not%20know%20the%20zbMATH%20author%20ID%20but%20%23%20%20%0A%23%20the%20zbMATH%20author%20ID%20of%20at%20least%20two%20co-authors%20on%20a%20paper%20with%20zbMATH%20document%20ID%2C%20%23%0A%23%20from%20which%20the%20missing%20zbMATH%20author%20ID%20may%20be%20inferred.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%23%0A%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%0A%0ASELECT%20DISTINCT%20%20%0A%28URI%28CONCAT%28%0A%20%20%27https%3A%2F%2Fzbmath.org%2F%27%2C%0A%20%20ENCODE_FOR_URI%28%3Fzbm_doc%29%29%29%20AS%20%3Fresolver_url%29%0A%3Fauthor3%0A%3Fauthor3Label%0A%3Fitem%20%3FitemLabel%20%3Fstatements3%20%20%20%20%0AWITH%20%7B%0A%20%20SELECT%20DISTINCT%20%3Fauthor3%20%3Fzbm_doc%20%3Fitem%20WHERE%20%7B%0A%20%20%0A%20%20SERVICE%20bd%3Asample%20%7B%20%3Fitem%20wdt%3AP894%20%3Fzbm_doc%20.%20bd%3AserviceParam%20bd%3Asample.limit%2030000%20%7D%0A%20%20%3Fitem%20wdt%3AP50%20%3Fauthor1%20%2C%20%3Fauthor2%2C%20%3Fauthor3%20.%0A%20%20%3Fauthor1%20wdt%3AP1556%20%3Fzbm_au1%20.%0A%20%20%3Fauthor2%20wdt%3AP1556%20%3Fzbm_au2%20.%0A%20%20FILTER%20%28%3Fauthor1%20%21%3D%20%3Fauthor2%29%0A%20%20FILTER%20%28%3Fauthor1%20%21%3D%20%3Fauthor3%29%0A%20%20FILTER%20%28%3Fauthor2%20%21%3D%20%3Fauthor3%29%0A%20%20FILTER%20NOT%20EXISTS%20%7B%20%3Fauthor3%20wdt%3AP1556%20%3Fzbm_au%20%7D%0A%20%20%20%20%7D%0A%7D%20AS%20%25prep%0AWHERE%20%7B%0A%20%20INCLUDE%20%25prep%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%0A%20%20%3Fauthor3%20wikibase%3Astatements%20%3Fstatements3%20.%0A%7D%0AORDER%20BY%20DESC%28%3Fstatements3%29%0A%23%20LIMIT%201000 Wikidata items of authors for which Wikidata does not know the zbMATH author ID but the zbMATH author ID of at least two co-authors on a paper with zbMATH document ID, from which the missing zbMATH author ID may be inferred.]
** [https://w.wiki/8Ygk variant without zbMATH document ID]
** [https://w.wiki/8Ygk variant without zbMATH document ID]
** [https://query.wikidata.org/#%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%0A%23%20Wikidata%20items%20of%20authors%20for%20which%20Wikidata%20does%20not%20know%20the%20zbMATH%20author%20ID%20but%20%23%20%20%0A%23%20the%20zbMATH%20author%20ID%20of%20at%20least%20one%20co-author%20on%20a%20paper%20with%20zbMATH%20document%20ID%2C%20%20%23%0A%23%20from%20which%20the%20missing%20zbMATH%20author%20ID%20may%20be%20inferred.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%23%0A%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%0A%0ASELECT%20DISTINCT%20%3Fauthor2%0A%28URI%28CONCAT%28%0A%20%20%27https%3A%2F%2Fzbmath.org%2F%27%2C%0A%20%20ENCODE_FOR_URI%28%3Fzbm_doc%29%29%29%20AS%20%3Fresolver_url%29%0A%3Fauthor2Label%0A%3Fitem%20%3FitemLabel%20%3Fstatements2%20%20%20%20%0AWHERE%20%7B%0A%20%20%0A%20%20SERVICE%20bd%3Asample%20%7B%20%3Fitem%20wdt%3AP894%20%3Fzbm_doc%20.%20bd%3AserviceParam%20bd%3Asample.limit%2010000%20%7D%0A%20%20%3Fitem%20wdt%3AP50%20%3Fauthor1%20%2C%20%3Fauthor2%20.%0A%20%20%3Fauthor1%20wdt%3AP1556%20%3Fzbm_au1%20.%0A%20%20FILTER%20%28%3Fauthor1%20%21%3D%20%3Fauthor2%29%0A%20%20FILTER%20NOT%20EXISTS%20%7B%20%3Fauthor2%20wdt%3AP1556%20%5B%5D%20%7D%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%0A%20%20%3Fauthor2%20wikibase%3Astatements%20%3Fstatements2%20.%0A%7D%0AORDER%20BY%20DESC%28%3Fstatements2%29%0A%23%20LIMIT%20101112345 variant for one co-author]
** [https://query.wikidata.org/#%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%0A%23%20Wikidata%20items%20of%20authors%20for%20which%20Wikidata%20does%20not%20know%20the%20zbMATH%20author%20ID%20but%20%23%20%20%0A%23%20the%20zbMATH%20author%20ID%20of%20at%20least%20one%20co-author%20on%20a%20paper%20with%20zbMATH%20document%20ID%2C%20%20%23%0A%23%20from%20which%20the%20missing%20zbMATH%20author%20ID%20may%20be%20inferred.%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%23%0A%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%23%0A%0ASELECT%20DISTINCT%20%3Fauthor2%0A%28URI%28CONCAT%28%0A%20%20%27https%3A%2F%2Fzbmath.org%2F%27%2C%0A%20%20ENCODE_FOR_URI%28%3Fzbm_doc%29%29%29%20AS%20%3Fresolver_url%29%0A%3Fauthor2Label%0A%3Fitem%20%3FitemLabel%20%3Fstatements2%20%20%20%20%0AWHERE%20%7B%0A%20%20%0A%20%20SERVICE%20bd%3Asample%20%7B%20%3Fitem%20wdt%3AP894%20%3Fzbm_doc%20.%20bd%3AserviceParam%20bd%3Asample.limit%2010000%20%7D%0A%20%20%3Fitem%20wdt%3AP50%20%3Fauthor1%20%2C%20%3Fauthor2%20.%0A%20%20%3Fauthor1%20wdt%3AP1556%20%3Fzbm_au1%20.%0A%20%20FILTER%20%28%3Fauthor1%20%21%3D%20%3Fauthor2%29%0A%20%20FILTER%20NOT%20EXISTS%20%7B%20%3Fauthor2%20wdt%3AP1556%20%5B%5D%20%7D%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%0A%20%20%3Fauthor2%20wikibase%3Astatements%20%3Fstatements2%20.%0A%7D%0AORDER%20BY%20DESC%28%3Fstatements2%29%0A%23%20LIMIT%20101112345 variant for one co-author]

Revision as of 22:03, 2 May 2024

About

This page assists with the creation, curation and maintenance of queries related to mathematical content here on the MaRDI portal or in other knowledge bases, especially in Wikidata.


Demo queries

These are queries that highlight some particular aspect of the data or the associated technical contexts.

Map of institutions involved in NFDI consortia

Formulas involving mass

Meaning of a given symbol in various formulas

Meaning of the symbol 'η' in various formulas

Meaning of the symbol 'μ' in various formulas

Most frequent topics of publications with a zbMATH document ID

Most frequent topics of publications by an author with a zbMATH author ID

Items matching a certain identifier

DLMF ID

Formulas containing certain LaTeX strings

Mathematicians who have had non-mathematical things named after them

Housekeeping queries

List of MaRDI Wikibase properties


Author identifiers

Editing queries

These queries generate commands that can be used to make additional edits in the same Wikibase or another.

Maintenance queries

These queries help maintain or improve data quality, e.g. by checking for consistency or gaps.

zbMATH-related queries

On Wikidata

See also recent changes to items linked from zbMATH work ID (P894), items linking to zbMATH work ID (P894), items linked from zbMATH author ID (P1556) and items linking to author ID (P1556) as well as frequent curators of zbMATH work ID (P894) statements and frequent curators of zbMATH author ID (P1556) statements.

On Wikipedia

On MaRDI

Tools

Q & A

Annotation

See also

  • A generic Query GUI
  • To experiment with the MaRDI Query Service time-out limit, see this query and try it with other limits