query-1c66f0a99bff5db020aeeb044958c882
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX mwapi: <http://wikiba.se/ontology#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT * {
SERVICE wikibase:mwapi {
bd:serviceParam wikibase:api "Generator" .
bd:serviceParam wikibase:endpoint "cs.wikipedia.org" .
bd:serviceParam mwapi:gcmtitle "Kategorie:Údržba:Doplnit štítek na Wikidatech" .
bd:serviceParam mwapi:generator "categorymembers" .
bd:serviceParam mwapi:gcmlimit "10" .
bd:serviceParam mwapi:prop "wbentityusage|info|pageprops" .
bd:serviceParam mwapi:ppprop "wikibase_item" .
bd:serviceParam mwapi:wbeulimit "max" .
# this doesn't work bd:serviceParam mwapi:wbeuaspect "L.cs" .
?title wikibase:apiOutput mwapi:title .
?item wikibase:apiOutputItem mwapi:item .
?item2 wikibase:apiOutputItem "wbentityusage/wbeu/@id" .
# this doesn't work ?aspect wikibase:apiOutput "wbentityusage/wbeu/aspects/aspect/@???" .
?num wikibase:apiOrdinal true .
} .
} ORDER BY ?num
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?item"):::projected
v4("?item2"):::projected
v1("?num"):::projected
v2("?title"):::projected
c23(["wbentityusage/wbeu/@id"]):::literal
c22(["mwapi:item"]):::iri
c2(["bd:serviceParam"]):::iri
c12(["10"]):::literal
c16(["wikibase_item"]):::literal
c8(["Kategorie:Údržba:Doplnit štítek na Wikidatech"]):::literal
c14(["wbentityusage|info|pageprops"]):::literal
c18(["max"]):::literal
c6(["cs.wikipedia.org"]):::literal
c10(["categorymembers"]):::literal
c25(["true^^xsd:boolean"]):::literal
c20(["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:gcmtitle"--> c8
c2 --"mwapi:generator"--> c10
c2 --"mwapi:gcmlimit"--> c12
c2 --"mwapi:prop"--> c14
c2 --"mwapi:ppprop"--> c16
c2 --"mwapi:wbeulimit"--> c18
v2 --"mwapi:apiOutput"--> c20
v3 --"mwapi:apiOutputItem"--> c22
v4 --"mwapi:apiOutputItem"--> c23
v1 --"mwapi:apiOrdinal"--> c25
end