query-1493cbbe0d6f5356358ed39a2e81c209

rq turtle/ttl

Mike Peel

Use at

PREFIX mwapi: <http://wikiba.se/ontology#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel
WHERE {
  SERVICE wikibase:mwapi
  {
    bd:serviceParam wikibase:api "Generator" .
    bd:serviceParam wikibase:endpoint "commons.wikimedia.org" .
    bd:serviceParam mwapi:generator "allpages" .
    bd:serviceParam mwapi:gapnamespace "106" . # The Institution namespace.
      # See https://commons.wikimedia.org/wiki/Help:Namespaces for a list of namespaces.
   # bd:serviceParam mwapi:gapfilterlanglinks "withlanglinks" . # Uncomment to select only pages with languagelinks to Wikipedias
    bd:serviceParam mwapi:gaplimit "max" .
    bd:serviceParam mwapi:prop "pageprops" .
    bd:serviceParam mwapi:ppprop "wikibase_item" .
    ?item wikibase:apiOutputItem mwapi:item .
  }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item"):::projected c16(["wikibase_item"]):::literal c18(["mwapi:item"]):::iri c12(["max"]):::literal c2(["bd:serviceParam"]):::iri c8(["allpages"]):::literal c10(["106"]):::literal c21(["#91;AUTO_LANGUAGE#93;,en"]):::literal c14(["pageprops"]):::literal c6(["commons.wikimedia.org"]):::literal 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:gapnamespace"--> c10 c2 --"mwapi:gaplimit"--> c12 c2 --"mwapi:prop"--> c14 c2 --"mwapi:ppprop"--> c16 v1 --"mwapi:apiOutputItem"--> c18 end subgraph s2["http://wikiba.se/ontology#label"] style s2 stroke-width:4px; c2 --"mwapi:language"--> c21 end