query-92d7f79c7aa92422af0a9d46079bc49b
Check main subject referenced to PubMed for whether the topic has MeSH ID SELECT ?item ?topic WHERE {?reference pr:P248 wd:Q180686. ?statement prov:wasDerivedFrom ?reference. ?item p:P921 ?statement. ?item wdt:P698 [ ]. ?statement ps:P921 ?topic. MINUS {?topic wdt:P486 [ ]}
}
LIMIT 10
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX pr: <http://www.wikidata.org/prop/reference/>
PREFIX p: <http://www.wikidata.org/prop/>
#Check main subject referenced to PubMed for whether the topic has MeSH ID
SELECT ?item ?topic
WHERE {?reference pr:P248 wd:Q180686.
?statement prov:wasDerivedFrom ?reference.
?item p:P921 ?statement.
?item wdt:P698 [ ].
?statement ps:P921 ?topic.
MINUS {?topic wdt:P486 [ ]}
}
LIMIT 10
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?item"):::projected
v1("?reference")
v2("?statement")
v4("?topic"):::projected
a1((" "))
a2((" "))
c2(["wd:Q180686"]):::iri
v1 --"p:reference/P248"--> c2
v2 --"prov:wasDerivedFrom"--> v1
v3 --"p:P921"--> v2
v3 --"p:direct/P698"--> a1
v2 --"p:statement/P921"--> v4
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v4 --"p:direct/P486"--> a2
end