query-ca04931a0b7832727c208e460605cd48
I did this one entirely in WikibaseCirrusSearch, I think that’s the best approach (it theoretically misses subclasses of “scholarly article” but AFAIK we don’t use those in practice).
Use at
- https://query.wikidata.org/sparql
PREFIX mwapi: <http://wikiba.se/ontology#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel WHERE {
SERVICE wikibase:mwapi {
bd:serviceParam wikibase:endpoint "www.wikidata.org";
wikibase:api "Search";
mwapi:srsearch ""Wikipedia" haswbstatement:P31=Q13442814 haswbstatement:P921=Q84263196";
mwapi:srlimit "max".
?itemId wikibase:apiOutput mwapi:title.
}
BIND(IRI(CONCAT(STR(wd:), ?itemId)) AS ?item)
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}