query-730b90cf5d7e3cb816a357bedd89bf41
MeSH descriptor statements, for D-numbers, without MeSH tree code SELECT ?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#>
#MeSH descriptor statements, for D-numbers, without MeSH tree code
SELECT ?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
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