query-da79188994a8b5253c1d6514acead98d
Wikidata Query Service + QuickCategories = ♥ } .?titleEu name:schema ;https://eu.wikipedia.org/ isPartOf:schema ;?item about:schema ?articleEu .?item about:schema ;https://en.wikipedia.org/ isPartOf:schema ;?titleEn name:schema ?articleEn )?titleEn AS )"en" ,?titleEn_(STRLANG(BIND } .title:mwapi apiOutput:wikibase ?titleEn_ ."max" gcmlimit:mwapi ;"title" gcmprop:mwapi ;0 gcmnamespace:mwapi ;"Category:German_footballers" gcmtitle:mwapi ;"categorymembers" generator:mwapi ;"en.wikipedia.org" endpoint:wikibase ;"Generator" api:wikibase serviceParam:bd { mwapi:wikibase SERVICE ."None" optimizer:hint Query:hint { WHERE )?command AS "+Category:Alemaniako futbolariak"( ?titleEu SELECT) 20:19, 29 martxoa 2019 (UTC) eztabaida (Lucas Werkmeister, submit the batch and run the commands. Try it out! --QuickCategoriesCopy the result, paste it into With subcategory support:
Use at
- https://query.wikidata.org/sparql
PREFIX mwapi: <http://wikiba.se/ontology#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?titleEu ("+Category:BASQUE CATEGORY HERE" AS ?command) WHERE {
hint:Query hint:optimizer "None".
SERVICE <https://query.wikidata.org/bigdata/namespace/categories/sparql> {
SERVICE mediawiki:categoryTree {
bd:serviceParam mediawiki:start <https://en.wikipedia.org/wiki/Category:ENGLISH_CATEGORY_URL_HERE>;
mediawiki:direction "Reverse";
mediawiki:depth 5 . # change this if needed
}
}
?out schema:name ?categoryEn.
SERVICE wikibase:mwapi {
bd:serviceParam wikibase:api "Generator";
wikibase:endpoint "en.wikipedia.org";
mwapi:generator "categorymembers";
mwapi:gcmtitle ?categoryEn;
mwapi:gcmnamespace 0;
mwapi:gcmprop "title";
mwapi:gcmlimit "max".
?titleEn_ wikibase:apiOutput mwapi:title.
}
BIND(STRLANG(?titleEn_, "en") AS ?titleEn)
?articleEn schema:name ?titleEn;
schema:isPartOf <https://en.wikipedia.org/>;
schema:about ?item.
?articleEu schema:about ?item;
schema:isPartOf <https://eu.wikipedia.org/>;
schema:name ?titleEu.
}
LIMIT 100