query-cb6900176fbdaba3cc1eb6459b382f77
Lone D-number MeSH statements SELECT DISTINCT ?item ?subject ?itemLabel
WHERE {?item wdt:P486 ?subject. ?item wikibase:statements ?statementcount. FILTER ( ?statementcount = 1 ) FILTER (STRSTARTS(?subject, "D"))
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#>
#Lone D-number MeSH statements
SELECT DISTINCT ?item ?subject ?itemLabel
WHERE {?item wdt:P486 ?subject.
?item wikibase:statements ?statementcount.
FILTER ( ?statementcount = 1 )
FILTER (STRSTARTS(?subject, "D"))
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
- https://www.wikidata.org/wiki/User_talk:Vojt%C4%9Bch_Dost%C3%A1l/Archive_1
- https://www.wikidata.org/wiki/Wikidata:ScienceSource_project/MeSH_and_cleanup_dashboard
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?item"):::projected
v2("?statementcount")
v1("?subject"):::projected
c6(["bd:serviceParam"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["starts-with(?subject,'D')"]]
f0 --> v1
f1[["?statementcount = '1^^xsd:integer'"]]
f1 --> v2
v3 --"wdt:P486"--> v1
v3 --"wikibase:statements"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end