Wikidata:Property proposal/MeSH descriptor/qualifier ID

MeSH descriptor/qualifier ID edit

Originally proposed at Wikidata:Property proposal/Authority control

Descriptionidentifier for a MeSH (Medical Subject Headings) descriptor/qualifier combination
RepresentsMedical Subject Headings (Q199897)
Data typeExternal identifier
Domainitem
Allowed valuesD[0-9]{6,9}Q[0-9]{6} D followed by 6 or 9 digits, followed by Q followed by 6 digits
Example 1COVID-19 mortality (Q104778232)D000086382Q000401
Example 2arthropod anatomy (Q2845653)D001181Q000033
Example 3cyanide poisoning (Q883082)D003486Q000506
Example 4epidemiology of obesity (Q5382727)D009765Q000453
Example 5history of surgery (Q2556088)D013502Q000266
Example 6speech physiology (Q105549868)D013060Q000502
Example 7violence prevention (Q104733130)D014754Q000517
Example 8tennis injury (Q23039495)D013715Q000293
Example 9polymer chemistry (Q750446)D011108Q000737
Sourcehttps://id.nlm.nih.gov/mesh/
Planned usewill add to items as encountered and needed for subjects of theses and dissertations and fields of activity of University of Washington faculty, staff, and students
Expected completenessalways incomplete (Q21873886)
Formatter URLhttp://id.nlm.nih.gov/mesh/$1
See alsoMeSH descriptor ID (P486), MeSH concept ID (P6694), MeSH term ID (P6680), MeSH tree code (P672) and proposal MeSH qualifier ID

Motivation edit

There is currently no way to record an identifier for the combination of a MeSH main heading and qualifier. Qualifiers are used to further refine the subject described by a MeSH descriptor or concept, and there are numerous Wikidata items for concepts represented by the combination of a MeSH main heading and qualifier. MeSH RDF is available for these pre-coordinated combinations, and it would be useful to have a property that can link to the MeSH RDF for these concepts. UWashPrincipalCataloger (talk) 21:56, 28 February 2021 (UTC)[reply]

The regex that I included, D[0-9]{6,9}Q[0-9]{6}, works fine, but if there is a way to specify that the number of digits after the D is either 6 or 9 characters in length, rather than between 6 and 9, that would be an improvement. When I changed the regex to D[0-9]{6|9}Q[0-9]{6} everything after the 6 disappeared from the allowed values. UWashPrincipalCataloger (talk) 22:23, 28 February 2021 (UTC)[reply]

Discussion edit

@UWashPrincipalCataloger, Tinker Bell, Hannes Röst:   Done MeSH descriptor/qualifier ID (P9340) Pamputt (talk) 08:30, 21 March 2021 (UTC)[reply]

  Oppose @UWashPrincipalCataloger, Tinker Bell, Hannes Röst: This property is redundant therefore not useful, as I've argued at https://m.wikidata.org/wiki/Property_talk:P486#MeSH_descriptors_+_qualifiers. You already use the simple props Descriptor and Qualifier, so you don't need the compound property. What you need is a custom URL resolver --Vladimir Alexiev (talk) 23:35, 21 March 2021 (UTC)[reply]

@UWashPrincipalCataloger: You can tighten the regex by using

   D(\d{6}|\d{9})

The quantifier in brackets allows only ranges but not alternatives, so you need to use parenthesized alternatives. The vertical bar interferes with the property proposal template, but there should be no such problem when you edit the actual property. Please also do it for MESH Descriptor. --Vladimir Alexiev (talk) 23:29, 21 March 2021 (UTC)[reply]