query-61fafe1c030dd9f6ab22cf72b56cd3bf
title: Invasion biology items with Scholia template on the English Wikipedia
SELECT DISTINCT ?item ?itemLabel WHERE { ?item wdt:P6104 wd:Q56241615.
{
SELECT ?item ?pageid
?ns WHERE {
SERVICE wikibase:mwapi {
bd:serviceParam wikibase:endpoint "en.wikipedia.org" .
bd:serviceParam wikibase:api "Generator" .
bd:serviceParam mwapi:generator "search" .
bd:serviceParam mwapi:gsrsearch "hastemplate:Scholia" .
bd:serviceParam mwapi:gsrlimit "max" .
?item wikibase:apiOutputItem mwapi:item .
?pageid wikibase:apiOutput "@pageid" .
?ns wikibase:apiOutput "@ns" .
}
} LIMIT 10000
}
?item ^wdt:P921 ?work .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Use at
- https://query.wikidata.org/sparql
PREFIX mwapi: <http://wikiba.se/ontology#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title: Invasion biology items with Scholia template on the English Wikipedia
SELECT
DISTINCT ?item ?itemLabel
WHERE {
?item wdt:P6104 wd:Q56241615.
{
SELECT ?item ?pageid
?ns WHERE {
SERVICE wikibase:mwapi {
bd:serviceParam wikibase:endpoint "en.wikipedia.org" .
bd:serviceParam wikibase:api "Generator" .
bd:serviceParam mwapi:generator "search" .
bd:serviceParam mwapi:gsrsearch "hastemplate:Scholia" .
bd:serviceParam mwapi:gsrlimit "max" .
?item wikibase:apiOutputItem mwapi:item .
?pageid wikibase:apiOutput "@pageid" .
?ns wikibase:apiOutput "@ns" .
}
} LIMIT 10000
}
?item ^wdt:P921 ?work .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}