![]() |
| Part of the LIPID MAPS classification scheme in Wikidata (try it). |
I showed them how we contribute to WikiPathways, particularly in the area of lipids. Denise Slenter and I have been working on having more identifier mappings in Wikidata, among which the lipids. Some results of that work was part of this presentation. One of the nice things about Wikidata is that you can make live Venn diagrams, e.g. compounds in LIPID MAPS for which Wikidata also has a statement about which species it is found in (try it):
SELECT ?lipid ?lipidLabel ?lmid ?species ?speciesLabel
?source ?sourceLabel ?doi
WHERE {
?lipid wdt:P2063 ?lmid ;
p:P703 ?speciesStatement .
OPTIONAL {
?speciesStatement prov:wasDerivedFrom/pr:P248 ?source ;
ps:P703 ?species .
OPTIONAL { ?source wdt:P356 ?doi }
}
SERVICE wikibase:label {
bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en".
}
}
A second query searches lipids for which also mass spectra are found in MassBank (try it):
SELECT
?lipid ?lipidLabel ?lmid
(GROUP_CONCAT(DISTINCT ?massbanks) as ?massbank)
WHERE {
?lipid wdt:P2063 ?lmid ;
wdt:P6689 ?massbanks .
SERVICE wikibase:label {
bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en".
}
} GROUP BY ?lipid ?lipidLabel ?lmid
Enjoy!

No comments:
Post a Comment