You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add Journal Article -> main subject -> MeSH Terms #32
Hi @Daniel-Mietchen . Yes, this is something that fits in to our workflow, and is something that could be added to WikidataIntegrator. This would be easy to implement provided the Wikidata item corresponding to the MeSH term already existed. Ideally, at some point we would import MeSH into Wikidata (or at least some parts of it). I imagine this would require a lot of work matching up items to prevent duplication though...
Looking at the API response from EuropePMC (and from Pubmed), the mesh terms don't actually include the mesh ID (of course, why would they?), but only the name. So either way, we would have to parse the MeSH dump file to get the MeSH ID from the name, unless you know of a better API?
We could also look into adding the items from the "chemicalList" field.
Yes, the ~7K MeSH terms that are in Wikidata at the moment (which don't seem to be differentiated in terms of being Descriptors or Concepts) are just about 1/4 of the total number of MeSH Descriptors, but perhaps a good starting point for testing such workflows. For the rest, we would probably need to think about using Mix'n Match.
In terms of getting the ID, I just left the following message with the NLM Helpdesk (ticket #28045-219557):
I am interested in getting the MeSH Descriptor IDs associated with a PubMed ID via an API call.
The XML also contains an attribute for "MajorTopicYN". For P921 "main subject" you might want to consider restricting to records with a value of "Y".
I think a bot to systematically load MeSH (or parts of it) will be part of the renewal proposal. Of course, some manual review will definitely be necessary...
I'm not sure yet what the "MajorTopicNY" switch does — in the example, it seems to only be used for qualifiers, while we would likely want to go mainly for descriptors.
Yes, for other PMIDs, it is used for descriptors as well, but my point from above was that if the goal is to turn MeSH IDs into P921 statements, we probably cannot solely rely on those descriptors for which "MajorTopicNY" is "Y", since that would give nothing for the PMID=16046484 example.
If we were to include those descriptors for which at least one qualifier's "MajorTopicNY" is set to "Y", then we would get
the number of statements derived from MeSH terms might be a concern — 26611529 has 14 Descriptors, which is close to the upper end of what I think is reasonable in terms of P921, and adding in the qualifiers means going well beyond 20, which I think is adding more noise than signal
the hierarchy of the Descriptors, as seen through their Wikidata graph. For instance, "human" is on a subtree of "mammal", so perhaps we don't need to add "mammal" here unless it's MajorTopicYN="Y"?
Yeah, have to admit I'm not a fan of that sandbox model and the use of "of". Don't have an alternate suggestion, but just sharing my gut reaction.
I'd argue that you'd only want to use P921 "main subject" if MajorTopicYN="Y". That would also cut down on the number of MeSH term statements and eliminate less informative/specific ones eg "mammal"...
Activity
stuppie commentedon Jun 12, 2017
Hi @Daniel-Mietchen . Yes, this is something that fits in to our workflow, and is something that could be added to WikidataIntegrator. This would be easy to implement provided the Wikidata item corresponding to the MeSH term already existed. Ideally, at some point we would import MeSH into Wikidata (or at least some parts of it). I imagine this would require a lot of work matching up items to prevent duplication though...
Looking at the API response from EuropePMC (and from Pubmed), the mesh terms don't actually include the mesh ID (of course, why would they?), but only the name. So either way, we would have to parse the MeSH dump file to get the MeSH ID from the name, unless you know of a better API?
We could also look into adding the items from the "chemicalList" field.
[-]MeSH-to-"main subject" pipeline[/-][+]Add Journal Article -> main subject -> MeSH Terms[/+]Daniel-Mietchen commentedon Jun 12, 2017
Yes, the ~7K MeSH terms that are in Wikidata at the moment (which don't seem to be differentiated in terms of being Descriptors or Concepts) are just about 1/4 of the total number of MeSH Descriptors, but perhaps a good starting point for testing such workflows. For the rest, we would probably need to think about using Mix'n Match.
In terms of getting the ID, I just left the following message with the NLM Helpdesk (ticket #28045-219557):
andrewsu commentedon Jun 13, 2017
A few notes from me.
It looks like the XML file will go directly from a PMID to a MeSH ID (eg https://www.ncbi.nlm.nih.gov/pubmed/16046484?report=xml&format=text).
The XML also contains an attribute for "MajorTopicYN". For P921 "main subject" you might want to consider restricting to records with a value of "Y".
I think a bot to systematically load MeSH (or parts of it) will be part of the renewal proposal. Of course, some manual review will definitely be necessary...
goodb commentedon Jun 13, 2017
You may find this service useful here. SPARQL over MeSH graph. https://id.nlm.nih.gov/mesh/
Daniel-Mietchen commentedon Jun 14, 2017
@andrewsu Thanks for the pointer to the XML.
I'm not sure yet what the "MajorTopicNY" switch does — in the example, it seems to only be used for qualifiers, while we would likely want to go mainly for descriptors.
andrewsu commentedon Jun 14, 2017
@Daniel-Mietchen definitely used for descriptors too, eg https://www.ncbi.nlm.nih.gov/pubmed/26611529?report=xml&format=text
Daniel-Mietchen commentedon Jun 14, 2017
Yes, for other PMIDs, it is used for descriptors as well, but my point from above was that if the goal is to turn MeSH IDs into P921 statements, we probably cannot solely rely on those descriptors for which "MajorTopicNY" is "Y", since that would give nothing for the PMID=16046484 example.
If we were to include those descriptors for which at least one qualifier's "MajorTopicNY" is set to "Y", then we would get
which is probably close to what we would want for P921.
For PMID=26611529, we would get
which seems reasonable as well.
I have made those sample edits to
https://www.wikidata.org/w/index.php?title=Q30247623&oldid=500642437#P921
and
https://www.wikidata.org/w/index.php?title=Q30274598&oldid=500644169#P921 .
Is there a way to know whether there are PMIDs for which no "MajorTopicNY" value would be "Y"?
stuppie commentedon Jun 14, 2017
I think we might as well include the qualifiers as well, no? Maybe with the "use" qualifier?
Daniel-Mietchen commentedon Jun 14, 2017
Yes, in principle, we'd like to make use of the information provided by the qualifiers as well, but not sure P366 is the way to go.
To go back to https://www.ncbi.nlm.nih.gov/pubmed/26611529?report=xml&format=text , we have, for instance
I understand this to mean that the paper is about
Unless we have dedicated items for such things, I could imagine translating this into statements like
I have made such a test edit to a sandbox item: https://www.wikidata.org/w/index.php?title=Q13406268&oldid=500822215#P921
Other issues:
andrewsu commentedon Jun 15, 2017
Yeah, have to admit I'm not a fan of that sandbox model and the use of "of". Don't have an alternate suggestion, but just sharing my gut reaction.
I'd argue that you'd only want to use P921 "main subject" if MajorTopicYN="Y". That would also cut down on the number of MeSH term statements and eliminate less informative/specific ones eg "mammal"...
Daniel-Mietchen commentedon Jan 17, 2018
Meanwhile, all MeSH IDs are in Mix'n Match, and about 14k have been matched.