query-409406d49d5b2bd8d1767a4e55328436
Topics with MeSH Descriptor ID (D-number) lacking MeSH Code ID SELECT DISTINCT ?item ?itemLabel WHERE {?item wdt:P486 ?meshid. FILTER(STRSTARTS(?meshid,"D")) MINUS {?item wdt:P672 [ ]}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Topics with MeSH Descriptor ID (D-number) lacking MeSH Code ID
SELECT DISTINCT ?item ?itemLabel
WHERE {?item wdt:P486 ?meshid.
FILTER(STRSTARTS(?meshid,"D"))
MINUS {?item wdt:P672 [ ]}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
- https://www.wikidata.org/wiki/Wikidata:ScienceSource_project/MeSH_and_cleanup_dashboard
- https://www.wikidata.org/wiki/Wikidata:ScienceSource_project/MeSH_queries
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v1("?meshid")
a1((" "))
c5(["bd:serviceParam"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["starts-with(?meshid,'D')"]]
f0 --> v1
v2 --"wdt:P486"--> v1
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v2 --"wdt:P672"--> a1
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end