query-ac4dc730c4f731a23633ff40cf92daa8
Get all STEM articles on wikipediaBy STEM, I mean articles (roughly) about the concepts in STEM(eg, that you'd traditionally learn in university), rather than articles about biography or sociology of the impact of the concepts. https://w.wiki/7YWMEg, I tried this - 22:03, 27 September 2023 (UTC)) talk (Wikiqrdl If I was able to get the categories, than getting the pages would be much easier. https://www.wikidata.org/wiki/Q6544657I think a very large part of the problem is that wikipedia categories are poorly described by wikidata, eg -
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 p: <http://www.wikidata.org/prop/>
SELECT DISTINCT ?item WHERE {
?item p:P31 ?statement0.
?statement0 (ps:P31/(wdt:P279*)) wd:Q336.
?item p:P361 ?statement1.
?statement1 (ps:P361/(wdt:P279*)) wd:Q8434.
}
LIMIT 100
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
v2("?statement0")
v3("?statement1")
a1((" "))
a2((" "))
c4(["wd:Q336"]):::iri
c7(["wd:Q8434"]):::iri
v1 --"p:P31"--> v2
v2 --"p:statement/P31"--> a1
a1 --"p:direct/P279"--> c4
v1 --"p:P361"--> v3
v3 --"p:statement/P361"--> a2
a2 --"p:direct/P279"--> c7