query-c21e3d43528ac289043c0e67195c7b55
Wikidata Query Service + QuickCategories = ♥
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:Alemaniako futbolariak" AS ?command) WHERE {
SERVICE wikibase:mwapi {
bd:serviceParam wikibase:api "Generator";
wikibase:endpoint "en.wikipedia.org";
mwapi:generator "categorymembers";
mwapi:gcmtitle "Category:German_footballers";
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.
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?articleEn")
v5("?articleEu")
v7("?command")
v4("?item")
v2("?titleEn")
v1("?titleEn_")
v6("?titleEu"):::projected
c16(["max"]):::literal
c14(["title"]):::literal
c8(["categorymembers"]):::literal
c12(["0^^xsd:integer"]):::literal
c10(["Category:German_footballers"]):::literal
c6(["en.wikipedia.org"]):::literal
c21([https://en.wikipedia.org/]):::iri
c2(["bd:serviceParam"]):::iri
c23([https://eu.wikipedia.org/]):::iri
c18(["mwapi:title"]):::iri
c4(["Generator"]):::literal
subgraph s1["http://wikiba.se/ontology#mwapi"]
style s1 stroke-width:4px;
c2 --"mwapi:api"--> c4
c2 --"mwapi:endpoint"--> c6
c2 --"mwapi:generator"--> c8
c2 --"mwapi:gcmtitle"--> c10
c2 --"mwapi:gcmnamespace"--> c12
c2 --"mwapi:gcmprop"--> c14
c2 --"mwapi:gcmlimit"--> c16
v1 --"mwapi:apiOutput"--> c18
end
bind0[/"STRLANG(?titleEn_,'en')"/]
v1 --o bind0
bind0 --as--o v2
v3 --"schema:name"--> v2
v3 --"schema:isPartOf"--> c21
v3 --"schema:about"--> v4
v5 --"schema:about"--> v4
v5 --"schema:isPartOf"--> c23
v5 --"schema:name"--> v6
bind1[/"'+Category:Alemaniako futbolariak'"/]
bind1 --as--o v7